@deepnoid/ui 0.1.12 → 0.1.13

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.
Files changed (109) hide show
  1. package/.turbo/turbo-build.log +158 -148
  2. package/dist/{chunk-LHDOM76J.mjs → chunk-2KAR2PTQ.mjs} +1 -1
  3. package/dist/{chunk-QYJORE4E.mjs → chunk-4GLKWK3Z.mjs} +1 -1
  4. package/dist/{chunk-H5DOTBKA.mjs → chunk-56RN6YOP.mjs} +1 -1
  5. package/dist/{chunk-RMTHVIPI.mjs → chunk-57WBWSSL.mjs} +2 -2
  6. package/dist/{chunk-ILFY6MZ6.mjs → chunk-6G7GOPSB.mjs} +5 -5
  7. package/dist/{chunk-PI6Q5JDU.mjs → chunk-7R4NOC2G.mjs} +11 -11
  8. package/dist/{chunk-6BBDU4HW.mjs → chunk-7R4QY3TA.mjs} +1 -1
  9. package/dist/{chunk-M5KV3WZ2.mjs → chunk-A7OXEUCC.mjs} +29 -37
  10. package/dist/{chunk-W55GVLPJ.mjs → chunk-AHTNXGAY.mjs} +1 -1
  11. package/dist/{chunk-RRI3I435.mjs → chunk-DADMVOYI.mjs} +1 -1
  12. package/dist/{chunk-ASQAVFM5.mjs → chunk-GQS6V47G.mjs} +1 -1
  13. package/dist/{chunk-C62UPLCC.mjs → chunk-GXWSYM7Z.mjs} +2 -2
  14. package/dist/{chunk-KHI2DZTG.mjs → chunk-LP724WOP.mjs} +4 -4
  15. package/dist/{chunk-BWURZ3WF.mjs → chunk-NEUCUEIG.mjs} +2 -2
  16. package/dist/{chunk-DPCE4DLW.mjs → chunk-NJ4PBW65.mjs} +1 -1
  17. package/dist/{chunk-G3LQ3ZX6.mjs → chunk-O5UA4WDU.mjs} +1 -1
  18. package/dist/{chunk-OHDRKCOC.mjs → chunk-T5LK5CJS.mjs} +41 -23
  19. package/dist/chunk-TTY3EEXX.mjs +143 -0
  20. package/dist/{chunk-N4F3R6HG.mjs → chunk-WB24YDE2.mjs} +1 -1
  21. package/dist/{chunk-N4UFXIUC.mjs → chunk-YQGZRSUQ.mjs} +1 -1
  22. package/dist/chunk-ZMJYDLTS.mjs +380 -0
  23. package/dist/components/avatar/avatar.js +29 -37
  24. package/dist/components/avatar/avatar.mjs +2 -2
  25. package/dist/components/avatar/index.js +29 -37
  26. package/dist/components/avatar/index.mjs +2 -2
  27. package/dist/components/breadcrumb/breadcrumb.d.mts +0 -3
  28. package/dist/components/breadcrumb/breadcrumb.d.ts +0 -3
  29. package/dist/components/breadcrumb/breadcrumb.js +257 -65
  30. package/dist/components/breadcrumb/breadcrumb.mjs +13 -3
  31. package/dist/components/breadcrumb/index.js +257 -65
  32. package/dist/components/breadcrumb/index.mjs +13 -3
  33. package/dist/components/button/button-group.js +1 -1
  34. package/dist/components/button/button-group.mjs +1 -1
  35. package/dist/components/button/button.js +29 -37
  36. package/dist/components/button/button.mjs +4 -4
  37. package/dist/components/button/icon-button.d.mts +157 -0
  38. package/dist/components/button/icon-button.d.ts +157 -0
  39. package/dist/components/button/icon-button.js +4674 -0
  40. package/dist/components/button/icon-button.mjs +16 -0
  41. package/dist/components/button/index.d.mts +5 -0
  42. package/dist/components/button/index.d.ts +5 -0
  43. package/dist/components/button/index.js +566 -45
  44. package/dist/components/button/index.mjs +16 -7
  45. package/dist/components/button/text-button.d.mts +146 -0
  46. package/dist/components/button/text-button.d.ts +146 -0
  47. package/dist/components/button/text-button.js +507 -0
  48. package/dist/components/button/text-button.mjs +11 -0
  49. package/dist/components/chip/chip.js +29 -37
  50. package/dist/components/chip/chip.mjs +3 -3
  51. package/dist/components/chip/index.js +29 -37
  52. package/dist/components/chip/index.mjs +3 -3
  53. package/dist/components/dateTimePicker/calendar.js +29 -37
  54. package/dist/components/dateTimePicker/calendar.mjs +3 -3
  55. package/dist/components/dateTimePicker/dateTimePicker.js +29 -37
  56. package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
  57. package/dist/components/dateTimePicker/index.js +29 -37
  58. package/dist/components/dateTimePicker/index.mjs +7 -7
  59. package/dist/components/dateTimePicker/timePicker.js +29 -37
  60. package/dist/components/dateTimePicker/timePicker.mjs +5 -5
  61. package/dist/components/icon/Icon.d.mts +4 -4
  62. package/dist/components/icon/Icon.d.ts +4 -4
  63. package/dist/components/icon/Icon.js +29 -37
  64. package/dist/components/icon/Icon.mjs +2 -2
  65. package/dist/components/icon/index.js +29 -37
  66. package/dist/components/icon/index.mjs +2 -2
  67. package/dist/components/icon/template.d.mts +1 -1
  68. package/dist/components/icon/template.d.ts +1 -1
  69. package/dist/components/icon/template.js +29 -37
  70. package/dist/components/icon/template.mjs +1 -1
  71. package/dist/components/input/index.js +29 -37
  72. package/dist/components/input/index.mjs +3 -3
  73. package/dist/components/input/input.js +29 -37
  74. package/dist/components/input/input.mjs +3 -3
  75. package/dist/components/list/index.js +29 -37
  76. package/dist/components/list/index.mjs +4 -4
  77. package/dist/components/list/listItem.js +29 -37
  78. package/dist/components/list/listItem.mjs +4 -4
  79. package/dist/components/modal/index.js +29 -37
  80. package/dist/components/modal/index.mjs +10 -7
  81. package/dist/components/modal/modal.js +29 -37
  82. package/dist/components/modal/modal.mjs +10 -7
  83. package/dist/components/pagination/index.js +36 -44
  84. package/dist/components/pagination/index.mjs +5 -5
  85. package/dist/components/pagination/pagination.js +36 -44
  86. package/dist/components/pagination/pagination.mjs +5 -5
  87. package/dist/components/ripple/index.mjs +3 -3
  88. package/dist/components/select/index.js +29 -37
  89. package/dist/components/select/index.mjs +4 -4
  90. package/dist/components/select/option.js +29 -37
  91. package/dist/components/select/option.mjs +3 -3
  92. package/dist/components/select/select.js +29 -37
  93. package/dist/components/select/select.mjs +4 -4
  94. package/dist/components/table/index.js +36 -44
  95. package/dist/components/table/index.mjs +6 -6
  96. package/dist/components/table/table.js +36 -44
  97. package/dist/components/table/table.mjs +6 -6
  98. package/dist/components/toast/index.js +29 -37
  99. package/dist/components/toast/index.mjs +4 -4
  100. package/dist/components/toast/toast.js +29 -37
  101. package/dist/components/toast/toast.mjs +3 -3
  102. package/dist/components/toast/use-toast.js +29 -37
  103. package/dist/components/toast/use-toast.mjs +4 -4
  104. package/dist/index.d.mts +2 -0
  105. package/dist/index.d.ts +2 -0
  106. package/dist/index.js +1102 -608
  107. package/dist/index.mjs +50 -42
  108. package/package.json +1 -1
  109. /package/dist/{chunk-VUYUQGLF.mjs → chunk-MY5U63QO.mjs} +0 -0
