radio-group.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var radio = require('./radio.js');
  4. var runtime = require('../../../utils/vue/props/runtime.js');
  5. var index = require('../../../hooks/use-size/index.js');
  6. var index$1 = require('../../../hooks/use-aria/index.js');
  7. const radioGroupProps = runtime.buildProps({
  8. id: {
  9. type: String,
  10. default: void 0
  11. },
  12. size: index.useSizeProp,
  13. disabled: {
  14. type: Boolean,
  15. default: void 0
  16. },
  17. modelValue: {
  18. type: [String, Number, Boolean],
  19. default: void 0
  20. },
  21. fill: {
  22. type: String,
  23. default: ""
  24. },
  25. textColor: {
  26. type: String,
  27. default: ""
  28. },
  29. name: {
  30. type: String,
  31. default: void 0
  32. },
  33. validateEvent: {
  34. type: Boolean,
  35. default: true
  36. },
  37. options: {
  38. type: runtime.definePropType(Array)
  39. },
  40. props: {
  41. type: runtime.definePropType(Object),
  42. default: () => radioDefaultProps
  43. },
  44. type: {
  45. type: String,
  46. values: ["radio", "button"],
  47. default: "radio"
  48. },
  49. ...index$1.useAriaProps(["ariaLabel"])
  50. });
  51. const radioGroupEmits = radio.radioEmits;
  52. const radioDefaultProps = {
  53. label: "label",
  54. value: "value",
  55. disabled: "disabled"
  56. };
  57. exports.radioDefaultProps = radioDefaultProps;
  58. exports.radioGroupEmits = radioGroupEmits;
  59. exports.radioGroupProps = radioGroupProps;
  60. //# sourceMappingURL=radio-group.js.map