radio-group.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  2. const require_runtime = require('../../../utils/vue/props/runtime.js');
  3. const require_index = require('../../../hooks/use-size/index.js');
  4. const require_index$1 = require('../../../hooks/use-aria/index.js');
  5. const require_radio = require('./radio.js');
  6. //#region ../../packages/components/radio/src/radio-group.ts
  7. const radioDefaultProps = {
  8. label: "label",
  9. value: "value",
  10. disabled: "disabled"
  11. };
  12. /**
  13. * @deprecated Removed after 3.0.0, Use `RadioGroupProps` instead.
  14. */
  15. const radioGroupProps = require_runtime.buildProps({
  16. id: {
  17. type: String,
  18. default: void 0
  19. },
  20. size: require_index.useSizeProp,
  21. disabled: {
  22. type: Boolean,
  23. default: void 0
  24. },
  25. modelValue: {
  26. type: [
  27. String,
  28. Number,
  29. Boolean
  30. ],
  31. default: void 0
  32. },
  33. fill: {
  34. type: String,
  35. default: ""
  36. },
  37. textColor: {
  38. type: String,
  39. default: ""
  40. },
  41. name: {
  42. type: String,
  43. default: void 0
  44. },
  45. validateEvent: {
  46. type: Boolean,
  47. default: true
  48. },
  49. options: { type: require_runtime.definePropType(Array) },
  50. props: {
  51. type: require_runtime.definePropType(Object),
  52. default: () => radioDefaultProps
  53. },
  54. type: {
  55. type: String,
  56. values: ["radio", "button"],
  57. default: "radio"
  58. },
  59. ...require_index$1.useAriaProps(["ariaLabel"])
  60. });
  61. const radioGroupEmits = require_radio.radioEmits;
  62. /**
  63. * @description default values for RadioGroupProps
  64. */
  65. const radioGroupPropsDefaults = {
  66. id: void 0,
  67. disabled: void 0,
  68. modelValue: void 0,
  69. fill: "",
  70. textColor: "",
  71. name: void 0,
  72. validateEvent: true,
  73. props: () => radioDefaultProps,
  74. type: "radio"
  75. };
  76. //#endregion
  77. exports.radioDefaultProps = radioDefaultProps;
  78. exports.radioGroupEmits = radioGroupEmits;
  79. exports.radioGroupProps = radioGroupProps;
  80. exports.radioGroupPropsDefaults = radioGroupPropsDefaults;
  81. //# sourceMappingURL=radio-group.js.map