@@ -107,7 +107,7 @@ __export(breadcrumb_exports, {
107
107
  module.exports = __toCommonJS(breadcrumb_exports);
108
108
 
109
109
  // src/components/breadcrumb/breadcrumb.tsx
110
- var import_react = require("react");
110
+ var import_react2 = require("react");
111
111
 
112
112
  // src/utils/tailwind-variants.ts
113
113
  var import_tailwind_variants = require("tailwind-variants");
@@ -735,6 +735,35 @@ var template = {
735
735
  }
736
736
  );
737
737
  },
738
+ home: ({ className }) => {
739
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
740
+ "svg",
741
+ {
742
+ xmlns: "http://www.w3.org/2000/svg",
743
+ width: "18",
744
+ height: "18",
745
+ viewBox: "0 0 18 18",
746
+ fill: "none",
747
+ className,
748
+ children: [
749
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
750
+ "path",
751
+ {
752
+ d: "M8.60249 2.88071C8.70796 2.77538 8.85092 2.71621 8.99999 2.71621C9.14905 2.71621 9.29202 2.77538 9.39749 2.88071L15.915 9.39821C15.9669 9.45191 16.029 9.49474 16.0976 9.52418C16.1663 9.55363 16.2401 9.56911 16.3148 9.56973C16.3895 9.57034 16.4635 9.55607 16.5326 9.52776C16.6018 9.49944 16.6645 9.45764 16.7173 9.4048C16.7701 9.35196 16.8119 9.28914 16.8401 9.22C16.8684 9.15086 16.8826 9.07678 16.8819 9.00209C16.8812 8.92741 16.8656 8.8536 16.8361 8.78499C16.8066 8.71638 16.7637 8.65433 16.71 8.60246L10.1932 2.08496C10.0365 1.92826 9.85051 1.80396 9.64577 1.71915C9.44103 1.63435 9.22159 1.5907 8.99999 1.5907C8.77838 1.5907 8.55894 1.63435 8.3542 1.71915C8.14947 1.80396 7.96344 1.92826 7.80674 2.08496L1.28924 8.60246C1.23554 8.65438 1.19272 8.71647 1.16327 8.78511C1.13382 8.85375 1.11834 8.92757 1.11773 9.00225C1.11711 9.07694 1.13138 9.15101 1.15969 9.22012C1.18801 9.28924 1.22981 9.35202 1.28265 9.40481C1.33549 9.4576 1.39831 9.49934 1.46745 9.52759C1.53659 9.55584 1.61067 9.57004 1.68536 9.56935C1.76005 9.56867 1.83385 9.55312 1.90246 9.5236C1.97108 9.49409 2.03312 9.45121 2.08499 9.39746L8.60249 2.88071Z",
753
+ fill: "currentColor"
754
+ }
755
+ ),
756
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
757
+ "path",
758
+ {
759
+ d: "M9 4.07397L15.1193 10.1932C15.1418 10.2157 15.1643 10.2367 15.1875 10.2577V14.9062C15.1875 15.6825 14.5575 16.3125 13.7812 16.3125H11.25C11.1008 16.3125 10.9577 16.2532 10.8523 16.1477C10.7468 16.0422 10.6875 15.8992 10.6875 15.75V12.375C10.6875 12.2258 10.6282 12.0827 10.5227 11.9772C10.4173 11.8717 10.2742 11.8125 10.125 11.8125H7.875C7.72582 11.8125 7.58274 11.8717 7.47725 11.9772C7.37176 12.0827 7.3125 12.2258 7.3125 12.375V15.75C7.3125 15.8992 7.25324 16.0422 7.14775 16.1477C7.04226 16.2532 6.89918 16.3125 6.75 16.3125H4.21875C3.84579 16.3125 3.4881 16.1643 3.22438 15.9006C2.96066 15.6369 2.8125 15.2792 2.8125 14.9062V10.2577C2.83583 10.2369 2.85859 10.2153 2.88075 10.1932L9 4.07397Z",
760
+ fill: "currentColor"
761
+ }
762
+ )
763
+ ]
764
+ }
765
+ );
766
+ },
738
767
  // ----------------------------------- old ---------------------------------
