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
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<teleport to="body">
|
|
3
|
+
<component
|
|
4
|
+
:is="tag"
|
|
5
|
+
:id="resolvedDomId"
|
|
6
|
+
ref="rootRef"
|
|
7
|
+
:aria-label="ariaLabel"
|
|
8
|
+
:class="stackClasses"
|
|
9
|
+
:style="stackStyles"
|
|
10
|
+
role="region"
|
|
11
|
+
>
|
|
12
|
+
<transition-group
|
|
13
|
+
:name="transitionName"
|
|
14
|
+
tag="div"
|
|
15
|
+
class="origam-snackbar-stack__items"
|
|
16
|
+
>
|
|
17
|
+
<div
|
|
18
|
+
v-for="item in visibleItems"
|
|
19
|
+
:key="item.id"
|
|
20
|
+
:aria-live="resolveAriaLive(item.intent)"
|
|
21
|
+
:class="itemClassesFor(item)"
|
|
22
|
+
:data-cy="`origam-snackbar-stack-item-${item.id}`"
|
|
23
|
+
aria-atomic="true"
|
|
24
|
+
:role="resolveAriaRole(item.intent)"
|
|
25
|
+
>
|
|
26
|
+
<div class="origam-snackbar-stack__item-content">
|
|
27
|
+
<div
|
|
28
|
+
v-if="resolveIcon(item)"
|
|
29
|
+
class="origam-snackbar-stack__item-prepend"
|
|
30
|
+
>
|
|
31
|
+
<origam-icon
|
|
32
|
+
:icon="resolveIcon(item)!"
|
|
33
|
+
:size="24"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<div class="origam-snackbar-stack__item-text">
|
|
38
|
+
<div
|
|
39
|
+
v-if="item.title"
|
|
40
|
+
class="origam-snackbar-stack__item-title"
|
|
41
|
+
>
|
|
42
|
+
{{ item.title }}
|
|
43
|
+
</div>
|
|
44
|
+
<div
|
|
45
|
+
v-if="item.message"
|
|
46
|
+
class="origam-snackbar-stack__item-message"
|
|
47
|
+
>
|
|
48
|
+
{{ item.message }}
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<div
|
|
54
|
+
v-if="hasActions(item)"
|
|
55
|
+
class="origam-snackbar-stack__item-actions"
|
|
56
|
+
>
|
|
57
|
+
<button
|
|
58
|
+
v-for="(action, index) in item.actions"
|
|
59
|
+
:key="index"
|
|
60
|
+
:class="actionClassesFor(action)"
|
|
61
|
+
:data-cy="`origam-snackbar-stack-action-${item.id}-${index}`"
|
|
62
|
+
type="button"
|
|
63
|
+
@click="handleActionClick(item, action)"
|
|
64
|
+
>
|
|
65
|
+
{{ action.label }}
|
|
66
|
+
</button>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<button
|
|
70
|
+
v-if="resolveDismissible(item)"
|
|
71
|
+
:aria-label="dismissLabel"
|
|
72
|
+
:data-cy="`origam-snackbar-stack-dismiss-${item.id}`"
|
|
73
|
+
class="origam-snackbar-stack__item-dismiss"
|
|
74
|
+
type="button"
|
|
75
|
+
@click="handleDismissClick(item.id)"
|
|
76
|
+
>
|
|
77
|
+
<origam-icon
|
|
78
|
+
:icon="MDI_ICONS.CLOSE"
|
|
79
|
+
:size="18"
|
|
80
|
+
/>
|
|
81
|
+
</button>
|
|
82
|
+
</div>
|
|
83
|
+
</transition-group>
|
|
84
|
+
</component>
|
|
85
|
+
</teleport>
|
|
86
|
+
</template>
|
|
87
|
+
|
|
88
|
+
<script setup>
|
|
89
|
+
import { computed, ref, StyleValue } from "vue";
|
|
90
|
+
import { OrigamIcon } from "../../components";
|
|
91
|
+
import { useProps, useStyle } from "../../composables";
|
|
92
|
+
import { useSnackbarStackInternal } from "../../composables/SnackbarStack/snackbar-stack.composable";
|
|
93
|
+
import {
|
|
94
|
+
SNACKBAR_STACK_DEFAULT_DURATION,
|
|
95
|
+
SNACKBAR_STACK_DEFAULT_ID,
|
|
96
|
+
SNACKBAR_STACK_DEFAULT_MAX,
|
|
97
|
+
SNACKBAR_STACK_DEFAULT_SPACING
|
|
98
|
+
} from "../../consts";
|
|
99
|
+
import { MDI_ICONS } from "../../enums";
|
|
100
|
+
const props = defineProps({
|
|
101
|
+
id: { type: String, required: false, default: SNACKBAR_STACK_DEFAULT_ID },
|
|
102
|
+
location: { type: String, required: false, default: "bottom-right" },
|
|
103
|
+
max: { type: Number, required: false, default: SNACKBAR_STACK_DEFAULT_MAX },
|
|
104
|
+
defaultDuration: { type: Number, required: false, default: SNACKBAR_STACK_DEFAULT_DURATION },
|
|
105
|
+
spacing: { type: [String, Number], required: false, default: SNACKBAR_STACK_DEFAULT_SPACING },
|
|
106
|
+
direction: { type: String, required: false },
|
|
107
|
+
class: { type: [String, Array, Object], required: false },
|
|
108
|
+
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
109
|
+
tag: { type: String, required: false, default: "div" }
|
|
110
|
+
});
|
|
111
|
+
const { filterProps } = useProps(props);
|
|
112
|
+
const rootRef = ref();
|
|
113
|
+
const { rawItems } = useSnackbarStackInternal(props.id);
|
|
114
|
+
const visibleItems = computed(() => {
|
|
115
|
+
const items = rawItems.value;
|
|
116
|
+
const sliced = items.slice(-props.max);
|
|
117
|
+
return effectiveDirection.value === "bottom-up" ? [...sliced].reverse() : sliced;
|
|
118
|
+
});
|
|
119
|
+
const effectiveDirection = computed(() => {
|
|
120
|
+
if (props.direction) return props.direction;
|
|
121
|
+
return props.location.startsWith("top") ? "top-down" : "bottom-up";
|
|
122
|
+
});
|
|
123
|
+
const ariaLabel = "Notifications";
|
|
124
|
+
const dismissLabel = "Dismiss notification";
|
|
125
|
+
const resolveAriaRole = (intent) => {
|
|
126
|
+
return intent === "warning" || intent === "danger" ? "alert" : "status";
|
|
127
|
+
};
|
|
128
|
+
const resolveAriaLive = (intent) => {
|
|
129
|
+
return intent === "warning" || intent === "danger" ? "assertive" : "polite";
|
|
130
|
+
};
|
|
131
|
+
const INTENT_ICONS = {
|
|
132
|
+
primary: MDI_ICONS.INFORMATION,
|
|
133
|
+
secondary: MDI_ICONS.INFORMATION,
|
|
134
|
+
ghost: MDI_ICONS.INFORMATION,
|
|
135
|
+
neutral: MDI_ICONS.INFORMATION,
|
|
136
|
+
success: MDI_ICONS.CHECK_CIRCLE,
|
|
137
|
+
warning: MDI_ICONS.ALERT,
|
|
138
|
+
danger: MDI_ICONS.ALERT_CIRCLE,
|
|
139
|
+
info: MDI_ICONS.INFORMATION
|
|
140
|
+
};
|
|
141
|
+
const resolveIcon = (item) => {
|
|
142
|
+
if (item.icon) return item.icon;
|
|
143
|
+
if (item.intent) return INTENT_ICONS[item.intent];
|
|
144
|
+
return INTENT_ICONS.info;
|
|
145
|
+
};
|
|
146
|
+
const resolveDismissible = (item) => {
|
|
147
|
+
return item.dismissible !== false;
|
|
148
|
+
};
|
|
149
|
+
const hasActions = (item) => {
|
|
150
|
+
return Array.isArray(item.actions) && item.actions.length > 0;
|
|
151
|
+
};
|
|
152
|
+
const dismissItem = (itemId) => {
|
|
153
|
+
const index = rawItems.value.findIndex((it) => it.id === itemId);
|
|
154
|
+
if (index === -1) return;
|
|
155
|
+
const [removed] = rawItems.value.splice(index, 1);
|
|
156
|
+
removed?.onDismiss?.();
|
|
157
|
+
};
|
|
158
|
+
const handleDismissClick = (itemId) => {
|
|
159
|
+
dismissItem(itemId);
|
|
160
|
+
};
|
|
161
|
+
const handleActionClick = (item, action) => {
|
|
162
|
+
action.handler();
|
|
163
|
+
if (!action.keepOpen) {
|
|
164
|
+
dismissItem(item.id);
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
const transitionName = computed(() => {
|
|
168
|
+
if (props.location.startsWith("top")) return "origam-snackbar-stack--slide-down";
|
|
169
|
+
return "origam-snackbar-stack--slide-up";
|
|
170
|
+
});
|
|
171
|
+
const spacingValue = computed(() => {
|
|
172
|
+
if (typeof props.spacing === "number") return `${props.spacing}px`;
|
|
173
|
+
return props.spacing;
|
|
174
|
+
});
|
|
175
|
+
const stackStyles = computed(() => {
|
|
176
|
+
return [
|
|
177
|
+
{
|
|
178
|
+
"--origam-snackbar-stack---gap": spacingValue.value
|
|
179
|
+
},
|
|
180
|
+
props.style
|
|
181
|
+
];
|
|
182
|
+
});
|
|
183
|
+
const stackClasses = computed(() => {
|
|
184
|
+
return [
|
|
185
|
+
"origam-snackbar-stack",
|
|
186
|
+
`origam-snackbar-stack--${props.location}`,
|
|
187
|
+
`origam-snackbar-stack--direction-${effectiveDirection.value}`,
|
|
188
|
+
props.class
|
|
189
|
+
];
|
|
190
|
+
});
|
|
191
|
+
const itemClassesFor = (item) => {
|
|
192
|
+
const intent = item.intent ?? "info";
|
|
193
|
+
return [
|
|
194
|
+
"origam-snackbar-stack__item",
|
|
195
|
+
`origam-snackbar-stack__item--intent-${intent}`,
|
|
196
|
+
{
|
|
197
|
+
"origam-snackbar-stack__item--with-actions": hasActions(item),
|
|
198
|
+
"origam-snackbar-stack__item--dismissible": resolveDismissible(item)
|
|
199
|
+
}
|
|
200
|
+
];
|
|
201
|
+
};
|
|
202
|
+
const actionClassesFor = (action) => {
|
|
203
|
+
const intent = action.intent ?? "primary";
|
|
204
|
+
return [
|
|
205
|
+
"origam-snackbar-stack__item-action",
|
|
206
|
+
`origam-snackbar-stack__item-action--intent-${intent}`
|
|
207
|
+
];
|
|
208
|
+
};
|
|
209
|
+
const resolvedDomId = computed(() => `origam-snackbar-stack-${props.id}`);
|
|
210
|
+
const { id: styleId, css, load, isLoaded, unload } = useStyle(stackStyles);
|
|
211
|
+
defineExpose({
|
|
212
|
+
filterProps,
|
|
213
|
+
visibleItems,
|
|
214
|
+
css,
|
|
215
|
+
id: styleId,
|
|
216
|
+
load,
|
|
217
|
+
unload,
|
|
218
|
+
isLoaded
|
|
219
|
+
});
|
|
220
|
+
</script>
|
|
221
|
+
|
|
222
|
+
<style lang="scss" scoped>
|
|
223
|
+
.origam-snackbar-stack {
|
|
224
|
+
$this: &;
|
|
225
|
+
|
|
226
|
+
position: fixed;
|
|
227
|
+
z-index: var(--origam-snackbar-stack---z-index, var(--origam-z-index-toast, 1060));
|
|
228
|
+
pointer-events: none;
|
|
229
|
+
max-width: var(--origam-snackbar-stack---max-width, 420px);
|
|
230
|
+
width: max-content;
|
|
231
|
+
display: flex;
|
|
232
|
+
flex-direction: column;
|
|
233
|
+
|
|
234
|
+
&__items {
|
|
235
|
+
display: flex;
|
|
236
|
+
flex-direction: column;
|
|
237
|
+
gap: var(--origam-snackbar-stack---gap, 12px);
|
|
238
|
+
width: 100%;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
&--top-left {
|
|
242
|
+
top: var(--origam-snackbar-stack---position-top, 16px);
|
|
243
|
+
left: var(--origam-snackbar-stack---position-left, 16px);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&--top-right {
|
|
247
|
+
top: var(--origam-snackbar-stack---position-top, 16px);
|
|
248
|
+
right: var(--origam-snackbar-stack---position-right, 16px);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&--top-center,
|
|
252
|
+
&--top {
|
|
253
|
+
top: var(--origam-snackbar-stack---position-top, 16px);
|
|
254
|
+
left: 50%;
|
|
255
|
+
transform: translateX(-50%);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&--bottom-left {
|
|
259
|
+
bottom: var(--origam-snackbar-stack---position-bottom, 16px);
|
|
260
|
+
left: var(--origam-snackbar-stack---position-left, 16px);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
&--bottom-right {
|
|
264
|
+
bottom: var(--origam-snackbar-stack---position-bottom, 16px);
|
|
265
|
+
right: var(--origam-snackbar-stack---position-right, 16px);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&--bottom-center,
|
|
269
|
+
&--bottom {
|
|
270
|
+
bottom: var(--origam-snackbar-stack---position-bottom, 16px);
|
|
271
|
+
left: 50%;
|
|
272
|
+
transform: translateX(-50%);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
&__item {
|
|
276
|
+
pointer-events: auto;
|
|
277
|
+
display: flex;
|
|
278
|
+
align-items: flex-start;
|
|
279
|
+
gap: var(--origam-snackbar-stack__item---gap, 12px);
|
|
280
|
+
min-width: var(--origam-snackbar-stack__item---min-width, 288px);
|
|
281
|
+
max-width: var(--origam-snackbar-stack__item---max-width, 420px);
|
|
282
|
+
padding: var(--origam-snackbar-stack__item---padding, 12px 14px);
|
|
283
|
+
border-radius: var(--origam-snackbar-stack__item---border-radius, 8px);
|
|
284
|
+
border-width: var(--origam-snackbar-stack__item---border-width, 1px);
|
|
285
|
+
border-style: solid;
|
|
286
|
+
background-color: var(--origam-snackbar-stack__item---background-color, var(--origam-color__surface---default, #fff));
|
|
287
|
+
border-color: var(--origam-snackbar-stack__item---border-color, var(--origam-color__border---subtle, rgba(0, 0, 0, 0.12)));
|
|
288
|
+
color: var(--origam-snackbar-stack__item---color, var(--origam-color__text---primary, #1a1a1a));
|
|
289
|
+
box-shadow: var(--origam-snackbar-stack__item---box-shadow, 0 4px 12px rgba(0, 0, 0, 0.12));
|
|
290
|
+
font-size: var(--origam-snackbar-stack__item---font-size, 0.875rem);
|
|
291
|
+
line-height: 1.4;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
&__item-content {
|
|
295
|
+
display: flex;
|
|
296
|
+
align-items: flex-start;
|
|
297
|
+
gap: var(--origam-snackbar-stack__item---content-gap, 10px);
|
|
298
|
+
flex: 1 1 auto;
|
|
299
|
+
min-width: 0;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
&__item-prepend {
|
|
303
|
+
display: flex;
|
|
304
|
+
align-items: center;
|
|
305
|
+
color: var(--origam-snackbar-stack__item---prepend-color, currentColor);
|
|
306
|
+
flex: 0 0 auto;
|
|
307
|
+
line-height: 1;
|
|
308
|
+
padding-top: 1px;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
&__item-text {
|
|
312
|
+
display: flex;
|
|
313
|
+
flex-direction: column;
|
|
314
|
+
gap: var(--origam-snackbar-stack__item---text-gap, 2px);
|
|
315
|
+
flex: 1 1 auto;
|
|
316
|
+
min-width: 0;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
&__item-title {
|
|
320
|
+
font-weight: var(--origam-snackbar-stack__item---title-font-weight, 600);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
&__item-message {
|
|
324
|
+
font-weight: var(--origam-snackbar-stack__item---message-font-weight, 400);
|
|
325
|
+
color: var(--origam-snackbar-stack__item---message-color, currentColor);
|
|
326
|
+
opacity: var(--origam-snackbar-stack__item---message-opacity, 0.85);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
&__item-actions {
|
|
330
|
+
display: flex;
|
|
331
|
+
align-items: center;
|
|
332
|
+
gap: 6px;
|
|
333
|
+
flex: 0 0 auto;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
&__item-action {
|
|
337
|
+
background: transparent;
|
|
338
|
+
border: 0;
|
|
339
|
+
color: var(--origam-snackbar-stack__item---action-color, var(--origam-color__action--primary---fg, #1976d2));
|
|
340
|
+
font: inherit;
|
|
341
|
+
font-weight: 600;
|
|
342
|
+
cursor: pointer;
|
|
343
|
+
padding: 4px 8px;
|
|
344
|
+
border-radius: 4px;
|
|
345
|
+
|
|
346
|
+
&:hover {
|
|
347
|
+
background-color: var(--origam-snackbar-stack__item-action--hover---background-color, rgba(0, 0, 0, 0.04));
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
&:focus-visible {
|
|
351
|
+
outline: 2px solid currentColor;
|
|
352
|
+
outline-offset: 1px;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
&__item-dismiss {
|
|
357
|
+
background: transparent;
|
|
358
|
+
border: 0;
|
|
359
|
+
color: inherit;
|
|
360
|
+
cursor: pointer;
|
|
361
|
+
padding: 4px;
|
|
362
|
+
margin: -4px -2px -4px 0;
|
|
363
|
+
display: flex;
|
|
364
|
+
align-items: center;
|
|
365
|
+
justify-content: center;
|
|
366
|
+
border-radius: 4px;
|
|
367
|
+
flex: 0 0 auto;
|
|
368
|
+
|
|
369
|
+
&:hover {
|
|
370
|
+
background-color: var(--origam-snackbar-stack__item-dismiss--hover---background-color, rgba(0, 0, 0, 0.04));
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
&:focus-visible {
|
|
374
|
+
outline: 2px solid currentColor;
|
|
375
|
+
outline-offset: 1px;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
@each $intent in (primary, success, warning, danger, info) {
|
|
380
|
+
&__item--intent-#{$intent} {
|
|
381
|
+
background-color: var(--origam-color__feedback--#{$intent}---bgSubtle, var(--origam-snackbar-stack__item---background-color));
|
|
382
|
+
border-color: var(--origam-color__feedback--#{$intent}---border, var(--origam-snackbar-stack__item---border-color));
|
|
383
|
+
color: var(--origam-color__feedback--#{$intent}---fgSubtle, var(--origam-snackbar-stack__item---color));
|
|
384
|
+
|
|
385
|
+
#{$this}__item-prepend {
|
|
386
|
+
color: var(--origam-color__feedback--#{$intent}---border, currentColor);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
&--slide-down-enter-from,
|
|
392
|
+
&--slide-down-leave-to {
|
|
393
|
+
opacity: 0;
|
|
394
|
+
transform: translateY(-12px);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
&--slide-up-enter-from,
|
|
398
|
+
&--slide-up-leave-to {
|
|
399
|
+
opacity: 0;
|
|
400
|
+
transform: translateY(12px);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
&--slide-down-enter-active,
|
|
404
|
+
&--slide-down-leave-active,
|
|
405
|
+
&--slide-up-enter-active,
|
|
406
|
+
&--slide-up-leave-active {
|
|
407
|
+
transition: opacity var(--origam-snackbar-stack---transition-duration, 180ms) ease,
|
|
408
|
+
transform var(--origam-snackbar-stack---transition-duration, 180ms) ease;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
&--slide-down-move,
|
|
412
|
+
&--slide-up-move {
|
|
413
|
+
transition: transform var(--origam-snackbar-stack---transition-duration, 180ms) ease;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
@media (prefers-reduced-motion: reduce) {
|
|
417
|
+
&--slide-down-enter-active,
|
|
418
|
+
&--slide-down-leave-active,
|
|
419
|
+
&--slide-up-enter-active,
|
|
420
|
+
&--slide-up-leave-active {
|
|
421
|
+
transition: opacity 100ms ease;
|
|
422
|
+
transform: none !important;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
&--slide-down-enter-from,
|
|
426
|
+
&--slide-down-leave-to,
|
|
427
|
+
&--slide-up-enter-from,
|
|
428
|
+
&--slide-up-leave-to {
|
|
429
|
+
transform: none;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
</style>
|
|
434
|
+
|
|
435
|
+
<style>
|
|
436
|
+
:root {
|
|
437
|
+
--origam-snackbar-stack---gap: 12px;
|
|
438
|
+
--origam-snackbar-stack---max-width: 420px;
|
|
439
|
+
--origam-snackbar-stack---position-top: 16px;
|
|
440
|
+
--origam-snackbar-stack---position-bottom: 16px;
|
|
441
|
+
--origam-snackbar-stack---position-left: 16px;
|
|
442
|
+
--origam-snackbar-stack---position-right: 16px;
|
|
443
|
+
--origam-snackbar-stack---transition-duration: 180ms;
|
|
444
|
+
--origam-snackbar-stack__item---gap: 12px;
|
|
445
|
+
--origam-snackbar-stack__item---min-width: 288px;
|
|
446
|
+
--origam-snackbar-stack__item---max-width: 420px;
|
|
447
|
+
--origam-snackbar-stack__item---padding: 12px 14px;
|
|
448
|
+
--origam-snackbar-stack__item---border-radius: 8px;
|
|
449
|
+
--origam-snackbar-stack__item---border-width: 1px;
|
|
450
|
+
--origam-snackbar-stack__item---font-size: 0.875rem;
|
|
451
|
+
--origam-snackbar-stack__item---content-gap: 10px;
|
|
452
|
+
--origam-snackbar-stack__item---text-gap: 2px;
|
|
453
|
+
--origam-snackbar-stack__item---title-font-weight: 600;
|
|
454
|
+
--origam-snackbar-stack__item---message-font-weight: 400;
|
|
455
|
+
--origam-snackbar-stack__item---message-opacity: 0.85;
|
|
456
|
+
}
|
|
457
|
+
</style>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "OrigamSnackbarStack", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _OrigamSnackbarStack.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _OrigamSnackbarStack = _interopRequireDefault(require("./OrigamSnackbarStack.vue"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrigamSnackbarStack } from './OrigamSnackbarStack.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrigamSnackbarStack } from "./OrigamSnackbarStack.vue";
|