@sikka/hawa 0.1.59 → 0.1.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -277,6 +277,27 @@ __export(src_exports, {
277
277
  CreditCardForm: function() {
278
278
  return CreditCardForm;
279
279
  },
280
+ Dialog: function() {
281
+ return Dialog;
282
+ },
283
+ DialogContent: function() {
284
+ return DialogContent;
285
+ },
286
+ DialogDescription: function() {
287
+ return DialogDescription;
288
+ },
289
+ DialogFooter: function() {
290
+ return DialogFooter;
291
+ },
292
+ DialogHeader: function() {
293
+ return DialogHeader;
294
+ },
295
+ DialogTitle: function() {
296
+ return DialogTitle;
297
+ },
298
+ DialogTrigger: function() {
299
+ return DialogTrigger;
300
+ },
280
301
  DragDropImages: function() {
281
302
  return DragDropImages;
282
303
  },
@@ -1234,11 +1255,13 @@ var Button = React16.forwardRef(function(_param, ref) {
1234
1255
  Button.displayName = "Button";
1235
1256
  // src/elements/HawaAlert.tsx
1236
1257
  var HawaAlert = function(_param) {
1237
- var _param_variant = _param.variant, variant = _param_variant === void 0 ? "normal" : _param_variant, _param_direction = _param.direction, direction = _param_direction === void 0 ? "ltr" : _param_direction, duration = _param.duration, icon = _param.icon, props = _object_without_properties(_param, [
1258
+ var _param_variant = _param.variant, variant = _param_variant === void 0 ? "normal" : _param_variant, _param_direction = _param.direction, direction = _param_direction === void 0 ? "ltr" : _param_direction, _param_severity = _param.severity, severity = _param_severity === void 0 ? "info" : _param_severity, duration = _param.duration, icon = _param.icon, className = _param.className, props = _object_without_properties(_param, [
1238
1259
  "variant",
1239
1260
  "direction",
1261
+ "severity",
1240
1262
  "duration",
1241
- "icon"
1263
+ "icon",
1264
+ "className"
1242
1265
  ]);
1243
1266
  var alertRef = (0, import_react13.useRef)(null);
1244
1267
  var _ref = _sliced_to_array((0, import_react13.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
@@ -1306,7 +1329,7 @@ var HawaAlert = function(_param) {
1306
1329
  return /* @__PURE__ */ import_react13.default.createElement("div", {
1307
1330
  ref: alertRef
1308
1331
  }, /* @__PURE__ */ import_react13.default.createElement("div", {
1309
- className: (0, import_clsx7.default)("relative mb-4 flex flex-col rounded p-4 text-sm transition-all", styleVariant[variant][props.severity], closed ? "opacity-0" : "opacity-100"),
1332
+ className: (0, import_clsx7.default)("relative mb-4 flex flex-col rounded p-4 text-sm transition-all", styleVariant[variant][severity], closed ? "opacity-0" : "opacity-100", className),
1310
1333
  role: "alert",
1311
1334
  dir: direction
1312
1335
  }, /* @__PURE__ */ import_react13.default.createElement("div", {
@@ -1317,7 +1340,7 @@ var HawaAlert = function(_param) {
1317
1340
  className: "flex flex-col"
1318
1341
  }, /* @__PURE__ */ import_react13.default.createElement("span", {
1319
1342
  className: (0, import_clsx7.default)("font-medium", direction === "rtl" ? "ml-8" : "mr-8")
1320
- }, props.title), /* @__PURE__ */ import_react13.default.createElement("span", null, " " + props.text), props.actions && /* @__PURE__ */ import_react13.default.createElement("div", {
1343
+ }, props.title), /* @__PURE__ */ import_react13.default.createElement("span", null, props.text), props.actions && /* @__PURE__ */ import_react13.default.createElement("div", {
1321
1344
  className: "mt-2 flex flex-row gap-2"
1322
1345
  }, props.actions.map(function(act, index) {
1323
1346
  return /* @__PURE__ */ import_react13.default.createElement(Button, {
@@ -1327,7 +1350,7 @@ var HawaAlert = function(_param) {
1327
1350
  }, act.label);
1328
1351
  })))), !props.persistant && /* @__PURE__ */ import_react13.default.createElement("button", {
1329
1352
  type: "button",
1330
- className: (0, import_clsx7.default)("absolute top-2 inline-flex h-9 w-9 items-center justify-center rounded-inner p-1.5 text-gray-400 transition-all hover:text-gray-900", closeButtonStyle[props.severity], direction === "rtl" ? "left-2" : "right-2"),
1353
+ className: (0, import_clsx7.default)("absolute top-2 inline-flex h-9 w-9 items-center justify-center rounded-inner p-1.5 text-gray-400 transition-all hover:text-gray-900", closeButtonStyle[severity], direction === "rtl" ? "left-2" : "right-2"),
1331
1354
  "data-dismiss-target": "#alert-default",
1332
1355
  "aria-label": "Close",
1333
1356
  onClick: function() {
@@ -6172,124 +6195,8 @@ var HawaPinInput = function(_param) {
6172
6195
  }));
6173
6196
  };
6174
6197
  // src/elements/HawaItemCard.tsx
6175
- var import_react47 = __toESM(require("react"));
6176
- var import_clsx23 = __toESM(require("clsx"));
6177
- // src/elements/HawaButton.tsx
6178
6198
  var import_react46 = __toESM(require("react"));
6179
6199
  var import_clsx22 = __toESM(require("clsx"));
6180
- var disabledSyles = "cursor-default pointer-events-none";
6181
- var disabledVariantSyles = {
6182
- contained: "text-gray-300 bg-gray-100",
6183
- outlined: "text-gray-300 border-gray-300"
6184
- };
6185
- var baseStyles = "cursor-pointer justify-center items-center text-center font-medium transition-all ";
6186
- var sizeStyles = {
6187
- icon: "h-10 w-10",
6188
- xs: "px-1.5 py-2 text-[9px] h-fit",
6189
- small: "text-xs px-2.5 py-1.5",
6190
- medium: "text-sm leading-4 px-3 py-2",
6191
- default: "h-10 px-4 py-2",
6192
- large: "text-sm px-4 py-2",
6193
- noPadding: "p-0",
6194
- full: "h-full max-h-full p-2"
6195
- };
6196
- var widthStyles = {
6197
- full: "w-full flex justify-center px-5 py-2.5 text-center inline-flex items-center",
6198
- half: "w-full text-center flex items-center justify-center h-full",
6199
- normal: "w-fit dark:bg-buttonPrimary-dark dark:hover:bg-buttonPrimary-700 dark:hover:brightness-90 dark:focus:ring-buttonPrimary-500"
6200
- };
6201
- var containerWidthStyles = {
6202
- full: "w-full flex justify-center text-center inline-flex items-center",
6203
- half: "w-1/2",
6204
- normal: "w-fit"
6205
- };
6206
- var variantStyles = {
6207
- contained: "border-transparent",
6208
- // outlined: "bg-transparent border",
6209
- outlined: "border border-input bg-background hover:bg-accent hover:text-accent-foreground"
6210
- };
6211
- var colorStyles = {
6212
- contained: {
6213
- default: "text-neutral-900 bg-buttonPrimary-500 hover:bg-buttonPrimary-700 bg-buttonPrimary-500 text-white",
6214
- primary: "text-white bg-buttonPrimary-500 hover:bg-buttonPrimary-700 transition-all",
6215
- secondary: "bg-buttonSecondary-500 hover:text-white hover:bg-buttonSecondary-700",
6216
- gray: "text-neutral-900 bg-gray-200 hover:bg-gray-300",
6217
- dark: "text-neutral-900 bg-gray-200 hover:bg-gray-300"
6218
- },
6219
- outlined: {
6220
- default: "text-gray-600 border-gray-600 hover:bg-gray-200 dark:hover:bg-gray-800 dark:text-white",
6221
- primary: "text-black hover:bg-gray-50 dark:text-white",
6222
- secondary: " dark:text-white text-secondary-800 border-secondary-800 hover:bg-buttonSecondary-700 hover:text-white",
6223
- gray: "border-gray-300 hover:bg-gray-200",
6224
- dark: "border-gray-900 hover:bg-gray-700"
6225
- }
6226
- };
6227
- var HawaButton = function(_param) {
6228
- var className = _param.className, _param_variant = _param.variant, variant = _param_variant === void 0 ? "contained" : _param_variant, _param_color = _param.color, color = _param_color === void 0 ? "default" : _param_color, _param_size = _param.size, size = _param_size === void 0 ? "default" : _param_size, _param_width = _param.width, width = _param_width === void 0 ? "normal" : _param_width, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, tooltip = _param.tooltip, _param_tooltipSize = _param.tooltipSize, tooltipSize = _param_tooltipSize === void 0 ? "normal" : _param_tooltipSize, _param_tooltipPosition = _param.tooltipPosition, tooltipPosition = _param_tooltipPosition === void 0 ? "top-left" : _param_tooltipPosition, _param_tooltipDirection = _param.tooltipDirection, tooltipDirection = _param_tooltipDirection === void 0 ? "ltr" : _param_tooltipDirection, _param_margins = _param.margins, margins = _param_margins === void 0 ? "2" : _param_margins, children = _param.children, badge = _param.badge, _param_edgeCorner = _param.edgeCorner, edgeCorner = _param_edgeCorner === void 0 ? false : _param_edgeCorner, feedback = _param.feedback, props = _object_without_properties(_param, [
6229
- "className",
6230
- "variant",
6231
- "color",
6232
- "size",
6233
- "width",
6234
- "disabled",
6235
- "isLoading",
6236
- "tooltip",
6237
- "tooltipSize",
6238
- "tooltipPosition",
6239
- "tooltipDirection",
6240
- "margins",
6241
- "children",
6242
- "badge",
6243
- "edgeCorner",
6244
- "feedback"
6245
- ]);
6246
- var _ref = _sliced_to_array((0, import_react46.useState)(false), 2), isClicked = _ref[0], setIsClicked = _ref[1];
6247
- var _ref1 = _sliced_to_array((0, import_react46.useState)(children), 2), buttonText = _ref1[0], setButtonText = _ref1[1];
6248
- var handleClick = function(event) {
6249
- if (props.onClick) {
6250
- props.onClick(event);
6251
- }
6252
- if (feedback && !isClicked) {
6253
- setButtonText(feedback);
6254
- setIsClicked(true);
6255
- setTimeout(function() {
6256
- setButtonText(children);
6257
- setIsClicked(false);
6258
- }, 2e3);
6259
- }
6260
- };
6261
- return /* @__PURE__ */ import_react46.default.createElement("div", {
6262
- className: (0, import_clsx22.default)("relative", margins !== "none" ? "my-".concat(margins) : "m-0", containerWidthStyles[width])
6263
- }, tooltip ? /* @__PURE__ */ import_react46.default.createElement(HawaTooltip, {
6264
- direction: tooltipDirection,
6265
- position: tooltipPosition,
6266
- size: tooltipSize,
6267
- content: tooltip
6268
- }, /* @__PURE__ */ import_react46.default.createElement("button", {
6269
- className: disabled ? (0, import_clsx22.default)(className, baseStyles, edgeCorner ? "rounded-inner" : "rounded", variantStyles[variant], sizeStyles[size], widthStyles[width], disabledSyles, disabledVariantSyles[variant]) : (0, import_clsx22.default)(className, baseStyles, edgeCorner ? "rounded-inner" : "rounded", variantStyles[variant], sizeStyles[size], colorStyles[variant][color], widthStyles[width]),
6270
- disabled: disabled,
6271
- onClick: props.onClick
6272
- }, !isLoading ? children : /* @__PURE__ */ import_react46.default.createElement(HawaLoading, {
6273
- size: "button"
6274
- }))) : /* @__PURE__ */ import_react46.default.createElement("button", {
6275
- className: disabled ? (0, import_clsx22.default)(className, baseStyles, edgeCorner ? "rounded-inner" : "rounded", variantStyles[variant], sizeStyles[size], widthStyles[width], disabledSyles, disabledVariantSyles[variant]) : (0, import_clsx22.default)(className, "overflow-x-clip", baseStyles, edgeCorner ? "rounded-inner" : "rounded", variantStyles[variant], sizeStyles[size], colorStyles[variant][color], widthStyles[width]),
6276
- disabled: disabled,
6277
- onClick: handleClick
6278
- }, !isLoading ? /* @__PURE__ */ import_react46.default.createElement("div", {
6279
- className: (0, import_clsx22.default)(" s flex flex-col-reverse items-start justify-center gap-4 transition-all", isClicked && feedback ? " -translate-y-8 pb-1 pt-1" : "translate-y-0")
6280
- }, isClicked && feedback ? /* @__PURE__ */ import_react46.default.createElement("div", {
6281
- className: "w-full text-center"
6282
- }, buttonText) : null, /* @__PURE__ */ import_react46.default.createElement("div", {
6283
- className: "flex w-full select-none flex-row items-center justify-center gap-2 whitespace-nowrap"
6284
- }, props.startIcon && props.startIcon, children, props.endIcon && props.endIcon)) : /* @__PURE__ */ import_react46.default.createElement(HawaLoading, {
6285
- design: "dots-pulse",
6286
- color: "bg-white",
6287
- size: "button"
6288
- })), badge && /* @__PURE__ */ import_react46.default.createElement("div", {
6289
- className: (0, import_clsx22.default)(typeof badge === "boolean" ? "h-5 w-5" : typeof badge === "string" ? "h-5 w-7" : "h-6 w-6", "absolute -right-2 -top-2 inline-flex select-none items-center justify-center rounded-full border-2 border-white bg-red-500 text-[9px] font-bold text-white dark:border-gray-900")
6290
- }, typeof badge === "number" && badge > 100 ? "+99" : badge));
6291
- };
6292
- // src/elements/HawaItemCard.tsx
6293
6200
  var HawaItemCard = function(_param) {
6294
6201
  var handleOpenActionHeader = function handleOpenActionHeader() {
6295
6202
  setOpenActionHeader(!openActionHeader);
@@ -6319,8 +6226,8 @@ var HawaItemCard = function(_param) {
6319
6226
  "h-full w-48 rounded-l object-cover"
6320
6227
  };
6321
6228
  var headerActionsButtonStyle = "inline-block rounded p-1 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700";
6322
- var _ref = _sliced_to_array((0, import_react47.useState)(false), 2), openActionHeader = _ref[0], setOpenActionHeader = _ref[1];
6323
- (0, import_react47.useEffect)(function() {
6229
+ var _ref = _sliced_to_array((0, import_react46.useState)(false), 2), openActionHeader = _ref[0], setOpenActionHeader = _ref[1];
6230
+ (0, import_react46.useEffect)(function() {
6324
6231
  window.onclick = function() {
6325
6232
  if (openActionHeader) {
6326
6233
  setOpenActionHeader(false);
@@ -6332,49 +6239,49 @@ var HawaItemCard = function(_param) {
6332
6239
  }, [
6333
6240
  openActionHeader
6334
6241
  ]);
6335
- return /* @__PURE__ */ import_react47.default.createElement("div", _object_spread({
6336
- className: (0, import_clsx23.default)(defaultStyle, orientationStyles[orientation])
6337
- }, props), cardImage && /* @__PURE__ */ import_react47.default.createElement("div", {
6242
+ return /* @__PURE__ */ import_react46.default.createElement("div", _object_spread({
6243
+ className: (0, import_clsx22.default)(defaultStyle, orientationStyles[orientation])
6244
+ }, props), cardImage && /* @__PURE__ */ import_react46.default.createElement("div", {
6338
6245
  className: "group relative overflow-clip"
6339
- }, /* @__PURE__ */ import_react47.default.createElement("img", {
6246
+ }, /* @__PURE__ */ import_react46.default.createElement("img", {
6340
6247
  src: "https://via.placeholder.com/50",
6341
- className: (0, import_clsx23.default)(imageStyles[orientation], clickableImage ? "overflow-clip transition-all group-hover:blur-lg" : "")
6342
- }), clickableImage && /* @__PURE__ */ import_react47.default.createElement("div", {
6248
+ className: (0, import_clsx22.default)(imageStyles[orientation], clickableImage ? "overflow-clip transition-all group-hover:blur-lg" : "")
6249
+ }), clickableImage && /* @__PURE__ */ import_react46.default.createElement("div", {
6343
6250
  className: "absolute left-0 top-0 flex h-full w-full items-center justify-center opacity-0 transition-all group-hover:opacity-100 "
6344
- }, /* @__PURE__ */ import_react47.default.createElement(HawaButton, {
6345
- startIcon: clickableImageActionIcon,
6346
- variant: "outlined",
6347
- onClick: clickableImageAction
6348
- }, clickableImageActionText))), /* @__PURE__ */ import_react47.default.createElement("div", {
6251
+ }, /* @__PURE__ */ import_react46.default.createElement(Button, {
6252
+ variant: "secondary",
6253
+ onClick: clickableImageAction,
6254
+ className: "flex flex-row gap-2"
6255
+ }, clickableImageActionIcon, clickableImageActionText))), /* @__PURE__ */ import_react46.default.createElement("div", {
6349
6256
  className: "relative w-full p-6"
6350
- }, headerActions && /* @__PURE__ */ import_react47.default.createElement("div", {
6257
+ }, headerActions && /* @__PURE__ */ import_react46.default.createElement("div", {
6351
6258
  className: "max-h- bg-red absolute right-0 top-0 flex justify-end pr-3 pt-3"
6352
- }, /* @__PURE__ */ import_react47.default.createElement(HawaMenu, {
6353
- position: "top-right",
6354
- menuItems: headerActions
6355
- }, /* @__PURE__ */ import_react47.default.createElement("div", {
6356
- className: (0, import_clsx23.default)(headerActionsButtonStyle),
6357
- onClick: handleOpenActionHeader
6358
- }, /* @__PURE__ */ import_react47.default.createElement("span", {
6359
- className: "sr-only"
6360
- }, "Open dropdown"), /* @__PURE__ */ import_react47.default.createElement("svg", {
6361
- className: "h-6 w-6",
6362
- "aria-hidden": "true",
6363
- fill: "currentColor",
6364
- viewBox: "0 0 20 20"
6365
- }, /* @__PURE__ */ import_react47.default.createElement("path", {
6366
- d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"
6367
- }))))), header && /* @__PURE__ */ import_react47.default.createElement("h5", {
6259
+ }, /* @__PURE__ */ import_react46.default.createElement(DropdownMenu, {
6260
+ items: headerActions,
6261
+ trigger: /* @__PURE__ */ import_react46.default.createElement("div", {
6262
+ className: (0, import_clsx22.default)(headerActionsButtonStyle),
6263
+ onClick: handleOpenActionHeader
6264
+ }, /* @__PURE__ */ import_react46.default.createElement("span", {
6265
+ className: "sr-only"
6266
+ }, "Open dropdown"), /* @__PURE__ */ import_react46.default.createElement("svg", {
6267
+ className: "h-6 w-6",
6268
+ "aria-hidden": "true",
6269
+ fill: "currentColor",
6270
+ viewBox: "0 0 20 20"
6271
+ }, /* @__PURE__ */ import_react46.default.createElement("path", {
6272
+ d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"
6273
+ })))
6274
+ })), header && /* @__PURE__ */ import_react46.default.createElement("h5", {
6368
6275
  className: "mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white"
6369
- }, header), content && /* @__PURE__ */ import_react47.default.createElement("span", {
6276
+ }, header), content && /* @__PURE__ */ import_react46.default.createElement("span", {
6370
6277
  className: "w-full font-normal text-gray-700 dark:text-gray-400"
6371
- }, content), actions || counts ? /* @__PURE__ */ import_react47.default.createElement("div", {
6372
- className: (0, import_clsx23.default)("mt-3 flex items-center rounded-b-lg dark:text-white ", actions && counts ? "justify-between" : "justify-end")
6278
+ }, content), actions || counts ? /* @__PURE__ */ import_react46.default.createElement("div", {
6279
+ className: (0, import_clsx22.default)("mt-3 flex items-center rounded-b-lg dark:text-white ", actions && counts ? "justify-between" : "justify-end")
6373
6280
  }, counts, actions) : null));
6374
6281
  };
6375
6282
  // src/elements/HawaPricingCard.tsx
6376
- var import_clsx24 = __toESM(require("clsx"));
6377
- var import_react48 = __toESM(require("react"));
6283
+ var import_clsx23 = __toESM(require("clsx"));
6284
+ var import_react47 = __toESM(require("react"));
6378
6285
  var HawaPricingCard = function(_param) {
6379
6286
  var _param_size = _param.size, size = _param_size === void 0 ? "medium" : _param_size, _param_direction = _param.direction, direction = _param_direction === void 0 ? "ltr" : _param_direction, _param_currentPlan = _param.currentPlan, currentPlan = _param_currentPlan === void 0 ? false : _param_currentPlan, props = _object_without_properties(_param, [
6380
6287
  "size",
@@ -6388,50 +6295,50 @@ var HawaPricingCard = function(_param) {
6388
6295
  medium: "mx-1 w-full rounded min-w-fit border dark:border-gray-700 bg-background ",
6389
6296
  large: "mx-1 w-full max-w-lg rounded border dark:border-gray-700 bg-background "
6390
6297
  };
6391
- return /* @__PURE__ */ import_react48.default.createElement("div", {
6298
+ return /* @__PURE__ */ import_react47.default.createElement("div", {
6392
6299
  dir: isArabic ? "rtl" : "ltr",
6393
- className: (0, import_clsx24.default)(currentPlan ? "border-primary" : "bg-background", cardSizes[size], "flex flex-col gap-4 rounded border-2 p-4")
6394
- }, /* @__PURE__ */ import_react48.default.createElement("h5", {
6300
+ className: (0, import_clsx23.default)(currentPlan ? "border-primary" : "bg-background", cardSizes[size], "flex flex-col gap-4 rounded border-2 p-4")
6301
+ }, /* @__PURE__ */ import_react47.default.createElement("h5", {
6395
6302
  className: "text-md 0 font-bold text-primary/70"
6396
- }, props.texts.title), /* @__PURE__ */ import_react48.default.createElement("div", {
6303
+ }, props.texts.title), /* @__PURE__ */ import_react47.default.createElement("div", {
6397
6304
  className: " text-primary/ flex items-baseline"
6398
- }, /* @__PURE__ */ import_react48.default.createElement(import_react48.default.Fragment, null, /* @__PURE__ */ import_react48.default.createElement("span", {
6305
+ }, /* @__PURE__ */ import_react47.default.createElement(import_react47.default.Fragment, null, /* @__PURE__ */ import_react47.default.createElement("span", {
6399
6306
  className: "text-5xl font-extrabold tracking-tight"
6400
- }, props.price), /* @__PURE__ */ import_react48.default.createElement("span", {
6307
+ }, props.price), /* @__PURE__ */ import_react47.default.createElement("span", {
6401
6308
  className: "mx-1 text-sm font-semibold"
6402
- }, props.texts.currencyText)), /* @__PURE__ */ import_react48.default.createElement("span", {
6309
+ }, props.texts.currencyText)), /* @__PURE__ */ import_react47.default.createElement("span", {
6403
6310
  className: "ml-1 text-xl font-normal text-primary/70"
6404
- }, "/ ", props.texts.cycleText)), /* @__PURE__ */ import_react48.default.createElement("h5", {
6311
+ }, "/ ", props.texts.cycleText)), /* @__PURE__ */ import_react47.default.createElement("h5", {
6405
6312
  className: "text-md font-normal text-primary/70"
6406
- }, props.texts.subtitle), props.features && /* @__PURE__ */ import_react48.default.createElement("ul", {
6313
+ }, props.texts.subtitle), props.features && /* @__PURE__ */ import_react47.default.createElement("ul", {
6407
6314
  role: "list",
6408
6315
  className: "space-y-0 "
6409
6316
  }, (_props_features = props.features) === null || _props_features === void 0 ? void 0 : _props_features.map(function(feature, o) {
6410
- return /* @__PURE__ */ import_react48.default.createElement("li", {
6317
+ return /* @__PURE__ */ import_react47.default.createElement("li", {
6411
6318
  key: o,
6412
6319
  className: "flex "
6413
- }, /* @__PURE__ */ import_react48.default.createElement("svg", {
6320
+ }, /* @__PURE__ */ import_react47.default.createElement("svg", {
6414
6321
  "aria-label": "Check Icon",
6415
6322
  "aria-hidden": "true",
6416
6323
  className: "m-2 h-5 w-5 flex-shrink-0 text-primary",
6417
6324
  fill: "currentColor",
6418
6325
  viewBox: "0 0 20 20"
6419
- }, /* @__PURE__ */ import_react48.default.createElement("path", {
6326
+ }, /* @__PURE__ */ import_react47.default.createElement("path", {
6420
6327
  fillRule: "evenodd",
6421
6328
  d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
6422
6329
  clipRule: "evenodd"
6423
- })), /* @__PURE__ */ import_react48.default.createElement("span", {
6330
+ })), /* @__PURE__ */ import_react47.default.createElement("span", {
6424
6331
  className: "flex items-center text-center font-normal leading-tight text-primary/70 "
6425
6332
  }, feature.text));
6426
- })), /* @__PURE__ */ import_react48.default.createElement(Button, {
6333
+ })), /* @__PURE__ */ import_react47.default.createElement(Button, {
6427
6334
  onClick: props.onPlanClicked,
6428
6335
  disabled: currentPlan,
6429
6336
  className: "w-full"
6430
6337
  }, props.texts.buttonText));
6431
6338
  };
6432
6339
  // src/elements/HawaAdCard.tsx
6433
- var import_clsx25 = __toESM(require("clsx"));
6434
- var import_react49 = __toESM(require("react"));
6340
+ var import_clsx24 = __toESM(require("clsx"));
6341
+ var import_react48 = __toESM(require("react"));
6435
6342
  var HawaAdCard = function(_param) {
6436
6343
  var orientation = _param.orientation, props = _object_without_properties(_param, [
6437
6344
  "orientation"
@@ -6444,27 +6351,27 @@ var HawaAdCard = function(_param) {
6444
6351
  horizontal: "w-auto h-full bg-blue-500 rounded-inner",
6445
6352
  vertical: "bg-blue-500 rounded-inner w-auto "
6446
6353
  };
6447
- return /* @__PURE__ */ import_react49.default.createElement("div", _object_spread({
6448
- className: (0, import_clsx25.default)(cardStyles[orientation], "dark:text-white")
6449
- }, props), /* @__PURE__ */ import_react49.default.createElement("div", {
6354
+ return /* @__PURE__ */ import_react48.default.createElement("div", _object_spread({
6355
+ className: (0, import_clsx24.default)(cardStyles[orientation], "dark:text-white")
6356
+ }, props), /* @__PURE__ */ import_react48.default.createElement("div", {
6450
6357
  className: "flex aspect-square w-full max-w-fit items-start "
6451
- }, /* @__PURE__ */ import_react49.default.createElement("img", {
6358
+ }, /* @__PURE__ */ import_react48.default.createElement("img", {
6452
6359
  src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
6453
6360
  className: imageStyles[orientation]
6454
- })), /* @__PURE__ */ import_react49.default.createElement("div", {
6361
+ })), /* @__PURE__ */ import_react48.default.createElement("div", {
6455
6362
  className: "w-full text-xs"
6456
- }, /* @__PURE__ */ import_react49.default.createElement("div", {
6363
+ }, /* @__PURE__ */ import_react48.default.createElement("div", {
6457
6364
  className: "font-bold"
6458
- }, props.title), /* @__PURE__ */ import_react49.default.createElement("div", {
6365
+ }, props.title), /* @__PURE__ */ import_react48.default.createElement("div", {
6459
6366
  className: "text-[12px]"
6460
- }, props.description)), /* @__PURE__ */ import_react49.default.createElement("span", {
6367
+ }, props.description)), /* @__PURE__ */ import_react48.default.createElement("span", {
6461
6368
  onClick: props.handleHide,
6462
6369
  className: "absolute right-0 top-0 h-fit cursor-pointer select-none rounded-bl-lg rounded-tr-lg bg-blue-100 px-2.5 py-0.5 text-[10px] font-semibold text-blue-800 dark:bg-blue-200 dark:text-blue-800"
6463
6370
  }, "Hide"));
6464
6371
  };
6465
6372
  // src/elements/HawaLandingCard.tsx
6466
- var import_clsx26 = __toESM(require("clsx"));
6467
- var import_react50 = __toESM(require("react"));
6373
+ var import_clsx25 = __toESM(require("clsx"));
6374
+ var import_react49 = __toESM(require("react"));
6468
6375
  var HawaLandingCard = function(_param) {
6469
6376
  var _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "horizontal" : _param_orientation, props = _object_without_properties(_param, [
6470
6377
  "orientation"
@@ -6478,21 +6385,136 @@ var HawaLandingCard = function(_param) {
6478
6385
  horizontal: "w-8 h-8 rounded",
6479
6386
  vertical: "w-14 h-14 rounded"
6480
6387
  };
6481
- return /* @__PURE__ */ import_react50.default.createElement("div", _object_spread({
6482
- className: (0, import_clsx26.default)(cardStyles[orientation], "flex flex-col p-10", "relative overflow-hidden dark:text-white", props.className)
6483
- }, props), ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.titleTip) && /* @__PURE__ */ import_react50.default.createElement("div", {
6388
+ return /* @__PURE__ */ import_react49.default.createElement("div", _object_spread({
6389
+ className: (0, import_clsx25.default)(cardStyles[orientation], "flex flex-col p-10", "relative overflow-hidden dark:text-white", props.className)
6390
+ }, props), ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.titleTip) && /* @__PURE__ */ import_react49.default.createElement("div", {
6484
6391
  className: "text-sm text-red-600"
6485
- }, (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.titleTip), props.imageURL && /* @__PURE__ */ import_react50.default.createElement("img", {
6392
+ }, (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.titleTip), props.imageURL && /* @__PURE__ */ import_react49.default.createElement("img", {
6486
6393
  className: "absolute -bottom-10 -right-10 h-40 w-auto ",
6487
6394
  src: props.imageURL
6488
- }), ((_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.title) && /* @__PURE__ */ import_react50.default.createElement("div", {
6395
+ }), ((_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.title) && /* @__PURE__ */ import_react49.default.createElement("div", {
6489
6396
  className: "mt-2 text-lg font-medium"
6490
- }, (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.title, " "), ((_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.description) && /* @__PURE__ */ import_react50.default.createElement("div", {
6397
+ }, (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.title, " "), ((_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.description) && /* @__PURE__ */ import_react49.default.createElement("div", {
6491
6398
  className: "z-10 mt-4 text-sm"
6492
- }, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.description), ((_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.linkText) && /* @__PURE__ */ import_react50.default.createElement("div", {
6399
+ }, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.description), ((_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.linkText) && /* @__PURE__ */ import_react49.default.createElement("div", {
6493
6400
  className: "z-10 mt-6 text-sm underline underline-offset-8"
6494
6401
  }, (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.linkText));
6495
6402
  };
6403
+ // src/elements/HawaButton.tsx
6404
+ var import_react50 = __toESM(require("react"));
6405
+ var import_clsx26 = __toESM(require("clsx"));
6406
+ var disabledSyles = "cursor-default pointer-events-none";
6407
+ var disabledVariantSyles = {
6408
+ contained: "text-gray-300 bg-gray-100",
6409
+ outlined: "text-gray-300 border-gray-300"
6410
+ };
6411
+ var baseStyles = "cursor-pointer justify-center items-center text-center font-medium transition-all ";
6412
+ var sizeStyles = {
6413
+ icon: "h-10 w-10",
6414
+ xs: "px-1.5 py-2 text-[9px] h-fit",
6415
+ small: "text-xs px-2.5 py-1.5",
6416
+ medium: "text-sm leading-4 px-3 py-2",
6417
+ default: "h-10 px-4 py-2",
6418
+ large: "text-sm px-4 py-2",
6419
+ noPadding: "p-0",
6420
+ full: "h-full max-h-full p-2"
6421
+ };
6422
+ var widthStyles = {
6423
+ full: "w-full flex justify-center px-5 py-2.5 text-center inline-flex items-center",
6424
+ half: "w-full text-center flex items-center justify-center h-full",
6425
+ normal: "w-fit dark:bg-buttonPrimary-dark dark:hover:bg-buttonPrimary-700 dark:hover:brightness-90 dark:focus:ring-buttonPrimary-500"
6426
+ };
6427
+ var containerWidthStyles = {
6428
+ full: "w-full flex justify-center text-center inline-flex items-center",
6429
+ half: "w-1/2",
6430
+ normal: "w-fit"
6431
+ };
6432
+ var variantStyles = {
6433
+ contained: "border-transparent",
6434
+ // outlined: "bg-transparent border",
6435
+ outlined: "border border-input bg-background hover:bg-accent hover:text-accent-foreground"
6436
+ };
6437
+ var colorStyles = {
6438
+ contained: {
6439
+ default: "text-neutral-900 bg-buttonPrimary-500 hover:bg-buttonPrimary-700 bg-buttonPrimary-500 text-white",
6440
+ primary: "text-white bg-buttonPrimary-500 hover:bg-buttonPrimary-700 transition-all",
6441
+ secondary: "bg-buttonSecondary-500 hover:text-white hover:bg-buttonSecondary-700",
6442
+ gray: "text-neutral-900 bg-gray-200 hover:bg-gray-300",
6443
+ dark: "text-neutral-900 bg-gray-200 hover:bg-gray-300"
6444
+ },
6445
+ outlined: {
6446
+ default: "text-gray-600 border-gray-600 hover:bg-gray-200 dark:hover:bg-gray-800 dark:text-white",
6447
+ primary: "text-black hover:bg-gray-50 dark:text-white",
6448
+ secondary: " dark:text-white text-secondary-800 border-secondary-800 hover:bg-buttonSecondary-700 hover:text-white",
6449
+ gray: "border-gray-300 hover:bg-gray-200",
6450
+ dark: "border-gray-900 hover:bg-gray-700"
6451
+ }
6452
+ };
6453
+ var HawaButton = function(_param) {
6454
+ var className = _param.className, _param_variant = _param.variant, variant = _param_variant === void 0 ? "contained" : _param_variant, _param_color = _param.color, color = _param_color === void 0 ? "default" : _param_color, _param_size = _param.size, size = _param_size === void 0 ? "default" : _param_size, _param_width = _param.width, width = _param_width === void 0 ? "normal" : _param_width, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, tooltip = _param.tooltip, _param_tooltipSize = _param.tooltipSize, tooltipSize = _param_tooltipSize === void 0 ? "normal" : _param_tooltipSize, _param_tooltipPosition = _param.tooltipPosition, tooltipPosition = _param_tooltipPosition === void 0 ? "top-left" : _param_tooltipPosition, _param_tooltipDirection = _param.tooltipDirection, tooltipDirection = _param_tooltipDirection === void 0 ? "ltr" : _param_tooltipDirection, _param_margins = _param.margins, margins = _param_margins === void 0 ? "2" : _param_margins, children = _param.children, badge = _param.badge, _param_edgeCorner = _param.edgeCorner, edgeCorner = _param_edgeCorner === void 0 ? false : _param_edgeCorner, feedback = _param.feedback, props = _object_without_properties(_param, [
6455
+ "className",
6456
+ "variant",
6457
+ "color",
6458
+ "size",
6459
+ "width",
6460
+ "disabled",
6461
+ "isLoading",
6462
+ "tooltip",
6463
+ "tooltipSize",
6464
+ "tooltipPosition",
6465
+ "tooltipDirection",
6466
+ "margins",
6467
+ "children",
6468
+ "badge",
6469
+ "edgeCorner",
6470
+ "feedback"
6471
+ ]);
6472
+ var _ref = _sliced_to_array((0, import_react50.useState)(false), 2), isClicked = _ref[0], setIsClicked = _ref[1];
6473
+ var _ref1 = _sliced_to_array((0, import_react50.useState)(children), 2), buttonText = _ref1[0], setButtonText = _ref1[1];
6474
+ var handleClick = function(event) {
6475
+ if (props.onClick) {
6476
+ props.onClick(event);
6477
+ }
6478
+ if (feedback && !isClicked) {
6479
+ setButtonText(feedback);
6480
+ setIsClicked(true);
6481
+ setTimeout(function() {
6482
+ setButtonText(children);
6483
+ setIsClicked(false);
6484
+ }, 2e3);
6485
+ }
6486
+ };
6487
+ return /* @__PURE__ */ import_react50.default.createElement("div", {
6488
+ className: (0, import_clsx26.default)("relative", margins !== "none" ? "my-".concat(margins) : "m-0", containerWidthStyles[width])
6489
+ }, tooltip ? /* @__PURE__ */ import_react50.default.createElement(HawaTooltip, {
6490
+ direction: tooltipDirection,
6491
+ position: tooltipPosition,
6492
+ size: tooltipSize,
6493
+ content: tooltip
6494
+ }, /* @__PURE__ */ import_react50.default.createElement("button", {
6495
+ className: disabled ? (0, import_clsx26.default)(className, baseStyles, edgeCorner ? "rounded-inner" : "rounded", variantStyles[variant], sizeStyles[size], widthStyles[width], disabledSyles, disabledVariantSyles[variant]) : (0, import_clsx26.default)(className, baseStyles, edgeCorner ? "rounded-inner" : "rounded", variantStyles[variant], sizeStyles[size], colorStyles[variant][color], widthStyles[width]),
6496
+ disabled: disabled,
6497
+ onClick: props.onClick
6498
+ }, !isLoading ? children : /* @__PURE__ */ import_react50.default.createElement(HawaLoading, {
6499
+ size: "button"
6500
+ }))) : /* @__PURE__ */ import_react50.default.createElement("button", {
6501
+ className: disabled ? (0, import_clsx26.default)(className, baseStyles, edgeCorner ? "rounded-inner" : "rounded", variantStyles[variant], sizeStyles[size], widthStyles[width], disabledSyles, disabledVariantSyles[variant]) : (0, import_clsx26.default)(className, "overflow-x-clip", baseStyles, edgeCorner ? "rounded-inner" : "rounded", variantStyles[variant], sizeStyles[size], colorStyles[variant][color], widthStyles[width]),
6502
+ disabled: disabled,
6503
+ onClick: handleClick
6504
+ }, !isLoading ? /* @__PURE__ */ import_react50.default.createElement("div", {
6505
+ className: (0, import_clsx26.default)(" s flex flex-col-reverse items-start justify-center gap-4 transition-all", isClicked && feedback ? " -translate-y-8 pb-1 pt-1" : "translate-y-0")
6506
+ }, isClicked && feedback ? /* @__PURE__ */ import_react50.default.createElement("div", {
6507
+ className: "w-full text-center"
6508
+ }, buttonText) : null, /* @__PURE__ */ import_react50.default.createElement("div", {
6509
+ className: "flex w-full select-none flex-row items-center justify-center gap-2 whitespace-nowrap"
6510
+ }, props.startIcon && props.startIcon, children, props.endIcon && props.endIcon)) : /* @__PURE__ */ import_react50.default.createElement(HawaLoading, {
6511
+ design: "dots-pulse",
6512
+ color: "bg-white",
6513
+ size: "button"
6514
+ })), badge && /* @__PURE__ */ import_react50.default.createElement("div", {
6515
+ className: (0, import_clsx26.default)(typeof badge === "boolean" ? "h-5 w-5" : typeof badge === "string" ? "h-5 w-7" : "h-6 w-6", "absolute -right-2 -top-2 inline-flex select-none items-center justify-center rounded-full border-2 border-white bg-red-500 text-[9px] font-bold text-white dark:border-gray-900")
6516
+ }, typeof badge === "number" && badge > 100 ? "+99" : badge));
6517
+ };
6496
6518
  // src/elements/HawaStoreButtons.tsx
6497
6519
  var import_react51 = __toESM(require("react"));
6498
6520
  var HawaStoreButtons = function(props) {
@@ -7107,6 +7129,93 @@ function Toaster(props) {
7107
7129
  className: cn("gap-2", isRTL && "fixed left-0")
7108
7130
  }));
7109
7131
  }
7132
+ // src/elements/Dialog.tsx
7133
+ var React68 = __toESM(require("react"));
7134
+ var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
7135
+ var Dialog = DialogPrimitive.Root;
7136
+ var DialogTrigger = DialogPrimitive.Trigger;
7137
+ var DialogPortal = function(_param) /* @__PURE__ */ {
7138
+ var className = _param.className, props = _object_without_properties(_param, [
7139
+ "className"
7140
+ ]);
7141
+ return React68.createElement(DialogPrimitive.Portal, _object_spread({
7142
+ className: cn(className)
7143
+ }, props));
7144
+ };
7145
+ DialogPortal.displayName = DialogPrimitive.Portal.displayName;
7146
+ var DialogOverlay = React68.forwardRef(function(_param, ref) /* @__PURE__ */ {
7147
+ var className = _param.className, props = _object_without_properties(_param, [
7148
+ "className"
7149
+ ]);
7150
+ return React68.createElement(DialogPrimitive.Overlay, _object_spread({
7151
+ ref: ref,
7152
+ className: cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className)
7153
+ }, props));
7154
+ });
7155
+ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
7156
+ var DialogContent = React68.forwardRef(function(_param, ref) /* @__PURE__ */ {
7157
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
7158
+ "className",
7159
+ "children"
7160
+ ]);
7161
+ return React68.createElement(DialogPortal, null, /* @__PURE__ */ React68.createElement(DialogOverlay, null), /* @__PURE__ */ React68.createElement(DialogPrimitive.Content, _object_spread({
7162
+ ref: ref,
7163
+ className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full", className)
7164
+ }, props), children, /* @__PURE__ */ React68.createElement(DialogPrimitive.Close, {
7165
+ className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"
7166
+ }, /* @__PURE__ */ React68.createElement("svg", {
7167
+ "aria-label": "Close Icon",
7168
+ "aria-hidden": "true",
7169
+ className: "h-5 w-5",
7170
+ fill: "currentColor",
7171
+ viewBox: "0 0 20 20"
7172
+ }, /* @__PURE__ */ React68.createElement("path", {
7173
+ fillRule: "evenodd",
7174
+ d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
7175
+ clipRule: "evenodd"
7176
+ })), /* @__PURE__ */ React68.createElement("span", {
7177
+ className: "sr-only"
7178
+ }, "Close"))));
7179
+ });
7180
+ DialogContent.displayName = DialogPrimitive.Content.displayName;
7181
+ var DialogHeader = function(_param) /* @__PURE__ */ {
7182
+ var className = _param.className, props = _object_without_properties(_param, [
7183
+ "className"
7184
+ ]);
7185
+ return React68.createElement("div", _object_spread({
7186
+ className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className)
7187
+ }, props));
7188
+ };
7189
+ DialogHeader.displayName = "DialogHeader";
7190
+ var DialogFooter = function(_param) /* @__PURE__ */ {
7191
+ var className = _param.className, props = _object_without_properties(_param, [
7192
+ "className"
7193
+ ]);
7194
+ return React68.createElement("div", _object_spread({
7195
+ className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
7196
+ }, props));
7197
+ };
7198
+ DialogFooter.displayName = "DialogFooter";
7199
+ var DialogTitle = React68.forwardRef(function(_param, ref) /* @__PURE__ */ {
7200
+ var className = _param.className, props = _object_without_properties(_param, [
7201
+ "className"
7202
+ ]);
7203
+ return React68.createElement(DialogPrimitive.Title, _object_spread({
7204
+ ref: ref,
7205
+ className: cn("text-lg font-semibold leading-none tracking-tight", className)
7206
+ }, props));
7207
+ });
7208
+ DialogTitle.displayName = DialogPrimitive.Title.displayName;
7209
+ var DialogDescription = React68.forwardRef(function(_param, ref) /* @__PURE__ */ {
7210
+ var className = _param.className, props = _object_without_properties(_param, [
7211
+ "className"
7212
+ ]);
7213
+ return React68.createElement(DialogPrimitive.Description, _object_spread({
7214
+ ref: ref,
7215
+ className: cn("text-sm text-muted-foreground", className)
7216
+ }, props));
7217
+ });
7218
+ DialogDescription.displayName = DialogPrimitive.Description.displayName;
7110
7219
  // src/layout/Box.tsx
7111
7220
  var import_react56 = __toESM(require("react"));
7112
7221
  var Box = function(props) {
@@ -7269,32 +7378,32 @@ var HawaSiteLayout = function(_param) {
7269
7378
  var import_react61 = __toESM(require("react"));
7270
7379
  var import_clsx28 = __toESM(require("clsx"));
7271
7380
  // src/layout/Sidebar.tsx
7272
- var React73 = __toESM(require("react"));
7381
+ var React74 = __toESM(require("react"));
7273
7382
  var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
7274
7383
  var Accordion = AccordionPrimitive.Root;
7275
7384
  var triggerStyles = "flex flex-1 items-center select-none cursor-pointer bg-primary-foreground rounded justify-between p-2 px-3 font-medium transition-all [&[data-state=open]>svg]:-rotate-90";
7276
- var AccordionItem = React73.forwardRef(function(_param, ref) /* @__PURE__ */ {
7385
+ var AccordionItem = React74.forwardRef(function(_param, ref) /* @__PURE__ */ {
7277
7386
  var className = _param.className, props = _object_without_properties(_param, [
7278
7387
  "className"
7279
7388
  ]);
7280
- return React73.createElement(AccordionPrimitive.Item, _object_spread({
7389
+ return React74.createElement(AccordionPrimitive.Item, _object_spread({
7281
7390
  ref: ref,
7282
7391
  className: cn(className)
7283
7392
  }, props));
7284
7393
  });
7285
7394
  AccordionItem.displayName = "AccordionItem";
7286
- var AccordionTrigger = React73.forwardRef(function(_param, ref) /* @__PURE__ */ {
7395
+ var AccordionTrigger = React74.forwardRef(function(_param, ref) /* @__PURE__ */ {
7287
7396
  var className = _param.className, showArrow = _param.showArrow, children = _param.children, props = _object_without_properties(_param, [
7288
7397
  "className",
7289
7398
  "showArrow",
7290
7399
  "children"
7291
7400
  ]);
7292
- return React73.createElement(AccordionPrimitive.Header, {
7401
+ return React74.createElement(AccordionPrimitive.Header, {
7293
7402
  className: "flex"
7294
- }, /* @__PURE__ */ React73.createElement(AccordionPrimitive.Trigger, _object_spread({
7403
+ }, /* @__PURE__ */ React74.createElement(AccordionPrimitive.Trigger, _object_spread({
7295
7404
  ref: ref,
7296
7405
  className: cn(triggerStyles, className)
7297
- }, props), children, showArrow && /* @__PURE__ */ React73.createElement("svg", {
7406
+ }, props), children, showArrow && /* @__PURE__ */ React74.createElement("svg", {
7298
7407
  "aria-label": "Chevron Right Icon",
7299
7408
  stroke: "currentColor",
7300
7409
  fill: "currentColor",
@@ -7302,29 +7411,29 @@ var AccordionTrigger = React73.forwardRef(function(_param, ref) /* @__PURE__ */
7302
7411
  height: "1em",
7303
7412
  width: "1em",
7304
7413
  className: "h-4 w-4 shrink-0 rotate-90 transition-transform duration-200"
7305
- }, /* @__PURE__ */ React73.createElement("path", {
7414
+ }, /* @__PURE__ */ React74.createElement("path", {
7306
7415
  d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
7307
7416
  }))));
7308
7417
  });
7309
7418
  AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
7310
- var AccordionContent = React73.forwardRef(function(_param, ref) /* @__PURE__ */ {
7419
+ var AccordionContent = React74.forwardRef(function(_param, ref) /* @__PURE__ */ {
7311
7420
  var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
7312
7421
  "className",
7313
7422
  "children"
7314
7423
  ]);
7315
- return React73.createElement(AccordionPrimitive.Content, _object_spread({
7424
+ return React74.createElement(AccordionPrimitive.Content, _object_spread({
7316
7425
  ref: ref,
7317
7426
  className: cn("overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down", className)
7318
- }, props), /* @__PURE__ */ React73.createElement("div", null, children));
7427
+ }, props), /* @__PURE__ */ React74.createElement("div", null, children));
7319
7428
  });
7320
7429
  AccordionContent.displayName = AccordionPrimitive.Content.displayName;
7321
7430
  var SidebarGroup = function(param) {
7322
7431
  var title = param.title, items = param.items, selectedItem = param.selectedItem, openedItem = param.openedItem, setOpenedItem = param.setOpenedItem, onItemClick = param.onItemClick, onSubItemClick = param.onSubItemClick, direction = param.direction, isOpen = param.isOpen;
7323
- return /* @__PURE__ */ React73.createElement("div", null, title && /* @__PURE__ */ React73.createElement("h3", {
7432
+ return /* @__PURE__ */ React74.createElement("div", null, title && /* @__PURE__ */ React74.createElement("h3", {
7324
7433
  className: "mb-1 font-bold"
7325
- }, title), /* @__PURE__ */ React73.createElement("ul", {
7434
+ }, title), /* @__PURE__ */ React74.createElement("ul", {
7326
7435
  className: "flex flex-col gap-2"
7327
- }, /* @__PURE__ */ React73.createElement(Accordion, {
7436
+ }, /* @__PURE__ */ React74.createElement(Accordion, {
7328
7437
  value: openedItem,
7329
7438
  type: "single",
7330
7439
  onValueChange: function(e) {
@@ -7333,7 +7442,7 @@ var SidebarGroup = function(param) {
7333
7442
  collapsible: true,
7334
7443
  className: "flex flex-col gap-1"
7335
7444
  }, items.map(function(item, idx) {
7336
- return /* @__PURE__ */ React73.createElement(SidebarItem, {
7445
+ return /* @__PURE__ */ React74.createElement(SidebarItem, {
7337
7446
  isOpen: isOpen,
7338
7447
  isSelected: selectedItem,
7339
7448
  key: idx,
@@ -7350,23 +7459,23 @@ var SidebarItem = function(param) {
7350
7459
  return isSelected && isSelected[index] === value ? "bg-primary text-primary-foreground cursor-default" : "hover:bg-primary/10";
7351
7460
  };
7352
7461
  if (item.subitems) {
7353
- return /* @__PURE__ */ React73.createElement(AccordionItem, {
7462
+ return /* @__PURE__ */ React74.createElement(AccordionItem, {
7354
7463
  value: item.value,
7355
7464
  className: "overflow-x-clip",
7356
7465
  dir: direction
7357
- }, /* @__PURE__ */ React73.createElement(AccordionTrigger, {
7466
+ }, /* @__PURE__ */ React74.createElement(AccordionTrigger, {
7358
7467
  className: cn(getSelectedStyle(item.value, 0)),
7359
7468
  showArrow: isOpen
7360
- }, /* @__PURE__ */ React73.createElement("div", {
7469
+ }, /* @__PURE__ */ React74.createElement("div", {
7361
7470
  className: cn(!isOpen && "py-1", "flex w-fit flex-row items-center gap-2")
7362
- }, item.icon, isOpen && /* @__PURE__ */ React73.createElement("span", {
7471
+ }, item.icon, isOpen && /* @__PURE__ */ React74.createElement("span", {
7363
7472
  className: cn("transition-all ", isOpen ? "opacity-100" : "opacity-0")
7364
- }, item.label))), item.subitems && /* @__PURE__ */ React73.createElement(AccordionContent, {
7473
+ }, item.label))), item.subitems && /* @__PURE__ */ React74.createElement(AccordionContent, {
7365
7474
  className: " mt-1 h-full rounded "
7366
- }, /* @__PURE__ */ React73.createElement("div", {
7475
+ }, /* @__PURE__ */ React74.createElement("div", {
7367
7476
  className: cn("flex h-full flex-col gap-2 bg-foreground/5 p-1")
7368
7477
  }, item.subitems.map(function(subitem, idx) {
7369
- return /* @__PURE__ */ React73.createElement("li", {
7478
+ return /* @__PURE__ */ React74.createElement("li", {
7370
7479
  key: idx,
7371
7480
  onClick: function(e) {
7372
7481
  e.stopPropagation();
@@ -7381,7 +7490,7 @@ var SidebarItem = function(param) {
7381
7490
  }, subitem.icon, subitem.label);
7382
7491
  }))));
7383
7492
  } else {
7384
- return /* @__PURE__ */ React73.createElement("div", {
7493
+ return /* @__PURE__ */ React74.createElement("div", {
7385
7494
  dir: direction,
7386
7495
  onClick: function() {
7387
7496
  if (onItemClick) {
@@ -7391,9 +7500,9 @@ var SidebarItem = function(param) {
7391
7500
  }
7392
7501
  },
7393
7502
  className: cn(triggerStyles, getSelectedStyle(item.value, 0), "overflow-x-clip ")
7394
- }, /* @__PURE__ */ React73.createElement("div", {
7503
+ }, /* @__PURE__ */ React74.createElement("div", {
7395
7504
  className: "flex flex-row items-center gap-2 "
7396
- }, item.icon, /* @__PURE__ */ React73.createElement("span", {
7505
+ }, item.icon, /* @__PURE__ */ React74.createElement("span", {
7397
7506
  className: cn("whitespace-nowrap transition-all", isOpen ? "opacity-100" : "opacity-0")
7398
7507
  }, item.label)));
7399
7508
  }
@@ -10419,6 +10528,13 @@ var import_react95 = require("react");
10419
10528
  ComparingPlans: ComparingPlans,
10420
10529
  ConfirmationPage: ConfirmationPage,
10421
10530
  CreditCardForm: CreditCardForm,
10531
+ Dialog: Dialog,
10532
+ DialogContent: DialogContent,
10533
+ DialogDescription: DialogDescription,
10534
+ DialogFooter: DialogFooter,
10535
+ DialogHeader: DialogHeader,
10536
+ DialogTitle: DialogTitle,
10537
+ DialogTrigger: DialogTrigger,
10422
10538
  DragDropImages: DragDropImages,
10423
10539
  DraggableCard: DraggableCard,
10424
10540
  DropdownMenu: DropdownMenu,