739
768
  // ** Status **
740
769
  plus: ({ className, fill }) => {
@@ -1191,43 +1220,6 @@ var template = {
1191
1220
  // );
1192
1221
  // },
1193
1222
  // ** Common **
1194
- home: ({ className, fill }) => {
1195
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1196
- "svg",
1197
- {
1198
- width: "24",
1199
- height: "24",
1200
- viewBox: "0 0 24 24",
1201
- fill: "none",
1202
- xmlns: "http://www.w3.org/2000/svg",
1203
- className,
1204
- children: fill ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
1205
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1206
- "path",
1207
- {
1208
- d: "M11.4699 3.84111C11.6106 3.70066 11.8012 3.62177 11.9999 3.62177C12.1987 3.62177 12.3893 3.70066 12.5299 3.84111L21.2199 12.5311C21.2892 12.6027 21.3719 12.6598 21.4635 12.6991C21.555 12.7383 21.6534 12.759 21.753 12.7598C21.8526 12.7606 21.9513 12.7416 22.0435 12.7038C22.1356 12.6661 22.2194 12.6104 22.2897 12.5399C22.3601 12.4694 22.4158 12.3857 22.4534 12.2935C22.4911 12.2013 22.51 12.1025 22.5091 12.003C22.5082 11.9034 22.4875 11.805 22.4481 11.7135C22.4088 11.622 22.3516 11.5393 22.2799 11.4701L13.5909 2.78011C13.382 2.57118 13.134 2.40544 12.861 2.29237C12.588 2.17929 12.2954 2.12109 11.9999 2.12109C11.7045 2.12109 11.4119 2.17929 11.1389 2.29237C10.8659 2.40544 10.6179 2.57118 10.4089 2.78011L1.71894 11.4701C1.64734 11.5393 1.59025 11.6221 1.55098 11.7136C1.51172 11.8052 1.49108 11.9036 1.49026 12.0032C1.48944 12.1028 1.50846 12.2015 1.54622 12.2937C1.58397 12.3858 1.6397 12.4695 1.71015 12.5399C1.78061 12.6103 1.86437 12.6659 1.95656 12.7036C2.04875 12.7413 2.14752 12.7602 2.2471 12.7593C2.34669 12.7584 2.44509 12.7377 2.53658 12.6983C2.62806 12.659 2.71079 12.6018 2.77994 12.5301L11.4699 3.84111Z",
1209
- fill: "currentColor"
1210
- }
1211
- ),
1212
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1213
- "path",
1214
- {
1215
- d: "M12 5.43213L20.159 13.5911C20.189 13.6211 20.219 13.6491 20.25 13.6771V19.8751C20.25 20.9101 19.41 21.7501 18.375 21.7501H15C14.8011 21.7501 14.6103 21.6711 14.4697 21.5305C14.329 21.3898 14.25 21.199 14.25 21.0001V16.5001C14.25 16.3012 14.171 16.1105 14.0303 15.9698C13.8897 15.8291 13.6989 15.7501 13.5 15.7501H10.5C10.3011 15.7501 10.1103 15.8291 9.96967 15.9698C9.82902 16.1105 9.75 16.3012 9.75 16.5001V21.0001C9.75 21.199 9.67098 21.3898 9.53033 21.5305C9.38968 21.6711 9.19891 21.7501 9 21.7501H5.625C5.12772 21.7501 4.65081 21.5526 4.29917 21.201C3.94754 20.8493 3.75 20.3724 3.75 19.8751V13.6771C3.78111 13.6493 3.81146 13.6206 3.841 13.5911L12 5.43213Z",
1216
- fill: "currentColor"
1217
- }
1218
- )
1219
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1220
- "path",
1221
- {
1222
- d: "M2.25 12.0001L11.204 3.04507C11.644 2.60607 12.356 2.60607 12.795 3.04507L21.75 12.0001M4.5 9.75007V19.8751C4.5 20.4961 5.004 21.0001 5.625 21.0001H9.75V16.1251C9.75 15.5041 10.254 15.0001 10.875 15.0001H13.125C13.746 15.0001 14.25 15.5041 14.25 16.1251V21.0001H18.375C18.996 21.0001 19.5 20.4961 19.5 19.8751V9.75007M8.25 21.0001H16.5",
1223
- stroke: "currentColor",
1224
- strokeLinecap: "round",
1225
- strokeLinejoin: "round"
1226
- }
1227
- )
1228
- }
1229
- );
1230
- },
1231
1223
  camera: ({ className, fill }) => {
1232
1224
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1233
1225
  "svg",
@@ -4238,32 +4230,240 @@ var Icon = ({ name, size = "md", fill = false, className, onClick, ...props }) =
4238
4230
  };
