origam 2.15.0 → 2.16.0
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/CHANGELOG.md +64 -0
- package/dist/src/components/Alert/OrigamAlert.vue +13 -16
- package/dist/src/components/App/OrigamAppBar.vue +5 -5
- package/dist/src/components/Audio/OrigamAudio.vue +5 -5
- package/dist/src/components/Avatar/OrigamAvatar.vue +5 -5
- package/dist/src/components/Badge/OrigamBadge.vue +5 -5
- package/dist/src/components/Blockquote/OrigamBlockquote.vue +8 -8
- package/dist/src/components/BottomNav/OrigamBottomNav.vue +10 -8
- package/dist/src/components/Bracket/OrigamBracket.vue +12 -16
- package/dist/src/components/Bracket/OrigamBracketCompetitor.vue +6 -6
- package/dist/src/components/Bracket/OrigamBracketMatch.vue +24 -6
- package/dist/src/components/Bracket/OrigamBracketRound.vue +5 -5
- package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +11 -8
- package/dist/src/components/Btn/OrigamBtn.vue +7 -7
- package/dist/src/components/Calendar/OrigamCalendar.vue +25 -39
- package/dist/src/components/Card/OrigamCard.vue +4 -4
- package/dist/src/components/Card/OrigamCardHeader.vue +21 -5
- package/dist/src/components/Card/OrigamCardText.vue +27 -6
- package/dist/src/components/Chart/OrigamChart.vue +54 -2
- package/dist/src/components/Chart/OrigamChartBoxPlot.vue +3 -3
- package/dist/src/components/Chart/OrigamChartBullet.vue +3 -3
- package/dist/src/components/Chart/OrigamChartCandlestick.vue +3 -3
- package/dist/src/components/Chart/OrigamChartCartesian.vue +5 -5
- package/dist/src/components/Chart/OrigamChartGauge.vue +3 -3
- package/dist/src/components/Chart/OrigamChartHeatmap.vue +3 -3
- package/dist/src/components/Chart/OrigamChartHoneycomb.vue +3 -3
- package/dist/src/components/Chart/OrigamChartLegend.vue +1 -1
- package/dist/src/components/Chart/OrigamChartMap.vue +3 -3
- package/dist/src/components/Chart/OrigamChartPareto.vue +3 -3
- package/dist/src/components/Chart/OrigamChartPictorial.vue +4 -4
- package/dist/src/components/Chart/OrigamChartPolar.vue +4 -4
- package/dist/src/components/Chart/OrigamChartPolarBar.vue +3 -3
- package/dist/src/components/Chart/OrigamChartPyramid.vue +3 -3
- package/dist/src/components/Chart/OrigamChartRadar.vue +3 -3
- package/dist/src/components/Chart/OrigamChartSankey.vue +3 -3
- package/dist/src/components/Chart/OrigamChartSparkline.vue +2 -2
- package/dist/src/components/Chart/OrigamChartStreamgraph.vue +4 -4
- package/dist/src/components/Chart/OrigamChartSunburst.vue +3 -3
- package/dist/src/components/Chart/OrigamChartTreemap.vue +4 -4
- package/dist/src/components/Chart/OrigamChartVariwide.vue +3 -3
- package/dist/src/components/Chart/OrigamChartWordCloud.vue +2 -2
- package/dist/src/components/Checkbox/OrigamCheckbox.vue +5 -5
- package/dist/src/components/Chip/OrigamChip.vue +18 -7
- package/dist/src/components/Chip/OrigamChipGroup.vue +9 -7
- package/dist/src/components/Clipboard/OrigamClipboard.vue +5 -5
- package/dist/src/components/Code/OrigamCode.vue +5 -5
- package/dist/src/components/ColorPicker/OrigamColorPicker.vue +6 -6
- package/dist/src/components/ColorPicker/OrigamColorPickerCanvas.vue +2 -2
- package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +5 -5
- package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +5 -5
- package/dist/src/components/ContextualMenu/OrigamContextualMenu.vue +5 -5
- package/dist/src/components/Counter/OrigamCounter.vue +42 -2
- package/dist/src/components/DataList/OrigamDataList.vue +6 -6
- package/dist/src/components/DataTable/OrigamDataTable.vue +5 -5
- package/dist/src/components/DataTable/OrigamDataTableHeaders.vue +2 -2
- package/dist/src/components/DataTable/OrigamDataTableRows.vue +2 -1
- package/dist/src/components/DatePicker/OrigamDatePicker.vue +6 -6
- package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +5 -5
- package/dist/src/components/Dialog/OrigamDialogConfirmation.vue +1 -1
- package/dist/src/components/EmptyState/OrigamEmptyState.vue +7 -7
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanel.vue +8 -8
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelContent.vue +2 -2
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +5 -5
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanels.vue +12 -8
- package/dist/src/components/Field/OrigamField.vue +7 -7
- package/dist/src/components/FileField/OrigamFileField.vue +12 -12
- package/dist/src/components/FileField/OrigamFileFieldDragNDropItem.vue +5 -5
- package/dist/src/components/FileField/OrigamFileFieldListItem.vue +5 -5
- package/dist/src/components/Form/OrigamForm.vue +6 -6
- package/dist/src/components/Grid/OrigamGrid.vue +5 -5
- package/dist/src/components/Grid/OrigamGridItem.vue +2 -2
- package/dist/src/components/Icon/OrigamClassIcon.vue +28 -3
- package/dist/src/components/Icon/OrigamComponentIcon.vue +28 -3
- package/dist/src/components/Icon/OrigamIcon.vue +0 -1
- package/dist/src/components/Icon/OrigamLigatureIcon.vue +28 -3
- package/dist/src/components/Icon/OrigamSvgIcon.vue +28 -3
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScroll.vue +5 -5
- package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +5 -5
- package/dist/src/components/Input/OrigamInput.vue +25 -5
- package/dist/src/components/ItemGroup/OrigamItemGroup.vue +6 -3
- package/dist/src/components/Kbd/OrigamKbd.vue +8 -7
- package/dist/src/components/Label/OrigamLabel.vue +5 -5
- package/dist/src/components/List/OrigamList.vue +9 -7
- package/dist/src/components/List/OrigamListGroup.vue +7 -4
- package/dist/src/components/List/OrigamListItem.vue +5 -5
- package/dist/src/components/List/OrigamListSubheader.vue +5 -5
- package/dist/src/components/Masonry/OrigamMasonry.vue +7 -4
- package/dist/src/components/Media/OrigamMediaController.vue +0 -5
- package/dist/src/components/Media/OrigamMediaScrubber.vue +17 -13
- package/dist/src/components/Menu/OrigamMenu.vue +25 -12
- package/dist/src/components/Messages/OrigamMessages.vue +5 -5
- package/dist/src/components/NumberField/OrigamNumberField.vue +5 -5
- package/dist/src/components/NumberFormat/OrigamNumberFormat.vue +7 -7
- package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +5 -5
- package/dist/src/components/Pagination/OrigamPagination.vue +33 -6
- package/dist/src/components/Parallax/OrigamParallax.vue +24 -6
- package/dist/src/components/Parallax/OrigamParallaxElement.vue +4 -4
- package/dist/src/components/PasswordField/OrigamPasswordField.vue +5 -5
- package/dist/src/components/Picker/OrigamPicker.vue +6 -6
- package/dist/src/components/Picker/OrigamPickerTitle.vue +5 -5
- package/dist/src/components/QrCode/OrigamQrCode.vue +1 -1
- package/dist/src/components/Radio/OrigamRadio.vue +5 -5
- package/dist/src/components/Radio/OrigamRadioGroup.vue +15 -12
- package/dist/src/components/RatingField/OrigamRatingField.vue +5 -5
- package/dist/src/components/Select/OrigamSelect.vue +5 -5
- package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +4 -2
- package/dist/src/components/SelectionControl/OrigamSelectionControlGroup.vue +17 -15
- package/dist/src/components/Sheet/OrigamSheet.vue +2 -2
- package/dist/src/components/Skeleton/OrigamSkeleton.vue +1 -1
- package/dist/src/components/Slide/OrigamSlideGroup.vue +1 -1
- package/dist/src/components/SliderField/OrigamSliderField.vue +5 -5
- package/dist/src/components/SliderField/OrigamSliderFieldTrack.vue +1 -4
- package/dist/src/components/Snackbar/OrigamSnackbar.vue +1 -0
- package/dist/src/components/Snackbar/OrigamSnackbarGroup.vue +11 -7
- package/dist/src/components/Snackbar/OrigamSnackbarItem.vue +16 -10
- package/dist/src/components/Stepper/OrigamStepper.vue +3 -3
- package/dist/src/components/Stepper/OrigamStepperItem.vue +10 -10
- package/dist/src/components/Switch/OrigamSwitch.vue +11 -54
- package/dist/src/components/SystemBar/OrigamSystemBar.vue +5 -5
- package/dist/src/components/Table/OrigamTable.vue +5 -5
- package/dist/src/components/Tabs/OrigamTab.vue +5 -5
- package/dist/src/components/Tabs/OrigamTabPanels.vue +6 -3
- package/dist/src/components/Tabs/OrigamTabs.vue +9 -6
- package/dist/src/components/TextField/OrigamTextField.vue +5 -5
- package/dist/src/components/TextMask/OrigamTextMask.vue +7 -7
- package/dist/src/components/TextareaField/OrigamTextareaField.vue +8 -6
- package/dist/src/components/ThemeProvider/OrigamThemeProvider.vue +2 -2
- package/dist/src/components/Timeline/OrigamTimeline.vue +7 -5
- package/dist/src/components/Timeline/OrigamTimelineItem.vue +10 -9
- package/dist/src/components/Title/OrigamTitle.vue +5 -5
- package/dist/src/components/Toolbar/OrigamToolbar.vue +5 -5
- package/dist/src/components/Tooltip/OrigamTooltip.vue +5 -5
- package/dist/src/components/Treeview/OrigamTreeview.vue +8 -8
- package/dist/src/components/Treeview/OrigamTreeviewNode.vue +5 -4
- package/dist/src/components/Video/OrigamVideo.vue +8 -55
- package/dist/src/composables/Calendar/calendar.composable.cjs +11 -10
- package/dist/src/composables/Calendar/calendar.composable.d.ts +2 -26
- package/dist/src/composables/Calendar/calendar.composable.js +11 -10
- package/dist/src/composables/CommandPalette/command.composable.d.ts +2 -24
- package/dist/src/composables/Commons/defaults.composable.cjs +1 -0
- package/dist/src/composables/Commons/defaults.composable.d.ts +11 -0
- package/dist/src/composables/Commons/defaults.composable.js +1 -1
- package/dist/src/composables/Commons/loader.composable.cjs +2 -1
- package/dist/src/composables/Commons/loader.composable.d.ts +3 -24
- package/dist/src/composables/Commons/loader.composable.js +2 -1
- package/dist/src/composables/Commons/margin.composable.cjs +26 -12
- package/dist/src/composables/Commons/margin.composable.d.ts +37 -0
- package/dist/src/composables/Commons/margin.composable.js +22 -25
- package/dist/src/composables/Commons/padding.composable.cjs +26 -12
- package/dist/src/composables/Commons/padding.composable.d.ts +26 -0
- package/dist/src/composables/Commons/padding.composable.js +22 -25
- package/dist/src/composables/Commons/props.composable.d.ts +45 -0
- package/dist/src/composables/Commons/rounded.composable.cjs +18 -23
- package/dist/src/composables/Commons/rounded.composable.d.ts +29 -11
- package/dist/src/composables/Commons/rounded.composable.js +27 -31
- package/dist/src/composables/Commons/stateEffect.composable.cjs +53 -1
- package/dist/src/composables/Commons/stateEffect.composable.d.ts +2 -6
- package/dist/src/composables/Commons/stateEffect.composable.js +65 -7
- package/dist/src/composables/Commons/theme-props-resolver.composable.cjs +82 -0
- package/dist/src/composables/Commons/theme-props-resolver.composable.d.ts +38 -0
- package/dist/src/composables/Commons/theme-props-resolver.composable.js +75 -0
- package/dist/src/composables/CssSupport/cssSupport.composable.d.ts +5 -43
- package/dist/src/composables/Mask/mask.composable.d.ts +3 -23
- package/dist/src/composables/Masonry/masonry.composable.d.ts +4 -58
- package/dist/src/composables/Parallax/parallax.composable.d.ts +2 -20
- package/dist/src/composables/PasswordField/passwordStrength.composable.cjs +3 -2
- package/dist/src/composables/PasswordField/passwordStrength.composable.js +6 -5
- package/dist/src/composables/Snackbar/snackbar-group.composable.cjs +8 -3
- package/dist/src/composables/Snackbar/snackbar-group.composable.d.ts +3 -22
- package/dist/src/composables/Snackbar/snackbar-group.composable.js +8 -3
- package/dist/src/composables/Theme/theme.composable.d.ts +1 -1
- package/dist/src/composables/Transition/transition.composable.cjs +2 -2
- package/dist/src/composables/Transition/transition.composable.d.ts +3 -3
- package/dist/src/composables/Transition/transition.composable.js +2 -2
- package/dist/src/composables/index.cjs +12 -0
- package/dist/src/composables/index.d.ts +1 -0
- package/dist/src/composables/index.js +1 -0
- package/dist/src/consts/Blockquote/blockquote.const.cjs +3 -2
- package/dist/src/consts/Blockquote/blockquote.const.js +3 -14
- package/dist/src/consts/Bracket/bracket.const.cjs +3 -2
- package/dist/src/consts/Bracket/bracket.const.js +3 -11
- package/dist/src/consts/ColorPicker/color-picker.const.cjs +7 -7
- package/dist/src/consts/ColorPicker/color-picker.const.js +1 -1
- package/dist/src/consts/Commons/border.const.cjs +2 -2
- package/dist/src/consts/Commons/border.const.js +3 -3
- package/dist/src/consts/Commons/spacing.const.cjs +78 -0
- package/dist/src/consts/Commons/spacing.const.d.ts +102 -0
- package/dist/src/consts/Commons/spacing.const.js +56 -0
- package/dist/src/consts/EmptyState/empty-state.const.cjs +6 -6
- package/dist/src/consts/EmptyState/empty-state.const.js +7 -13
- package/dist/src/consts/Media/media.const.cjs +3 -2
- package/dist/src/consts/Media/media.const.d.ts +17 -0
- package/dist/src/consts/Media/media.const.js +1 -0
- package/dist/src/consts/QrCode/qr-code.const.cjs +2 -1
- package/dist/src/consts/QrCode/qr-code.const.js +2 -1
- package/dist/src/consts/index.cjs +11 -0
- package/dist/src/consts/index.d.ts +1 -0
- package/dist/src/consts/index.js +1 -0
- package/dist/src/enums/Bracket/bracket-round.enum.cjs +12 -0
- package/dist/src/enums/Bracket/bracket-round.enum.d.ts +10 -0
- package/dist/src/enums/Bracket/bracket-round.enum.js +6 -0
- package/dist/src/enums/Calendar/calendar.enum.cjs +24 -0
- package/dist/src/enums/Calendar/calendar.enum.d.ts +28 -0
- package/dist/src/enums/Calendar/calendar.enum.js +18 -0
- package/dist/src/enums/Chart/chart-sunburst.enum.cjs +12 -0
- package/dist/src/enums/Chart/chart-sunburst.enum.d.ts +12 -0
- package/dist/src/enums/Chart/chart-sunburst.enum.js +6 -0
- package/dist/src/enums/Chart/chart.enum.cjs +8 -2
- package/dist/src/enums/Chart/chart.enum.d.ts +21 -0
- package/dist/src/enums/Chart/chart.enum.js +6 -0
- package/dist/src/enums/Code/code.enum.cjs +9 -8
- package/dist/src/enums/Code/code.enum.d.ts +7 -5
- package/dist/src/enums/Code/code.enum.js +1 -6
- package/dist/src/enums/Commons/align.enum.cjs +8 -2
- package/dist/src/enums/Commons/align.enum.d.ts +14 -0
- package/dist/src/enums/Commons/align.enum.js +6 -0
- package/dist/src/enums/Commons/border.enum.cjs +7 -2
- package/dist/src/enums/Commons/border.enum.d.ts +9 -0
- package/dist/src/enums/Commons/border.enum.js +5 -0
- package/dist/src/enums/Commons/color.enum.cjs +13 -0
- package/dist/src/enums/Commons/color.enum.d.ts +17 -0
- package/dist/src/enums/Commons/color.enum.js +7 -0
- package/dist/src/enums/Commons/font-family.enum.cjs +12 -0
- package/dist/src/enums/Commons/font-family.enum.d.ts +10 -0
- package/dist/src/enums/Commons/font-family.enum.js +6 -0
- package/dist/src/enums/Commons/font-size.enum.cjs +18 -0
- package/dist/src/enums/Commons/font-size.enum.d.ts +21 -0
- package/dist/src/enums/Commons/font-size.enum.js +12 -0
- package/dist/src/enums/Commons/font-weight.enum.cjs +15 -0
- package/dist/src/enums/Commons/font-weight.enum.d.ts +12 -0
- package/dist/src/enums/Commons/font-weight.enum.js +9 -0
- package/dist/src/enums/Commons/letter-spacing.enum.cjs +14 -0
- package/dist/src/enums/Commons/letter-spacing.enum.d.ts +12 -0
- package/dist/src/enums/Commons/letter-spacing.enum.js +8 -0
- package/dist/src/enums/Commons/line-height.enum.cjs +15 -0
- package/dist/src/enums/Commons/line-height.enum.d.ts +12 -0
- package/dist/src/enums/Commons/line-height.enum.js +9 -0
- package/dist/src/enums/Commons/loader.enum.cjs +12 -0
- package/dist/src/enums/Commons/loader.enum.d.ts +14 -0
- package/dist/src/enums/Commons/loader.enum.js +6 -0
- package/dist/src/enums/Commons/theme.enum.cjs +12 -0
- package/dist/src/enums/Commons/theme.enum.d.ts +19 -0
- package/dist/src/enums/Commons/theme.enum.js +6 -0
- package/dist/src/enums/DataList/data-list.enum.cjs +11 -0
- package/dist/src/enums/DataList/data-list.enum.d.ts +15 -0
- package/dist/src/enums/DataList/data-list.enum.js +5 -0
- package/dist/src/enums/FileField/file-field.enum.cjs +12 -0
- package/dist/src/enums/FileField/file-field.enum.d.ts +9 -0
- package/dist/src/enums/FileField/file-field.enum.js +6 -0
- package/dist/src/enums/Grid/grid.enum.cjs +13 -0
- package/dist/src/enums/Grid/grid.enum.d.ts +15 -0
- package/dist/src/enums/Grid/grid.enum.js +7 -0
- package/dist/src/enums/Kbd/kbd.enum.cjs +12 -0
- package/dist/src/enums/Kbd/kbd.enum.d.ts +10 -0
- package/dist/src/enums/Kbd/kbd.enum.js +6 -0
- package/dist/src/enums/Masonry/masonry.enum.cjs +11 -0
- package/dist/src/enums/Masonry/masonry.enum.d.ts +10 -0
- package/dist/src/enums/Masonry/masonry.enum.js +5 -0
- package/dist/src/enums/NumberFormat/number-format.enum.cjs +55 -0
- package/dist/src/enums/NumberFormat/number-format.enum.d.ts +78 -0
- package/dist/src/enums/NumberFormat/number-format.enum.js +49 -0
- package/dist/src/enums/PasswordField/password-field.enum.cjs +13 -0
- package/dist/src/enums/PasswordField/password-field.enum.d.ts +12 -0
- package/dist/src/enums/PasswordField/password-field.enum.js +7 -0
- package/dist/src/enums/QrCode/qr-code.enum.cjs +13 -0
- package/dist/src/enums/QrCode/qr-code.enum.d.ts +11 -0
- package/dist/src/enums/QrCode/qr-code.enum.js +7 -0
- package/dist/src/enums/Sheet/sheet.enum.cjs +13 -0
- package/dist/src/enums/Sheet/sheet.enum.d.ts +14 -0
- package/dist/src/enums/Sheet/sheet.enum.js +7 -0
- package/dist/src/enums/Skeleton/skeleton.enum.cjs +14 -0
- package/dist/src/enums/Skeleton/skeleton.enum.d.ts +11 -0
- package/dist/src/enums/Skeleton/skeleton.enum.js +8 -0
- package/dist/src/enums/Snackbar/snackbar-group.enum.cjs +22 -0
- package/dist/src/enums/Snackbar/snackbar-group.enum.d.ts +22 -0
- package/dist/src/enums/Snackbar/snackbar-group.enum.js +16 -0
- package/dist/src/enums/Stepper/stepper.enum.cjs +13 -0
- package/dist/src/enums/Stepper/stepper.enum.d.ts +11 -0
- package/dist/src/enums/Stepper/stepper.enum.js +7 -0
- package/dist/src/enums/TextField/text-field.enum.cjs +8 -1
- package/dist/src/enums/TextField/text-field.enum.d.ts +12 -0
- package/dist/src/enums/TextField/text-field.enum.js +7 -0
- package/dist/src/enums/TextMask/text-mask.enum.cjs +13 -0
- package/dist/src/enums/TextMask/text-mask.enum.d.ts +11 -0
- package/dist/src/enums/TextMask/text-mask.enum.js +7 -0
- package/dist/src/enums/Timeline/timeline.enum.cjs +12 -0
- package/dist/src/enums/Timeline/timeline.enum.d.ts +10 -0
- package/dist/src/enums/Timeline/timeline.enum.js +6 -0
- package/dist/src/enums/Treeview/treeview.enum.cjs +17 -0
- package/dist/src/enums/Treeview/treeview.enum.d.ts +18 -0
- package/dist/src/enums/Treeview/treeview.enum.js +11 -0
- package/dist/src/enums/Video/video.enum.cjs +13 -0
- package/dist/src/enums/Video/video.enum.d.ts +12 -0
- package/dist/src/enums/Video/video.enum.js +7 -0
- package/dist/src/enums/index.cjs +297 -0
- package/dist/src/enums/index.d.ts +27 -0
- package/dist/src/enums/index.js +27 -0
- package/dist/src/interfaces/Bracket/bracket-competitor-component.interface.d.ts +2 -2
- package/dist/src/interfaces/Bracket/bracket-match-component.interface.d.ts +2 -2
- package/dist/src/interfaces/Bracket/bracket-surface.interface.cjs +1 -0
- package/dist/src/interfaces/Bracket/bracket-surface.interface.d.ts +56 -0
- package/dist/src/interfaces/Bracket/bracket-surface.interface.js +0 -0
- package/dist/src/interfaces/Calendar/calendar.interface.d.ts +25 -0
- package/dist/src/interfaces/Calendar/rrule.interface.cjs +1 -0
- package/dist/src/interfaces/Calendar/rrule.interface.d.ts +26 -0
- package/dist/src/interfaces/Calendar/rrule.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-sunburst.interface.d.ts +2 -8
- package/dist/src/interfaces/CommandPalette/command-palette-rendered-group.interface.d.ts +1 -2
- package/dist/src/interfaces/CommandPalette/command.interface.d.ts +47 -0
- package/dist/src/interfaces/Commons/loader.interface.d.ts +23 -1
- package/dist/src/interfaces/Commons/margin.interface.d.ts +30 -0
- package/dist/src/interfaces/Commons/padding.interface.d.ts +29 -0
- package/dist/src/interfaces/Commons/rounded.interface.d.ts +24 -0
- package/dist/src/interfaces/CssSupport/css-support.interface.cjs +1 -0
- package/dist/src/interfaces/CssSupport/css-support.interface.d.ts +43 -0
- package/dist/src/interfaces/CssSupport/css-support.interface.js +0 -0
- package/dist/src/interfaces/DataList/data-list.interface.d.ts +2 -15
- package/dist/src/interfaces/Dialog/dialog-confirmation.interface.d.ts +2 -2
- package/dist/src/interfaces/Form/form.interface.d.ts +9 -2
- package/dist/src/interfaces/Icon/icon.interface.d.ts +11 -1
- package/dist/src/interfaces/Mask/mask-options.interface.d.ts +23 -2
- package/dist/src/interfaces/Masonry/masonry.interface.d.ts +55 -0
- package/dist/src/interfaces/Media/media-scrubber.interface.d.ts +25 -3
- package/dist/src/interfaces/Menu/menu.interface.d.ts +10 -2
- package/dist/src/interfaces/Parallax/parallax.interface.d.ts +18 -0
- package/dist/src/interfaces/QrCode/qr-code.interface.d.ts +15 -1
- package/dist/src/interfaces/Radio/radio-group.interface.d.ts +4 -1
- package/dist/src/interfaces/Sheet/sheet-emits.interface.d.ts +7 -1
- package/dist/src/interfaces/Snackbar/snackbar-group.interface.d.ts +62 -2
- package/dist/src/interfaces/Snackbar/snackbar.interface.d.ts +4 -1
- package/dist/src/interfaces/Theme/origam-theme.interface.d.ts +16 -1
- package/dist/src/interfaces/Timeline/timeline.interface.d.ts +4 -4
- package/dist/src/interfaces/Video/video.interface.d.ts +2 -2
- package/dist/src/interfaces/Watermark/watermark.interface.d.ts +19 -0
- 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/origam.cjs +2 -0
- package/dist/src/origam.js +14 -1
- package/dist/src/types/Blockquote/blockquote.type.d.ts +4 -3
- package/dist/src/types/Bracket/bracket-round.type.d.ts +2 -1
- package/dist/src/types/Bracket/bracket.type.d.ts +50 -0
- package/dist/src/types/Calendar/calendar.type.d.ts +4 -3
- package/dist/src/types/Chart/chart-cartesian.type.d.ts +2 -1
- package/dist/src/types/Chart/chart-legend.type.d.ts +5 -1
- package/dist/src/types/Chart/chart-pictorial.type.d.ts +2 -1
- package/dist/src/types/Chart/chart-polar.type.d.ts +2 -1
- package/dist/src/types/Chart/chart-streamgraph.type.d.ts +2 -1
- package/dist/src/types/Chart/chart-sunburst.type.d.ts +8 -0
- package/dist/src/types/Chart/chart-treemap.type.d.ts +2 -1
- package/dist/src/types/Chart/chart.type.d.ts +14 -2
- package/dist/src/types/Code/code.type.d.ts +19 -0
- package/dist/src/types/Commons/align.type.d.ts +6 -1
- package/dist/src/types/Commons/border.type.d.ts +2 -2
- package/dist/src/types/Commons/color.type.d.ts +2 -1
- package/dist/src/types/Commons/css-support.type.cjs +1 -0
- package/dist/src/types/Commons/css-support.type.d.ts +26 -0
- package/dist/src/types/Commons/css-support.type.js +0 -0
- package/dist/src/types/Commons/font-family.type.d.ts +2 -1
- package/dist/src/types/Commons/font-size.type.d.ts +2 -1
- package/dist/src/types/Commons/font-weight.type.d.ts +2 -1
- package/dist/src/types/Commons/letter-spacing.type.d.ts +2 -1
- package/dist/src/types/Commons/line-height.type.d.ts +2 -1
- package/dist/src/types/Commons/loader.type.d.ts +5 -4
- package/dist/src/types/Commons/state-effect.type.cjs +1 -0
- package/dist/src/types/Commons/state-effect.type.d.ts +30 -0
- package/dist/src/types/Commons/state-effect.type.js +0 -0
- package/dist/src/types/DataList/data-list.type.d.ts +16 -0
- package/dist/src/types/EmptyState/empty-state.type.d.ts +8 -2
- package/dist/src/types/FileField/file-field.type.d.ts +2 -1
- package/dist/src/types/Grid/grid-item.type.d.ts +4 -2
- package/dist/src/types/Grid/grid.type.d.ts +13 -4
- package/dist/src/types/InlineEdit/inline-edit.type.d.ts +5 -1
- package/dist/src/types/Kbd/kbd.type.d.ts +2 -1
- package/dist/src/types/Masonry/masonry.type.d.ts +2 -1
- package/dist/src/types/NumberFormat/number-format.type.d.ts +8 -7
- package/dist/src/types/PasswordField/password-field.type.d.ts +2 -1
- package/dist/src/types/QrCode/qr-code.type.d.ts +2 -1
- package/dist/src/types/Sheet/sheet.type.d.ts +2 -1
- package/dist/src/types/Skeleton/skeleton.type.d.ts +2 -1
- package/dist/src/types/Snackbar/snackbar-group.type.d.ts +3 -2
- package/dist/src/types/Stepper/stepper.type.d.ts +2 -1
- package/dist/src/types/TextField/text-field.type.d.ts +2 -2
- package/dist/src/types/TextMask/text-mask.type.d.ts +2 -1
- package/dist/src/types/Theme/theme.type.d.ts +3 -2
- package/dist/src/types/Timeline/timeline.type.d.ts +2 -1
- package/dist/src/types/Treeview/treeview.type.d.ts +3 -2
- package/dist/src/types/Video/video.type.d.ts +2 -1
- package/dist/src/types/index.cjs +22 -0
- package/dist/src/types/index.d.ts +2 -0
- package/dist/src/types/index.js +2 -0
- package/dist/src/utils/Bracket/bracket-surface.util.cjs +26 -0
- package/dist/src/utils/Bracket/bracket-surface.util.d.ts +3 -24
- package/dist/src/utils/Bracket/bracket-surface.util.js +16 -0
- package/dist/src/utils/Calendar/rrule.util.d.ts +2 -10
- package/dist/src/utils/Chart/path.util.d.ts +2 -2
- package/dist/src/utils/CommandPalette/fuzzy-match.util.d.ts +2 -10
- package/dist/src/utils/Commons/color.util.cjs +2 -1
- package/dist/src/utils/Commons/color.util.js +2 -1
- package/dist/src/utils/Commons/spacing.util.cjs +34 -0
- package/dist/src/utils/Commons/spacing.util.d.ts +55 -0
- package/dist/src/utils/Commons/spacing.util.js +27 -0
- package/dist/src/utils/Mask/apply-mask.util.cjs +8 -7
- package/dist/src/utils/Mask/apply-mask.util.js +8 -7
- package/dist/src/utils/index.cjs +11 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.js +1 -0
- package/package.json +5 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CHART_STACKING } from '../../enums';
|
|
2
|
-
import { CHART_TYPE } from '../../enums';
|
|
2
|
+
import { CHART_SMOOTHING, CHART_TYPE } from '../../enums';
|
|
3
3
|
import { OrigamChart } from '../../components';
|
|
4
4
|
/**
|
|
5
5
|
* Loose item shape accepted by chart data arrays — either a raw
|
|
@@ -26,7 +26,7 @@ export type TChartItem = string | number | {
|
|
|
26
26
|
* staircase is a different topology (right-angle connections),
|
|
27
27
|
* not a curve choice. See `TChartCartesianKind`.
|
|
28
28
|
*/
|
|
29
|
-
export type TChartSmoothing =
|
|
29
|
+
export type TChartSmoothing = `${CHART_SMOOTHING}`;
|
|
30
30
|
/**
|
|
31
31
|
* Stacking strategy for bar / column / area charts.
|
|
32
32
|
*
|
|
@@ -42,3 +42,15 @@ export type TChartStacking = `${CHART_STACKING}`;
|
|
|
42
42
|
*/
|
|
43
43
|
export type TChartType = `${CHART_TYPE}`;
|
|
44
44
|
export type TOrigamChart = InstanceType<typeof OrigamChart>;
|
|
45
|
+
/**
|
|
46
|
+
* A pre-scaled `[x, y]` coordinate pair (pixels in the SVG viewBox),
|
|
47
|
+
* as consumed by the path builders in `src/utils/Chart/path.util.ts`.
|
|
48
|
+
*
|
|
49
|
+
* Deliberately a TUPLE, not the object-shaped `TPoint` (`{ x, y }`)
|
|
50
|
+
* from `types/Commons/point.type.ts`: the path helpers build strings
|
|
51
|
+
* from long lists of coordinates on every render, and the tuple form
|
|
52
|
+
* both destructures positionally (`const [x, y] = p`) and keeps the
|
|
53
|
+
* call sites readable (`linePath([[0, 0], [10, 10]])`). The two are not
|
|
54
|
+
* interchangeable and neither replaces the other.
|
|
55
|
+
*/
|
|
56
|
+
export type TPathPoint = [number, number];
|
|
@@ -3,3 +3,22 @@ import { OrigamCode } from '../../components';
|
|
|
3
3
|
export type TOrigamCode = InstanceType<typeof OrigamCode>;
|
|
4
4
|
export type TCodeLang = `${CODE_LANG}`;
|
|
5
5
|
export type TCodeTheme = `${CODE_THEME}`;
|
|
6
|
+
/**
|
|
7
|
+
* The slice of shiki's highlighter API that `useCode()` actually calls.
|
|
8
|
+
*
|
|
9
|
+
* `shiki` is an OPTIONAL peer dependency, so the DS must not `import
|
|
10
|
+
* type` from it — that would make shiki's own types a hard build
|
|
11
|
+
* requirement for every consumer, including those who never install it.
|
|
12
|
+
* Declaring the one method we use keeps the dynamic-import fallback
|
|
13
|
+
* path type-safe with zero dependency on the package being present.
|
|
14
|
+
*/
|
|
15
|
+
export type TShikiHighlighter = {
|
|
16
|
+
codeToHtml: (code: string, opts: {
|
|
17
|
+
lang: string;
|
|
18
|
+
themes?: {
|
|
19
|
+
light: string;
|
|
20
|
+
dark: string;
|
|
21
|
+
};
|
|
22
|
+
defaultColor?: false | string;
|
|
23
|
+
}) => string;
|
|
24
|
+
};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import { ALIGN } from '../../enums';
|
|
1
|
+
import { ALIGN, TEXT_ALIGN } from '../../enums';
|
|
2
2
|
export type TAlign = `${ALIGN}`;
|
|
3
|
+
/**
|
|
4
|
+
* Physical text alignment (`text-align`). See {@link TAlign} for the
|
|
5
|
+
* logical box-alignment vocabulary — the two are distinct on purpose.
|
|
6
|
+
*/
|
|
7
|
+
export type TTextAlign = `${TEXT_ALIGN}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BORDER_STYLE } from '../../enums';
|
|
1
|
+
import { BORDER_LOGICAL_AXIS, BORDER_STYLE } from '../../enums';
|
|
2
2
|
export type TBorderStyle = `${BORDER_STYLE}`;
|
|
3
3
|
/**
|
|
4
4
|
* CSS logical border axes (`border-block` / `border-inline`), as opposed
|
|
@@ -9,4 +9,4 @@ export type TBorderStyle = `${BORDER_STYLE}`;
|
|
|
9
9
|
* the correct physical edges per the current writing mode (no manual
|
|
10
10
|
* LTR/RTL translation needed on our side).
|
|
11
11
|
*/
|
|
12
|
-
export type TBorderLogicalAxis =
|
|
12
|
+
export type TBorderLogicalAxis = `${BORDER_LOGICAL_AXIS}`;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BG_FG_ROLE } from '../../enums';
|
|
1
2
|
import type { IGradient } from '../../interfaces/Commons/gradient.interface';
|
|
2
3
|
/**
|
|
3
4
|
* Accepted shapes for the `color` / `bgColor` / `textColor` props.
|
|
@@ -51,4 +52,4 @@ export type TColorType = string | number | THSVA | TRGBA | THSLA;
|
|
|
51
52
|
* • `active` → cascading `var(bgActive, color-mix(bg, black 30%))`
|
|
52
53
|
* • `disabled` → resting `bgDisabled` token (per-intent)
|
|
53
54
|
*/
|
|
54
|
-
export type TBgFgRole =
|
|
55
|
+
export type TBgFgRole = `${BG_FG_ROLE}`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FEATURE_QUERIES } from '../../consts/CssSupport/css-support.const';
|
|
2
|
+
/**
|
|
3
|
+
* Name of a feature in the monitored CSS support matrix.
|
|
4
|
+
*
|
|
5
|
+
* Derived from `FEATURE_QUERIES` rather than restated, so adding an
|
|
6
|
+
* entry to that `as const satisfies` literal is the single edit needed
|
|
7
|
+
* to widen the matrix — the type follows automatically.
|
|
8
|
+
*
|
|
9
|
+
* FILED UNDER `Commons/`, NOT `CssSupport/`
|
|
10
|
+
* ----------------------------------------
|
|
11
|
+
* `useCssSupport()` is the DS's single feature-detection layer, consumed
|
|
12
|
+
* across the catalogue to pick a CSS-first path over a JS fallback — it
|
|
13
|
+
* is a cross-cutting subsystem, not a component's prop surface, which is
|
|
14
|
+
* exactly what `types/Commons/` is for (and why the `file-naming` guard
|
|
15
|
+
* exempts that directory: a file there is deliberately not tied to one
|
|
16
|
+
* component, and no `OrigamCssSupport` exists to name it after).
|
|
17
|
+
*
|
|
18
|
+
* The matching `FEATURE_QUERIES` const sits in `consts/CssSupport/`
|
|
19
|
+
* under its own documented exemption in the same guard. Sibling
|
|
20
|
+
* directories would have been more symmetrical, but that needs the
|
|
21
|
+
* guard's `exemptDirs` widened to `types/CssSupport` — a guard change,
|
|
22
|
+
* which is a lead's call, not a side effect of moving a type.
|
|
23
|
+
*/
|
|
24
|
+
export type TCssFeatureName = keyof typeof FEATURE_QUERIES;
|
|
25
|
+
/** Snapshot of the whole matrix: every feature name → supported or not. */
|
|
26
|
+
export type TCssSupportMap = Readonly<Record<TCssFeatureName, boolean>>;
|
|
File without changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { FONT_FAMILY } from '../../enums';
|
|
1
2
|
/**
|
|
2
3
|
* Font-family token keys (map to `--origam-font__family---{key}`):
|
|
3
4
|
* sans (Inter / Helvetica Neue / Arial) · mono (JetBrains Mono / Fira Code) · serif (Georgia / Times New Roman)
|
|
4
5
|
*/
|
|
5
|
-
export type TFontFamily =
|
|
6
|
+
export type TFontFamily = `${FONT_FAMILY}`;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { FONT_SIZE } from '../../enums';
|
|
1
2
|
/**
|
|
2
3
|
* Font-size token keys (map to `--origam-font__size---{key}`):
|
|
3
4
|
* xs 0.625rem · sm 0.75rem · md 0.875rem · lg 1rem · xl 1.125rem
|
|
4
5
|
* 2xl 1.25rem · 3xl 1.5rem · 4xl 1.875rem · 5xl 2.25rem
|
|
5
6
|
*/
|
|
6
|
-
export type TFontSize =
|
|
7
|
+
export type TFontSize = `${FONT_SIZE}`;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { FONT_WEIGHT } from '../../enums';
|
|
1
2
|
/**
|
|
2
3
|
* Font-weight token keys (map to `--origam-font__weight---{key}`):
|
|
3
4
|
* regular 400 · medium 500 · semibold 600 · bold 700 · extrabold 800 · black 900
|
|
4
5
|
*/
|
|
5
|
-
export type TFontWeight =
|
|
6
|
+
export type TFontWeight = `${FONT_WEIGHT}`;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { LETTER_SPACING } from '../../enums';
|
|
1
2
|
/**
|
|
2
3
|
* Letter-spacing token keys (map to `--origam-font__letterSpacing---{key}`):
|
|
3
4
|
* tight -0.025em · normal 0em · wide 0.0094em · wider 0.0125em · widest 0.0893em
|
|
4
5
|
*/
|
|
5
|
-
export type TLetterSpacing =
|
|
6
|
+
export type TLetterSpacing = `${LETTER_SPACING}`;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { LINE_HEIGHT } from '../../enums';
|
|
1
2
|
/**
|
|
2
3
|
* Line-height token keys (map to `--origam-font__lineHeight---{key}`):
|
|
3
4
|
* none 1 · tight 1.25 · snug 1.375 · normal 1.5 · relaxed 1.625 · loose 2
|
|
4
5
|
*/
|
|
5
|
-
export type TLineHeight =
|
|
6
|
+
export type TLineHeight = `${LINE_HEIGHT}`;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { LOADER_KIND } from '../../enums';
|
|
1
2
|
import type { IProgressCircularProps, IProgressLinearProps, ISkeletonProps } from '../../interfaces';
|
|
2
3
|
/**
|
|
3
4
|
* Loader kind — decides which renderer is mounted by the consumer
|
|
4
5
|
* component when a loading state is active.
|
|
5
6
|
*/
|
|
6
|
-
export type TLoaderKind =
|
|
7
|
+
export type TLoaderKind = `${LOADER_KIND}`;
|
|
7
8
|
/**
|
|
8
9
|
* Per-kind override config. Each kind extends the corresponding component's
|
|
9
10
|
* Partial props so the consumer gets full IDE autocomplete for the right
|
|
@@ -15,11 +16,11 @@ export type TLoaderKind = 'line' | 'circular' | 'skeleton';
|
|
|
15
16
|
* defensively.
|
|
16
17
|
*/
|
|
17
18
|
export type TLoaderConfig = ({
|
|
18
|
-
type:
|
|
19
|
+
type: `${LOADER_KIND.LINE}`;
|
|
19
20
|
} & Partial<IProgressLinearProps>) | ({
|
|
20
|
-
type:
|
|
21
|
+
type: `${LOADER_KIND.CIRCULAR}`;
|
|
21
22
|
} & Partial<IProgressCircularProps>) | ({
|
|
22
|
-
type:
|
|
23
|
+
type: `${LOADER_KIND.SKELETON}`;
|
|
23
24
|
} & Partial<ISkeletonProps>);
|
|
24
25
|
/**
|
|
25
26
|
* The full `loading` prop value accepted by every consumer component.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { IBgColorProps, IColorProps } from '../../interfaces/Commons/color.interface';
|
|
2
|
+
import type { IBorderProps } from '../../interfaces/Commons/border.interface';
|
|
3
|
+
import type { IElevationProps } from '../../interfaces/Commons/elevation.interface';
|
|
4
|
+
import type { IMarginProps } from '../../interfaces/Commons/margin.interface';
|
|
5
|
+
import type { IPaddingProps } from '../../interfaces/Commons/padding.interface';
|
|
6
|
+
import type { IRoundedProps } from '../../interfaces/Commons/rounded.interface';
|
|
7
|
+
/**
|
|
8
|
+
* The prop bag `useStateEffect` reads from.
|
|
9
|
+
*
|
|
10
|
+
* It is deliberately an INTERSECTION of the existing Commons prop
|
|
11
|
+
* interfaces rather than a fresh list of properties: `useStateEffect`
|
|
12
|
+
* delegates each axis to the matching per-axis composable
|
|
13
|
+
* (`useBorder`, `useRounded`, `useElevation`, `usePadding`,
|
|
14
|
+
* `useMargin`, `useColor`), so its accepted input is by definition the
|
|
15
|
+
* union of what those composables accept. Restating the properties
|
|
16
|
+
* here would let the two drift the moment one of the Commons
|
|
17
|
+
* interfaces gains a prop.
|
|
18
|
+
*
|
|
19
|
+
* `gap` is the one axis with no Commons interface of its own — it is
|
|
20
|
+
* an ad-hoc flex/grid property that only a handful of layout
|
|
21
|
+
* components expose — so it is spelled inline.
|
|
22
|
+
*
|
|
23
|
+
* Sibling type: {@link IStateEffectConfig} in
|
|
24
|
+
* `src/interfaces/Commons/state-effect.interface.ts` describes the
|
|
25
|
+
* OVERRIDE object a consumer passes to `hover` / `active`. This type
|
|
26
|
+
* describes the RESTING props those overrides are layered on top of.
|
|
27
|
+
*/
|
|
28
|
+
export type TStateEffectProps = IColorProps & IBgColorProps & IBorderProps & IRoundedProps & IElevationProps & IPaddingProps & IMarginProps & {
|
|
29
|
+
gap?: boolean | number | string;
|
|
30
|
+
};
|
|
File without changes
|
|
@@ -1,2 +1,18 @@
|
|
|
1
1
|
import { OrigamDataList } from "../../components";
|
|
2
|
+
import { DATA_LIST_MODE } from "../../enums";
|
|
2
3
|
export type TOrigamDataList = InstanceType<typeof OrigamDataList>;
|
|
4
|
+
/**
|
|
5
|
+
* Layout mode of `<OrigamDataList>`.
|
|
6
|
+
*
|
|
7
|
+
* - `"avatar"` (default, back-compat) — the historical `<dl>` layout
|
|
8
|
+
* where each item stacks a `<dt>` (title) above one or more `<dd>`
|
|
9
|
+
* rows (text). Items conform to {@link IDataItem}. The naming reflects
|
|
10
|
+
* the most common usage: a `prependAvatar` per title, with a stack of
|
|
11
|
+
* labels below — the Vuetify `v-list`-flavoured shape.
|
|
12
|
+
*
|
|
13
|
+
* - `"kv"` — the PDF-aligned key/value table where each row renders a
|
|
14
|
+
* key on the left (muted) and a value on the right (primary text or
|
|
15
|
+
* an inline component such as `<origam-chip>` / `<origam-avatar>`).
|
|
16
|
+
* Items conform to {@link IDataListKVItem}.
|
|
17
|
+
*/
|
|
18
|
+
export type TDataListMode = `${DATA_LIST_MODE}`;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { OrigamEmptyState } from '../../components';
|
|
2
|
+
import { EMPTY_STATE_PRESET } from '../../enums';
|
|
3
|
+
import type { TTextAlign } from '../Commons/align.type';
|
|
2
4
|
import type { TRoundedToken } from '../Commons/rounded.type';
|
|
3
5
|
export type TOrigamEmptyState = InstanceType<typeof OrigamEmptyState>;
|
|
4
6
|
/**
|
|
@@ -14,7 +16,7 @@ export type TOrigamEmptyState = InstanceType<typeof OrigamEmptyState>;
|
|
|
14
16
|
* - `offline` — connectivity issue; offline-mode CTA is typical.
|
|
15
17
|
* - `locked` — feature is gated (auth, plan, permissions).
|
|
16
18
|
*/
|
|
17
|
-
export type TEmptyStatePreset =
|
|
19
|
+
export type TEmptyStatePreset = `${EMPTY_STATE_PRESET}`;
|
|
18
20
|
/**
|
|
19
21
|
* Horizontal alignment of the icon / title / description / actions
|
|
20
22
|
* stack inside `<OrigamEmptyState>`.
|
|
@@ -23,8 +25,12 @@ export type TEmptyStatePreset = 'no-data' | 'no-results' | 'error' | 'offline' |
|
|
|
23
25
|
* Best for full-page or full-section placeholders.
|
|
24
26
|
* - `left` — left-aligned stack. Best for narrow side panels or list
|
|
25
27
|
* empty zones where the surrounding content is left-aligned.
|
|
28
|
+
*
|
|
29
|
+
* Narrows the Commons `TTextAlign` vocabulary rather than redeclaring
|
|
30
|
+
* the strings — `right` is excluded on purpose (no design token drives
|
|
31
|
+
* a right-aligned empty state).
|
|
26
32
|
*/
|
|
27
|
-
export type TEmptyStateAlign =
|
|
33
|
+
export type TEmptyStateAlign = Exclude<TTextAlign, 'right'>;
|
|
28
34
|
/**
|
|
29
35
|
* Vertical density of `<OrigamEmptyState>`. Drives icon size + title /
|
|
30
36
|
* description font sizes + gap + padding via per-size token overrides.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OrigamFileField } from "../../components";
|
|
2
|
+
import { FILE_FIELD_DISPLAY } from "../../enums";
|
|
2
3
|
export type TFileSize = boolean | 1000 | 1024;
|
|
3
4
|
export type TFile = Array<File> | File | null;
|
|
4
5
|
/**
|
|
@@ -7,5 +8,5 @@ export type TFile = Array<File> | File | null;
|
|
|
7
8
|
* - `'chips'` — each file as a closable `<OrigamChip>` inline.
|
|
8
9
|
* - `'counter'` — single "N files" line + an `<OrigamCounter>`.
|
|
9
10
|
*/
|
|
10
|
-
export type TFileFieldDisplay =
|
|
11
|
+
export type TFileFieldDisplay = `${FILE_FIELD_DISPLAY}`;
|
|
11
12
|
export type TOrigamFileField = InstanceType<typeof OrigamFileField>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { OrigamGridItem } from '../../components';
|
|
2
|
+
import type { TGridPlaceItems } from './grid.type';
|
|
2
3
|
export type TOrigamGridItem = InstanceType<typeof OrigamGridItem>;
|
|
3
4
|
/**
|
|
4
5
|
* Place-self (`align-self` + `justify-self`) on a grid item.
|
|
5
|
-
* Same matrix as place-items
|
|
6
|
+
* Same matrix as place-items — aliased rather than restated so the two
|
|
7
|
+
* cannot drift.
|
|
6
8
|
*/
|
|
7
|
-
export type TGridPlaceSelf =
|
|
9
|
+
export type TGridPlaceSelf = TGridPlaceItems;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { OrigamGrid } from '../../components';
|
|
2
|
+
import { GRID_AUTO_FLOW } from '../../enums';
|
|
3
|
+
import type { TAlign } from '../Commons/align.type';
|
|
4
|
+
import type { TJustify } from '../Commons/justify.type';
|
|
2
5
|
import type { TRoundedToken } from '../Commons/rounded.type';
|
|
3
6
|
export type TOrigamGrid = InstanceType<typeof OrigamGrid>;
|
|
4
7
|
/**
|
|
@@ -10,19 +13,25 @@ export type TOrigamGrid = InstanceType<typeof OrigamGrid>;
|
|
|
10
13
|
* exotic value, they can pass a raw string via `:style` on the
|
|
11
14
|
* outer container — we don't double-validate `grid-auto-flow`.
|
|
12
15
|
*/
|
|
13
|
-
export type TGridAutoFlow =
|
|
16
|
+
export type TGridAutoFlow = `${GRID_AUTO_FLOW}`;
|
|
14
17
|
/**
|
|
15
18
|
* Place-items (`align-items` + `justify-items`) accepts the 4-value
|
|
16
19
|
* subset of CSS Box Alignment. `baseline` is excluded on purpose —
|
|
17
20
|
* it has no useful meaning when items can span rows / columns.
|
|
21
|
+
*
|
|
22
|
+
* Narrows the Commons `TAlign` vocabulary rather than redeclaring its
|
|
23
|
+
* literals, so a rung added to `ALIGN` cannot silently bypass this
|
|
24
|
+
* component's surface.
|
|
18
25
|
*/
|
|
19
|
-
export type TGridPlaceItems =
|
|
26
|
+
export type TGridPlaceItems = Exclude<TAlign, 'baseline'>;
|
|
20
27
|
/**
|
|
21
28
|
* Place-content (`align-content` + `justify-content`) — aligns the
|
|
22
29
|
* full grid inside its container when the grid is smaller than the
|
|
23
|
-
* available space. Mirrors the CSS Box Alignment matrix
|
|
30
|
+
* available space. Mirrors the CSS Box Alignment matrix: the full
|
|
31
|
+
* `JUSTIFY` distribution vocabulary plus `stretch`, which only the
|
|
32
|
+
* `ALIGN` side carries.
|
|
24
33
|
*/
|
|
25
|
-
export type TGridPlaceContent =
|
|
34
|
+
export type TGridPlaceContent = TJustify | Extract<TAlign, 'stretch'>;
|
|
26
35
|
/**
|
|
27
36
|
* Gap size tokens (`'xs' | 'sm' | 'md' | 'lg' | 'xl'`). When the
|
|
28
37
|
* consumer passes one of these strings to the `gap` / `columnGap`
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { OrigamInlineEdit } from '../../components';
|
|
2
|
+
import type { TTextFieldType } from '../TextField/text-field.type';
|
|
2
3
|
export type TOrigamInlineEdit = InstanceType<typeof OrigamInlineEdit>;
|
|
3
4
|
/**
|
|
4
5
|
* Native HTML input types accepted by `<OrigamInlineEdit>` when not in
|
|
5
6
|
* multiline mode. Intentionally a closed set — `password`, `file`,
|
|
6
7
|
* `checkbox`, … don't fit the edit-in-place pattern and would require
|
|
7
8
|
* a different UX surface.
|
|
9
|
+
*
|
|
10
|
+
* Narrows the shared `TEXT_FIELD_TYPE` vocabulary rather than declaring
|
|
11
|
+
* a second, near-identical enum of HTML input types.
|
|
8
12
|
*/
|
|
9
|
-
export type TInlineEditInputType = 'text' | 'number' | 'email' | 'tel'
|
|
13
|
+
export type TInlineEditInputType = Extract<TTextFieldType, 'text' | 'number' | 'email' | 'tel'>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OrigamMasonry } from '../../components';
|
|
2
|
+
import { MASONRY_ALIGN } from '../../enums';
|
|
2
3
|
export type TOrigamMasonry = InstanceType<typeof OrigamMasonry>;
|
|
3
4
|
/**
|
|
4
5
|
* Vertical alignment of items inside a single masonry column.
|
|
@@ -15,4 +16,4 @@ export type TOrigamMasonry = InstanceType<typeof OrigamMasonry>;
|
|
|
15
16
|
* The CSS path therefore always aligns to top; switching to `'center'`
|
|
16
17
|
* implicitly forces the JS fallback so the value is observable.
|
|
17
18
|
*/
|
|
18
|
-
export type TMasonryAlign =
|
|
19
|
+
export type TMasonryAlign = `${MASONRY_ALIGN}`;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OrigamNumberFormat } from '../../components';
|
|
2
|
+
import { NUMBER_FORMAT_COMPACT_DISPLAY, NUMBER_FORMAT_CURRENCY_DISPLAY, NUMBER_FORMAT_FORMAT, NUMBER_FORMAT_NOTATION, NUMBER_FORMAT_SIGN_DISPLAY, NUMBER_FORMAT_UNIT_DISPLAY, NUMBER_FORMAT_USE_GROUPING } from '../../enums';
|
|
2
3
|
export type TOrigamNumberFormat = InstanceType<typeof OrigamNumberFormat>;
|
|
3
4
|
/**
|
|
4
5
|
* High-level format dialect understood by `<OrigamNumberFormat>` and
|
|
@@ -16,39 +17,39 @@ export type TOrigamNumberFormat = InstanceType<typeof OrigamNumberFormat>;
|
|
|
16
17
|
* - `scientific` — exponent notation (1.234E5).
|
|
17
18
|
* - `engineering` — engineering-style exponent (multiples of 3).
|
|
18
19
|
*/
|
|
19
|
-
export type TNumberFormatFormat =
|
|
20
|
+
export type TNumberFormatFormat = `${NUMBER_FORMAT_FORMAT}`;
|
|
20
21
|
/**
|
|
21
22
|
* Currency-symbol rendering — forwarded to `Intl.NumberFormat`'s
|
|
22
23
|
* `currencyDisplay` option.
|
|
23
24
|
*/
|
|
24
|
-
export type TNumberFormatCurrencyDisplay =
|
|
25
|
+
export type TNumberFormatCurrencyDisplay = `${NUMBER_FORMAT_CURRENCY_DISPLAY}`;
|
|
25
26
|
/**
|
|
26
27
|
* Unit-label rendering — forwarded to `Intl.NumberFormat`'s
|
|
27
28
|
* `unitDisplay` option.
|
|
28
29
|
*/
|
|
29
|
-
export type TNumberFormatUnitDisplay =
|
|
30
|
+
export type TNumberFormatUnitDisplay = `${NUMBER_FORMAT_UNIT_DISPLAY}`;
|
|
30
31
|
/**
|
|
31
32
|
* Compact-notation rendering — forwarded to `Intl.NumberFormat`'s
|
|
32
33
|
* `compactDisplay` option. Only applies when `notation === 'compact'`.
|
|
33
34
|
*/
|
|
34
|
-
export type TNumberFormatCompactDisplay =
|
|
35
|
+
export type TNumberFormatCompactDisplay = `${NUMBER_FORMAT_COMPACT_DISPLAY}`;
|
|
35
36
|
/**
|
|
36
37
|
* Raw `notation` mirror — exposed for advanced callers who set
|
|
37
38
|
* `format: 'decimal'` but still want scientific / engineering output.
|
|
38
39
|
*/
|
|
39
|
-
export type TNumberFormatNotation =
|
|
40
|
+
export type TNumberFormatNotation = `${NUMBER_FORMAT_NOTATION}`;
|
|
40
41
|
/**
|
|
41
42
|
* Sign-display strategy — forwarded to `Intl.NumberFormat`'s
|
|
42
43
|
* `signDisplay` option.
|
|
43
44
|
*/
|
|
44
|
-
export type TNumberFormatSignDisplay =
|
|
45
|
+
export type TNumberFormatSignDisplay = `${NUMBER_FORMAT_SIGN_DISPLAY}`;
|
|
45
46
|
/**
|
|
46
47
|
* Grouping (thousands separator) strategy — boolean kept for backwards
|
|
47
48
|
* compat with the original `Intl.NumberFormat` API; the string variants
|
|
48
49
|
* (`'always' | 'auto' | 'min2'`) match the modern proposal landed in
|
|
49
50
|
* Chrome 106+ / Safari 16.4+.
|
|
50
51
|
*/
|
|
51
|
-
export type TNumberFormatUseGrouping = boolean |
|
|
52
|
+
export type TNumberFormatUseGrouping = boolean | `${NUMBER_FORMAT_USE_GROUPING}`;
|
|
52
53
|
/**
|
|
53
54
|
* Sentinel for the locale prop — `'auto'` triggers the runtime
|
|
54
55
|
* resolution chain (`<html lang>` → `navigator.language` → `'en-US'`).
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OrigamPasswordField } from "../../components";
|
|
2
|
+
import { PASSWORD_STRENGTH_LEVEL } from "../../enums";
|
|
2
3
|
export type TOrigamPasswordField = InstanceType<typeof OrigamPasswordField>;
|
|
3
4
|
/**
|
|
4
5
|
* `TPasswordStrengthLevel` — discrete bucket emitted by the
|
|
@@ -9,7 +10,7 @@ export type TOrigamPasswordField = InstanceType<typeof OrigamPasswordField>;
|
|
|
9
10
|
* (`origam-password-field__strength-segment--{level}`) and as the lookup
|
|
10
11
|
* key into the `--origam-password-field__strength---bg-{level}` token.
|
|
11
12
|
*/
|
|
12
|
-
export type TPasswordStrengthLevel =
|
|
13
|
+
export type TPasswordStrengthLevel = `${PASSWORD_STRENGTH_LEVEL}`;
|
|
13
14
|
/**
|
|
14
15
|
* `TPasswordStrengthScore` — integer 0..4 returned by `computeStrength()`.
|
|
15
16
|
* Drives how many segments of the bar are filled (0 = empty, 4 = full).
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OrigamQrCode } from '../../components';
|
|
2
|
+
import { QR_CODE_ERROR_CORRECTION_LEVEL } from '../../enums';
|
|
2
3
|
export type TOrigamQrCode = InstanceType<typeof OrigamQrCode>;
|
|
3
4
|
/**
|
|
4
5
|
* QR Code error-correction level (Reed-Solomon redundancy budget).
|
|
@@ -21,4 +22,4 @@ export type TOrigamQrCode = InstanceType<typeof OrigamQrCode>;
|
|
|
21
22
|
* for ≥20%. Below `Q`, the redundancy budget is too thin for any
|
|
22
23
|
* meaningful overlay.
|
|
23
24
|
*/
|
|
24
|
-
export type TQrCodeErrorCorrectionLevel =
|
|
25
|
+
export type TQrCodeErrorCorrectionLevel = `${QR_CODE_ERROR_CORRECTION_LEVEL}`;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OrigamSheet } from "../../components";
|
|
2
|
+
import { SHEET_SNAP_ID } from "../../enums";
|
|
2
3
|
export type TOrigamSheet = InstanceType<typeof OrigamSheet>;
|
|
3
4
|
/**
|
|
4
5
|
* Sheet bottom-swipe snap-point typings.
|
|
@@ -17,7 +18,7 @@ export type TOrigamSheet = InstanceType<typeof OrigamSheet>;
|
|
|
17
18
|
* `sheetSwipe.composable.spec.ts`, the `Bottom — swipeable` story Variant
|
|
18
19
|
* and `tests/e2e/sheet.spec.ts`.
|
|
19
20
|
*/
|
|
20
|
-
export type TSheetSnapId =
|
|
21
|
+
export type TSheetSnapId = `${SHEET_SNAP_ID}` | (string & {});
|
|
21
22
|
export type TSheetSnapPoint = {
|
|
22
23
|
id: TSheetSnapId;
|
|
23
24
|
height: number | string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { OrigamSkeleton } from '../../components';
|
|
2
|
+
import { SKELETON_VARIANT } from '../../enums';
|
|
2
3
|
export type TOrigamSkeleton = InstanceType<typeof OrigamSkeleton>;
|
|
3
|
-
export type TSkeletonVariant =
|
|
4
|
+
export type TSkeletonVariant = `${SKELETON_VARIANT}`;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { OrigamSnackbarGroup } from "../../components";
|
|
2
|
+
import { SNACKBAR_GROUP_DIRECTION, SNACKBAR_GROUP_LOCATION } from "../../enums";
|
|
2
3
|
export type TOrigamSnackbarGroup = InstanceType<typeof OrigamSnackbarGroup>;
|
|
3
4
|
/**
|
|
4
5
|
* Stacking direction for `OrigamSnackbarGroup`.
|
|
@@ -10,7 +11,7 @@ export type TOrigamSnackbarGroup = InstanceType<typeof OrigamSnackbarGroup>;
|
|
|
10
11
|
* (older items drift downward). Default for locations anchored to
|
|
11
12
|
* the bottom edge.
|
|
12
13
|
*/
|
|
13
|
-
export type TSnackbarGroupDirection =
|
|
14
|
+
export type TSnackbarGroupDirection = `${SNACKBAR_GROUP_DIRECTION}`;
|
|
14
15
|
/**
|
|
15
16
|
* Anchor locations supported by `OrigamSnackbarGroup`.
|
|
16
17
|
*
|
|
@@ -19,4 +20,4 @@ export type TSnackbarGroupDirection = 'top-down' | 'bottom-up';
|
|
|
19
20
|
* horizontal centering. Each location maps to a CSS pinning pair on
|
|
20
21
|
* the stack root (`top` / `bottom` + `left` / `right` / centered).
|
|
21
22
|
*/
|
|
22
|
-
export type TSnackbarGroupLocation =
|
|
23
|
+
export type TSnackbarGroupLocation = `${SNACKBAR_GROUP_LOCATION}`;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { OrigamStepper, OrigamStepperItem } from '../../components';
|
|
2
|
+
import { STEPPER_ITEM_STATUS } from '../../enums';
|
|
2
3
|
import type { TDirection } from '../Commons/direction.type';
|
|
3
4
|
export type TOrigamStepper = InstanceType<typeof OrigamStepper>;
|
|
4
5
|
export type TOrigamStepperItem = InstanceType<typeof OrigamStepperItem>;
|
|
@@ -8,4 +9,4 @@ export type TOrigamStepperItem = InstanceType<typeof OrigamStepperItem>;
|
|
|
8
9
|
* direction props.
|
|
9
10
|
*/
|
|
10
11
|
export type TStepperOrientation = TDirection;
|
|
11
|
-
export type TStepperItemStatus =
|
|
12
|
+
export type TStepperItemStatus = `${STEPPER_ITEM_STATUS}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BUILT_IN_PATTERN, PATTERN_VALIDATOR } from '../../enums';
|
|
2
2
|
import type { IMaskOptions } from '../../interfaces';
|
|
3
3
|
import { OrigamTextField } from '../../components';
|
|
4
|
-
import { TEXT_FIELD_TYPE } from "../../enums";
|
|
4
|
+
import { MASK_TOKEN_KIND, TEXT_FIELD_TYPE } from "../../enums";
|
|
5
5
|
export type TTextFieldType = `${TEXT_FIELD_TYPE}`;
|
|
6
6
|
export type TOrigamTextField = InstanceType<typeof OrigamTextField>;
|
|
7
7
|
/**
|
|
@@ -26,7 +26,7 @@ export type TMask = TBuiltInPattern | string | IMaskOptions | null;
|
|
|
26
26
|
* - `literal` : emitted as-is, does NOT consume the
|
|
27
27
|
* input character.
|
|
28
28
|
*/
|
|
29
|
-
export type TMaskTokenKind =
|
|
29
|
+
export type TMaskTokenKind = `${MASK_TOKEN_KIND}`;
|
|
30
30
|
/**
|
|
31
31
|
* Built-in validator name (string) — recognised by
|
|
32
32
|
* `validatePattern`.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OrigamTextMask } from "../../components";
|
|
2
|
+
import { TEXT_MASK_ANIMATION } from "../../enums";
|
|
2
3
|
export type TOrigamTextMask = InstanceType<typeof OrigamTextMask>;
|
|
3
4
|
/**
|
|
4
5
|
* Animation strategy applied to the background painted under the
|
|
@@ -15,4 +16,4 @@ export type TOrigamTextMask = InstanceType<typeof OrigamTextMask>;
|
|
|
15
16
|
* disables the keyframes entirely so users opting out of motion get a
|
|
16
17
|
* static painted text without flashes or transforms.
|
|
17
18
|
*/
|
|
18
|
-
export type TTextMaskAnimation =
|
|
19
|
+
export type TTextMaskAnimation = `${TEXT_MASK_ANIMATION}`;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { COLOR_MODE } from '../../enums';
|
|
1
2
|
/**
|
|
2
3
|
* Runtime theme (brand) name applied to `<html data-theme="…">` (or to a
|
|
3
4
|
* sub-tree via `<OrigamThemeProvider>`).
|
|
@@ -12,7 +13,7 @@
|
|
|
12
13
|
* - any other string is treated as a custom theme (e.g. `'brand-a'`) — the
|
|
13
14
|
* matching CSS file must be loaded by the consumer.
|
|
14
15
|
*/
|
|
15
|
-
export type TTheme =
|
|
16
|
+
export type TTheme = `${COLOR_MODE}` | (string & {});
|
|
16
17
|
/**
|
|
17
18
|
* Concrete (resolved) theme — what `data-theme` actually equals after
|
|
18
19
|
* resolving `'auto'`. Useful for components that need to know the
|
|
@@ -31,7 +32,7 @@ export type TThemeResolved = Exclude<TTheme, 'auto'>;
|
|
|
31
32
|
* - `'light'` : forced light mode.
|
|
32
33
|
* - `'dark'` : forced dark mode.
|
|
33
34
|
*/
|
|
34
|
-
export type TMode =
|
|
35
|
+
export type TMode = `${COLOR_MODE}`;
|
|
35
36
|
/**
|
|
36
37
|
* Concrete (resolved) mode — what `data-mode` actually equals after
|
|
37
38
|
* resolving `'auto'` against `prefers-color-scheme`.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { OrigamTimeline, OrigamTimelineItem } from '../../components';
|
|
2
|
+
import { TIMELINE_SIDE } from '../../enums';
|
|
2
3
|
import type { TDirection } from '../Commons/direction.type';
|
|
3
4
|
export type TOrigamTimeline = InstanceType<typeof OrigamTimeline>;
|
|
4
5
|
export type TOrigamTimelineItem = InstanceType<typeof OrigamTimelineItem>;
|
|
5
|
-
export type TTimelineSide =
|
|
6
|
+
export type TTimelineSide = `${TIMELINE_SIDE}`;
|
|
6
7
|
/**
|
|
7
8
|
* Layout axis of `<OrigamTimeline>`. Mirrors the global `TDirection` so
|
|
8
9
|
* the timeline plays nicely with the rest of the design system's
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { OrigamTreeview, OrigamTreeviewNode } from '../../components';
|
|
2
|
+
import { TREEVIEW_SELECT_MODE, TREEVIEW_SELECTABLE_NODES } from '../../enums';
|
|
2
3
|
export type TOrigamTreeview = InstanceType<typeof OrigamTreeview>;
|
|
3
4
|
export type TOrigamTreeviewNode = InstanceType<typeof OrigamTreeviewNode>;
|
|
4
|
-
export type TTreeviewSelectMode =
|
|
5
|
-
export type TTreeviewSelectableNodes =
|
|
5
|
+
export type TTreeviewSelectMode = `${TREEVIEW_SELECT_MODE}`;
|
|
6
|
+
export type TTreeviewSelectableNodes = `${TREEVIEW_SELECTABLE_NODES}`;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OrigamVideo } from '../../components';
|
|
2
|
+
import { VIDEO_TRACK_KIND } from '../../enums';
|
|
2
3
|
import type { TControlsSource } from '../Commons/controls.type';
|
|
3
4
|
export type TOrigamVideo = InstanceType<typeof OrigamVideo>;
|
|
4
5
|
/**
|
|
@@ -32,4 +33,4 @@ export type TVideoControls = TControlsSource;
|
|
|
32
33
|
* See https://html.spec.whatwg.org/multipage/media.html#attr-track-kind
|
|
33
34
|
* for the full list of legal values.
|
|
34
35
|
*/
|
|
35
|
-
export type TVideoTrackKind =
|
|
36
|
+
export type TVideoTrackKind = `${VIDEO_TRACK_KIND}`;
|