origam 2.2.1 → 2.3.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 +224 -0
- package/README.md +22 -0
- package/dist/src/assets/css/tokens/dark.css +318 -0
- package/dist/src/assets/css/tokens/light.css +159 -0
- package/dist/src/assets/locales/index.js +2 -2
- package/dist/src/assets/scss/tokens/_dark.scss +159 -0
- package/dist/src/assets/scss/tokens/_light.scss +159 -0
- package/dist/src/components/Bracket/OrigamBracket.vue +530 -0
- package/dist/src/components/Bracket/OrigamBracketCompetitor.vue +210 -0
- package/dist/src/components/Bracket/OrigamBracketMatch.vue +288 -0
- package/dist/src/components/Bracket/OrigamBracketRound.vue +150 -0
- package/dist/src/components/Bracket/index.cjs +34 -0
- package/dist/src/components/Bracket/index.d.ts +4 -0
- package/dist/src/components/Bracket/index.js +4 -0
- package/dist/src/components/ClientOnly/OrigamClientOnly.vue +28 -0
- package/dist/src/components/ClientOnly/index.cjs +13 -0
- package/dist/src/components/ClientOnly/index.d.ts +1 -0
- package/dist/src/components/ClientOnly/index.js +1 -0
- package/dist/src/components/Code/OrigamCode.vue +449 -0
- package/dist/src/components/Code/index.cjs +13 -0
- package/dist/src/components/Code/index.d.ts +1 -0
- package/dist/src/components/Code/index.js +1 -0
- package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +1 -0
- package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +614 -0
- package/dist/src/components/CommandPalette/index.cjs +13 -0
- package/dist/src/components/CommandPalette/index.d.ts +1 -0
- package/dist/src/components/CommandPalette/index.js +1 -0
- package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +1 -0
- package/dist/src/components/Parallax/OrigamParallax.vue +65 -34
- package/dist/src/components/Parallax/OrigamParallaxLayer.vue +119 -0
- package/dist/src/components/Parallax/index.cjs +7 -0
- package/dist/src/components/Parallax/index.d.ts +1 -0
- package/dist/src/components/Parallax/index.js +1 -0
- package/dist/src/components/PasswordField/OrigamPasswordField.vue +1 -0
- package/dist/src/components/Select/OrigamSelect.vue +1 -0
- package/dist/src/components/SnackbarStack/OrigamSnackbarStack.vue +457 -0
- package/dist/src/components/SnackbarStack/index.cjs +13 -0
- package/dist/src/components/SnackbarStack/index.d.ts +1 -0
- package/dist/src/components/SnackbarStack/index.js +1 -0
- package/dist/src/components/Tabs/OrigamTab.vue +263 -0
- package/dist/src/components/Tabs/OrigamTabPanel.vue +112 -0
- package/dist/src/components/Tabs/OrigamTabPanels.vue +139 -0
- package/dist/src/components/Tabs/OrigamTabs.vue +242 -0
- package/dist/src/components/Tabs/index.cjs +34 -0
- package/dist/src/components/Tabs/index.d.ts +4 -0
- package/dist/src/components/Tabs/index.js +4 -0
- package/dist/src/components/TextField/OrigamTextField.vue +75 -5
- package/dist/src/components/TextareaField/OrigamRichToolbar.vue +284 -0
- package/dist/src/components/TextareaField/OrigamTextareaField.vue +192 -5
- package/dist/src/components/TextareaField/index.cjs +7 -0
- package/dist/src/components/TextareaField/index.d.ts +1 -0
- package/dist/src/components/TextareaField/index.js +1 -0
- package/dist/src/components/index.cjs +66 -0
- package/dist/src/components/index.d.ts +6 -0
- package/dist/src/components/index.js +6 -0
- package/dist/src/composables/Code/code.composable.cjs +98 -0
- package/dist/src/composables/Code/code.composable.d.ts +10 -0
- package/dist/src/composables/Code/code.composable.js +82 -0
- package/dist/src/composables/CommandPalette/command.composable.cjs +53 -0
- package/dist/src/composables/CommandPalette/command.composable.d.ts +37 -0
- package/dist/src/composables/CommandPalette/command.composable.js +46 -0
- package/dist/src/composables/Commons/virtual.composable.cjs +1 -0
- package/dist/src/composables/Commons/virtual.composable.js +1 -0
- package/dist/src/composables/CssSupport/cssSupport.composable.cjs +12 -0
- package/dist/src/composables/CssSupport/cssSupport.composable.d.ts +25 -0
- package/dist/src/composables/CssSupport/cssSupport.composable.js +10 -1
- package/dist/src/composables/DataTable/headers.composable.d.ts +36 -36
- package/dist/src/composables/Mask/index.cjs +16 -0
- package/dist/src/composables/Mask/index.d.ts +1 -0
- package/dist/src/composables/Mask/index.js +1 -0
- package/dist/src/composables/Mask/mask.composable.cjs +57 -0
- package/dist/src/composables/Mask/mask.composable.d.ts +39 -0
- package/dist/src/composables/Mask/mask.composable.js +51 -0
- package/dist/src/composables/Parallax/parallax.composable.cjs +232 -0
- package/dist/src/composables/Parallax/parallax.composable.d.ts +60 -0
- package/dist/src/composables/Parallax/parallax.composable.js +219 -0
- package/dist/src/composables/Responsive/aspect.composable.cjs +6 -1
- package/dist/src/composables/Responsive/aspect.composable.d.ts +10 -0
- package/dist/src/composables/Responsive/aspect.composable.js +6 -1
- package/dist/src/composables/SnackbarStack/snackbar-stack.composable.cjs +102 -0
- package/dist/src/composables/SnackbarStack/snackbar-stack.composable.d.ts +58 -0
- package/dist/src/composables/SnackbarStack/snackbar-stack.composable.js +92 -0
- package/dist/src/composables/Textarea/textarea-rich.composable.cjs +263 -0
- package/dist/src/composables/Textarea/textarea-rich.composable.d.ts +41 -0
- package/dist/src/composables/Textarea/textarea-rich.composable.js +257 -0
- package/dist/src/composables/index.cjs +66 -0
- package/dist/src/composables/index.d.ts +6 -0
- package/dist/src/composables/index.js +6 -0
- package/dist/src/consts/Bracket/bracket.const.cjs +12 -0
- package/dist/src/consts/Bracket/bracket.const.d.ts +34 -0
- package/dist/src/consts/Bracket/bracket.const.js +15 -0
- package/dist/src/consts/Code/code.const.cjs +26 -0
- package/dist/src/consts/Code/code.const.d.ts +40 -0
- package/dist/src/consts/Code/code.const.js +35 -0
- package/dist/src/consts/CommandPalette/command-palette.const.cjs +10 -0
- package/dist/src/consts/CommandPalette/command-palette.const.d.ts +16 -0
- package/dist/src/consts/CommandPalette/command-palette.const.js +7 -0
- package/dist/src/consts/Mask/built-in-patterns.const.cjs +66 -0
- package/dist/src/consts/Mask/built-in-patterns.const.d.ts +20 -0
- package/dist/src/consts/Mask/built-in-patterns.const.js +60 -0
- package/dist/src/consts/Parallax/parallax-layer.const.cjs +7 -0
- package/dist/src/consts/Parallax/parallax-layer.const.d.ts +3 -0
- package/dist/src/consts/Parallax/parallax-layer.const.js +1 -0
- package/dist/src/consts/SnackbarStack/snackbar-stack.const.cjs +12 -0
- package/dist/src/consts/SnackbarStack/snackbar-stack.const.d.ts +33 -0
- package/dist/src/consts/SnackbarStack/snackbar-stack.const.js +18 -0
- package/dist/src/consts/Tabs/tabs.const.cjs +9 -0
- package/dist/src/consts/Tabs/tabs.const.d.ts +23 -0
- package/dist/src/consts/Tabs/tabs.const.js +3 -0
- package/dist/src/consts/Textarea/textarea.const.cjs +28 -0
- package/dist/src/consts/Textarea/textarea.const.d.ts +38 -0
- package/dist/src/consts/Textarea/textarea.const.js +65 -0
- package/dist/src/consts/Theme/theme.const.cjs +15 -0
- package/dist/src/consts/Theme/theme.const.d.ts +9 -0
- package/dist/src/consts/Theme/theme.const.js +9 -0
- package/dist/src/consts/index.cjs +99 -0
- package/dist/src/consts/index.d.ts +9 -0
- package/dist/src/consts/index.js +9 -0
- package/dist/src/enums/Bracket/bracket-match-status.enum.cjs +13 -0
- package/dist/src/enums/Bracket/bracket-match-status.enum.d.ts +6 -0
- package/dist/src/enums/Bracket/bracket-match-status.enum.js +7 -0
- package/dist/src/enums/Bracket/bracket-variant.enum.cjs +12 -0
- package/dist/src/enums/Bracket/bracket-variant.enum.d.ts +5 -0
- package/dist/src/enums/Bracket/bracket-variant.enum.js +6 -0
- package/dist/src/enums/Code/code-lang.enum.cjs +23 -0
- package/dist/src/enums/Code/code-lang.enum.d.ts +25 -0
- package/dist/src/enums/Code/code-lang.enum.js +17 -0
- package/dist/src/enums/Code/code-theme.enum.cjs +12 -0
- package/dist/src/enums/Code/code-theme.enum.d.ts +12 -0
- package/dist/src/enums/Code/code-theme.enum.js +6 -0
- package/dist/src/enums/Mask/mask.enum.cjs +28 -0
- package/dist/src/enums/Mask/mask.enum.d.ts +36 -0
- package/dist/src/enums/Mask/mask.enum.js +22 -0
- package/dist/src/enums/Parallax/parallax-direction.enum.cjs +12 -0
- package/dist/src/enums/Parallax/parallax-direction.enum.d.ts +5 -0
- package/dist/src/enums/Parallax/parallax-direction.enum.js +6 -0
- package/dist/src/enums/Parallax/parallax-easing.enum.cjs +12 -0
- package/dist/src/enums/Parallax/parallax-easing.enum.d.ts +5 -0
- package/dist/src/enums/Parallax/parallax-easing.enum.js +6 -0
- package/dist/src/enums/Tabs/tab-variant.enum.cjs +12 -0
- package/dist/src/enums/Tabs/tab-variant.enum.d.ts +5 -0
- package/dist/src/enums/Tabs/tab-variant.enum.js +6 -0
- package/dist/src/enums/Textarea/textarea-mode.enum.cjs +11 -0
- package/dist/src/enums/Textarea/textarea-mode.enum.d.ts +13 -0
- package/dist/src/enums/Textarea/textarea-mode.enum.js +5 -0
- package/dist/src/enums/Textarea/textarea-output.enum.cjs +11 -0
- package/dist/src/enums/Textarea/textarea-output.enum.d.ts +14 -0
- package/dist/src/enums/Textarea/textarea-output.enum.js +5 -0
- package/dist/src/enums/Textarea/textarea-toolbar-command.enum.cjs +21 -0
- package/dist/src/enums/Textarea/textarea-toolbar-command.enum.d.ts +20 -0
- package/dist/src/enums/Textarea/textarea-toolbar-command.enum.js +15 -0
- package/dist/src/enums/Textarea/textarea-toolbar-position.enum.cjs +12 -0
- package/dist/src/enums/Textarea/textarea-toolbar-position.enum.d.ts +10 -0
- package/dist/src/enums/Textarea/textarea-toolbar-position.enum.js +6 -0
- package/dist/src/enums/index.cjs +132 -0
- package/dist/src/enums/index.d.ts +12 -0
- package/dist/src/enums/index.js +12 -0
- package/dist/src/interfaces/Bracket/bracket-competitor-component.interface.cjs +1 -0
- package/dist/src/interfaces/Bracket/bracket-competitor-component.interface.d.ts +53 -0
- package/dist/src/interfaces/Bracket/bracket-competitor-component.interface.js +0 -0
- package/dist/src/interfaces/Bracket/bracket-competitor.interface.cjs +1 -0
- package/dist/src/interfaces/Bracket/bracket-competitor.interface.d.ts +25 -0
- package/dist/src/interfaces/Bracket/bracket-competitor.interface.js +0 -0
- package/dist/src/interfaces/Bracket/bracket-match-component.interface.cjs +1 -0
- package/dist/src/interfaces/Bracket/bracket-match-component.interface.d.ts +45 -0
- package/dist/src/interfaces/Bracket/bracket-match-component.interface.js +0 -0
- package/dist/src/interfaces/Bracket/bracket-match.interface.cjs +1 -0
- package/dist/src/interfaces/Bracket/bracket-match.interface.d.ts +51 -0
- package/dist/src/interfaces/Bracket/bracket-match.interface.js +0 -0
- package/dist/src/interfaces/Bracket/bracket-round-component.interface.cjs +1 -0
- package/dist/src/interfaces/Bracket/bracket-round-component.interface.d.ts +26 -0
- package/dist/src/interfaces/Bracket/bracket-round-component.interface.js +0 -0
- package/dist/src/interfaces/Bracket/bracket-round.interface.cjs +1 -0
- package/dist/src/interfaces/Bracket/bracket-round.interface.d.ts +27 -0
- package/dist/src/interfaces/Bracket/bracket-round.interface.js +0 -0
- package/dist/src/interfaces/Bracket/bracket.interface.cjs +1 -0
- package/dist/src/interfaces/Bracket/bracket.interface.d.ts +71 -0
- package/dist/src/interfaces/Bracket/bracket.interface.js +0 -0
- package/dist/src/interfaces/Code/code.interface.cjs +1 -0
- package/dist/src/interfaces/Code/code.interface.d.ts +99 -0
- package/dist/src/interfaces/Code/code.interface.js +0 -0
- package/dist/src/interfaces/CommandPalette/command-palette.interface.cjs +1 -0
- package/dist/src/interfaces/CommandPalette/command-palette.interface.d.ts +57 -0
- package/dist/src/interfaces/CommandPalette/command-palette.interface.js +0 -0
- package/dist/src/interfaces/CommandPalette/command.interface.cjs +1 -0
- package/dist/src/interfaces/CommandPalette/command.interface.d.ts +51 -0
- package/dist/src/interfaces/CommandPalette/command.interface.js +0 -0
- package/dist/src/interfaces/Mask/mask-options.interface.cjs +1 -0
- package/dist/src/interfaces/Mask/mask-options.interface.d.ts +48 -0
- package/dist/src/interfaces/Mask/mask-options.interface.js +0 -0
- package/dist/src/interfaces/Nuxt/nuxt-module.interface.cjs +1 -0
- package/dist/src/interfaces/Nuxt/nuxt-module.interface.d.ts +73 -0
- package/dist/src/interfaces/Nuxt/nuxt-module.interface.js +0 -0
- package/dist/src/interfaces/Parallax/parallax-layer.interface.cjs +1 -0
- package/dist/src/interfaces/Parallax/parallax-layer.interface.d.ts +39 -0
- package/dist/src/interfaces/Parallax/parallax-layer.interface.js +0 -0
- package/dist/src/interfaces/Parallax/parallax.interface.d.ts +83 -3
- package/dist/src/interfaces/SnackbarStack/snackbar-stack-item.interface.cjs +1 -0
- package/dist/src/interfaces/SnackbarStack/snackbar-stack-item.interface.d.ts +60 -0
- package/dist/src/interfaces/SnackbarStack/snackbar-stack-item.interface.js +0 -0
- package/dist/src/interfaces/SnackbarStack/snackbar-stack.interface.cjs +1 -0
- package/dist/src/interfaces/SnackbarStack/snackbar-stack.interface.d.ts +60 -0
- package/dist/src/interfaces/SnackbarStack/snackbar-stack.interface.js +0 -0
- package/dist/src/interfaces/Tabs/tab-panel.interface.cjs +1 -0
- package/dist/src/interfaces/Tabs/tab-panel.interface.d.ts +12 -0
- package/dist/src/interfaces/Tabs/tab-panel.interface.js +0 -0
- package/dist/src/interfaces/Tabs/tab-panels.interface.cjs +1 -0
- package/dist/src/interfaces/Tabs/tab-panels.interface.d.ts +28 -0
- package/dist/src/interfaces/Tabs/tab-panels.interface.js +0 -0
- package/dist/src/interfaces/Tabs/tab.interface.cjs +1 -0
- package/dist/src/interfaces/Tabs/tab.interface.d.ts +18 -0
- package/dist/src/interfaces/Tabs/tab.interface.js +0 -0
- package/dist/src/interfaces/Tabs/tabs.interface.cjs +1 -0
- package/dist/src/interfaces/Tabs/tabs.interface.d.ts +26 -0
- package/dist/src/interfaces/Tabs/tabs.interface.js +0 -0
- package/dist/src/interfaces/TextField/text-field.interface.d.ts +21 -1
- package/dist/src/interfaces/Textarea/textarea-rich.interface.cjs +1 -0
- package/dist/src/interfaces/Textarea/textarea-rich.interface.d.ts +41 -0
- package/dist/src/interfaces/Textarea/textarea-rich.interface.js +0 -0
- package/dist/src/interfaces/Textarea/textarea-toolbar.interface.cjs +1 -0
- package/dist/src/interfaces/Textarea/textarea-toolbar.interface.d.ts +31 -0
- package/dist/src/interfaces/Textarea/textarea-toolbar.interface.js +0 -0
- package/dist/src/interfaces/TextareaField/textarea-field.interface.d.ts +38 -1
- package/dist/src/interfaces/index.cjs +231 -0
- package/dist/src/interfaces/index.d.ts +21 -0
- package/dist/src/interfaces/index.js +21 -0
- package/dist/src/nuxt/index.cjs +13 -0
- package/dist/src/nuxt/index.d.ts +2 -0
- package/dist/src/nuxt/index.js +1 -0
- package/dist/src/nuxt/module.cjs +74 -0
- package/dist/src/nuxt/module.d.ts +31 -0
- package/dist/src/nuxt/module.js +68 -0
- package/dist/src/nuxt/plugin.client.cjs +44 -0
- package/dist/src/nuxt/plugin.client.d.ts +2 -0
- package/dist/src/nuxt/plugin.client.js +36 -0
- package/dist/src/nuxt/plugin.server.cjs +51 -0
- package/dist/src/nuxt/plugin.server.d.ts +2 -0
- package/dist/src/nuxt/plugin.server.js +45 -0
- package/dist/src/types/Bracket/bracket-direction.type.cjs +1 -0
- package/dist/src/types/Bracket/bracket-direction.type.d.ts +13 -0
- package/dist/src/types/Bracket/bracket-direction.type.js +0 -0
- package/dist/src/types/Bracket/bracket-match-status.type.cjs +1 -0
- package/dist/src/types/Bracket/bracket-match-status.type.d.ts +2 -0
- package/dist/src/types/Bracket/bracket-match-status.type.js +0 -0
- package/dist/src/types/Bracket/bracket-round-side.type.cjs +1 -0
- package/dist/src/types/Bracket/bracket-round-side.type.d.ts +12 -0
- package/dist/src/types/Bracket/bracket-round-side.type.js +0 -0
- package/dist/src/types/Bracket/bracket-variant.type.cjs +1 -0
- package/dist/src/types/Bracket/bracket-variant.type.d.ts +2 -0
- package/dist/src/types/Bracket/bracket-variant.type.js +0 -0
- package/dist/src/types/Code/code-lang.type.cjs +1 -0
- package/dist/src/types/Code/code-lang.type.d.ts +2 -0
- package/dist/src/types/Code/code-lang.type.js +0 -0
- package/dist/src/types/Code/code-theme.type.cjs +1 -0
- package/dist/src/types/Code/code-theme.type.d.ts +2 -0
- package/dist/src/types/Code/code-theme.type.js +0 -0
- package/dist/src/types/CommandPalette/command-palette-hotkey.type.cjs +1 -0
- package/dist/src/types/CommandPalette/command-palette-hotkey.type.d.ts +5 -0
- package/dist/src/types/CommandPalette/command-palette-hotkey.type.js +0 -0
- package/dist/src/types/Mask/built-in-pattern.type.cjs +1 -0
- package/dist/src/types/Mask/built-in-pattern.type.d.ts +7 -0
- package/dist/src/types/Mask/built-in-pattern.type.js +0 -0
- package/dist/src/types/Mask/mask.type.cjs +1 -0
- package/dist/src/types/Mask/mask.type.d.ts +19 -0
- package/dist/src/types/Mask/mask.type.js +0 -0
- package/dist/src/types/Mask/pattern-validator.type.cjs +1 -0
- package/dist/src/types/Mask/pattern-validator.type.d.ts +16 -0
- package/dist/src/types/Mask/pattern-validator.type.js +0 -0
- package/dist/src/types/Parallax/parallax-direction.type.cjs +1 -0
- package/dist/src/types/Parallax/parallax-direction.type.d.ts +2 -0
- package/dist/src/types/Parallax/parallax-direction.type.js +0 -0
- package/dist/src/types/Parallax/parallax-easing.type.cjs +1 -0
- package/dist/src/types/Parallax/parallax-easing.type.d.ts +2 -0
- package/dist/src/types/Parallax/parallax-easing.type.js +0 -0
- package/dist/src/types/SnackbarStack/snackbar-stack-direction.type.cjs +1 -0
- package/dist/src/types/SnackbarStack/snackbar-stack-direction.type.d.ts +11 -0
- package/dist/src/types/SnackbarStack/snackbar-stack-direction.type.js +0 -0
- package/dist/src/types/SnackbarStack/snackbar-stack-location.type.cjs +1 -0
- package/dist/src/types/SnackbarStack/snackbar-stack-location.type.d.ts +9 -0
- package/dist/src/types/SnackbarStack/snackbar-stack-location.type.js +0 -0
- package/dist/src/types/SnackbarStack/snackbar-stack.type.cjs +1 -0
- package/dist/src/types/SnackbarStack/snackbar-stack.type.d.ts +2 -0
- package/dist/src/types/SnackbarStack/snackbar-stack.type.js +0 -0
- package/dist/src/types/Tabs/tab-panel.type.cjs +1 -0
- package/dist/src/types/Tabs/tab-panel.type.d.ts +2 -0
- package/dist/src/types/Tabs/tab-panel.type.js +0 -0
- package/dist/src/types/Tabs/tab-panels.type.cjs +1 -0
- package/dist/src/types/Tabs/tab-panels.type.d.ts +2 -0
- package/dist/src/types/Tabs/tab-panels.type.js +0 -0
- package/dist/src/types/Tabs/tab-variant.type.cjs +1 -0
- package/dist/src/types/Tabs/tab-variant.type.d.ts +2 -0
- package/dist/src/types/Tabs/tab-variant.type.js +0 -0
- package/dist/src/types/Tabs/tab.type.cjs +1 -0
- package/dist/src/types/Tabs/tab.type.d.ts +2 -0
- package/dist/src/types/Tabs/tab.type.js +0 -0
- package/dist/src/types/Tabs/tabs.type.cjs +1 -0
- package/dist/src/types/Tabs/tabs.type.d.ts +2 -0
- package/dist/src/types/Tabs/tabs.type.js +0 -0
- package/dist/src/types/Textarea/textarea-mode.type.cjs +1 -0
- package/dist/src/types/Textarea/textarea-mode.type.d.ts +2 -0
- package/dist/src/types/Textarea/textarea-mode.type.js +0 -0
- package/dist/src/types/Textarea/textarea-output.type.cjs +1 -0
- package/dist/src/types/Textarea/textarea-output.type.d.ts +2 -0
- package/dist/src/types/Textarea/textarea-output.type.js +0 -0
- package/dist/src/types/Textarea/textarea-toolbar-command.type.cjs +1 -0
- package/dist/src/types/Textarea/textarea-toolbar-command.type.d.ts +2 -0
- package/dist/src/types/Textarea/textarea-toolbar-command.type.js +0 -0
- package/dist/src/types/Textarea/textarea-toolbar-position.type.cjs +1 -0
- package/dist/src/types/Textarea/textarea-toolbar-position.type.d.ts +2 -0
- package/dist/src/types/Textarea/textarea-toolbar-position.type.js +0 -0
- package/dist/src/types/index.cjs +264 -0
- package/dist/src/types/index.d.ts +24 -0
- package/dist/src/types/index.js +24 -0
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/dist/src/utils/Code/parse-highlight-lines.util.cjs +34 -0
- package/dist/src/utils/Code/parse-highlight-lines.util.d.ts +24 -0
- package/dist/src/utils/Code/parse-highlight-lines.util.js +28 -0
- package/dist/src/utils/CommandPalette/fuzzy-match.util.cjs +84 -0
- package/dist/src/utils/CommandPalette/fuzzy-match.util.d.ts +51 -0
- package/dist/src/utils/CommandPalette/fuzzy-match.util.js +62 -0
- package/dist/src/utils/Mask/apply-mask.util.cjs +120 -0
- package/dist/src/utils/Mask/apply-mask.util.d.ts +13 -0
- package/dist/src/utils/Mask/apply-mask.util.js +91 -0
- package/dist/src/utils/Mask/index.cjs +38 -0
- package/dist/src/utils/Mask/index.d.ts +3 -0
- package/dist/src/utils/Mask/index.js +3 -0
- package/dist/src/utils/Mask/resolve-mask-config.util.cjs +31 -0
- package/dist/src/utils/Mask/resolve-mask-config.util.d.ts +15 -0
- package/dist/src/utils/Mask/resolve-mask-config.util.js +21 -0
- package/dist/src/utils/Mask/validate-pattern.util.cjs +92 -0
- package/dist/src/utils/Mask/validate-pattern.util.d.ts +41 -0
- package/dist/src/utils/Mask/validate-pattern.util.js +81 -0
- package/dist/src/utils/Textarea/html-to-markdown.util.cjs +85 -0
- package/dist/src/utils/Textarea/html-to-markdown.util.d.ts +21 -0
- package/dist/src/utils/Textarea/html-to-markdown.util.js +78 -0
- package/dist/src/utils/Textarea/sanitize-html.util.cjs +82 -0
- package/dist/src/utils/Textarea/sanitize-html.util.d.ts +17 -0
- package/dist/src/utils/Textarea/sanitize-html.util.js +83 -0
- package/dist/src/utils/index.cjs +77 -0
- package/dist/src/utils/index.d.ts +7 -0
- package/dist/src/utils/index.js +7 -0
- package/package.json +13 -3
- package/dist/src/globals.d.ts +0 -172
- package/dist/src/shims.d.ts +0 -36
- package/dist/src/vite-env.d.ts +0 -1
|
@@ -31,21 +31,26 @@ import {
|
|
|
31
31
|
useElevation,
|
|
32
32
|
useMargin,
|
|
33
33
|
usePadding,
|
|
34
|
+
useParallaxRuntime,
|
|
34
35
|
useProps,
|
|
35
36
|
useRounded,
|
|
36
37
|
useStyle,
|
|
37
38
|
useThrottleFn
|
|
38
39
|
} from "../../composables";
|
|
39
|
-
import { ORIGAM_PARALLAX_KEY } from "../../consts";
|
|
40
|
-
import { PARALLAX_EVENT } from "../../enums";
|
|
40
|
+
import { ORIGAM_PARALLAX_KEY, ORIGAM_PARALLAX_LAYER_KEY } from "../../consts";
|
|
41
|
+
import { PARALLAX_DIRECTION, PARALLAX_EASING, PARALLAX_EVENT } from "../../enums";
|
|
41
42
|
import { getCenter, getTargetBox, inViewport } from "../../utils";
|
|
42
43
|
const props = defineProps({
|
|
43
44
|
animationDuration: { type: Number, required: false },
|
|
44
|
-
easing: { type:
|
|
45
|
+
easing: { type: null, required: false, default: PARALLAX_EASING.LINEAR },
|
|
45
46
|
perspective: { type: Number, required: false, default: 1e3 },
|
|
46
47
|
event: { type: null, required: false, default: PARALLAX_EVENT.MOVE },
|
|
47
48
|
active: { type: Boolean, required: false, default: true },
|
|
48
49
|
duration: { type: Number, required: false, default: 1e3 },
|
|
50
|
+
direction: { type: null, required: false, default: PARALLAX_DIRECTION.VERTICAL },
|
|
51
|
+
speed: { type: Number, required: false, default: 0.5 },
|
|
52
|
+
disabled: { type: Boolean, required: false, default: false },
|
|
53
|
+
threshold: { type: Number, required: false, default: 0 },
|
|
49
54
|
id: { type: String, required: false },
|
|
50
55
|
class: { type: [String, Array, Object], required: false },
|
|
51
56
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
@@ -90,6 +95,7 @@ const props = defineProps({
|
|
|
90
95
|
audio: { type: String, required: false },
|
|
91
96
|
playAudio: { type: Boolean, required: false }
|
|
92
97
|
});
|
|
98
|
+
const emit = defineEmits(["enter", "leave", "scroll-progress"]);
|
|
93
99
|
const { filterProps } = useProps(props);
|
|
94
100
|
const { audioRef, audioData, onStop: handleStop } = useAudio(props);
|
|
95
101
|
const { platform } = useDisplay();
|
|
@@ -104,14 +110,9 @@ const root = ref();
|
|
|
104
110
|
const isMoving = ref(false);
|
|
105
111
|
const leftOnce = ref(false);
|
|
106
112
|
const shape = ref(null);
|
|
107
|
-
const movement = ref({
|
|
108
|
-
x: 0,
|
|
109
|
-
y: 0
|
|
110
|
-
});
|
|
113
|
+
const movement = ref({ x: 0, y: 0 });
|
|
111
114
|
const data = ref();
|
|
112
|
-
const isTouch = computed(() =>
|
|
113
|
-
return platform.value.touch;
|
|
114
|
-
});
|
|
115
|
+
const isTouch = computed(() => platform.value.touch);
|
|
115
116
|
const eventActions = computed(() => {
|
|
116
117
|
return {
|
|
117
118
|
move: {
|
|
@@ -144,11 +145,9 @@ const mouseMovement = ({ target, event }) => {
|
|
|
144
145
|
const relativeX = x - target.left;
|
|
145
146
|
const relativeY = y - target.top;
|
|
146
147
|
const center = getCenter(target);
|
|
147
|
-
const mouseMovementX = relativeX / center.x;
|
|
148
|
-
const mouseMovementY = relativeY / center.y;
|
|
149
148
|
return {
|
|
150
|
-
x:
|
|
151
|
-
y:
|
|
149
|
+
x: relativeX / center.x,
|
|
150
|
+
y: relativeY / center.y,
|
|
152
151
|
target
|
|
153
152
|
};
|
|
154
153
|
};
|
|
@@ -158,11 +157,9 @@ const scrollMovement = ({ target }) => {
|
|
|
158
157
|
const relativeX = x - target.left;
|
|
159
158
|
const relativeY = y - target.top;
|
|
160
159
|
const center = getCenter(target);
|
|
161
|
-
const mouseMovementX = relativeX / center.x;
|
|
162
|
-
const mouseMovementY = relativeY / center.y;
|
|
163
160
|
return {
|
|
164
|
-
x:
|
|
165
|
-
y:
|
|
161
|
+
x: relativeX / center.x,
|
|
162
|
+
y: relativeY / center.y,
|
|
166
163
|
target
|
|
167
164
|
};
|
|
168
165
|
};
|
|
@@ -181,10 +178,7 @@ const handleMovement = useThrottleFn((event) => {
|
|
|
181
178
|
const condition = eventActions.value[props.event].condition;
|
|
182
179
|
const action = eventActions.value[props.event].action;
|
|
183
180
|
if (isInViewport && condition) {
|
|
184
|
-
movement.value = action({
|
|
185
|
-
target: shape.value,
|
|
186
|
-
event
|
|
187
|
-
});
|
|
181
|
+
movement.value = action({ target: shape.value, event });
|
|
188
182
|
data.value = { x: event.clientX, y: event.clientY };
|
|
189
183
|
}
|
|
190
184
|
}, 100);
|
|
@@ -207,12 +201,8 @@ const handleMovementStop = () => {
|
|
|
207
201
|
leftOnce.value = true;
|
|
208
202
|
isMoving.value = false;
|
|
209
203
|
};
|
|
210
|
-
onMounted(() =>
|
|
211
|
-
|
|
212
|
-
});
|
|
213
|
-
onBeforeUnmount(() => {
|
|
214
|
-
removeEvents();
|
|
215
|
-
});
|
|
204
|
+
onMounted(() => addEvents());
|
|
205
|
+
onBeforeUnmount(() => removeEvents());
|
|
216
206
|
watch(() => props.event, (newEvent, oldEvent) => {
|
|
217
207
|
if (newEvent === oldEvent) return;
|
|
218
208
|
removeEvents(oldEvent);
|
|
@@ -240,6 +230,35 @@ provide(ORIGAM_PARALLAX_KEY, {
|
|
|
240
230
|
easing: toRef(props, "easing"),
|
|
241
231
|
shape
|
|
242
232
|
});
|
|
233
|
+
const {
|
|
234
|
+
progress,
|
|
235
|
+
mouseRatio,
|
|
236
|
+
cssScrollDriven,
|
|
237
|
+
reducedMotion,
|
|
238
|
+
register,
|
|
239
|
+
unregister
|
|
240
|
+
} = useParallaxRuntime({
|
|
241
|
+
target: root,
|
|
242
|
+
direction: toRef(props, "direction"),
|
|
243
|
+
easing: toRef(props, "easing"),
|
|
244
|
+
threshold: toRef(props, "threshold"),
|
|
245
|
+
disabled: toRef(props, "disabled"),
|
|
246
|
+
speed: toRef(props, "speed"),
|
|
247
|
+
onEnter: () => emit("enter"),
|
|
248
|
+
onLeave: () => emit("leave"),
|
|
249
|
+
onProgress: (p) => emit("scroll-progress", p)
|
|
250
|
+
});
|
|
251
|
+
provide(ORIGAM_PARALLAX_LAYER_KEY, {
|
|
252
|
+
direction: toRef(props, "direction"),
|
|
253
|
+
easing: toRef(props, "easing"),
|
|
254
|
+
disabled: toRef(props, "disabled"),
|
|
255
|
+
progress,
|
|
256
|
+
mouseRatio,
|
|
257
|
+
cssScrollDriven,
|
|
258
|
+
reducedMotion,
|
|
259
|
+
register,
|
|
260
|
+
unregister
|
|
261
|
+
});
|
|
243
262
|
const parallaxStyles = computed(() => {
|
|
244
263
|
return [
|
|
245
264
|
dimensionStyles.value,
|
|
@@ -248,11 +267,6 @@ const parallaxStyles = computed(() => {
|
|
|
248
267
|
roundedStyles.value,
|
|
249
268
|
paddingStyles.value,
|
|
250
269
|
marginStyles.value,
|
|
251
|
-
// Forward `perspective` as a component-scoped CSS variable so
|
|
252
|
-
// the SCSS owns the actual `perspective:` declaration. Lets the
|
|
253
|
-
// design-token layer override the default per-theme without
|
|
254
|
-
// touching the JS, and keeps the Style-Dictionary chromique
|
|
255
|
-
// pattern consistent across components.
|
|
256
270
|
{
|
|
257
271
|
"--origam-parallax---perspective": `${props.perspective}px`
|
|
258
272
|
},
|
|
@@ -262,6 +276,12 @@ const parallaxStyles = computed(() => {
|
|
|
262
276
|
const parallaxClasses = computed(() => {
|
|
263
277
|
return [
|
|
264
278
|
"origam-parallax",
|
|
279
|
+
{
|
|
280
|
+
"origam-parallax--disabled": props.disabled,
|
|
281
|
+
"origam-parallax--reduced-motion": reducedMotion.value,
|
|
282
|
+
"origam-parallax--css-driven": cssScrollDriven.value,
|
|
283
|
+
[`origam-parallax--${props.direction}`]: !!props.direction
|
|
284
|
+
},
|
|
265
285
|
colorClasses.value,
|
|
266
286
|
borderClasses.value,
|
|
267
287
|
roundedClasses.value,
|
|
@@ -278,7 +298,10 @@ defineExpose({
|
|
|
278
298
|
id,
|
|
279
299
|
load,
|
|
280
300
|
unload,
|
|
281
|
-
isLoaded
|
|
301
|
+
isLoaded,
|
|
302
|
+
progress,
|
|
303
|
+
cssScrollDriven,
|
|
304
|
+
reducedMotion
|
|
282
305
|
});
|
|
283
306
|
</script>
|
|
284
307
|
|
|
@@ -299,4 +322,12 @@ defineExpose({
|
|
|
299
322
|
background-color: var(--origam-parallax---background-color, transparent);
|
|
300
323
|
color: var(--origam-parallax---color, inherit);
|
|
301
324
|
}
|
|
325
|
+
|
|
326
|
+
.origam-parallax--disabled,
|
|
327
|
+
.origam-parallax--reduced-motion {
|
|
328
|
+
:deep(.origam-parallax__layer) {
|
|
329
|
+
animation: none !important;
|
|
330
|
+
transition: none !important;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
302
333
|
</style>
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component
|
|
3
|
+
:is="tag"
|
|
4
|
+
ref="layerRef"
|
|
5
|
+
:class="layerClasses"
|
|
6
|
+
:style="layerStyles"
|
|
7
|
+
>
|
|
8
|
+
<slot name="default"/>
|
|
9
|
+
</component>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup>
|
|
13
|
+
import { computed, inject, onBeforeUnmount, onMounted, ref, StyleValue } from "vue";
|
|
14
|
+
import { useProps } from "../../composables";
|
|
15
|
+
import { ORIGAM_PARALLAX_LAYER_KEY } from "../../consts";
|
|
16
|
+
const props = defineProps({
|
|
17
|
+
speed: { type: Number, required: false, default: 1 },
|
|
18
|
+
offsetX: { type: Number, required: false, default: 0 },
|
|
19
|
+
offsetY: { type: Number, required: false, default: 0 },
|
|
20
|
+
zIndex: { type: Number, required: false },
|
|
21
|
+
id: { type: String, required: false },
|
|
22
|
+
class: { type: [String, Array, Object], required: false },
|
|
23
|
+
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
24
|
+
tag: { type: String, required: false, default: "div" }
|
|
25
|
+
});
|
|
26
|
+
const { filterProps } = useProps(props);
|
|
27
|
+
const parallax = inject(ORIGAM_PARALLAX_LAYER_KEY);
|
|
28
|
+
if (!parallax) {
|
|
29
|
+
throw new Error("[Origam] OrigamParallaxLayer must be nested inside OrigamParallax (use direction/easing/disabled props on the host).");
|
|
30
|
+
}
|
|
31
|
+
const layerRef = ref();
|
|
32
|
+
const id = Symbol("origam:parallax-layer");
|
|
33
|
+
onMounted(() => {
|
|
34
|
+
if (!layerRef.value) return;
|
|
35
|
+
const registry = {
|
|
36
|
+
id,
|
|
37
|
+
speed: props.speed ?? 1,
|
|
38
|
+
offsetX: props.offsetX ?? 0,
|
|
39
|
+
offsetY: props.offsetY ?? 0,
|
|
40
|
+
target: layerRef.value
|
|
41
|
+
};
|
|
42
|
+
parallax.register(registry);
|
|
43
|
+
});
|
|
44
|
+
onBeforeUnmount(() => {
|
|
45
|
+
parallax.unregister(id);
|
|
46
|
+
});
|
|
47
|
+
const layerStyles = computed(() => {
|
|
48
|
+
const styles = {
|
|
49
|
+
willChange: "var(--origam-parallax__layer---will-change, transform)",
|
|
50
|
+
transformOrigin: "var(--origam-parallax__layer---transform-origin, center center)"
|
|
51
|
+
};
|
|
52
|
+
if (props.zIndex !== void 0) {
|
|
53
|
+
styles.zIndex = String(props.zIndex);
|
|
54
|
+
}
|
|
55
|
+
styles.transform = `translate3d(${props.offsetX ?? 0}px, ${props.offsetY ?? 0}px, 0)`;
|
|
56
|
+
return [styles, props.style];
|
|
57
|
+
});
|
|
58
|
+
const layerClasses = computed(() => {
|
|
59
|
+
return [
|
|
60
|
+
"origam-parallax__layer",
|
|
61
|
+
{
|
|
62
|
+
"origam-parallax__layer--css-driven": parallax.cssScrollDriven.value,
|
|
63
|
+
"origam-parallax__layer--reduced-motion": parallax.reducedMotion.value
|
|
64
|
+
},
|
|
65
|
+
props.class
|
|
66
|
+
];
|
|
67
|
+
});
|
|
68
|
+
defineExpose({ filterProps });
|
|
69
|
+
</script>
|
|
70
|
+
|
|
71
|
+
<style lang="scss" scoped>
|
|
72
|
+
.origam-parallax__layer {
|
|
73
|
+
position: absolute;
|
|
74
|
+
inset: 0;
|
|
75
|
+
display: block;
|
|
76
|
+
will-change: var(--origam-parallax__layer---will-change, transform);
|
|
77
|
+
transform-origin: var(--origam-parallax__layer---transform-origin, center center);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.origam-parallax__layer--reduced-motion {
|
|
81
|
+
transform: translate3d(
|
|
82
|
+
var(--origam-parallax__layer---offset-x, 0),
|
|
83
|
+
var(--origam-parallax__layer---offset-y, 0),
|
|
84
|
+
0
|
|
85
|
+
) !important;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@supports (animation-timeline: scroll()) {
|
|
89
|
+
.origam-parallax__layer--css-driven {
|
|
90
|
+
animation: origam-parallax-layer linear both;
|
|
91
|
+
animation-timeline: view();
|
|
92
|
+
animation-range: cover 0% cover 100%;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@keyframes origam-parallax-layer {
|
|
96
|
+
from {
|
|
97
|
+
transform: translate3d(
|
|
98
|
+
calc(var(--origam-parallax__layer---offset-x, 0px) + var(--origam-parallax__layer---speed, 1) * -50%),
|
|
99
|
+
calc(var(--origam-parallax__layer---offset-y, 0px) + var(--origam-parallax__layer---speed, 1) * -50%),
|
|
100
|
+
0
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
to {
|
|
104
|
+
transform: translate3d(
|
|
105
|
+
calc(var(--origam-parallax__layer---offset-x, 0px) + var(--origam-parallax__layer---speed, 1) * 50%),
|
|
106
|
+
calc(var(--origam-parallax__layer---offset-y, 0px) + var(--origam-parallax__layer---speed, 1) * 50%),
|
|
107
|
+
0
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@media (prefers-reduced-motion: reduce) {
|
|
114
|
+
.origam-parallax__layer {
|
|
115
|
+
animation: none !important;
|
|
116
|
+
transition: none !important;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
</style>
|
|
@@ -15,6 +15,13 @@ Object.defineProperty(exports, "OrigamParallaxElement", {
|
|
|
15
15
|
return _OrigamParallaxElement.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "OrigamParallaxLayer", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _OrigamParallaxLayer.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
18
24
|
var _OrigamParallaxElement = _interopRequireDefault(require("./OrigamParallaxElement.vue"));
|
|
25
|
+
var _OrigamParallaxLayer = _interopRequireDefault(require("./OrigamParallaxLayer.vue"));
|
|
19
26
|
var _OrigamParallax = _interopRequireDefault(require("./OrigamParallax.vue"));
|
|
20
27
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -369,6 +369,7 @@ const _props = defineProps({
|
|
|
369
369
|
role: { type: String, required: false },
|
|
370
370
|
type: { type: null, required: false },
|
|
371
371
|
modelModifiers: { type: [String, Boolean], required: false },
|
|
372
|
+
mask: { type: null, required: false },
|
|
372
373
|
centerAffix: { type: Boolean, required: false, default: true },
|
|
373
374
|
dirty: { type: Boolean, required: false },
|
|
374
375
|
disabled: { type: Boolean, required: false },
|
|
@@ -343,6 +343,7 @@ const props = defineProps({
|
|
|
343
343
|
role: { type: String, required: false, default: "combobox" },
|
|
344
344
|
type: { type: null, required: false, default: TEXT_FIELD_TYPE.TEXT },
|
|
345
345
|
modelModifiers: { type: [String, Boolean], required: false },
|
|
346
|
+
mask: { type: null, required: false },
|
|
346
347
|
density: { type: null, required: false, default: DENSITY.DEFAULT },
|
|
347
348
|
centerAffix: { type: Boolean, required: false, default: true },
|
|
348
349
|
dirty: { type: Boolean, required: false },
|