4239
4231
  var Icon_default = Icon;
4240
4232
 
4241
- // src/components/breadcrumb/breadcrumb.tsx
4233
+ // src/utils/props.ts
4234
+ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
4235
+ if (!variantKeys) {
4236
+ return [props, {}];
4237
+ }
4238
+ const picked = variantKeys.reduce((acc, key) => {
4239
+ if (key in props) {
4240
+ return { ...acc, [key]: props[key] };
4241
+ } else {
4242
+ return acc;
4243
+ }
4244
+ }, {});
4245
+ if (removeVariantProps) {
4246
+ const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
4247
+ return [omitted, picked];
4248
+ } else {
4249
+ return [props, picked];
4250
+ }
4251
+ };
4252
+
4253
+ // src/components/button/text-button.tsx
4254
+ var import_react = require("react");
4255
+
4256
+ // src/utils/clsx.ts
4257
+ function clsx(...args) {
4258
+ var i = 0, tmp, x, str = "";
4259
+ while (i < args.length) {
4260
+ if (tmp = args[i++]) {
4261
+ if (x = toVal(tmp)) {
4262
+ str && (str += " ");
4263
+ str += x;
4264
+ }
4265
+ }
4266
+ }
4267
+ return str;
4268
+ }
4269
+ function toVal(mix) {
4270
+ var k, y, str = "";
4271
+ if (typeof mix === "string" || typeof mix === "number") {
4272
+ str += mix;
4273
+ } else if (typeof mix === "object") {
4274
+ if (Array.isArray(mix)) {
4275
+ var len = mix.length;
4276
+ for (k = 0; k < len; k++) {
4277
+ if (mix[k]) {
4278
+ if (y = toVal(mix[k])) {
4279
+ str && (str += " ");
4280
+ str += y;
4281
+ }
4282
+ }
4283
+ }
4284
+ } else {
4285
+ for (y in mix) {
4286
+ if (mix[y]) {
4287
+ str && (str += " ");
4288
+ str += y;
4289
+ }
4290
+ }
4291
+ }
4292
+ }
4293
+ return str;
4294
+ }
4295
+
4296
+ // src/components/button/text-button.tsx
4242
4297
  var import_jsx_runtime3 = require("react/jsx-runtime");
