index.js 880 B

123456789101112131415161718192021222324252627282930313233343536
  1. Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
  2. const require_runtime = require("../../utils/vue/props/runtime.js");
  3. let lodash_unified = require("lodash-unified");
  4. //#region ../../packages/hooks/use-aria/index.ts
  5. /**
  6. * @deprecated Removed after 3.0.0, Use `AriaProps` instead.
  7. */
  8. const ariaProps = require_runtime.buildProps({
  9. /**
  10. * @description native `aria-label` attribute
  11. */
  12. ariaLabel: String,
  13. /**
  14. * @description native `aria-orientation` attribute
  15. */
  16. ariaOrientation: {
  17. type: String,
  18. values: [
  19. "horizontal",
  20. "vertical",
  21. "undefined"
  22. ]
  23. },
  24. /**
  25. * @description native `aria-controls` attribute
  26. */
  27. ariaControls: String
  28. });
  29. const useAriaProps = (arias) => {
  30. return (0, lodash_unified.pick)(ariaProps, arias);
  31. };
  32. //#endregion
  33. exports.ariaProps = ariaProps;
  34. exports.useAriaProps = useAriaProps;
  35. //# sourceMappingURL=index.js.map