rappel-ui 1.0.8 → 1.0.11
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/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/defineProperty.js +1 -0
- package/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPrimitive.js +1 -0
- package/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.js +1 -0
- package/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/typeof.js +1 -0
- package/cjs/_virtual/_plugin-vue_export-helper.js +1 -1
- package/cjs/_virtual/_rolldown/runtime.js +1 -0
- package/cjs/components/button/index.d.ts +38 -12
- package/cjs/components/button/index.js +1 -1
- package/cjs/components/button/src/button-group.js +1 -0
- package/cjs/components/button/src/button-group.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/button/src/button.js +1 -0
- package/cjs/components/button/src/button.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/button/src/constants.d.ts +4 -4
- package/cjs/components/button/src/constants.js +1 -1
- package/cjs/components/button/src/types.d.ts +20 -4
- package/cjs/components/button/style/index.js +1 -0
- package/cjs/components/button-group/style/css.d.ts +0 -0
- package/cjs/components/button-group/style/index.d.ts +0 -0
- package/cjs/components/button-group/style/index.js +1 -0
- package/cjs/components/colors/index.js +1 -1
- package/cjs/components/colors/src/colors.js +1 -0
- package/cjs/components/colors/src/colors.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/colors/src/neutral-color.js +1 -0
- package/cjs/components/colors/src/neutral-color.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/colors/src/primary-color.js +1 -0
- package/cjs/components/colors/src/primary-color.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/colors/src/secondary-color.js +1 -0
- package/cjs/components/colors/src/secondary-color.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/colors/style/index.js +1 -0
- package/cjs/components/filter-panel/index.d.ts +25 -29
- package/cjs/components/filter-panel/index.js +1 -1
- package/cjs/components/filter-panel/src/filter-panel.js +1 -0
- package/cjs/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/filter-panel/src/types.d.ts +1 -2
- package/cjs/components/filter-panel/style/index.js +1 -0
- package/cjs/components/index.d.ts +2 -0
- package/cjs/components/index.js +1 -1
- package/cjs/components/input/index.d.ts +1 -1
- package/cjs/components/input/index.js +1 -1
- package/cjs/components/input/src/input.js +1 -0
- package/cjs/components/input/src/input.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/package.js +1 -0
- package/cjs/components/popover/index.d.ts +21 -0
- package/cjs/components/popover/index.js +1 -0
- package/cjs/components/popover/src/popover.js +1 -0
- package/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/popover/src/types.d.ts +4 -0
- package/cjs/components/popover/style/css.d.ts +0 -0
- package/cjs/components/popover/style/index.d.ts +0 -0
- package/cjs/components/svg-icon/index.d.ts +1 -1
- package/cjs/components/svg-icon/index.js +1 -1
- package/cjs/components/svg-icon/src/svg-icon.js +1 -0
- package/cjs/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/svg-icon/src/types.d.ts +3 -2
- package/cjs/components/svg-icon/style/index.js +1 -0
- package/cjs/components/tabs/index.d.ts +2 -2
- package/cjs/components/tabs/index.js +1 -1
- package/cjs/components/tabs/src/tabs.js +1 -0
- package/cjs/components/tooltip/index.d.ts +106 -0
- package/cjs/components/tooltip/index.js +1 -0
- package/cjs/components/tooltip/src/constants.d.ts +7 -0
- package/cjs/components/tooltip/src/constants.js +1 -0
- package/cjs/components/tooltip/src/content.js +1 -0
- package/cjs/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/tooltip/src/tooltip.js +1 -0
- package/cjs/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/tooltip/src/types.d.ts +98 -0
- package/cjs/components/tooltip/src/use-emit.d.ts +14 -0
- package/cjs/components/tooltip/src/use-emit.js +1 -0
- package/cjs/components/tooltip/src/use-tooltip.d.ts +9 -0
- package/cjs/components/tooltip/src/use-tooltip.js +1 -0
- package/cjs/components/tooltip/style/css.d.ts +0 -0
- package/cjs/components/tooltip/style/index.d.ts +0 -0
- package/cjs/composables/index.d.ts +7 -5
- package/cjs/composables/index.js +1 -0
- package/cjs/composables/use-date-format/index.js +1 -0
- package/cjs/composables/use-draggable/index.js +1 -0
- package/cjs/composables/use-namespace/index.d.ts +8 -7
- package/cjs/composables/use-namespace/index.js +1 -1
- package/cjs/composables/{useOnceFn.d.ts → use-once-fn/index.d.ts} +1 -1
- package/cjs/composables/use-once-fn/index.js +1 -0
- package/cjs/composables/use-theme/index.d.ts +7 -0
- package/cjs/composables/use-theme/index.js +1 -0
- package/cjs/composables/use-time-nodes/index.js +1 -0
- package/cjs/composables/use-waterfall-layout/index.js +1 -0
- package/cjs/composables/use-z-index/index.d.ts +11 -0
- package/cjs/composables/use-z-index/index.js +1 -0
- package/cjs/constants/svgLoading.js +2 -2
- package/cjs/directives/index.js +1 -0
- package/cjs/directives/vDraggable.js +1 -1
- package/cjs/directives/vResizable.js +7 -7
- package/cjs/directives/vSvgLoading.js +1 -1
- package/cjs/index.d.ts +1207 -47
- package/cjs/index.js +1 -1
- package/cjs/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -0
- package/cjs/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -0
- package/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +1 -0
- package/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +1 -0
- package/cjs/node_modules/.pnpm/@floating-ui_vue@2.0.1_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +1 -0
- package/cjs/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +1 -1
- package/cjs/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +1 -1
- package/cjs/rappel-ui/resolver.d.ts +3 -1
- package/cjs/rappel-ui/resolver.js +1 -1
- package/cjs/svg-icons/constants.d.ts +3 -0
- package/cjs/svg-icons/constants.js +1 -0
- package/cjs/svg-icons/index.d.ts +1010 -0
- package/cjs/svg-icons/index.js +1 -0
- package/cjs/svg-icons/types.d.ts +5 -0
- package/cjs/theme-chalk/src/base.css +1 -1
- package/cjs/theme-chalk/src/button-group.css +1 -0
- package/cjs/theme-chalk/src/button.css +1 -1
- package/cjs/theme-chalk/src/colors.css +1 -1
- package/cjs/theme-chalk/src/filter-panel.css +1 -1
- package/cjs/theme-chalk/src/svg-icon.css +1 -1
- package/cjs/types/common.d.ts +1 -0
- package/cjs/types/component.d.ts +1 -0
- package/cjs/types/event.d.ts +1 -0
- package/cjs/types/index.d.ts +4 -0
- package/cjs/types/theme.d.ts +1 -0
- package/cjs/utils/index.js +1 -0
- package/cjs/utils/util.d.ts +33 -6
- package/cjs/utils/util.js +3 -3
- package/cjs/utils/vue/index.d.ts +4 -0
- package/cjs/utils/vue/index.js +1 -1
- package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/defineProperty.mjs +12 -0
- package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPrimitive.mjs +14 -0
- package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.mjs +9 -0
- package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/typeof.mjs +11 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +7 -8
- package/es/_virtual/_rolldown/runtime.mjs +11 -0
- package/es/components/button/index.d.ts +38 -12
- package/es/components/button/index.mjs +9 -7
- package/es/components/button/src/button-group.mjs +5 -0
- package/es/components/button/src/button-group.vue_vue_type_script_setup_true_lang.mjs +25 -0
- package/es/components/button/src/button.mjs +5 -0
- package/es/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +140 -0
- package/es/components/button/src/constants.d.ts +4 -4
- package/es/components/button/src/constants.mjs +20 -5
- package/es/components/button/src/types.d.ts +20 -4
- package/es/components/button/style/index.mjs +2 -0
- package/es/components/button-group/style/css.d.ts +0 -0
- package/es/components/button-group/style/index.d.ts +0 -0
- package/es/components/button-group/style/index.mjs +2 -0
- package/es/components/colors/index.mjs +13 -16
- package/es/components/colors/src/colors.mjs +5 -0
- package/es/components/colors/src/colors.vue_vue_type_script_setup_true_lang.mjs +21 -0
- package/es/components/colors/src/neutral-color.mjs +5 -0
- package/es/components/colors/src/neutral-color.vue_vue_type_script_setup_true_lang.mjs +103 -0
- package/es/components/colors/src/primary-color.mjs +5 -0
- package/es/components/colors/src/primary-color.vue_vue_type_script_setup_true_lang.mjs +38 -0
- package/es/components/colors/src/secondary-color.mjs +5 -0
- package/es/components/colors/src/secondary-color.vue_vue_type_script_setup_true_lang.mjs +56 -0
- package/es/components/colors/style/index.mjs +2 -0
- package/es/components/filter-panel/index.d.ts +25 -29
- package/es/components/filter-panel/index.mjs +7 -7
- package/es/components/filter-panel/src/filter-panel.mjs +5 -0
- package/es/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.mjs +130 -0
- package/es/components/filter-panel/src/types.d.ts +1 -2
- package/es/components/filter-panel/style/index.mjs +2 -0
- package/es/components/index.d.ts +2 -0
- package/es/components/index.mjs +32 -18
- package/es/components/input/index.d.ts +1 -1
- package/es/components/input/index.mjs +7 -7
- package/es/components/input/src/input.mjs +5 -0
- package/es/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs +21 -0
- package/es/components/package.mjs +4 -0
- package/es/components/popover/index.d.ts +21 -0
- package/es/components/popover/index.mjs +7 -0
- package/es/components/popover/src/popover.mjs +5 -0
- package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +164 -0
- package/es/components/popover/src/types.d.ts +4 -0
- package/es/components/popover/style/css.d.ts +0 -0
- package/es/components/popover/style/index.d.ts +0 -0
- package/es/components/svg-icon/index.d.ts +1 -1
- package/es/components/svg-icon/index.mjs +7 -7
- package/es/components/svg-icon/src/svg-icon.mjs +5 -0
- package/es/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +52 -0
- package/es/components/svg-icon/src/types.d.ts +3 -2
- package/es/components/svg-icon/style/index.mjs +2 -0
- package/es/components/tabs/index.d.ts +2 -2
- package/es/components/tabs/index.mjs +7 -7
- package/es/components/tabs/src/tabs.mjs +11 -0
- package/es/components/tooltip/index.d.ts +106 -0
- package/es/components/tooltip/index.mjs +7 -0
- package/es/components/tooltip/src/constants.d.ts +7 -0
- package/es/components/tooltip/src/constants.mjs +13 -0
- package/es/components/tooltip/src/content.mjs +5 -0
- package/es/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.mjs +158 -0
- package/es/components/tooltip/src/tooltip.mjs +5 -0
- package/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +258 -0
- package/es/components/tooltip/src/types.d.ts +98 -0
- package/es/components/tooltip/src/use-emit.d.ts +14 -0
- package/es/components/tooltip/src/use-emit.mjs +17 -0
- package/es/components/tooltip/src/use-tooltip.d.ts +9 -0
- package/es/components/tooltip/src/use-tooltip.mjs +103 -0
- package/es/components/tooltip/style/css.d.ts +0 -0
- package/es/components/tooltip/style/index.d.ts +0 -0
- package/es/composables/index.d.ts +7 -5
- package/es/composables/index.mjs +9 -0
- package/es/composables/use-date-format/index.mjs +20 -0
- package/es/composables/use-draggable/index.mjs +61 -0
- package/es/composables/use-namespace/index.d.ts +8 -7
- package/es/composables/use-namespace/index.mjs +21 -20
- package/es/composables/{useOnceFn.d.ts → use-once-fn/index.d.ts} +1 -1
- package/es/composables/use-once-fn/index.mjs +30 -0
- package/es/composables/use-theme/index.d.ts +7 -0
- package/es/composables/use-theme/index.mjs +23 -0
- package/es/composables/use-time-nodes/index.mjs +25 -0
- package/es/composables/use-waterfall-layout/index.mjs +46 -0
- package/es/composables/use-z-index/index.d.ts +11 -0
- package/es/composables/use-z-index/index.mjs +17 -0
- package/es/constants/svgLoading.mjs +4 -39
- package/es/directives/index.mjs +4 -0
- package/es/directives/vDraggable.mjs +13 -12
- package/es/directives/vResizable.mjs +115 -115
- package/es/directives/vSvgLoading.mjs +46 -47
- package/es/index.d.ts +1207 -47
- package/es/index.mjs +44 -78
- package/es/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +276 -0
- package/es/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +322 -0
- package/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +99 -0
- package/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +101 -0
- package/es/node_modules/.pnpm/@floating-ui_vue@2.0.1_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +111 -0
- package/es/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +450 -119
- package/es/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +119 -22
- package/es/rappel-ui/resolver.d.ts +3 -1
- package/es/rappel-ui/resolver.mjs +16 -17
- package/es/svg-icons/constants.d.ts +3 -0
- package/es/svg-icons/constants.mjs +114 -0
- package/es/svg-icons/index.d.ts +1010 -0
- package/es/svg-icons/index.mjs +72 -0
- package/es/svg-icons/types.d.ts +5 -0
- package/es/theme-chalk/src/base.css +1 -1
- package/es/theme-chalk/src/button-group.css +1 -0
- package/es/theme-chalk/src/button.css +1 -1
- package/es/theme-chalk/src/colors.css +1 -1
- package/es/theme-chalk/src/filter-panel.css +1 -1
- package/es/theme-chalk/src/svg-icon.css +1 -1
- package/es/types/common.d.ts +1 -0
- package/es/types/component.d.ts +1 -0
- package/es/types/event.d.ts +1 -0
- package/es/types/index.d.ts +4 -0
- package/es/types/theme.d.ts +1 -0
- package/es/utils/index.mjs +3 -0
- package/es/utils/util.d.ts +33 -6
- package/es/utils/util.mjs +198 -151
- package/es/utils/vue/index.d.ts +4 -0
- package/es/utils/vue/index.mjs +33 -32
- package/package.json +2 -2
- package/theme-chalk/base.css +131 -54
- package/theme-chalk/css-vars/_button-group.css +15 -0
- package/theme-chalk/css-vars/_button.css +6 -26
- package/theme-chalk/css-vars/_colors.css +9 -27
- package/theme-chalk/css-vars/_tooltip.css +15 -0
- package/theme-chalk/function/_button.css +6 -26
- package/theme-chalk/function/index.css +6 -26
- package/theme-chalk/index.css +795 -222
- package/theme-chalk/mixins/_base.css +15 -0
- package/theme-chalk/mixins/_button.css +7 -24
- package/theme-chalk/mixins/_tooltip.css +18 -0
- package/theme-chalk/mixins/index.css +7 -24
- package/theme-chalk/re-button-group.css +68 -0
- package/theme-chalk/re-button.css +556 -192
- package/theme-chalk/re-colors.css +10 -23
- package/theme-chalk/re-filter-panel.css +7 -24
- package/theme-chalk/re-popover.css +30 -0
- package/theme-chalk/re-svg-icon.css +7 -24
- package/theme-chalk/re-tooltip.css +62 -0
- package/theme-chalk/root-vars.css +121 -52
- package/theme-chalk/src/base.scss +16 -14
- package/theme-chalk/src/button-group.scss +63 -0
- package/theme-chalk/src/button.scss +50 -21
- package/theme-chalk/src/colors.scss +9 -1
- package/theme-chalk/src/css-vars/_button-group.scss +12 -0
- package/theme-chalk/src/css-vars/_button.scss +44 -3
- package/theme-chalk/src/css-vars/_colors.scss +55 -12
- package/theme-chalk/src/css-vars/_namespace.scss +3 -1
- package/theme-chalk/src/css-vars/_tooltip.scss +23 -0
- package/theme-chalk/src/filter-panel.scss +1 -1
- package/theme-chalk/src/function/index.scss +55 -47
- package/theme-chalk/src/index.scss +8 -5
- package/theme-chalk/src/mixins/_base.scss +14 -0
- package/theme-chalk/src/mixins/_button.scss +135 -55
- package/theme-chalk/src/mixins/_tooltip.scss +37 -0
- package/theme-chalk/src/mixins/index.scss +27 -3
- package/theme-chalk/src/popover.scss +17 -0
- package/theme-chalk/src/root-vars.scss +7 -0
- package/theme-chalk/src/svg-icon.scss +1 -1
- package/theme-chalk/src/tooltip.scss +61 -0
- package/umd/index.js +10 -11
- package/cjs/components/button/src/button.d.ts +0 -3
- package/cjs/components/button/src/button.vue.js +0 -1
- package/cjs/components/button/src/button.vue2.js +0 -1
- package/cjs/components/colors/src/colors.vue.js +0 -1
- package/cjs/components/colors/src/colors.vue2.js +0 -1
- package/cjs/components/colors/src/neutral-color.vue.js +0 -1
- package/cjs/components/colors/src/neutral-color.vue2.js +0 -1
- package/cjs/components/colors/src/primary-color.vue.js +0 -1
- package/cjs/components/colors/src/primary-color.vue2.js +0 -1
- package/cjs/components/colors/src/secondary-color.vue.js +0 -1
- package/cjs/components/colors/src/secondary-color.vue2.js +0 -1
- package/cjs/components/filter-panel/src/filter-panel.vue.js +0 -1
- package/cjs/components/filter-panel/src/filter-panel.vue2.js +0 -1
- package/cjs/components/input/src/input.vue.js +0 -1
- package/cjs/components/input/src/input.vue2.js +0 -1
- package/cjs/components/svg-icon/src/svg-icon.vue.js +0 -1
- package/cjs/components/svg-icon/src/svg-icon.vue2.js +0 -1
- package/cjs/components/tabs/src/tabs.vue.js +0 -1
- package/cjs/composables/useDateFormat.js +0 -1
- package/cjs/composables/useDraggable.js +0 -1
- package/cjs/composables/useOnceFn.js +0 -1
- package/cjs/composables/useTimeNodes.js +0 -1
- package/cjs/composables/useWaterFallLayout.js +0 -1
- package/cjs/package.json.js +0 -1
- package/es/components/button/src/button.d.ts +0 -3
- package/es/components/button/src/button.vue.mjs +0 -74
- package/es/components/button/src/button.vue2.mjs +0 -4
- package/es/components/colors/src/colors.vue.mjs +0 -21
- package/es/components/colors/src/colors.vue2.mjs +0 -4
- package/es/components/colors/src/neutral-color.vue.mjs +0 -199
- package/es/components/colors/src/neutral-color.vue2.mjs +0 -4
- package/es/components/colors/src/primary-color.vue.mjs +0 -38
- package/es/components/colors/src/primary-color.vue2.mjs +0 -4
- package/es/components/colors/src/secondary-color.vue.mjs +0 -61
- package/es/components/colors/src/secondary-color.vue2.mjs +0 -4
- package/es/components/filter-panel/src/filter-panel.vue.mjs +0 -158
- package/es/components/filter-panel/src/filter-panel.vue2.mjs +0 -4
- package/es/components/input/src/input.vue.mjs +0 -15
- package/es/components/input/src/input.vue2.mjs +0 -4
- package/es/components/svg-icon/src/svg-icon.vue.mjs +0 -33
- package/es/components/svg-icon/src/svg-icon.vue2.mjs +0 -4
- package/es/components/tabs/src/tabs.vue.mjs +0 -17
- package/es/composables/useDateFormat.mjs +0 -20
- package/es/composables/useDraggable.mjs +0 -55
- package/es/composables/useOnceFn.mjs +0 -32
- package/es/composables/useTimeNodes.mjs +0 -24
- package/es/composables/useWaterFallLayout.mjs +0 -51
- package/es/package.json.mjs +0 -4
- package/global.d.ts +0 -7
- package/theme-chalk/pu-button.css +0 -446
- package/theme-chalk/src/common/_function.scss +0 -46
- /package/cjs/composables/{useDateFormat.d.ts → use-date-format/index.d.ts} +0 -0
- /package/cjs/composables/{useDraggable.d.ts → use-draggable/index.d.ts} +0 -0
- /package/cjs/composables/{useTimeNodes.d.ts → use-time-nodes/index.d.ts} +0 -0
- /package/cjs/composables/{useWaterFallLayout.d.ts → use-waterfall-layout/index.d.ts} +0 -0
- /package/es/composables/{useDateFormat.d.ts → use-date-format/index.d.ts} +0 -0
- /package/es/composables/{useDraggable.d.ts → use-draggable/index.d.ts} +0 -0
- /package/es/composables/{useTimeNodes.d.ts → use-time-nodes/index.d.ts} +0 -0
- /package/es/composables/{useWaterFallLayout.d.ts → use-waterfall-layout/index.d.ts} +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
function Y(t, o) {
|
|
2
|
-
const n = t.getFullYear(), r = t.getMonth() + 1, s = t.getDate(), g = t.getHours(), S = t.getMinutes(), i = t.getSeconds(), e = {
|
|
3
|
-
YYYY: String(n),
|
|
4
|
-
YY: String(n).substring(2),
|
|
5
|
-
MM: String(r).padStart(2, "0"),
|
|
6
|
-
M: String(r),
|
|
7
|
-
DD: String(s).padStart(2, "0"),
|
|
8
|
-
D: String(s),
|
|
9
|
-
HH: String(g).padStart(2, "0"),
|
|
10
|
-
H: String(g),
|
|
11
|
-
mm: String(S).padStart(2, "0"),
|
|
12
|
-
m: String(S),
|
|
13
|
-
ss: String(i).padStart(2, "0"),
|
|
14
|
-
s: String(i)
|
|
15
|
-
};
|
|
16
|
-
return o.replace(/(YYYY|YY|MM|M|DD|D|HH|H|mm|m|ss|s)/g, (a) => e[a]);
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
Y as useDateFormat
|
|
20
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
function z(r, w) {
|
|
2
|
-
if (!r)
|
|
3
|
-
return { updatePos: () => {
|
|
4
|
-
}, cleanup: () => {
|
|
5
|
-
} };
|
|
6
|
-
const o = Object.assign({}, {
|
|
7
|
-
preventDefault: !0,
|
|
8
|
-
customHandler: null,
|
|
9
|
-
autoTopHandler: !1,
|
|
10
|
-
topHandlerHeight: 20,
|
|
11
|
-
isAllHandler: !0
|
|
12
|
-
}, w || {}), h = () => {
|
|
13
|
-
const e = document.createElement("div");
|
|
14
|
-
return e.style.cssText = `user-select:none;height: ${o.topHandlerHeight}px; z-index:3000;cursor: move; position: absolute; top: 0; left: 0;right:0;background-color: transparent;opacity: 1;`, e.classList.add("v-draggable-top-handler"), r.appendChild(e), e;
|
|
15
|
-
}, s = o.customHandler ? o.customHandler : o.autoTopHandler ? h() : r;
|
|
16
|
-
let d = !1, m = 0, v = 0, l = 0, c = 0, f = 0, g = 0, E = 0, L = 0;
|
|
17
|
-
const H = (e) => window.getComputedStyle(e).transform, T = (e) => {
|
|
18
|
-
const t = H(e);
|
|
19
|
-
if (t && t !== "none") {
|
|
20
|
-
const { e: n, f: D, m41: M, m42: A } = new DOMMatrix(t);
|
|
21
|
-
return {
|
|
22
|
-
x: n || M || 0,
|
|
23
|
-
y: D || A || 0
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
return { x: 0, y: 0 };
|
|
27
|
-
}, i = () => {
|
|
28
|
-
const e = r.getBoundingClientRect(), { x: t, y: n } = T(r);
|
|
29
|
-
l = t, c = n, f = -e.left + t, g = -e.top + n, E = window.innerWidth - e.right + t, L = window.innerHeight - e.bottom + n;
|
|
30
|
-
}, x = (e) => {
|
|
31
|
-
const t = e.target;
|
|
32
|
-
return !t || t.isContentEditable || t.closest(
|
|
33
|
-
'input, textarea, button, select, a,[contenteditable], [contenteditable="true"]'
|
|
34
|
-
) || ["TEXTAREA", "INPUT", "BUTTON", "A", "SELECT"].includes(t?.tagName) ? !1 : !!o.isAllHandler || t === s;
|
|
35
|
-
}, u = (e) => {
|
|
36
|
-
x(e) && (d = !0, o.preventDefault && e.preventDefault(), i(), m = e.clientX - l, v = e.clientY - c, document.removeEventListener("pointermove", p), document.removeEventListener("pointerup", a), document.removeEventListener("pointercancel", a), document.addEventListener("pointermove", p), document.addEventListener("pointerup", a), document.addEventListener("pointercancel", a));
|
|
37
|
-
}, p = (e) => {
|
|
38
|
-
if (!d) return;
|
|
39
|
-
let t = e.clientX - m, n = e.clientY - v;
|
|
40
|
-
t < l ? t = Math.max(t, f) : t = Math.min(t, E), n < c ? n = Math.max(n, g) : n = Math.min(n, L), r.style.transform = `translate(${t}px, ${n}px)`, l = t, c = n;
|
|
41
|
-
}, a = () => {
|
|
42
|
-
d = !1, document.removeEventListener("pointermove", p), document.removeEventListener("pointerup", a), document.removeEventListener("pointercancel", a);
|
|
43
|
-
}, b = () => {
|
|
44
|
-
if (a(), s.removeEventListener("pointerdown", u), window.removeEventListener("resize", i), o.autoTopHandler && !o.customHandler) {
|
|
45
|
-
const e = r.querySelector(".v-draggable-top-handler");
|
|
46
|
-
e && e.remove();
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
i(), s.removeEventListener("pointerdown", u), s.addEventListener("pointerdown", u), window.removeEventListener("resize", i), window.addEventListener("resize", i);
|
|
50
|
-
const y = r._cleanup = b;
|
|
51
|
-
return { updatePos: i, cleanup: y };
|
|
52
|
-
}
|
|
53
|
-
export {
|
|
54
|
-
z as useDraggable
|
|
55
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
class n {
|
|
2
|
-
res;
|
|
3
|
-
isFetching;
|
|
4
|
-
isSuccess;
|
|
5
|
-
queues;
|
|
6
|
-
constructor() {
|
|
7
|
-
this.res = null, this.isFetching = !1, this.isSuccess = !1, this.queues = [];
|
|
8
|
-
}
|
|
9
|
-
useOnceFn(e, ...s) {
|
|
10
|
-
return new Promise((c) => {
|
|
11
|
-
if (this.isSuccess) {
|
|
12
|
-
c(this.res);
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
this.queues.push(c), this.isFetching || (this.isFetching = !0, Promise.resolve(e(...s)).then((u) => {
|
|
16
|
-
this.res = u, this.loopQueues(), this.isSuccess = !0;
|
|
17
|
-
}));
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
loopQueues() {
|
|
21
|
-
for (; this.queues.length > 0; )
|
|
22
|
-
this.queues.shift()?.(this.res);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
const i = {};
|
|
26
|
-
function h(t, ...e) {
|
|
27
|
-
const s = t.toString().replace(/[^a-zA-Z]/g, "");
|
|
28
|
-
return i[s] || (i[s] = new n()), i[s].useOnceFn(t, ...e);
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
h as useOnceFn
|
|
32
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { useDateFormat as N } from "./useDateFormat.mjs";
|
|
2
|
-
import "vue";
|
|
3
|
-
function F(d = "00:00", a = "23:00", m = "02:00", h = "HH:mm") {
|
|
4
|
-
const s = (e) => {
|
|
5
|
-
const [t, n, o] = e.split(":").map(Number);
|
|
6
|
-
return [t || 0, n || 0, o || 0];
|
|
7
|
-
}, i = (e) => {
|
|
8
|
-
const [t, n, o] = s(e), u = /* @__PURE__ */ new Date();
|
|
9
|
-
return new Date(u.getFullYear(), u.getMonth() + 1, u.getDate(), t, n, o);
|
|
10
|
-
}, w = (e) => N(e, h), T = (e) => {
|
|
11
|
-
const [t, n, o] = s(m);
|
|
12
|
-
return new Date(e.getTime() + t * 36e5 + n * 6e4 + o * 1e3);
|
|
13
|
-
}, c = [], [g, p, l] = s(m);
|
|
14
|
-
if (g === 0 && p === 0 && l === 0)
|
|
15
|
-
throw new Error("时间步长不能为0");
|
|
16
|
-
let r = i(d);
|
|
17
|
-
const D = i(a);
|
|
18
|
-
for (; r <= D; )
|
|
19
|
-
c.push(w(r)), r = T(r);
|
|
20
|
-
return { timeNodes: c };
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
F as useTimeNodes
|
|
24
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ref as o, watch as b, nextTick as F } from "vue";
|
|
2
|
-
function A(a, C) {
|
|
3
|
-
const n = o(3), d = o(2), u = o(2), i = o("#F5F8F8"), r = o("#FFFFFF"), x = o("top 300ms ease-in-out, left 300ms ease-in-out"), p = o(0), c = o(0), v = o(0), m = (t) => document.querySelectorAll(t || C), I = () => {
|
|
4
|
-
a.value.style.position = "relative";
|
|
5
|
-
}, W = () => {
|
|
6
|
-
I(), p.value = a.value.clientWidth;
|
|
7
|
-
}, w = () => {
|
|
8
|
-
v.value = (p.value - u.value * (n.value - 1)) / n.value;
|
|
9
|
-
}, T = (t) => {
|
|
10
|
-
const e = t % n.value;
|
|
11
|
-
return e === 0 ? 0 : e * (v.value + u.value);
|
|
12
|
-
}, f = (t) => {
|
|
13
|
-
const { style: e, offsetHeight: s } = t;
|
|
14
|
-
return parseFloat(e.top) + s + d.value;
|
|
15
|
-
}, B = (t, e) => t >= n.value ? f(e[t - n.value]) : 0, H = (t) => {
|
|
16
|
-
const e = f(t);
|
|
17
|
-
e > c.value && (c.value = e, a.value.style.height = e + "px");
|
|
18
|
-
}, h = o("is-dealed"), L = (t = !1) => {
|
|
19
|
-
const e = m(), s = m("." + h.value);
|
|
20
|
-
let g = 0;
|
|
21
|
-
s.length > 0 && (g = s.length), t && (g = 0, c.value = 0);
|
|
22
|
-
for (let l = g; l < e.length; l++)
|
|
23
|
-
e[l].style.position = "absolute", e[l].style.transition = x.value, e[l].style.width = v.value + "px", e[l].style.backgroundColor = S(l), e[l].style.left = T(l) + "px", e[l].style.top = B(l, e) + "px", e[l].classList.add(h.value), H(e[l]);
|
|
24
|
-
}, S = (t) => {
|
|
25
|
-
const e = t + 1;
|
|
26
|
-
return n.value % 2 === 0 ? e % 2 === 0 ? r.value : i.value : e % n.value !== 0 && e % n.value % 2 === 0 ? r.value : i.value;
|
|
27
|
-
}, y = (t = !1) => {
|
|
28
|
-
W(), w(), F(() => {
|
|
29
|
-
L(t);
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
return b(
|
|
33
|
-
() => n.value,
|
|
34
|
-
() => {
|
|
35
|
-
F(() => {
|
|
36
|
-
y(!0);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
), {
|
|
40
|
-
init: y,
|
|
41
|
-
column: n,
|
|
42
|
-
rowSpacing: d,
|
|
43
|
-
columnSpacing: u,
|
|
44
|
-
oddColumnBgColor: i,
|
|
45
|
-
evenColumnBgColor: r,
|
|
46
|
-
getItems: m
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export {
|
|
50
|
-
A as useWaterFallLayout
|
|
51
|
-
};
|
package/es/package.json.mjs
DELETED
package/global.d.ts
DELETED
|
@@ -1,446 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
/**
|
|
3
|
-
* 将十六进制颜色转换为RGB颜色
|
|
4
|
-
* @param $hex 十六进制颜色值
|
|
5
|
-
* @returns RGB颜色值
|
|
6
|
-
* color.channel($color, "red", $space: rgb)
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* 将RGB颜色转换为十六进制颜色
|
|
10
|
-
* @param $value RGB颜色值
|
|
11
|
-
* @returns 十六进制颜色值
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
|
-
* 将RGB颜色转换为十六进制颜色
|
|
15
|
-
* @param $color RGB颜色值
|
|
16
|
-
* @returns 十六进制颜色值
|
|
17
|
-
*/
|
|
18
|
-
/**
|
|
19
|
-
* 创建一个等效的透明度颜色,并返回一个等效的透明度颜色
|
|
20
|
-
* @param $color 颜色
|
|
21
|
-
* @param $opacity 透明度,默认值为1
|
|
22
|
-
* @returns 一个等效的透明度颜色
|
|
23
|
-
*/
|
|
24
|
-
/**
|
|
25
|
-
* 创建一个变暗的颜色,并返回一个变暗的颜色
|
|
26
|
-
* @param $color 颜色
|
|
27
|
-
* @param $factor 颜色变暗的度量,默认为0.15
|
|
28
|
-
* @returns 一个变暗的颜色
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* 创建层级颜色
|
|
32
|
-
* @param $base-color 基础颜色
|
|
33
|
-
* @param $darkness 变暗的度量,默认为0.15
|
|
34
|
-
* @returns 主题色映射
|
|
35
|
-
*/
|
|
36
|
-
.pu-button {
|
|
37
|
-
display: inline-flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
justify-content: center;
|
|
40
|
-
text-align: center;
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
white-space: nowrap;
|
|
43
|
-
box-sizing: border-box;
|
|
44
|
-
transition: all 0.3s ease;
|
|
45
|
-
-webkit-user-select: none;
|
|
46
|
-
user-select: none;
|
|
47
|
-
outline: none;
|
|
48
|
-
vertical-align: middle;
|
|
49
|
-
height: 32px;
|
|
50
|
-
line-height: 1;
|
|
51
|
-
-webkit-appearance: none;
|
|
52
|
-
appearance: none;
|
|
53
|
-
position: relative;
|
|
54
|
-
padding: 8px 16px;
|
|
55
|
-
border-radius: 4px;
|
|
56
|
-
border-width: 1px;
|
|
57
|
-
border-style: solid;
|
|
58
|
-
background-color: var(--pu-button-bgcolor);
|
|
59
|
-
color: var(--pu-button-color);
|
|
60
|
-
border-color: var(--pu-button-border-color);
|
|
61
|
-
}
|
|
62
|
-
.pu-button__content {
|
|
63
|
-
display: inline-flex;
|
|
64
|
-
align-items: center;
|
|
65
|
-
}
|
|
66
|
-
@keyframes rotating {
|
|
67
|
-
from {
|
|
68
|
-
transform: rotate(0deg);
|
|
69
|
-
}
|
|
70
|
-
to {
|
|
71
|
-
transform: rotate(360deg);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
.pu-button__loading {
|
|
75
|
-
animation: rotating 2s linear infinite;
|
|
76
|
-
}
|
|
77
|
-
.pu-button__loading + * {
|
|
78
|
-
margin-left: 4px;
|
|
79
|
-
}
|
|
80
|
-
.pu-button__icon {
|
|
81
|
-
margin-right: 4px;
|
|
82
|
-
width: 1em;
|
|
83
|
-
height: 1em;
|
|
84
|
-
}
|
|
85
|
-
.pu-button.is-link {
|
|
86
|
-
padding: 2px;
|
|
87
|
-
height: auto;
|
|
88
|
-
border-color: var(--pu-color-fill-transparent);
|
|
89
|
-
background-color: var(--pu-color-fill-transparent);
|
|
90
|
-
text-decoration: underline;
|
|
91
|
-
}
|
|
92
|
-
.pu-button.is-plain:hover:not(.is-disabled) {
|
|
93
|
-
border-color: var(--pu-color-primary-base);
|
|
94
|
-
background-color: var(--pu-color-fill-blank);
|
|
95
|
-
}
|
|
96
|
-
.pu-button.is-round {
|
|
97
|
-
border-radius: 20px;
|
|
98
|
-
}
|
|
99
|
-
.pu-button.is-circle {
|
|
100
|
-
width: 32px;
|
|
101
|
-
border-radius: 50%;
|
|
102
|
-
padding: 8px;
|
|
103
|
-
}
|
|
104
|
-
.pu-button:active:not(.is-disabled) {
|
|
105
|
-
transform: scale(0.97);
|
|
106
|
-
transition: transform 0s ease;
|
|
107
|
-
}
|
|
108
|
-
.pu-button:focus-visible {
|
|
109
|
-
outline: none;
|
|
110
|
-
}
|
|
111
|
-
.pu-button + .pu-button {
|
|
112
|
-
margin-left: 10px;
|
|
113
|
-
}
|
|
114
|
-
.pu-button {
|
|
115
|
-
--pu-button-bgcolor: var(--pu-color-fill-blank);
|
|
116
|
-
--pu-button-color: var(--pu-color-text-secondary);
|
|
117
|
-
--pu-button-border-color: var(--pu-color-border-base);
|
|
118
|
-
}
|
|
119
|
-
.pu-button:hover:not(.is-disabled) {
|
|
120
|
-
--pu-button-bgcolor: var(--pu-color-primary-shade-1);
|
|
121
|
-
--pu-button-color: var(--pu-color-primary-base);
|
|
122
|
-
--pu-button-border-color: var(--pu-color-primary-shade-4);
|
|
123
|
-
}
|
|
124
|
-
.pu-button.is-disabled {
|
|
125
|
-
cursor: not-allowed;
|
|
126
|
-
background-color: var(--pu-color-fill-blank);
|
|
127
|
-
border-color: var(--pu-color-border-base);
|
|
128
|
-
color: var(--pu-color-text-disabled);
|
|
129
|
-
}
|
|
130
|
-
.pu-button.is-link {
|
|
131
|
-
--pu-button-color: var(--pu-color-text-secondary);
|
|
132
|
-
}
|
|
133
|
-
.pu-button.is-link:hover:not(.is-disabled) {
|
|
134
|
-
--pu-button-color: var(--pu-color-primary-base);
|
|
135
|
-
--pu-button-bgcolor: transparent;
|
|
136
|
-
--pu-button-border-color: transparent;
|
|
137
|
-
}
|
|
138
|
-
.pu-button.is-link.is-disabled {
|
|
139
|
-
background-color: var(--pu-color-fill-blank);
|
|
140
|
-
border-color: var(--pu-color-fill-blank);
|
|
141
|
-
color: var(--pu-color-text-disabled);
|
|
142
|
-
}
|
|
143
|
-
.pu-button.is-loading:before {
|
|
144
|
-
z-index: 1;
|
|
145
|
-
content: "";
|
|
146
|
-
position: absolute;
|
|
147
|
-
top: -1px;
|
|
148
|
-
left: -1px;
|
|
149
|
-
right: -1px;
|
|
150
|
-
bottom: -1px;
|
|
151
|
-
pointer-events: none;
|
|
152
|
-
border-radius: inherit;
|
|
153
|
-
background-color: rgba(255, 255, 255, 0.5);
|
|
154
|
-
}
|
|
155
|
-
.pu-button--primary {
|
|
156
|
-
--pu-button-bgcolor: var(--pu-color-primary-base);
|
|
157
|
-
--pu-button-color: var(--pu-color-text-lightest);
|
|
158
|
-
--pu-button-border-color: var(--pu-color-primary-base);
|
|
159
|
-
}
|
|
160
|
-
.pu-button--primary:hover:not(.is-disabled) {
|
|
161
|
-
--pu-button-bgcolor: var(--pu-color-primary-hover);
|
|
162
|
-
--pu-button-color: var(--pu-color-text-lightest);
|
|
163
|
-
--pu-button-border-color: var(--pu-color-primary-hover);
|
|
164
|
-
}
|
|
165
|
-
.pu-button--primary.is-disabled {
|
|
166
|
-
cursor: not-allowed;
|
|
167
|
-
background-color: var(--pu-color-primary-shade-4);
|
|
168
|
-
border-color: var(--pu-color-primary-shade-4);
|
|
169
|
-
color: var(--pu-color-fill-blank);
|
|
170
|
-
}
|
|
171
|
-
.pu-button--primary.is-link {
|
|
172
|
-
--pu-button-color: var(--pu-color-primary-base);
|
|
173
|
-
}
|
|
174
|
-
.pu-button--primary.is-link:hover:not(.is-disabled) {
|
|
175
|
-
--pu-button-color: var(--pu-color-primary-hover);
|
|
176
|
-
--pu-button-bgcolor: transparent;
|
|
177
|
-
--pu-button-border-color: transparent;
|
|
178
|
-
}
|
|
179
|
-
.pu-button--primary.is-link.is-disabled {
|
|
180
|
-
background-color: var(--pu-color-fill-blank);
|
|
181
|
-
border-color: var(--pu-color-fill-blank);
|
|
182
|
-
color: var(--pu-color-primary-shade-4);
|
|
183
|
-
}
|
|
184
|
-
.pu-button--primary.is-plain {
|
|
185
|
-
background-color: var(--pu-color-primary-shade-1);
|
|
186
|
-
color: var(--pu-color-primary-base);
|
|
187
|
-
border-color: var(--pu-color-primary-shade-6);
|
|
188
|
-
}
|
|
189
|
-
.pu-button--primary.is-plain:hover:not(.is-disabled) {
|
|
190
|
-
color: var(--pu-color-fill-blank);
|
|
191
|
-
background-color: var(--pu-color-primary-base);
|
|
192
|
-
border-color: var(--pu-color-primary-base);
|
|
193
|
-
}
|
|
194
|
-
.pu-button--primary.is-plain.is-disabled {
|
|
195
|
-
background-color: var(--pu-color-primary-shade-1);
|
|
196
|
-
color: var(--pu-color-primary-shade-4);
|
|
197
|
-
border-color: var(--pu-color-primary-shade-4);
|
|
198
|
-
}
|
|
199
|
-
.pu-button--primary.is-loading:before {
|
|
200
|
-
z-index: 1;
|
|
201
|
-
content: "";
|
|
202
|
-
position: absolute;
|
|
203
|
-
top: -1px;
|
|
204
|
-
left: -1px;
|
|
205
|
-
right: -1px;
|
|
206
|
-
bottom: -1px;
|
|
207
|
-
pointer-events: none;
|
|
208
|
-
border-radius: inherit;
|
|
209
|
-
background-color: rgba(255, 255, 255, 0.5);
|
|
210
|
-
}
|
|
211
|
-
.pu-button--success {
|
|
212
|
-
--pu-button-bgcolor: var(--pu-color-success-base);
|
|
213
|
-
--pu-button-color: var(--pu-color-text-lightest);
|
|
214
|
-
--pu-button-border-color: var(--pu-color-success-base);
|
|
215
|
-
}
|
|
216
|
-
.pu-button--success:hover:not(.is-disabled) {
|
|
217
|
-
--pu-button-bgcolor: var(--pu-color-success-hover);
|
|
218
|
-
--pu-button-color: var(--pu-color-text-lightest);
|
|
219
|
-
--pu-button-border-color: var(--pu-color-success-hover);
|
|
220
|
-
}
|
|
221
|
-
.pu-button--success.is-disabled {
|
|
222
|
-
cursor: not-allowed;
|
|
223
|
-
background-color: var(--pu-color-success-shade-4);
|
|
224
|
-
border-color: var(--pu-color-success-shade-4);
|
|
225
|
-
color: var(--pu-color-fill-blank);
|
|
226
|
-
}
|
|
227
|
-
.pu-button--success.is-link {
|
|
228
|
-
--pu-button-color: var(--pu-color-success-base);
|
|
229
|
-
}
|
|
230
|
-
.pu-button--success.is-link:hover:not(.is-disabled) {
|
|
231
|
-
--pu-button-color: var(--pu-color-success-hover);
|
|
232
|
-
--pu-button-bgcolor: transparent;
|
|
233
|
-
--pu-button-border-color: transparent;
|
|
234
|
-
}
|
|
235
|
-
.pu-button--success.is-link.is-disabled {
|
|
236
|
-
background-color: var(--pu-color-fill-blank);
|
|
237
|
-
border-color: var(--pu-color-fill-blank);
|
|
238
|
-
color: var(--pu-color-success-shade-4);
|
|
239
|
-
}
|
|
240
|
-
.pu-button--success.is-plain {
|
|
241
|
-
background-color: var(--pu-color-success-shade-1);
|
|
242
|
-
color: var(--pu-color-success-base);
|
|
243
|
-
border-color: var(--pu-color-success-shade-6);
|
|
244
|
-
}
|
|
245
|
-
.pu-button--success.is-plain:hover:not(.is-disabled) {
|
|
246
|
-
color: var(--pu-color-fill-blank);
|
|
247
|
-
background-color: var(--pu-color-success-base);
|
|
248
|
-
border-color: var(--pu-color-success-base);
|
|
249
|
-
}
|
|
250
|
-
.pu-button--success.is-plain.is-disabled {
|
|
251
|
-
background-color: var(--pu-color-success-shade-1);
|
|
252
|
-
color: var(--pu-color-success-shade-4);
|
|
253
|
-
border-color: var(--pu-color-success-shade-4);
|
|
254
|
-
}
|
|
255
|
-
.pu-button--success.is-loading:before {
|
|
256
|
-
z-index: 1;
|
|
257
|
-
content: "";
|
|
258
|
-
position: absolute;
|
|
259
|
-
top: -1px;
|
|
260
|
-
left: -1px;
|
|
261
|
-
right: -1px;
|
|
262
|
-
bottom: -1px;
|
|
263
|
-
pointer-events: none;
|
|
264
|
-
border-radius: inherit;
|
|
265
|
-
background-color: rgba(255, 255, 255, 0.5);
|
|
266
|
-
}
|
|
267
|
-
.pu-button--danger {
|
|
268
|
-
--pu-button-bgcolor: var(--pu-color-danger-base);
|
|
269
|
-
--pu-button-color: var(--pu-color-text-lightest);
|
|
270
|
-
--pu-button-border-color: var(--pu-color-danger-base);
|
|
271
|
-
}
|
|
272
|
-
.pu-button--danger:hover:not(.is-disabled) {
|
|
273
|
-
--pu-button-bgcolor: var(--pu-color-danger-hover);
|
|
274
|
-
--pu-button-color: var(--pu-color-text-lightest);
|
|
275
|
-
--pu-button-border-color: var(--pu-color-danger-hover);
|
|
276
|
-
}
|
|
277
|
-
.pu-button--danger.is-disabled {
|
|
278
|
-
cursor: not-allowed;
|
|
279
|
-
background-color: var(--pu-color-danger-shade-4);
|
|
280
|
-
border-color: var(--pu-color-danger-shade-4);
|
|
281
|
-
color: var(--pu-color-fill-blank);
|
|
282
|
-
}
|
|
283
|
-
.pu-button--danger.is-link {
|
|
284
|
-
--pu-button-color: var(--pu-color-danger-base);
|
|
285
|
-
}
|
|
286
|
-
.pu-button--danger.is-link:hover:not(.is-disabled) {
|
|
287
|
-
--pu-button-color: var(--pu-color-danger-hover);
|
|
288
|
-
--pu-button-bgcolor: transparent;
|
|
289
|
-
--pu-button-border-color: transparent;
|
|
290
|
-
}
|
|
291
|
-
.pu-button--danger.is-link.is-disabled {
|
|
292
|
-
background-color: var(--pu-color-fill-blank);
|
|
293
|
-
border-color: var(--pu-color-fill-blank);
|
|
294
|
-
color: var(--pu-color-danger-shade-4);
|
|
295
|
-
}
|
|
296
|
-
.pu-button--danger.is-plain {
|
|
297
|
-
background-color: var(--pu-color-danger-shade-1);
|
|
298
|
-
color: var(--pu-color-danger-base);
|
|
299
|
-
border-color: var(--pu-color-danger-shade-6);
|
|
300
|
-
}
|
|
301
|
-
.pu-button--danger.is-plain:hover:not(.is-disabled) {
|
|
302
|
-
color: var(--pu-color-fill-blank);
|
|
303
|
-
background-color: var(--pu-color-danger-base);
|
|
304
|
-
border-color: var(--pu-color-danger-base);
|
|
305
|
-
}
|
|
306
|
-
.pu-button--danger.is-plain.is-disabled {
|
|
307
|
-
background-color: var(--pu-color-danger-shade-1);
|
|
308
|
-
color: var(--pu-color-danger-shade-4);
|
|
309
|
-
border-color: var(--pu-color-danger-shade-4);
|
|
310
|
-
}
|
|
311
|
-
.pu-button--danger.is-loading:before {
|
|
312
|
-
z-index: 1;
|
|
313
|
-
content: "";
|
|
314
|
-
position: absolute;
|
|
315
|
-
top: -1px;
|
|
316
|
-
left: -1px;
|
|
317
|
-
right: -1px;
|
|
318
|
-
bottom: -1px;
|
|
319
|
-
pointer-events: none;
|
|
320
|
-
border-radius: inherit;
|
|
321
|
-
background-color: rgba(255, 255, 255, 0.5);
|
|
322
|
-
}
|
|
323
|
-
.pu-button--warning {
|
|
324
|
-
--pu-button-bgcolor: var(--pu-color-warning-base);
|
|
325
|
-
--pu-button-color: var(--pu-color-text-lightest);
|
|
326
|
-
--pu-button-border-color: var(--pu-color-warning-base);
|
|
327
|
-
}
|
|
328
|
-
.pu-button--warning:hover:not(.is-disabled) {
|
|
329
|
-
--pu-button-bgcolor: var(--pu-color-warning-hover);
|
|
330
|
-
--pu-button-color: var(--pu-color-text-lightest);
|
|
331
|
-
--pu-button-border-color: var(--pu-color-warning-hover);
|
|
332
|
-
}
|
|
333
|
-
.pu-button--warning.is-disabled {
|
|
334
|
-
cursor: not-allowed;
|
|
335
|
-
background-color: var(--pu-color-warning-shade-4);
|
|
336
|
-
border-color: var(--pu-color-warning-shade-4);
|
|
337
|
-
color: var(--pu-color-fill-blank);
|
|
338
|
-
}
|
|
339
|
-
.pu-button--warning.is-link {
|
|
340
|
-
--pu-button-color: var(--pu-color-warning-base);
|
|
341
|
-
}
|
|
342
|
-
.pu-button--warning.is-link:hover:not(.is-disabled) {
|
|
343
|
-
--pu-button-color: var(--pu-color-warning-hover);
|
|
344
|
-
--pu-button-bgcolor: transparent;
|
|
345
|
-
--pu-button-border-color: transparent;
|
|
346
|
-
}
|
|
347
|
-
.pu-button--warning.is-link.is-disabled {
|
|
348
|
-
background-color: var(--pu-color-fill-blank);
|
|
349
|
-
border-color: var(--pu-color-fill-blank);
|
|
350
|
-
color: var(--pu-color-warning-shade-4);
|
|
351
|
-
}
|
|
352
|
-
.pu-button--warning.is-plain {
|
|
353
|
-
background-color: var(--pu-color-warning-shade-1);
|
|
354
|
-
color: var(--pu-color-warning-base);
|
|
355
|
-
border-color: var(--pu-color-warning-shade-6);
|
|
356
|
-
}
|
|
357
|
-
.pu-button--warning.is-plain:hover:not(.is-disabled) {
|
|
358
|
-
color: var(--pu-color-fill-blank);
|
|
359
|
-
background-color: var(--pu-color-warning-base);
|
|
360
|
-
border-color: var(--pu-color-warning-base);
|
|
361
|
-
}
|
|
362
|
-
.pu-button--warning.is-plain.is-disabled {
|
|
363
|
-
background-color: var(--pu-color-warning-shade-1);
|
|
364
|
-
color: var(--pu-color-warning-shade-4);
|
|
365
|
-
border-color: var(--pu-color-warning-shade-4);
|
|
366
|
-
}
|
|
367
|
-
.pu-button--warning.is-loading:before {
|
|
368
|
-
z-index: 1;
|
|
369
|
-
content: "";
|
|
370
|
-
position: absolute;
|
|
371
|
-
top: -1px;
|
|
372
|
-
left: -1px;
|
|
373
|
-
right: -1px;
|
|
374
|
-
bottom: -1px;
|
|
375
|
-
pointer-events: none;
|
|
376
|
-
border-radius: inherit;
|
|
377
|
-
background-color: rgba(255, 255, 255, 0.5);
|
|
378
|
-
}
|
|
379
|
-
.pu-button--info {
|
|
380
|
-
--pu-button-bgcolor: var(--pu-color-info-base);
|
|
381
|
-
--pu-button-color: var(--pu-color-text-lightest);
|
|
382
|
-
--pu-button-border-color: var(--pu-color-info-base);
|
|
383
|
-
}
|
|
384
|
-
.pu-button--info:hover:not(.is-disabled) {
|
|
385
|
-
--pu-button-bgcolor: var(--pu-color-info-hover);
|
|
386
|
-
--pu-button-color: var(--pu-color-text-lightest);
|
|
387
|
-
--pu-button-border-color: var(--pu-color-info-hover);
|
|
388
|
-
}
|
|
389
|
-
.pu-button--info.is-disabled {
|
|
390
|
-
cursor: not-allowed;
|
|
391
|
-
background-color: var(--pu-color-info-shade-4);
|
|
392
|
-
border-color: var(--pu-color-info-shade-4);
|
|
393
|
-
color: var(--pu-color-fill-blank);
|
|
394
|
-
}
|
|
395
|
-
.pu-button--info.is-link {
|
|
396
|
-
--pu-button-color: var(--pu-color-info-base);
|
|
397
|
-
}
|
|
398
|
-
.pu-button--info.is-link:hover:not(.is-disabled) {
|
|
399
|
-
--pu-button-color: var(--pu-color-info-hover);
|
|
400
|
-
--pu-button-bgcolor: transparent;
|
|
401
|
-
--pu-button-border-color: transparent;
|
|
402
|
-
}
|
|
403
|
-
.pu-button--info.is-link.is-disabled {
|
|
404
|
-
background-color: var(--pu-color-fill-blank);
|
|
405
|
-
border-color: var(--pu-color-fill-blank);
|
|
406
|
-
color: var(--pu-color-info-shade-4);
|
|
407
|
-
}
|
|
408
|
-
.pu-button--info.is-plain {
|
|
409
|
-
background-color: var(--pu-color-info-shade-1);
|
|
410
|
-
color: var(--pu-color-info-base);
|
|
411
|
-
border-color: var(--pu-color-info-shade-6);
|
|
412
|
-
}
|
|
413
|
-
.pu-button--info.is-plain:hover:not(.is-disabled) {
|
|
414
|
-
color: var(--pu-color-fill-blank);
|
|
415
|
-
background-color: var(--pu-color-info-base);
|
|
416
|
-
border-color: var(--pu-color-info-base);
|
|
417
|
-
}
|
|
418
|
-
.pu-button--info.is-plain.is-disabled {
|
|
419
|
-
background-color: var(--pu-color-info-shade-1);
|
|
420
|
-
color: var(--pu-color-info-shade-4);
|
|
421
|
-
border-color: var(--pu-color-info-shade-4);
|
|
422
|
-
}
|
|
423
|
-
.pu-button--info.is-loading:before {
|
|
424
|
-
z-index: 1;
|
|
425
|
-
content: "";
|
|
426
|
-
position: absolute;
|
|
427
|
-
top: -1px;
|
|
428
|
-
left: -1px;
|
|
429
|
-
right: -1px;
|
|
430
|
-
bottom: -1px;
|
|
431
|
-
pointer-events: none;
|
|
432
|
-
border-radius: inherit;
|
|
433
|
-
background-color: rgba(255, 255, 255, 0.5);
|
|
434
|
-
}
|
|
435
|
-
.pu-button--large {
|
|
436
|
-
padding: 12px 20px;
|
|
437
|
-
}
|
|
438
|
-
.pu-button-- {
|
|
439
|
-
padding: 8px 16px;
|
|
440
|
-
}
|
|
441
|
-
.pu-button--small {
|
|
442
|
-
padding: 6px 12px;
|
|
443
|
-
}
|
|
444
|
-
.pu-button--mini {
|
|
445
|
-
padding: 4px 8px;
|
|
446
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use 'sass:list';
|
|
3
|
-
@use '../css-vars/_namespace.scss' as *;
|
|
4
|
-
|
|
5
|
-
//('color','text','base') => $obj.color.text.base
|
|
6
|
-
@function deepGet($obj, $keys...) {
|
|
7
|
-
$current: $obj;
|
|
8
|
-
@each $key in $keys {
|
|
9
|
-
$current: map.get($current, $key);
|
|
10
|
-
}
|
|
11
|
-
@return $current;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//('color','text','base') => 'color-text-base'
|
|
15
|
-
@function joinStr($args...) {
|
|
16
|
-
$str: list.nth($args, 1);
|
|
17
|
-
@for $i from 1 through list.length($args) {
|
|
18
|
-
@if $i > 1 {
|
|
19
|
-
$str: $str + '-' + list.nth($args, $i);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
@return $str;
|
|
23
|
-
}
|
|
24
|
-
// 'button' => 'pu-button'
|
|
25
|
-
@function namespaceJoinStr($args...) {
|
|
26
|
-
@return deepGet($namespace, 'prefix') + '-' + joinStr($args...);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
//#{$obj.color.text.base}
|
|
30
|
-
@function getScssVar($obj, $keys...) {
|
|
31
|
-
@return #{deepGet($obj, $keys...)};
|
|
32
|
-
}
|
|
33
|
-
// $namespace.prefix's value
|
|
34
|
-
@function getNamespace($name) {
|
|
35
|
-
@return deepGet($namespace, $name);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
//('color','text','base') => '--pu-color-text-base'
|
|
39
|
-
@function getCssVarStr($args...) {
|
|
40
|
-
@return '--' + namespaceJoinStr($args...);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// ('color','text','base') => var(--pu-color-text-base)
|
|
44
|
-
@function getCssVar($args...) {
|
|
45
|
-
@return var(#{getCssVarStr($args...)});
|
|
46
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|