4243
- var BreadcrumbMenu = (0, import_react.forwardRef)(({ label, onClick, isCurrent, size }, ref) => {
4244
- const slots = (0, import_react.useMemo)(() => breadcrumbStyle({ size }), [size]);
4245
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
4246
- "span",
4298
+ var TextButton = (0, import_react.forwardRef)((originalProps, ref) => {
4299
+ const [props, variantProps] = mapPropsVariants(originalProps, textButtonStyle.variantKeys);
4300
+ const { children, startContent, endContent, classNames, variant, isDisabled, size, ...buttonProps } = {
4301
+ ...props,
4302
+ ...variantProps
4303
+ };
4304
+ const slots = (0, import_react.useMemo)(() => textButtonStyle({ ...variantProps }), [variantProps]);
4305
+ const getContentProps = (0, import_react.useCallback)(() => {
4306
+ const className = slots.content({ class: classNames == null ? void 0 : classNames.content });
4307
+ return { className, size };
4308
+ }, [slots, classNames, size]);
4309
+ const renderContent = (content) => {
4310
+ const contentProps = getContentProps();
4311
+ if ((0, import_react.isValidElement)(content)) {
4312
+ const _content = content;
4313
+ const contentProps2 = getContentProps();
4314
+ const mergedProps = {
4315
+ ...contentProps2,
4316
+ ...typeof _content.props.className === "string" && {
4317
+ className: clsx(contentProps2.className, _content.props.className)
4318
+ }
4319
+ };
4320
+ return (0, import_react.cloneElement)(_content, mergedProps);
4321
+ }
4322
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { ...contentProps, children: content });
4323
+ };
4324
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
4325
+ "button",
4247
4326
  {
4327
+ ...buttonProps,
4248
4328
  ref,
4329
+ disabled: isDisabled,
4330
+ className: clsx(
4331
+ slots.base({ class: classNames == null ? void 0 : classNames.base }),
4332
+ variant === "underline" && slots.underline({ class: classNames == null ? void 0 : classNames.underline })
4333
+ ),
4334
+ children: [
4335
+ startContent && renderContent(startContent),
4336
+ children,
4337
+ endContent && renderContent(endContent)
4338
+ ]
4339
+ }
4340
+ );
4341
+ });
4342
+ TextButton.displayName = "TextButton";
4343
+ var text_button_default = TextButton;
4344
+ var textButtonStyle = tv({
4345
+ slots: {
4346
+ base: ["flex", "items-center", "justify-center", "whitespace-nowrap", "overflow-hidden"],
4347
+ content: [],
4348
+ underline: ["underline", "decoration-skip-ink", "underline-offset-[1px]"]
4349
+ },
4350
+ variants: {
4351
+ variant: {
4352
+ "non-under": [],
4353
+ underline: []
4354
+ },
4355
+ color: {
4356
+ primary: [],
4357
+ secondary: [],
4358
+ neutral: []
4359
+ },
4360
+ size: {
4361
+ sm: {
4362
+ base: ["text-sm"],
4363
+ underline: ["decoration-[1px]"]
4364
+ },
4365
+ md: {
4366
+ base: ["text-md"],
4367
+ underline: ["decoration-[1.25px]"]
4368
+ },
4369
+ lg: {
4370
+ base: ["text-lg"],
4371
+ underline: ["decoration-[1.5px]"]
4372
+ },
4373
+ xl: {
4374
+ base: ["text-xl"],
4375
+ underline: ["decoration-[1.75px]"]
4376
+ }
4377
+ },
4378
+ isDisabled: {
4379
+ true: {
4380
+ base: ["!text-neutral-light", "pointer-events-none"]
4381
+ }
4382
+ },
4383
+ isInGroup: {
4384
+ true: {
4385
+ base: ["[&:not(:first-child):not(:last-child)]:rounded-none", "first:rounded-r-none", "last:rounded-l-none"]
4386
+ }
4387
+ }
4388
+ },
4389
+ compoundVariants: [
4390
+ {
4391
+ color: "primary",
4392
+ class: {
4393
+ base: ["text-primary-main", "hover:text-primary-dark", "active:text-primary-strong"]
4394
+ }
4395
+ },
4396
+ {
4397
+ color: "secondary",
4398
+ class: {
4399
+ base: ["text-secondary-main", "hover:text-secondary-dark", "active:text-secondary-strong"]
4400
+ }
4401
+ },
4402
+ {
4403
+ color: "neutral",
4404
+ class: {
4405
+ base: ["text-neutral-main", "hover:text-neutral-dark", "active:text-neutral-strong"]
4406
+ }
4407
+ }
4408
+ ],
4409
+ defaultVariants: {
4410
+ size: "md",
4411
+ color: "primary",
4412
+ variant: "non-under",
4413
+ isDisabled: false,
4414
+ isInGroup: false
4415
+ }
4416
+ });
4417
+
4418
+ // src/components/breadcrumb/breadcrumb.tsx
4419
+ var import_jsx_runtime4 = require("react/jsx-runtime");
4420
+ var BreadcrumbMenu = (0, import_react2.forwardRef)(({ label, onClick, isCurrent, size }, ref) => {
4421
+ const slots = (0, import_react2.useMemo)(() => breadcrumbStyle({ size }), [size]);
4422
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
4423
+ text_button_default,
4424
+ {
4425
+ variant: isCurrent ? "underline" : "non-under",
4426
+ color: isCurrent ? "primary" : "neutral",
4427
+ size,
4249
4428
  onClick,
4250
- className: `${slots.content()} ${isCurrent ? "text-primary-main underline" : ""}`,
4251
- "aria-current": isCurrent ? "page" : void 0,
4429
+ "aria-label": label,
4430
+ classNames: { base: "font-bold" },
4252
4431
  children: label
4253
4432
  }
4254
4433
  );
4255
4434
  });
4256
- var Breadcrumb = (0, import_react.forwardRef)(({ startIconName, size, menus, classNames }, ref) => {
4257
- const slots = (0, import_react.useMemo)(() => breadcrumbStyle({ size }), [size]);
4258
- const renderMenus = (menus2) => menus2.map((menu, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { className: "flex items-center gap-[5px]", children: [
4259
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(BreadcrumbMenu, { label: menu.label, onClick: menu.onClick, isCurrent: !menu.children, size }),
4260
- menu.children ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
4261
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "right", className: slots.separator() }),
4262
- renderMenus(menu.children)
4263
- ] }) : index !== menus2.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "right", className: slots.separator() })
4264
- ] }, `${menu.label}-${index}`));
4265
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("nav", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), "aria-label": "Breadcrumb", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("ul", { className: "flex items-center gap-1", children: [
4266
- startIconName && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: startIconName, fill: true, size, className: `${slots.icon()}` }) }),
4435
+ var Breadcrumb = (0, import_react2.forwardRef)(({ startIconName, size, menus, classNames }, ref) => {
4436
+ const slots = (0, import_react2.useMemo)(() => breadcrumbStyle({ size }), [size]);
4437
+ const renderMenus = (menus2) => {
4438
+ const flatMenus = [];
4439
+ const flatten = (items) => {
4440
+ var _a;
4441
+ for (const item of items) {
4442
+ flatMenus.push(item);
4443
+ if ((_a = item.children) == null ? void 0 : _a.length) {
4444
+ flatten(item.children);
4445
+ }
4446
+ }
4447
+ };
4448
+ flatten(menus2);
4449
+ return flatMenus.map((menu, index) => {
4450
+ const isLast = index === flatMenus.length - 1;
4451
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
4452
+ "li",
4453
+ {
4454
+ className: "flex items-center gap-[5px]",
4455
+ "aria-current": isLast ? "page" : void 0,
4456
+ children: [
4457
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(BreadcrumbMenu, { label: menu.label, onClick: menu.onClick, isCurrent: isLast, size }),
4458
+ !isLast && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "right", className: slots.separator() })
4459
+ ]
4460
+ },
4461
+ `${menu.label}-${index}`
4462
+ );
4463
+ });
4464
+ };
4465
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("nav", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), "aria-label": "Breadcrumb", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("ul", { className: "flex items-center gap-1", children: [
4466
+ startIconName && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: startIconName, size, className: `${slots.icon()}` }) }),
4267
4467
  renderMenus(menus)
