var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/pro/pisellNumberSelector/example.tsx
var example_exports = {};
__export(example_exports, {
  default: () => example_default
});
module.exports = __toCommonJS(example_exports);
var import_react = __toESM(require("react"));
var import_index = __toESM(require("./index"));
var Example = () => {
  const [value1, setValue1] = (0, import_react.useState)(1);
  const [value2, setValue2] = (0, import_react.useState)(50);
  const [value3, setValue3] = (0, import_react.useState)(99);
  return /* @__PURE__ */ import_react.default.createElement("div", { style: { padding: "20px", display: "flex", flexDirection: "column", gap: "20px" } }, /* @__PURE__ */ import_react.default.createElement("h3", null, "PisellNumberSelector 使用示例"), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("h4", null, "基础用法"), /* @__PURE__ */ import_react.default.createElement(
    import_index.default,
    {
      value: value1,
      onChange: setValue1,
      min: 0,
      max: 10,
      size: "middle"
    }
  ), /* @__PURE__ */ import_react.default.createElement("p", null, "当前值: ", value1)), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("h4", null, "不同尺寸"), /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", gap: "10px", alignItems: "center" } }, /* @__PURE__ */ import_react.default.createElement(
    import_index.default,
    {
      value: value2,
      onChange: setValue2,
      size: "small"
    }
  ), /* @__PURE__ */ import_react.default.createElement(
    import_index.default,
    {
      value: value2,
      onChange: setValue2,
      size: "middle"
    }
  ), /* @__PURE__ */ import_react.default.createElement(
    import_index.default,
    {
      value: value2,
      onChange: setValue2,
      size: "large"
    }
  ))), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("h4", null, "启用价格调整功能"), /* @__PURE__ */ import_react.default.createElement(
    import_index.default,
    {
      value: value3,
      onChange: setValue3,
      min: 0,
      max: 999,
      size: "large",
      enablePriceAdjust: true,
      originValue: 100
    }
  ), /* @__PURE__ */ import_react.default.createElement("p", null, "点击数字可以打开价格调整面板"), /* @__PURE__ */ import_react.default.createElement("p", null, "当前值: ", value3)), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("h4", null, "禁用状态"), /* @__PURE__ */ import_react.default.createElement(
    import_index.default,
    {
      value: 50,
      onChange: () => {
      },
      disabled: true,
      size: "middle"
    }
  )));
};
var example_default = Example;
