"use strict";
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);
var Item_stories_exports = {};
__export(Item_stories_exports, {
  Active: () => Active,
  Default: () => Default,
  Disable: () => Disable,
  Focus: () => Focus,
  Hover: () => Hover,
  default: () => Item_stories_default
});
module.exports = __toCommonJS(Item_stories_exports);
var import_react = __toESM(require("react"));
var import_addon_actions = require("@storybook/addon-actions");
var import_WalletMedium = __toESM(require("@ledgerhq/icons-ui/reactLegacy/WalletMedium"));
var import_Text = __toESM(require("../../../asorted/Text"));
var import_Flex = __toESM(require("../../../layout/Flex"));
var import__ = __toESM(require(".."));
var import_Item = __toESM(require("./Item"));
var Item_stories_default = {
  title: "Navigation/SideBar/Item",
  component: import_Item.default,
  argTypes: {
    label: {
      type: "text",
      description: "Label",
      required: true,
      control: { type: "text" }
    },
    onClick: { control: false },
    children: { control: false },
    isActive: { type: "boolean" },
    isDisabled: { type: "boolean" },
    displayNotificationBadge: { type: "boolean" }
  }
};
const Template = (args) => /* @__PURE__ */ import_react.default.createElement(import_Flex.default, { flexDirection: "column", style: { rowGap: "1.5rem" } }, /* @__PURE__ */ import_react.default.createElement(
  import_Flex.default,
  {
    flexDirection: "column",
    alignItems: "flex-Start",
    style: { width: "fit-content", rowGap: "0.5rem" }
  },
  /* @__PURE__ */ import_react.default.createElement(import_Text.default, { variant: "h3" }, "Expanded"),
  /* @__PURE__ */ import_react.default.createElement(import__.default.Provider, { value: { isExpanded: true, onToggle: () => {
  } } }, /* @__PURE__ */ import_react.default.createElement(import_Item.default, { ...args }, /* @__PURE__ */ import_react.default.createElement(import_WalletMedium.default, null)))
), /* @__PURE__ */ import_react.default.createElement(
  import_Flex.default,
  {
    flexDirection: "column",
    alignItems: "flex-Start",
    style: { width: "fit-content", rowGap: "0.5rem" }
  },
  /* @__PURE__ */ import_react.default.createElement(import_Text.default, { variant: "h3" }, "Collapsed"),
  /* @__PURE__ */ import_react.default.createElement(import__.default.Provider, { value: { isExpanded: false, onToggle: () => {
  } } }, /* @__PURE__ */ import_react.default.createElement(import_Item.default, { ...args }, /* @__PURE__ */ import_react.default.createElement(import_WalletMedium.default, null)))
));
const Default = Template.bind({});
const Hover = Template.bind({});
const Focus = Template.bind({});
const Active = Template.bind({});
const Disable = Template.bind({});
Default.args = {
  label: "accounts",
  onClick: (0, import_addon_actions.action)("go to accounts")
};
Active.args = {
  label: "accounts",
  onClick: (0, import_addon_actions.action)("go to accounts"),
  isActive: true
};
Disable.args = {
  label: "accounts",
  onClick: (0, import_addon_actions.action)("go to accounts"),
  isDisabled: true
};
Hover.args = {
  label: "accounts",
  onClick: (0, import_addon_actions.action)("go to accounts")
};
Hover.parameters = { pseudo: { hover: true } };
Focus.args = {
  label: "accounts",
  onClick: (0, import_addon_actions.action)("go to accounts")
};
Focus.parameters = { pseudo: { focus: true } };
//# sourceMappingURL=Item.stories.js.map