4268
4468
  ] }) });
4269
4469
  });
@@ -4272,16 +4472,8 @@ var breadcrumb_default = Breadcrumb;
4272
4472
  var breadcrumbStyle = tv({
4273
4473
  slots: {
4274
4474
  base: ["flex", "items-center"],
4275
- content: [
4276
- "text-neutral-main",
4277
- "flex",
4278
- "items-center",
4279
- "hover:underline",
4280
- "cursor-pointer",
4281
- "[line-height:initial]"
4282
- ],
4283
4475
  icon: ["fill-primary-main", "text-primary-main", "stroke-primary-main"],
4284
- separator: ["stroke-neutral-main"]
4476
+ separator: ["text-neutral-main"]
4285
4477
  },
4286
4478
  variants: {
4287
4479
  size: {
@@ -2,11 +2,21 @@
2
2
  import "../../chunk-KYIODWXL.mjs";
3
3
  import {
4
4
  breadcrumb_default
5
- } from "../../chunk-OHDRKCOC.mjs";
5
+ } from "../../chunk-T5LK5CJS.mjs";
6
+ import "../../chunk-MY5U63QO.mjs";
7
+ import "../../chunk-WB24YDE2.mjs";
8
+ import "../../chunk-LP724WOP.mjs";
9
+ import "../../chunk-ZMJYDLTS.mjs";
10
+ import "../../chunk-6WSACUIB.mjs";
11
+ import "../../chunk-6PNKRBUT.mjs";
12
+ import "../../chunk-LXHUO6VM.mjs";
13
+ import "../../chunk-TTY3EEXX.mjs";
6
14
  import "../../chunk-ZYIIXWVY.mjs";
7
- import "../../chunk-RRI3I435.mjs";
8
- import "../../chunk-M5KV3WZ2.mjs";
15
+ import "../../chunk-DADMVOYI.mjs";
16
+ import "../../chunk-A7OXEUCC.mjs";
9
17
  import "../../chunk-2ZT6V4QR.mjs";
18
+ import "../../chunk-27Y6K5NK.mjs";
19
+ import "../../chunk-E3G5QXSH.mjs";
10
20
  import "../../chunk-AC6TWLRT.mjs";
11
21
  export {
12
22
  breadcrumb_default as Breadcrumb
@@ -339,5 +339,5 @@ var ButtonGroup = (0, import_react.forwardRef)(({ children, ...props }, ref) =>
339
339
  ButtonGroup.displayName = "ButtonGroup";
340
340
  var button_group_default = ButtonGroup;
341
341
  var buttonGroup = tv({
342
- base: "flex"
342
+ base: ["flex", "gap-[20px]"]
343
343
  });
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  button_group_default
4
- } from "../../chunk-N4F3R6HG.mjs";
4
+ } from "../../chunk-WB24YDE2.mjs";
5
5
  import "../../chunk-2ZT6V4QR.mjs";
6
6
  import "../../chunk-AC6TWLRT.mjs";
7
7
  export {
@@ -753,6 +753,35 @@ var template = {
753
753
  }
754
754
  );
755
755
  },
756
+ home: ({ className }) => {
757
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
758
+ "svg",
759
+ {
760
+ xmlns: "http://www.w3.org/2000/svg",
761
+ width: "18",
762
+ height: "18",
763
+ viewBox: "0 0 18 18",
764
+ fill: "none",
765
+ className,
766
+ children: [
767
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
768
+ "path",
769
+ {
770
+ d: "M8.60249 2.88071C8.70796 2.77538 8.85092 2.71621 8.99999 2.71621C9.14905 2.71621 9.29202 2.77538 9.39749 2.88071L15.915 9.39821C15.9669 9.45191 16.029 9.49474 16.0976 9.52418C16.1663 9.55363 16.2401 9.56911 16.3148 9.56973C16.3895 9.57034 16.4635 9.55607 16.5326 9.52776C16.6018 9.49944 16.6645 9.45764 16.7173 9.4048C16.7701 9.35196 16.8119 9.28914 16.8401 9.22C16.8684 9.15086 16.8826 9.07678 16.8819 9.00209C16.8812 8.92741 16.8656 8.8536 16.8361 8.78499C16.8066 8.71638 16.7637 8.65433 16.71 8.60246L10.1932 2.08496C10.0365 1.92826 9.85051 1.80396 9.64577 1.71915C9.44103 1.63435 9.22159 1.5907 8.99999 1.5907C8.77838 1.5907 8.55894 1.63435 8.3542 1.71915C8.14947 1.80396 7.96344 1.92826 7.80674 2.08496L1.28924 8.60246C1.23554 8.65438 1.19272 8.71647 1.16327 8.78511C1.13382 8.85375 1.11834 8.92757 1.11773 9.00225C1.11711 9.07694 1.13138 9.15101 1.15969 9.22012C1.18801 9.28924 1.22981 9.35202 1.28265 9.40481C1.33549 9.4576 1.39831 9.49934 1.46745 9.52759C1.53659 9.55584 1.61067 9.57004 1.68536 9.56935C1.76005 9.56867 1.83385 9.55312 1.90246 9.5236C1.97108 9.49409 2.03312 9.45121 2.08499 9.39746L8.60249 2.88071Z",
771
+ fill: "currentColor"
772
+ }
773
+ ),
774
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
775
+ "path",
776
+ {
777
+ d: "M9 4.07397L15.1193 10.1932C15.1418 10.2157 15.1643 10.2367 15.1875 10.2577V14.9062C15.1875 15.6825 14.5575 16.3125 13.7812 16.3125H11.25C11.1008 16.3125 10.9577 16.2532 10.8523 16.1477C10.7468 16.0422 10.6875 15.8992 10.6875 15.75V12.375C10.6875 12.2258 10.6282 12.0827 10.5227 11.9772C10.4173 11.8717 10.2742 11.8125 10.125 11.8125H7.875C7.72582 11.8125 7.58274 11.8717 7.47725 11.9772C7.37176 12.0827 7.3125 12.2258 7.3125 12.375V15.75C7.3125 15.8992 7.25324 16.0422 7.14775 16.1477C7.04226 16.2532 6.89918 16.3125 6.75 16.3125H4.21875C3.84579 16.3125 3.4881 16.1643 3.22438 15.9006C2.96066 15.6369 2.8125 15.2792 2.8125 14.9062V10.2577C2.83583 10.2369 2.85859 10.2153 2.88075 10.1932L9 4.07397Z",
778
+ fill: "currentColor"
779
+ }
780
+ )
781
+ ]
782
+ }
783
+ );
784
+ },
756
785
  // ----------------------------------- old ---------------------------------
