UNPKG

@ark-ui/vue

Version:

A collection of unstyled, accessible UI components for Vue, utilizing state machines for seamless interaction.

36 lines (31 loc) 1.29 kB
'use strict'; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } }); const vue = require('vue'); const factory = require('../factory.cjs'); const usePasswordInputContext = require('./use-password-input-context.cjs'); const useForwardExpose = require('../../utils/use-forward-expose.cjs'); const _sfc_main = /* @__PURE__ */ vue.defineComponent({ __name: "password-input-indicator", props: { fallback: {}, asChild: { type: Boolean } }, setup(__props) { const passwordInput = usePasswordInputContext.usePasswordInputContext(); useForwardExpose.useForwardExpose(); return (_ctx, _cache) => { return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).span, vue.mergeProps(vue.unref(passwordInput).getIndicatorProps(), { "as-child": __props.asChild }), { default: vue.withCtx(() => [ vue.unref(passwordInput).visible ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : vue.renderSlot(_ctx.$slots, "fallback", { key: 1, fallback: __props.fallback }, () => [ vue.createTextVNode(vue.toDisplayString(__props.fallback), 1) ]) ]), _: 3 }, 16, ["as-child"]); }; } }); exports.default = _sfc_main;