757
786
  // ** Status **
758
787
  plus: ({ className, fill }) => {
@@ -1209,43 +1238,6 @@ var template = {
1209
1238
  // );
1210
1239
  // },
1211
1240
  // ** Common **
1212
- home: ({ className, fill }) => {
1213
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1214
- "svg",
1215
- {
1216
- width: "24",
1217
- height: "24",
1218
- viewBox: "0 0 24 24",
1219
- fill: "none",
1220
- xmlns: "http://www.w3.org/2000/svg",
1221
- className,
1222
- children: fill ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
1223
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1224
- "path",
1225
- {
1226
- d: "M11.4699 3.84111C11.6106 3.70066 11.8012 3.62177 11.9999 3.62177C12.1987 3.62177 12.3893 3.70066 12.5299 3.84111L21.2199 12.5311C21.2892 12.6027 21.3719 12.6598 21.4635 12.6991C21.555 12.7383 21.6534 12.759 21.753 12.7598C21.8526 12.7606 21.9513 12.7416 22.0435 12.7038C22.1356 12.6661 22.2194 12.6104 22.2897 12.5399C22.3601 12.4694 22.4158 12.3857 22.4534 12.2935C22.4911 12.2013 22.51 12.1025 22.5091 12.003C22.5082 11.9034 22.4875 11.805 22.4481 11.7135C22.4088 11.622 22.3516 11.5393 22.2799 11.4701L13.5909 2.78011C13.382 2.57118 13.134 2.40544 12.861 2.29237C12.588 2.17929 12.2954 2.12109 11.9999 2.12109C11.7045 2.12109 11.4119 2.17929 11.1389 2.29237C10.8659 2.40544 10.6179 2.57118 10.4089 2.78011L1.71894 11.4701C1.64734 11.5393 1.59025 11.6221 1.55098 11.7136C1.51172 11.8052 1.49108 11.9036 1.49026 12.0032C1.48944 12.1028 1.50846 12.2015 1.54622 12.2937C1.58397 12.3858 1.6397 12.4695 1.71015 12.5399C1.78061 12.6103 1.86437 12.6659 1.95656 12.7036C2.04875 12.7413 2.14752 12.7602 2.2471 12.7593C2.34669 12.7584 2.44509 12.7377 2.53658 12.6983C2.62806 12.659 2.71079 12.6018 2.77994 12.5301L11.4699 3.84111Z",
1227
- fill: "currentColor"
1228
- }
1229
- ),
1230
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1231
- "path",
1232
- {
1233
- d: "M12 5.43213L20.159 13.5911C20.189 13.6211 20.219 13.6491 20.25 13.6771V19.8751C20.25 20.9101 19.41 21.7501 18.375 21.7501H15C14.8011 21.7501 14.6103 21.6711 14.4697 21.5305C14.329 21.3898 14.25 21.199 14.25 21.0001V16.5001C14.25 16.3012 14.171 16.1105 14.0303 15.9698C13.8897 15.8291 13.6989 15.7501 13.5 15.7501H10.5C10.3011 15.7501 10.1103 15.8291 9.96967 15.9698C9.82902 16.1105 9.75 16.3012 9.75 16.5001V21.0001C9.75 21.199 9.67098 21.3898 9.53033 21.5305C9.38968 21.6711 9.19891 21.7501 9 21.7501H5.625C5.12772 21.7501 4.65081 21.5526 4.29917 21.201C3.94754 20.8493 3.75 20.3724 3.75 19.8751V13.6771C3.78111 13.6493 3.81146 13.6206 3.841 13.5911L12 5.43213Z",
1234
- fill: "currentColor"
1235
- }
1236
- )
1237
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1238
- "path",
1239
- {
1240
- d: "M2.25 12.0001L11.204 3.04507C11.644 2.60607 12.356 2.60607 12.795 3.04507L21.75 12.0001M4.5 9.75007V19.8751C4.5 20.4961 5.004 21.0001 5.625 21.0001H9.75V16.1251C9.75 15.5041 10.254 15.0001 10.875 15.0001H13.125C13.746 15.0001 14.25 15.5041 14.25 16.1251V21.0001H18.375C18.996 21.0001 19.5 20.4961 19.5 19.8751V9.75007M8.25 21.0001H16.5",
1241
- stroke: "currentColor",
1242
- strokeLinecap: "round",
1243
- strokeLinejoin: "round"
1244
- }
1245
- )
1246
- }
1247
- );
1248
- },
1249
1241
  camera: ({ className, fill }) => {
1250
1242
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1251
1243
  "svg",
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  button_default
4
- } from "../../chunk-KHI2DZTG.mjs";
4
+ } from "../../chunk-LP724WOP.mjs";
5
5
  import "../../chunk-6WSACUIB.mjs";
6
- import "../../chunk-LXHUO6VM.mjs";
7
6
  import "../../chunk-6PNKRBUT.mjs";
7
+ import "../../chunk-LXHUO6VM.mjs";
8
8
  import "../../chunk-ZYIIXWVY.mjs";
9
- import "../../chunk-RRI3I435.mjs";
10
- import "../../chunk-M5KV3WZ2.mjs";
9
+ import "../../chunk-DADMVOYI.mjs";
10
+ import "../../chunk-A7OXEUCC.mjs";
11
11
  import "../../chunk-2ZT6V4QR.mjs";
12
12
  import "../../chunk-E3G5QXSH.mjs";
13
13
  import "../../chunk-AC6TWLRT.mjs";
@@ -0,0 +1,157 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as react from 'react';
4
+ import { ButtonHTMLAttributes } from 'react';
5
+ import { SlotsToClasses } from '../../utils/types.mjs';
6
+ import { IconName } from '../icon/Icon.mjs';
7
+ import 'react/jsx-runtime';
8
+ import '../icon/template.mjs';
9
+
10
+ interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
11
+ iconName: IconName;
12
+ disableRipple?: boolean;
13
+ classNames?: SlotsToClasses<IconButtonSlots>;
14
+ }
15
+ type IconButtonProps = Props & IconButtonVariantProps;
16
+ declare const IconButton: react.ForwardRefExoticComponent<Props & IconButtonVariantProps & react.RefAttributes<HTMLButtonElement>>;
17
+
18
+ declare const iconButtonStyle: tailwind_variants.TVReturnType<{
19
+ variant: {
20
+ solid: never[];
21
+ soft: never[];
22
+ outline: never[];
23
+ ghost: never[];
24
+ };
25
+ color: {
26
+ primary: never[];
27
+ secondary: never[];
28
+ neutral: never[];
29
+ info: never[];
30
+ success: never[];
31
+ warning: never[];
32
+ danger: never[];
33
+ };
34
+ size: {
35
+ sm: {
36
+ base: string[];
37
+ };
38
+ md: {
39
+ base: string[];
40
+ };
41
+ lg: {
42
+ base: string[];
43
+ };
44
+ xl: {
45
+ base: string[];
46
+ };
47
+ };
48
+ isLoading: {
49
+ true: {};
50
+ };
51
+ isDisabled: {
52
+ true: {
53
+ base: string[];
54
+ };
55
+ };
56
+ isInGroup: {
57
+ true: {
58
+ base: string[];
59
+ };
60
+ };
61
+ }, {
62
+ base: string[];
63
+ }, undefined, {
64
+ variant: {
65
+ solid: never[];
66
+ soft: never[];
67
+ outline: never[];
68
+ ghost: never[];
69
+ };
70
+ color: {
71
+ primary: never[];
72
+ secondary: never[];
73
+ neutral: never[];
74
+ info: never[];
75
+ success: never[];
76
+ warning: never[];
77
+ danger: never[];
78
+ };
79
+ size: {
80
+ sm: {
81
+ base: string[];
82
+ };
83
+ md: {
84
+ base: string[];
85
+ };
86
+ lg: {
87
+ base: string[];
88
+ };
89
+ xl: {
90
+ base: string[];
91
+ };
92
+ };
93
+ isLoading: {
94
+ true: {};
95
+ };
96
+ isDisabled: {
97
+ true: {
98
+ base: string[];
99
+ };
100
+ };
101
+ isInGroup: {
102
+ true: {
103
+ base: string[];
104
+ };
105
+ };
106
+ }, {
107
+ base: string[];
108
+ }, tailwind_variants.TVReturnType<{
109
+ variant: {
110
+ solid: never[];
111
+ soft: never[];
112
+ outline: never[];
113
+ ghost: never[];
114
+ };
115
+ color: {
116
+ primary: never[];
117
+ secondary: never[];
118
+ neutral: never[];
119
+ info: never[];
120
+ success: never[];
121
+ warning: never[];
122
+ danger: never[];
123
+ };
124
+ size: {
125
+ sm: {
126
+ base: string[];
127
+ };
128
+ md: {
129
+ base: string[];
130
+ };
131
+ lg: {
132
+ base: string[];
133
+ };
134
+ xl: {
135
+ base: string[];
136
+ };
137
+ };
138
+ isLoading: {
139
+ true: {};
140
+ };
141
+ isDisabled: {
142
+ true: {
143
+ base: string[];
144
+ };
145
+ };
146
+ isInGroup: {
147
+ true: {
148
+ base: string[];
149
+ };
150
+ };
151
+ }, {
152
+ base: string[];
153
+ }, undefined, unknown, unknown, undefined>>;
154
+ type IconButtonVariantProps = VariantProps<typeof iconButtonStyle>;
155
+ type IconButtonSlots = keyof ReturnType<typeof iconButtonStyle>;
156
+
157
+ export { type IconButtonProps, type Props, IconButton as default };