period-ui 0.1.17 → 0.1.19

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 (123) hide show
  1. package/dist/components/atoms/billo-icon/billo-icon-types.js +6 -9
  2. package/dist/components/atoms/billo-icon/billo-icon-types.js.map +1 -1
  3. package/dist/components/atoms/billo-icon/billo-icon.js +5 -8
  4. package/dist/components/atoms/billo-icon/billo-icon.js.map +1 -1
  5. package/dist/components/atoms/billo-icon/index.js +2 -18
  6. package/dist/components/atoms/billo-icon/index.js.map +1 -1
  7. package/dist/components/atoms/button/button-types.js +2 -5
  8. package/dist/components/atoms/button/button-types.js.map +1 -1
  9. package/dist/components/atoms/button/button.js +9 -12
  10. package/dist/components/atoms/button/button.js.map +1 -1
  11. package/dist/components/atoms/button/index.js +2 -18
  12. package/dist/components/atoms/button/index.js.map +1 -1
  13. package/dist/components/atoms/check-box/check-box-types.js +3 -6
  14. package/dist/components/atoms/check-box/check-box-types.js.map +1 -1
  15. package/dist/components/atoms/check-box/check-box.js +13 -16
  16. package/dist/components/atoms/check-box/check-box.js.map +1 -1
  17. package/dist/components/atoms/check-box/index.js +2 -18
  18. package/dist/components/atoms/check-box/index.js.map +1 -1
  19. package/dist/components/atoms/chip/chip/chip.js +8 -11
  20. package/dist/components/atoms/chip/chip/chip.js.map +1 -1
  21. package/dist/components/atoms/chip/chip/components/clear-button.js +5 -8
  22. package/dist/components/atoms/chip/chip/components/clear-button.js.map +1 -1
  23. package/dist/components/atoms/chip/chip/index.js +1 -17
  24. package/dist/components/atoms/chip/chip/index.js.map +1 -1
  25. package/dist/components/atoms/chip/chips-list/chips-list.js +5 -8
  26. package/dist/components/atoms/chip/chips-list/chips-list.js.map +1 -1
  27. package/dist/components/atoms/chip/chips-list/index.js +1 -17
  28. package/dist/components/atoms/chip/chips-list/index.js.map +1 -1
  29. package/dist/components/atoms/drop-down-menu/components/index.js +2 -18
  30. package/dist/components/atoms/drop-down-menu/components/index.js.map +1 -1
  31. package/dist/components/atoms/drop-down-menu/components/menu-item-types.js +2 -5
  32. package/dist/components/atoms/drop-down-menu/components/menu-item-types.js.map +1 -1
  33. package/dist/components/atoms/drop-down-menu/components/menu-item.js +15 -18
  34. package/dist/components/atoms/drop-down-menu/components/menu-item.js.map +1 -1
  35. package/dist/components/atoms/drop-down-menu/drop-down-menu.js +7 -10
  36. package/dist/components/atoms/drop-down-menu/drop-down-menu.js.map +1 -1
  37. package/dist/components/atoms/drop-down-menu/index.js +1 -17
  38. package/dist/components/atoms/drop-down-menu/index.js.map +1 -1
  39. package/dist/components/atoms/icon-button/icon-button.js +5 -8
  40. package/dist/components/atoms/icon-button/icon-button.js.map +1 -1
  41. package/dist/components/atoms/icon-button/index.js +1 -17
  42. package/dist/components/atoms/icon-button/index.js.map +1 -1
  43. package/dist/components/atoms/search-bar/components/clear-button.js +5 -8
  44. package/dist/components/atoms/search-bar/components/clear-button.js.map +1 -1
  45. package/dist/components/atoms/search-bar/index.js +1 -17
  46. package/dist/components/atoms/search-bar/index.js.map +1 -1
  47. package/dist/components/atoms/search-bar/search-bar.js +9 -12
  48. package/dist/components/atoms/search-bar/search-bar.js.map +1 -1
  49. package/dist/components/atoms/text/index.js +2 -18
  50. package/dist/components/atoms/text/index.js.map +1 -1
  51. package/dist/components/atoms/text/text-types.js +5 -8
  52. package/dist/components/atoms/text/text-types.js.map +1 -1
  53. package/dist/components/atoms/text/text.js +12 -15
  54. package/dist/components/atoms/text/text.js.map +1 -1
  55. package/dist/components/atoms/text-button/index.js +2 -18
  56. package/dist/components/atoms/text-button/index.js.map +1 -1
  57. package/dist/components/atoms/text-button/text-button-types.js +3 -6
  58. package/dist/components/atoms/text-button/text-button-types.js.map +1 -1
  59. package/dist/components/atoms/text-button/text-button.js +9 -12
  60. package/dist/components/atoms/text-button/text-button.js.map +1 -1
  61. package/dist/components/index.js +15 -31
  62. package/dist/components/index.js.map +1 -1
  63. package/dist/components/molecules/form/form-select/form-select.js +5 -8
  64. package/dist/components/molecules/form/form-select/form-select.js.map +1 -1
  65. package/dist/components/molecules/form/form-select/index.js +1 -17
  66. package/dist/components/molecules/form/form-select/index.js.map +1 -1
  67. package/dist/components/molecules/form/form-story-stubs.js +1 -4
  68. package/dist/components/molecules/form/form-story-stubs.js.map +1 -1
  69. package/dist/components/molecules/form/form-test-stubs.js +1 -4
  70. package/dist/components/molecules/form/form-test-stubs.js.map +1 -1
  71. package/dist/components/molecules/form/form-text-field/form-text-field.js +5 -8
  72. package/dist/components/molecules/form/form-text-field/form-text-field.js.map +1 -1
  73. package/dist/components/molecules/form/form-text-field/index.js +1 -17
  74. package/dist/components/molecules/form/form-text-field/index.js.map +1 -1
  75. package/dist/components/molecules/form/form-types.js +1 -2
  76. package/dist/components/molecules/form/form.js +8 -34
  77. package/dist/components/molecules/form/form.js.map +1 -1
  78. package/dist/components/molecules/form/index.js +2 -18
  79. package/dist/components/molecules/form/index.js.map +1 -1
  80. package/dist/components/molecules/select/components/select-input.js +6 -9
  81. package/dist/components/molecules/select/components/select-input.js.map +1 -1
  82. package/dist/components/molecules/select/index.js +2 -18
  83. package/dist/components/molecules/select/index.js.map +1 -1
  84. package/dist/components/molecules/select/select.js +10 -13
  85. package/dist/components/molecules/select/select.js.map +1 -1
  86. package/dist/components/molecules/select/use-select.js +16 -19
  87. package/dist/components/molecules/select/use-select.js.map +1 -1
  88. package/dist/components/molecules/text-field/index.js +1 -17
  89. package/dist/components/molecules/text-field/index.js.map +1 -1
  90. package/dist/components/molecules/text-field/text-field.js +5 -8
  91. package/dist/components/molecules/text-field/text-field.js.map +1 -1
  92. package/dist/containers/form-control/components/form-error.js +5 -8
  93. package/dist/containers/form-control/components/form-error.js.map +1 -1
  94. package/dist/containers/form-control/components/form-helper.js +5 -8
  95. package/dist/containers/form-control/components/form-helper.js.map +1 -1
  96. package/dist/containers/form-control/components/form-label.js +5 -8
  97. package/dist/containers/form-control/components/form-label.js.map +1 -1
  98. package/dist/containers/form-control/form-control-types.js +3 -6
  99. package/dist/containers/form-control/form-control-types.js.map +1 -1
  100. package/dist/containers/form-control/form-control.js +10 -13
  101. package/dist/containers/form-control/form-control.js.map +1 -1
  102. package/dist/containers/form-control/index.js +2 -18
  103. package/dist/containers/form-control/index.js.map +1 -1
  104. package/dist/containers/index.js +1 -17
  105. package/dist/containers/index.js.map +1 -1
  106. package/dist/index.d.ts +8 -0
  107. package/dist/index.d.ts.map +1 -1
  108. package/dist/index.js +4 -29
  109. package/dist/index.js.map +1 -1
  110. package/dist/utils/string-utils/string-utils.js +1 -4
  111. package/dist/utils/string-utils/string-utils.js.map +1 -1
  112. package/dist/utils/tailwind-utils.js +4 -10
  113. package/dist/utils/tailwind-utils.js.map +1 -1
  114. package/dist/utils/window-dimensions-utils.js +5 -8
  115. package/dist/utils/window-dimensions-utils.js.map +1 -1
  116. package/dist/vitest.setup.js +1 -2
  117. package/package.json +8 -1
  118. package/dist/components/atoms/billo-icon/billo-icon.d.ts +0 -11
  119. package/dist/components/atoms/button/button.d.ts +0 -9
  120. package/dist/components/atoms/check-box/check-box-types.d.ts +0 -10
  121. package/dist/components/atoms/check-box/check-box.d.ts +0 -14
  122. package/dist/components/atoms/chip/chip/chip.d.ts +0 -9
  123. package/dist/components/atoms/chip/chip/components/clear-button.d.ts +0 -11
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IconColor = exports.IconSize = exports.IconSymbol = void 0;
4
- var IconSymbol;
1
+ export var IconSymbol;
5
2
  (function (IconSymbol) {
6
3
  IconSymbol["WARNING"] = "icon-warning";
7
4
  IconSymbol["CHEVRON_DOWN"] = "icon-chevron-down";
@@ -89,8 +86,8 @@ var IconSymbol;
89
86
  IconSymbol["ALERT_FILLED"] = "icon-alert-filled";
90
87
  IconSymbol["DUPLICATE_AND_SEND"] = "icon-duplicate-and-send";
91
88
  IconSymbol["NUMBER_PAD"] = "icon-number-pad";
92
- })(IconSymbol || (exports.IconSymbol = IconSymbol = {}));
93
- var IconSize;
89
+ })(IconSymbol || (IconSymbol = {}));
90
+ export var IconSize;
94
91
  (function (IconSize) {
95
92
  IconSize["XXS"] = "text-[10px]";
96
93
  IconSize["XS"] = "text-[12px]";
@@ -105,8 +102,8 @@ var IconSize;
105
102
  IconSize["SIX_XL"] = "text-[60px]";
106
103
  IconSize["SEVEN_XL"] = "text-[72px]";
107
104
  IconSize["EIGHT_XL"] = "text-[96px]";
108
- })(IconSize || (exports.IconSize = IconSize = {}));
109
- var IconColor;
105
+ })(IconSize || (IconSize = {}));
106
+ export var IconColor;
110
107
  (function (IconColor) {
111
108
  IconColor["WHITE"] = "text-white";
112
109
  IconColor["BLUE_01"] = "text-blue-01";
@@ -118,5 +115,5 @@ var IconColor;
118
115
  IconColor["GRAY_02"] = "text-gray-02";
119
116
  IconColor["GRAY_03"] = "text-gray-03";
120
117
  IconColor["RED_01"] = "text-red-01";
121
- })(IconColor || (exports.IconColor = IconColor = {}));
118
+ })(IconColor || (IconColor = {}));
122
119
  //# sourceMappingURL=billo-icon-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"billo-icon-types.js","sourceRoot":"","sources":["../../../../src/components/atoms/billo-icon/billo-icon-types.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAuFX;AAvFD,WAAY,UAAU;IACpB,sCAAwB,CAAA;IACxB,gDAAkC,CAAA;IAClC,4CAA8B,CAAA;IAC9B,kDAAoC,CAAA;IACpC,gDAAkC,CAAA;IAClC,gCAAkB,CAAA;IAClB,wCAA0B,CAAA;IAC1B,oCAAsB,CAAA;IACtB,kDAAoC,CAAA;IACpC,sCAAwB,CAAA;IACxB,kCAAoB,CAAA;IACpB,wDAA0C,CAAA;IAC1C,0DAA4C,CAAA;IAC5C,8BAAgB,CAAA;IAChB,wCAA0B,CAAA;IAC1B,gDAAkC,CAAA;IAClC,gDAAkC,CAAA;IAClC,+BAAiB,CAAA;IACjB,8CAAgC,CAAA;IAChC,8BAAgB,CAAA;IAChB,gCAAkB,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AoC,CAAA;IACpC,oDAAsC,CAAA;IACtC,8CAAgC,CAAA;IAChC,8DAAgD,CAAA;IAChD,gDAAkC,CAAA;IAClC,4DAA8C,CAAA;IAC9C,4CAA8B,CAAA;AAChC,CAAC,EAvFW,UAAU,0BAAV,UAAU,QAuFrB;AAED,IAAY,QAcX;AAdD,WAAY,QAAQ;IAClB,+BAAmB,CAAA;IACnB,8BAAkB,CAAA;IAClB,8BAAkB,CAAA;IAClB,8BAAkB,CAAA;IAClB,8BAAkB,CAAA;IAClB,8BAAkB,CAAA;IAClB,kCAAsB,CAAA;IACtB,oCAAwB,CAAA;IACxB,mCAAuB,CAAA;IACvB,mCAAuB,CAAA;IACvB,kCAAsB,CAAA;IACtB,oCAAwB,CAAA;IACxB,oCAAwB,CAAA;AAC1B,CAAC,EAdW,QAAQ,wBAAR,QAAQ,QAcnB;AAED,IAAY,SAWX;AAXD,WAAY,SAAS;IACnB,iCAAoB,CAAA;IACpB,qCAAwB,CAAA;IACxB,qCAAwB,CAAA;IACxB,qCAAwB,CAAA;IACxB,uCAA0B,CAAA;IAC1B,yCAA4B,CAAA;IAC5B,mCAAsB,CAAA;IACtB,qCAAwB,CAAA;IACxB,qCAAwB,CAAA;IACxB,mCAAsB,CAAA;AACxB,CAAC,EAXW,SAAS,yBAAT,SAAS,QAWpB"}
1
+ {"version":3,"file":"billo-icon-types.js","sourceRoot":"","sources":["../../../../src/components/atoms/billo-icon/billo-icon-types.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,UAuFX;AAvFD,WAAY,UAAU;IACpB,sCAAwB,CAAA;IACxB,gDAAkC,CAAA;IAClC,4CAA8B,CAAA;IAC9B,kDAAoC,CAAA;IACpC,gDAAkC,CAAA;IAClC,gCAAkB,CAAA;IAClB,wCAA0B,CAAA;IAC1B,oCAAsB,CAAA;IACtB,kDAAoC,CAAA;IACpC,sCAAwB,CAAA;IACxB,kCAAoB,CAAA;IACpB,wDAA0C,CAAA;IAC1C,0DAA4C,CAA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CAAA;IACpB,sDAAwC,CAAA;IACxC,wCAA0B,CAAA;IAC1B,gCAAkB,CAAA;IAClB,4CAA8B,CAAA;IAC9B,8BAAgB,CAAA;IAChB,4CAA8B,CAAA;IAC9B,kDAAoC,CAAA;IACpC,kDAAoC,CAAA;IACpC,oDAAsC,CAAA;IACtC,8CAAgC,CAAA;IAChC,8DAAgD,CAAA;IAChD,gDAAkC,CAAA;IAClC,4DAA8C,CAAA;IAC9C,4CAA8B,CAAA;AAChC,CAAC,EAvFW,UAAU,KAAV,UAAU,QAuFrB;AAED,MAAM,CAAN,IAAY,QAcX;AAdD,WAAY,QAAQ;IAClB,+BAAmB,CAAA;IACnB,8BAAkB,CAAA;IAClB,8BAAkB,CAAA;IAClB,8BAAkB,CAAA;IAClB,8BAAkB,CAAA;IAClB,8BAAkB,CAAA;IAClB,kCAAsB,CAAA;IACtB,oCAAwB,CAAA;IACxB,mCAAuB,CAAA;IACvB,mCAAuB,CAAA;IACvB,kCAAsB,CAAA;IACtB,oCAAwB,CAAA;IACxB,oCAAwB,CAAA;AAC1B,CAAC,EAdW,QAAQ,KAAR,QAAQ,QAcnB;AAED,MAAM,CAAN,IAAY,SAWX;AAXD,WAAY,SAAS;IACnB,iCAAoB,CAAA;IACpB,qCAAwB,CAAA;IACxB,qCAAwB,CAAA;IACxB,qCAAwB,CAAA;IACxB,uCAA0B,CAAA;IAC1B,yCAA4B,CAAA;IAC5B,mCAAsB,CAAA;IACtB,qCAAwB,CAAA;IACxB,qCAAwB,CAAA;IACxB,mCAAsB,CAAA;AACxB,CAAC,EAXW,SAAS,KAAT,SAAS,QAWpB"}
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BilloIcon = BilloIcon;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const tailwind_utils_1 = require("../../../utils/tailwind-utils");
6
- const billo_icon_types_1 = require("./billo-icon-types");
7
- function BilloIcon({ icon, size = billo_icon_types_1.IconSize.LG, color = billo_icon_types_1.IconColor.GRAY_02, touchTarget, className, }) {
8
- return ((0, jsx_runtime_1.jsx)("div", { className: (0, tailwind_utils_1.tailwind)('inline-flex items-center justify-center', touchTarget), children: (0, jsx_runtime_1.jsx)("i", { role: "presentation", className: (0, tailwind_utils_1.tailwind)(size, color, className, icon) }) }));
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { tailwind } from '../../../utils/tailwind-utils';
3
+ import { IconColor, IconSize } from './billo-icon-types';
4
+ export function BilloIcon({ icon, size = IconSize.LG, color = IconColor.GRAY_02, touchTarget, className, }) {
5
+ return (_jsx("div", { className: tailwind('inline-flex items-center justify-center', touchTarget), children: _jsx("i", { role: "presentation", className: tailwind(size, color, className, icon) }) }));
9
6
  }
10
7
  //# sourceMappingURL=billo-icon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"billo-icon.js","sourceRoot":"","sources":["../../../../src/components/atoms/billo-icon/billo-icon.tsx"],"names":[],"mappings":";;AAWA,8BAYC;;AAvBD,kEAAyD;AACzD,yDAAqE;AAUrE,SAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,IAAI,GAAG,2BAAQ,CAAC,EAAE,EAClB,KAAK,GAAG,4BAAS,CAAC,OAAO,EACzB,WAAW,EACX,SAAS,GACH;IACN,OAAO,CACL,gCAAK,SAAS,EAAE,IAAA,yBAAQ,EAAC,yCAAyC,EAAE,WAAW,CAAC,YAC9E,8BAAG,IAAI,EAAC,cAAc,EAAC,SAAS,EAAE,IAAA,yBAAQ,EAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,GAAI,GACxE,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"billo-icon.js","sourceRoot":"","sources":["../../../../src/components/atoms/billo-icon/billo-icon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAc,MAAM,oBAAoB,CAAC;AAUrE,MAAM,UAAU,SAAS,CAAC,EACxB,IAAI,EACJ,IAAI,GAAG,QAAQ,CAAC,EAAE,EAClB,KAAK,GAAG,SAAS,CAAC,OAAO,EACzB,WAAW,EACX,SAAS,GACH;IACN,OAAO,CACL,cAAK,SAAS,EAAE,QAAQ,CAAC,yCAAyC,EAAE,WAAW,CAAC,YAC9E,YAAG,IAAI,EAAC,cAAc,EAAC,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,GAAI,GACxE,CACP,CAAC;AACJ,CAAC"}
@@ -1,19 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./billo-icon"), exports);
18
- __exportStar(require("./billo-icon-types"), exports);
1
+ export * from './billo-icon';
2
+ export * from './billo-icon-types';
19
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/billo-icon/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/billo-icon/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ButtonVariant = void 0;
4
- var ButtonVariant;
1
+ export var ButtonVariant;
5
2
  (function (ButtonVariant) {
6
3
  ButtonVariant["PRIMARY"] = "primary";
7
4
  ButtonVariant["SECONDARY"] = "secondary";
8
5
  ButtonVariant["DESTRUCTIVE"] = "destructive";
9
- })(ButtonVariant || (exports.ButtonVariant = ButtonVariant = {}));
6
+ })(ButtonVariant || (ButtonVariant = {}));
10
7
  //# sourceMappingURL=button-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-types.js","sourceRoot":"","sources":["../../../../src/components/atoms/button/button-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,4CAA2B,CAAA;AAC7B,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
1
+ {"version":3,"file":"button-types.js","sourceRoot":"","sources":["../../../../src/components/atoms/button/button-types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,4CAA2B,CAAA;AAC7B,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB"}
@@ -1,12 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Button = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const class_variance_authority_1 = require("class-variance-authority");
7
- const tailwind_utils_1 = require("../../../utils/tailwind-utils");
8
- const button_types_1 = require("./button-types");
9
- const buttonStyles = (0, class_variance_authority_1.cva)([
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from 'react';
3
+ import { cva } from 'class-variance-authority';
4
+ import { tailwind } from '../../../utils/tailwind-utils';
5
+ import { ButtonVariant } from './button-types';
6
+ const buttonStyles = cva([
10
7
  'w-full md:w-fit',
11
8
  'py-4 md:px-8',
12
9
  'rounded-lg',
@@ -23,9 +20,9 @@ const buttonStyles = (0, class_variance_authority_1.cva)([
23
20
  },
24
21
  defaultVariants: { variant: 'primary' },
25
22
  });
26
- const RawButton = (0, react_1.forwardRef)(({ variant = button_types_1.ButtonVariant.PRIMARY, className, ...props }, ref) => {
27
- return ((0, jsx_runtime_1.jsx)("button", { ref: ref, className: (0, tailwind_utils_1.tailwind)(buttonStyles({ variant, className })), ...props }));
23
+ const RawButton = forwardRef(({ variant = ButtonVariant.PRIMARY, className, ...props }, ref) => {
24
+ return (_jsx("button", { ref: ref, className: tailwind(buttonStyles({ variant, className })), ...props }));
28
25
  });
29
26
  RawButton.displayName = 'Button';
30
- exports.Button = RawButton;
27
+ export const Button = RawButton;
31
28
  //# sourceMappingURL=button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../src/components/atoms/button/button.tsx"],"names":[],"mappings":";;;;AAAA,iCAAmD;AACnD,uEAA6D;AAC7D,kEAAyD;AACzD,iDAA+C;AAE/C,MAAM,YAAY,GAAG,IAAA,8BAAG,EACtB;IACE,iBAAiB;IACjB,cAAc;IACd,YAAY;IACZ,mCAAmC;IACnC,mCAAmC;IACnC,6BAA6B;CAC9B,EACD;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EACL,kHAAkH;YACpH,SAAS,EACP,4JAA4J;YAC9J,WAAW,EACT,6GAA6G;SAChH;KACF;IACD,eAAe,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;CACxC,CACF,CAAC;AAIF,MAAM,SAAS,GAAG,IAAA,kBAAU,EAC1B,CAAC,EAAE,OAAO,GAAG,4BAAa,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAChE,OAAO,CACL,mCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,yBAAQ,EAAC,YAAY,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,KACrD,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,QAAQ,CAAC;AAGpB,QAAA,MAAM,GAAG,SAErB,CAAC"}
1
+ {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../src/components/atoms/button/button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkB,UAAU,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,GAAG,EAAgB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,YAAY,GAAG,GAAG,CACtB;IACE,iBAAiB;IACjB,cAAc;IACd,YAAY;IACZ,mCAAmC;IACnC,mCAAmC;IACnC,6BAA6B;CAC9B,EACD;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EACL,kHAAkH;YACpH,SAAS,EACP,4JAA4J;YAC9J,WAAW,EACT,6GAA6G;SAChH;KACF;IACD,eAAe,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;CACxC,CACF,CAAC;AAIF,MAAM,SAAS,GAAG,UAAU,CAC1B,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAChE,OAAO,CACL,iBACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,KACrD,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,QAAQ,CAAC;AAGjC,MAAM,CAAC,MAAM,MAAM,GAAG,SAErB,CAAC"}
@@ -1,19 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./button"), exports);
18
- __exportStar(require("./button-types"), exports);
1
+ export * from './button';
2
+ export * from './button-types';
19
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/button/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
@@ -1,13 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkBoxStyles = exports.CheckboxVariant = void 0;
4
- var CheckboxVariant;
1
+ export var CheckboxVariant;
5
2
  (function (CheckboxVariant) {
6
3
  CheckboxVariant["DEFAULT"] = "DEFAULT";
7
4
  CheckboxVariant["INTERMEDIATE"] = "INTERMEDIATE";
8
5
  CheckboxVariant["DESTRUCTIVE"] = "DESTRUCTIVE";
9
- })(CheckboxVariant || (exports.CheckboxVariant = CheckboxVariant = {}));
10
- exports.checkBoxStyles = {
6
+ })(CheckboxVariant || (CheckboxVariant = {}));
7
+ export const checkBoxStyles = {
11
8
  [CheckboxVariant.DEFAULT]: 'bg-blue-01 hover:bg-blue-02 focus-visible:bg-blue-02 disabled:bg-blue-03',
12
9
  [CheckboxVariant.DESTRUCTIVE]: 'bg-red-01 hover:bg-red-02 focus-visible:bg-red-02 disabled:bg-red-03',
13
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"check-box-types.js","sourceRoot":"","sources":["../../../../src/components/atoms/check-box/check-box-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,gDAA6B,CAAA;IAC7B,8CAA2B,CAAA;AAC7B,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAIY,QAAA,cAAc,GAEvB;IACF,CAAC,eAAe,CAAC,OAAO,CAAC,EACvB,0EAA0E;IAC5E,CAAC,eAAe,CAAC,WAAW,CAAC,EAC3B,sEAAsE;CACzE,CAAC"}
1
+ {"version":3,"file":"check-box-types.js","sourceRoot":"","sources":["../../../../src/components/atoms/check-box/check-box-types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,gDAA6B,CAAA;IAC7B,8CAA2B,CAAA;AAC7B,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AAID,MAAM,CAAC,MAAM,cAAc,GAEvB;IACF,CAAC,eAAe,CAAC,OAAO,CAAC,EACvB,0EAA0E;IAC5E,CAAC,eAAe,CAAC,WAAW,CAAC,EAC3B,sEAAsE;CACzE,CAAC"}
@@ -1,16 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Checkbox = Checkbox;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const components_1 = require("@/components");
7
- const components_2 = require("@/components");
8
- const window_dimensions_utils_1 = require("@/utils/window-dimensions-utils");
9
- const tailwind_utils_1 = require("@/utils/tailwind-utils");
10
- function Checkbox({ value, isDisabled = false, label, className, labelName, containerClassName, variant = components_2.CheckboxVariant.DEFAULT, onCheckToggle = () => { }, }) {
11
- const [isChecked, setIsChecked] = (0, react_1.useState)(false);
12
- const { isMobile } = (0, window_dimensions_utils_1.useWindowDimensions)();
13
- (0, react_1.useEffect)(() => {
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
3
+ import { BilloIcon, IconSize, IconSymbol, Text, TextColors, TextVariant, } from '@/components';
4
+ import { checkBoxStyles, CheckboxVariant } from '@/components';
5
+ import { useWindowDimensions } from '@/utils/window-dimensions-utils';
6
+ import { tailwind } from '@/utils/tailwind-utils';
7
+ export function Checkbox({ value, isDisabled = false, label, className, labelName, containerClassName, variant = CheckboxVariant.DEFAULT, onCheckToggle = () => { }, }) {
8
+ const [isChecked, setIsChecked] = useState(false);
9
+ const { isMobile } = useWindowDimensions();
10
+ useEffect(() => {
14
11
  if (value === undefined) {
15
12
  return;
16
13
  }
@@ -26,8 +23,8 @@ function Checkbox({ value, isDisabled = false, label, className, labelName, cont
26
23
  }
27
24
  onCheckToggle(isChecked);
28
25
  };
29
- const isIntermediate = variant === components_2.CheckboxVariant.INTERMEDIATE;
30
- const checkBoxVariantStyle = components_2.checkBoxStyles[isIntermediate ? components_2.CheckboxVariant.DEFAULT : variant];
31
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)('flex flex-row w-fit items-start', isDisabled ? 'cursor-not-allowed' : 'cursor-pointer', containerClassName), onClick: handleClick, children: [(0, jsx_runtime_1.jsxs)("button", { role: "checkbox", type: "button", disabled: isDisabled, className: (0, tailwind_utils_1.tailwind)('flex justify-center items-center border-2 border-gray-04 rounded shrink-0', 'h-[18px] w-[18px] md:h-5 md:w-5', 'hover:border-gray-03 hover:bg-gray-05', 'disabled:bg-gray-06 disabled:border-gray-04 disabled:cursor-not-allowed', 'focus-visible:border-none focus-visible:outline-2 focus-visible:bg-gray-05 focus-visible:outline-offset-2 focus:outline-blue-01', isChecked && `${checkBoxVariantStyle} border-none`, className), children: [isChecked && !isIntermediate && ((0, jsx_runtime_1.jsx)(components_1.BilloIcon, { size: isMobile ? components_1.IconSize.XXS : components_1.IconSize.XS, icon: components_1.IconSymbol.CHECK, className: "no-selectable text-white" })), isChecked && isIntermediate && ((0, jsx_runtime_1.jsx)(components_1.BilloIcon, { size: isMobile ? components_1.IconSize.XXS : components_1.IconSize.XS, icon: components_1.IconSymbol.MINUS, className: "text-white" }))] }), label && ((0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.BODY, className: (0, tailwind_utils_1.tailwind)('flex ml-2 select-none whitespace-normal', labelName), color: isDisabled ? components_1.TextColors.BLACK_03 : components_1.TextColors.BLACK, children: label }))] }) }));
26
+ const isIntermediate = variant === CheckboxVariant.INTERMEDIATE;
27
+ const checkBoxVariantStyle = checkBoxStyles[isIntermediate ? CheckboxVariant.DEFAULT : variant];
28
+ return (_jsx(_Fragment, { children: _jsxs("div", { className: tailwind('flex flex-row w-fit items-start', isDisabled ? 'cursor-not-allowed' : 'cursor-pointer', containerClassName), onClick: handleClick, children: [_jsxs("button", { role: "checkbox", type: "button", disabled: isDisabled, className: tailwind('flex justify-center items-center border-2 border-gray-04 rounded shrink-0', 'h-[18px] w-[18px] md:h-5 md:w-5', 'hover:border-gray-03 hover:bg-gray-05', 'disabled:bg-gray-06 disabled:border-gray-04 disabled:cursor-not-allowed', 'focus-visible:border-none focus-visible:outline-2 focus-visible:bg-gray-05 focus-visible:outline-offset-2 focus:outline-blue-01', isChecked && `${checkBoxVariantStyle} border-none`, className), children: [isChecked && !isIntermediate && (_jsx(BilloIcon, { size: isMobile ? IconSize.XXS : IconSize.XS, icon: IconSymbol.CHECK, className: "no-selectable text-white" })), isChecked && isIntermediate && (_jsx(BilloIcon, { size: isMobile ? IconSize.XXS : IconSize.XS, icon: IconSymbol.MINUS, className: "text-white" }))] }), label && (_jsx(Text, { variant: TextVariant.BODY, className: tailwind('flex ml-2 select-none whitespace-normal', labelName), color: isDisabled ? TextColors.BLACK_03 : TextColors.BLACK, children: label }))] }) }));
32
29
  }
33
30
  //# sourceMappingURL=check-box.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"check-box.js","sourceRoot":"","sources":["../../../../src/components/atoms/check-box/check-box.tsx"],"names":[],"mappings":";;AAwBA,4BA0FC;;AAlHD,iCAA4C;AAC5C,6CAOsB;AACtB,6CAA+D;AAC/D,6EAAsE;AACtE,2DAAkD;AAalD,SAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,UAAU,GAAG,KAAK,EAClB,KAAK,EACL,SAAS,EACT,SAAS,EACT,kBAAkB,EAClB,OAAO,GAAG,4BAAe,CAAC,OAAO,EACjC,aAAa,GAAG,GAAG,EAAE,GAAE,CAAC,GAClB;IACN,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IAC3D,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,6CAAmB,GAAE,CAAC;IAE3C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO;QACT,CAAC;QAED,YAAY,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,IAAI,UAAU,EAAE,CAAC;YACf,OAAO;QACT,CAAC;QAED,YAAY,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;QAEpC,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,OAAO;QACT,CAAC;QACD,aAAa,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,OAAO,KAAK,4BAAe,CAAC,YAAY,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AU,CAAC,KAAK,YAEzD,KAAK,GACD,CACR,IACG,GACL,CACJ,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"check-box.js","sourceRoot":"","sources":["../../../../src/components/atoms/check-box/check-box.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EACL,SAAS,EACT,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,UAAU,EACV,WAAW,GACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAalD,MAAM,UAAU,QAAQ,CAAC,EACvB,KAAK,EACL,UAAU,GAAG,KAAK,EAClB,KAAK,EACL,SAAS,EACT,SAAS,EACT,kBAAkB,EAClB,OAAO,GAAG,eAAe,CAAC,OAAO,EACjC,aAAa,GAAG,GAAG,EAAE,GAAE,CAAC,GAClB;IACN,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IAC3D,MAAM,EAAE,QAAQ,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAE3C,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO;QACT,CAAC;QAED,YAAY,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,IAAI,UAAU,EAAE,CAAC;YACf,OAAO;QACT,CAAC;QAED,YAAY,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;QAEpC,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,OAAO;QACT,CAAC;QACD,aAAa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AC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,YAEzD,KAAK,GACD,CACR,IACG,GACL,CACJ,CAAC;AACJ,CAAC"}
@@ -1,19 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./check-box"), exports);
18
- __exportStar(require("./check-box-types"), exports);
1
+ export * from './check-box';
2
+ export * from './check-box-types';
19
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/check-box/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/check-box/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"}
@@ -1,13 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Chip = Chip;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const tailwind_utils_1 = require("../../../../utils/tailwind-utils");
6
- const window_dimensions_utils_1 = require("../../../../utils/window-dimensions-utils");
7
- const components_1 = require("../../../../components");
8
- const clear_button_1 = require("./components/clear-button");
9
- function Chip({ id, label, className, onClick }) {
10
- const { isMobile } = (0, window_dimensions_utils_1.useWindowDimensions)();
11
- return ((0, jsx_runtime_1.jsxs)("div", { "data-chip": true, className: (0, tailwind_utils_1.tailwind)('flex flex-row pl-4 pr-1 md:pr-[2px] w-fit rounded-lg items-center justify-center', 'bg-gray-06 border border-gray-04', 'max-h-[34px] md:max-h-10', { 'py-2 px-4 md:px-4': !onClick }, className), children: [(0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.BODY, color: components_1.TextColors.BLACK_02, className: (0, tailwind_utils_1.tailwind)('w-full truncate max-w-96 mr-1 md:mr-[2px]'), children: label }), onClick && (0, jsx_runtime_1.jsx)(clear_button_1.ClearButton, { onClick: onClick, size: isMobile ? components_1.IconSize.XXS : components_1.IconSize.XS })] }, id));
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { tailwind } from '../../../../utils/tailwind-utils';
3
+ import { useWindowDimensions } from '../../../../utils/window-dimensions-utils';
4
+ import { IconSize, Text, TextColors, TextVariant } from '../../../../components';
5
+ import { ClearButton } from './components/clear-button';
6
+ export function Chip({ id, label, className, onClick }) {
7
+ const { isMobile } = useWindowDimensions();
8
+ return (_jsxs("div", { "data-chip": true, className: tailwind('flex flex-row pl-4 pr-1 md:pr-[2px] w-fit rounded-lg items-center justify-center', 'bg-gray-06 border border-gray-04', 'max-h-[34px] md:max-h-10', { 'py-2 px-4 md:px-4': !onClick }, className), children: [_jsx(Text, { variant: TextVariant.BODY, color: TextColors.BLACK_02, className: tailwind('w-full truncate max-w-96 mr-1 md:mr-[2px]'), children: label }), onClick && _jsx(ClearButton, { onClick: onClick, size: isMobile ? IconSize.XXS : IconSize.XS })] }, id));
12
9
  }
13
10
  //# sourceMappingURL=chip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chip.js","sourceRoot":"","sources":["../../../../../src/components/atoms/chip/chip/chip.tsx"],"names":[],"mappings":";;AAYA,oBAwBC;;AAp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SAAS,EAAE,QAAQ,CACjB,kFAAkF,EAClF,kCAAkC,EAClC,0BAA0B,EAC1B,EAAE,mBAAmB,EAAE,CAAC,OAAO,EAAE,EACjC,SAAS,CACV,aAED,KAAC,IAAI,IACH,OAAO,EAAE,WAAW,CAAC,IAAI,EACzB,KAAK,EAAE,UAAU,CAAC,QAAQ,EAC1B,SAAS,EAAE,QAAQ,CAAC,2CAA2C,CAAC,YAE/D,KAAK,GACD,EACN,OAAO,IAAI,KAAC,WAAW,IAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,GAAI,KAjBrF,EAAE,CAkBH,CACP,CAAC;AACJ,CAAC"}
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClearButton = ClearButton;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const components_1 = require("../../../../../components");
6
- const tailwind_utils_1 = require("../../../../../utils/tailwind-utils");
7
- function ClearButton({ isDisabled = false, size = components_1.IconSize.LG, onClick, className, }) {
8
- return ((0, jsx_runtime_1.jsx)("button", { type: "button", disabled: isDisabled, onClick: onClick, className: (0, tailwind_utils_1.tailwind)('group', 'flex cursor-pointer justify-center items-center', 'min-w-[34px] h-[34px] md:min-w-[40px] md:h-[40px] outline-none', isDisabled && 'cursor-not-allowed', className), children: (0, jsx_runtime_1.jsx)(components_1.BilloIcon, { icon: components_1.IconSymbol.ICON_X, size: size, color: isDisabled ? components_1.IconColor.GRAY_03 : components_1.IconColor.GRAY_02, touchTarget: (0, tailwind_utils_1.tailwind)('w-[28px] h-[28px] md:w-[34px] md:h-[34px]', 'rounded-full self-center outline-none', 'group-active:bg-gray-04', 'group-hover:bg-gray-05', 'group-focus-visible:bg-gray-05 group-focus-visible:ring-2 group-focus-visible:ring-offset-2 group-focus-visible:ring-blue-01', 'group-focus-visible:w-[25px] group-focus-visible:h-[25px] md:group-focus-visible:w-[31px] md:group-focus-visible:h-[31px]'), className: (0, tailwind_utils_1.tailwind)(!isDisabled &&
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { BilloIcon, IconColor, IconSize, IconSymbol } from '../../../../../components';
3
+ import { tailwind } from '../../../../../utils/tailwind-utils';
4
+ export function ClearButton({ isDisabled = false, size = IconSize.LG, onClick, className, }) {
5
+ return (_jsx("button", { type: "button", disabled: isDisabled, onClick: onClick, className: tailwind('group', 'flex cursor-pointer justify-center items-center', 'min-w-[34px] h-[34px] md:min-w-[40px] md:h-[40px] outline-none', isDisabled && 'cursor-not-allowed', className), children: _jsx(BilloIcon, { icon: IconSymbol.ICON_X, size: size, color: isDisabled ? IconColor.GRAY_03 : IconColor.GRAY_02, touchTarget: tailwind('w-[28px] h-[28px] md:w-[34px] md:h-[34px]', 'rounded-full self-center outline-none', 'group-active:bg-gray-04', 'group-hover:bg-gray-05', 'group-focus-visible:bg-gray-05 group-focus-visible:ring-2 group-focus-visible:ring-offset-2 group-focus-visible:ring-blue-01', 'group-focus-visible:w-[25px] group-focus-visible:h-[25px] md:group-focus-visible:w-[31px] md:group-focus-visible:h-[31px]'), className: tailwind(!isDisabled &&
9
6
  'group-active:text-gray-01 group-hover:text-gray-01 group-focus-visible:text-gray-01') }) }));
10
7
  }
11
8
  //# sourceMappingURL=clear-button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"clear-button.js","sourceRoot":"","sources":["../../../../../../src/components/atoms/chip/chip/components/clear-button.tsx"],"names":[],"mappings":";;AAWA,kCAsCC;;AAjDD,0DAAuF;AACvF,wEAA+D;AAU/D,SAAgB,WAAW,CAAC,EAC1B,UAAU,GAAG,KAAK,EAClB,IAAI,GAAG,qBAAQ,CAAC,EAAE,EAClB,OAAO,EACP,SAAS,GACH;IACN,OAAO,CACL,mCACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,IAAA,yBAAQ,EACjB,OAAO,EACP,iDAAiD,EACjD,gEAAgE,EAChE,UAAU,IAAI,oBAAoB,EAClC,SAAS,CACV,YAED,uBAAC,sBAAS,IACR,IAAI,EAAE,uBAAU,CAAC,MAAM,EACvB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,sBAAS,CAAC,OAAO,CAAC,CAAC,CAAC,sBAAS,CAAC,OAAO,EACzD,WAAW,EAAE,IAAA,yBAAQ,EACnB,2CAA2C,EAC3C,uCAAuC,EACvC,yBAAyB,EACzB,wBAAwB,EACxB,8HAA8H,EAC9H,2HAA2H,CAC5H,EACD,SAAS,EAAE,IAAA,yBAAQ,EACjB,CAAC,UAAU;gBACT,qFAAqF,CACxF,GACD,GACK,CACV,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"clear-button.js","sourceRoot":"","sources":["../../../../../../src/components/atoms/chip/chip/components/clear-button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAU/D,MAAM,UAAU,WAAW,CAAC,EAC1B,UAAU,GAAG,KAAK,EAClB,IAAI,GAAG,QAAQ,CAAC,EAAE,EAClB,OAAO,EACP,SAAS,GACH;IACN,OAAO,CACL,iBACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,QAAQ,CACjB,OAAO,EACP,iDAAiD,EACjD,gEAAgE,EAChE,UAAU,IAAI,oBAAoB,EAClC,SAAS,CACV,YAED,KAAC,SAAS,IACR,IAAI,EAAE,UAAU,CAAC,MAAM,EACvB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,EACzD,WAAW,EAAE,QAAQ,CACnB,2CAA2C,EAC3C,uCAAuC,EACvC,yBAAyB,EACzB,wBAAwB,EACxB,8HAA8H,EAC9H,2HAA2H,CAC5H,EACD,SAAS,EAAE,QAAQ,CACjB,CAAC,UAAU;gBACT,qFAAqF,CACxF,GACD,GACK,CACV,CAAC;AACJ,CAAC"}
@@ -1,18 +1,2 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./chip"), exports);
1
+ export * from './chip';
18
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/atoms/chip/chip/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/atoms/chip/chip/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChipList = ChipList;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const tailwind_utils_1 = require("../../../../utils/tailwind-utils");
6
- const components_1 = require("../../../../components");
7
- function ChipList({ data, className, firstComponent, lasItemComponent }) {
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { tailwind } from '../../../../utils/tailwind-utils';
3
+ import { Chip } from '../../../../components';
4
+ export function ChipList({ data, className, firstComponent, lasItemComponent }) {
8
5
  const uniqueData = data?.filter((_data, index, self) => self.findIndex((data) => data.value === _data.value) === index);
9
- return ((0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)('flex flex-wrap items-center overflow-y-auto w-full', 'gap-x-1 gap-y-1', className), children: [firstComponent && firstComponent, uniqueData.map((item) => ((0, jsx_runtime_1.jsx)(components_1.Chip, { id: item.value, label: item.label, onClick: item.onClear }, item.value))), lasItemComponent && lasItemComponent] }));
6
+ return (_jsxs("div", { className: tailwind('flex flex-wrap items-center overflow-y-auto w-full', 'gap-x-1 gap-y-1', className), children: [firstComponent && firstComponent, uniqueData.map((item) => (_jsx(Chip, { id: item.value, label: item.label, onClick: item.onClear }, item.value))), lasItemComponent && lasItemComponent] }));
10
7
  }
11
8
  //# sourceMappingURL=chips-list.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chips-list.js","sourceRoot":"","sources":["../../../../../src/components/atoms/chip/chips-list/chips-list.tsx"],"names":[],"mappings":";;AAiBA,4BAoBC;;AApCD,qEAA4D;AAC5D,uDAA8C;AAe9C,SAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB,EAAS;IACnF,MAAM,UAAU,GAAG,IAAI,EAAE,MAAM,CAC7B,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAC,KAAK,KAAK,CACvF,CAAC;IAEF,OAAO,CACL,iCACE,SAAS,EAAE,IAAA,yBAAQ,EACjB,oDAAoD,EACpD,iBAAiB,EACjB,SAAS,CACV,aAEA,cAAc,IAAI,cAAc,EAChC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAsB,EAAE,EAAE,CAAC,CAC1C,uBAAC,iBAAI,IAAC,EAAE,EAAE,IAAI,CAAC,KAAK,EAAmB,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,IAApD,IAAI,CAAC,KAAK,CAA8C,CACpF,CAAC,EACD,gBAAgB,IAAI,gBAAgB,IACjC,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"chips-list.js","sourceRoot":"","sources":["../../../../../src/components/atoms/chip/chips-list/chips-list.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAe9C,MAAM,UAAU,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB,EAAS;IACnF,MAAM,UAAU,GAAG,IAAI,EAAE,MAAM,CAC7B,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAC,KAAK,KAAK,CACvF,CAAC;IAEF,OAAO,CACL,eACE,SAAS,EAAE,QAAQ,CACjB,oDAAoD,EACpD,iBAAiB,EACjB,SAAS,CACV,aAEA,cAAc,IAAI,cAAc,EAChC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAsB,EAAE,EAAE,CAAC,CAC1C,KAAC,IAAI,IAAC,EAAE,EAAE,IAAI,CAAC,KAAK,EAAmB,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,IAApD,IAAI,CAAC,KAAK,CAA8C,CACpF,CAAC,EACD,gBAAgB,IAAI,gBAAgB,IACjC,CACP,CAAC;AACJ,CAAC"}
@@ -1,18 +1,2 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./chips-list"), exports);
1
+ export * from './chips-list';
18
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/atoms/chip/chips-list/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/atoms/chip/chips-list/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -1,19 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./menu-item"), exports);
18
- __exportStar(require("./menu-item-types"), exports);
1
+ export * from './menu-item';
2
+ export * from './menu-item-types';
19
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/atoms/drop-down-menu/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/atoms/drop-down-menu/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"}
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MenuItemVariant = void 0;
4
- var MenuItemVariant;
1
+ export var MenuItemVariant;
5
2
  (function (MenuItemVariant) {
6
3
  MenuItemVariant["DEFAULT"] = "DEFAULT";
7
4
  MenuItemVariant["TEXT_BUTTON"] = "TEXT_BUTTON";
8
5
  MenuItemVariant["DESTRUCTIVE"] = "DESTRUCTIVE";
9
6
  MenuItemVariant["CHECK_BOX"] = "CHECK_BOX";
10
- })(MenuItemVariant || (exports.MenuItemVariant = MenuItemVariant = {}));
7
+ })(MenuItemVariant || (MenuItemVariant = {}));
11
8
  //# sourceMappingURL=menu-item-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item-types.js","sourceRoot":"","sources":["../../../../../src/components/atoms/drop-down-menu/components/menu-item-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,8CAA2B,CAAA;IAC3B,8CAA2B,CAAA;IAC3B,0CAAuB,CAAA;AACzB,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B"}
1
+ {"version":3,"file":"menu-item-types.js","sourceRoot":"","sources":["../../../../../src/components/atoms/drop-down-menu/components/menu-item-types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,8CAA2B,CAAA;IAC3B,8CAA2B,CAAA;IAC3B,0CAAuB,CAAA;AACzB,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B"}
@@ -1,22 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MenuItem = MenuItem;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const components_1 = require("../../../../components");
6
- const tailwind_utils_1 = require("../../../../utils/tailwind-utils");
7
- const window_dimensions_utils_1 = require("../../../../utils/window-dimensions-utils");
8
- const menu_item_types_1 = require("./menu-item-types");
9
- function MenuItem({ isDisabled = false, isSelected = false, id, label, className, helperLabel, variant = menu_item_types_1.MenuItemVariant.DEFAULT, icon, onClick = () => { }, }) {
10
- const { isMobile } = (0, window_dimensions_utils_1.useWindowDimensions)();
11
- const isDestructive = variant === menu_item_types_1.MenuItemVariant.DESTRUCTIVE;
12
- const isTextButton = variant === menu_item_types_1.MenuItemVariant.TEXT_BUTTON;
13
- const isCheckBox = variant === menu_item_types_1.MenuItemVariant.CHECK_BOX;
14
- return ((0, jsx_runtime_1.jsxs)("button", { type: "button", disabled: isDisabled, className: (0, tailwind_utils_1.tailwind)('group', 'flex flex-row items-center p-4 w-full', 'cursor-pointer bg-white outline-none', 'disabled:cursor-not-allowed disabled:bg-white hover:bg-gray-05 active:bg-gray-04', 'focus-visible:border-2 focus-visible:border-blue-01 focus-visible:p-[14px]', isTextButton &&
15
- 'py-2 hover:bg-blue-03 active:bg-blue-03 focus-visible:py-[6px] focus-visible:bg-blue-03', isSelected && 'bg-gray-04 hover:bg-gray-04', className), "data-testid": id, onClick: onClick, children: [icon && ((0, jsx_runtime_1.jsx)(components_1.BilloIcon, { icon: icon, size: isMobile ? components_1.IconSize.LG : components_1.IconSize.XL, className: (0, tailwind_utils_1.tailwind)('mr-2', isDestructive
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { BilloIcon, Checkbox, IconSize, Text, TextButton, TextColors, TextVariant, } from '../../../../components';
3
+ import { tailwind } from '../../../../utils/tailwind-utils';
4
+ import { useWindowDimensions } from '../../../../utils/window-dimensions-utils';
5
+ import { MenuItemVariant } from './menu-item-types';
6
+ export function MenuItem({ isDisabled = false, isSelected = false, id, label, className, helperLabel, variant = MenuItemVariant.DEFAULT, icon, onClick = () => { }, }) {
7
+ const { isMobile } = useWindowDimensions();
8
+ const isDestructive = variant === MenuItemVariant.DESTRUCTIVE;
9
+ const isTextButton = variant === MenuItemVariant.TEXT_BUTTON;
10
+ const isCheckBox = variant === MenuItemVariant.CHECK_BOX;
11
+ return (_jsxs("button", { type: "button", disabled: isDisabled, className: tailwind('group', 'flex flex-row items-center p-4 w-full', 'cursor-pointer bg-white outline-none', 'disabled:cursor-not-allowed disabled:bg-white hover:bg-gray-05 active:bg-gray-04', 'focus-visible:border-2 focus-visible:border-blue-01 focus-visible:p-[14px]', isTextButton &&
12
+ 'py-2 hover:bg-blue-03 active:bg-blue-03 focus-visible:py-[6px] focus-visible:bg-blue-03', isSelected && 'bg-gray-04 hover:bg-gray-04', className), "data-testid": id, onClick: onClick, children: [icon && (_jsx(BilloIcon, { icon: icon, size: isMobile ? IconSize.LG : IconSize.XL, className: tailwind('mr-2', isDestructive
16
13
  ? 'text-red-01 group-disabled:text-red-03'
17
- : 'text-gray-01 group-disabled:text-gray-03') })), isCheckBox && ((0, jsx_runtime_1.jsx)(components_1.Checkbox, { isDisabled: isDisabled, value: isSelected, onCheckToggle: onClick, containerClassName: "mr-2", className: (0, tailwind_utils_1.tailwind)(!isSelected && 'group-hover:border-gray-03 group-hover:bg-gray-05', !isSelected &&
18
- 'group-disabled:bg-gray-06 group-disabled:border-gray-04 group-disabled:cursor-not-allowed') })), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-start", children: [isTextButton ? ((0, jsx_runtime_1.jsx)(components_1.TextButton, { isDisabled: isDisabled, onClick: onClick, label: label, className: (0, tailwind_utils_1.tailwind)('text-blue-01', 'group-disabled:text-blue-03', 'group-hover:bg-blue-03', 'group-active:bg-blue-03 group-active:text-blue-00', 'group-focus-visible:bg-blue-03') })) : ((0, jsx_runtime_1.jsx)(components_1.Text, { className: (0, tailwind_utils_1.tailwind)('whitespace-normal', isDestructive
14
+ : 'text-gray-01 group-disabled:text-gray-03') })), isCheckBox && (_jsx(Checkbox, { isDisabled: isDisabled, value: isSelected, onCheckToggle: onClick, containerClassName: "mr-2", className: tailwind(!isSelected && 'group-hover:border-gray-03 group-hover:bg-gray-05', !isSelected &&
15
+ 'group-disabled:bg-gray-06 group-disabled:border-gray-04 group-disabled:cursor-not-allowed') })), _jsxs("div", { className: "flex flex-col items-start", children: [isTextButton ? (_jsx(TextButton, { isDisabled: isDisabled, onClick: onClick, label: label, className: tailwind('text-blue-01', 'group-disabled:text-blue-03', 'group-hover:bg-blue-03', 'group-active:bg-blue-03 group-active:text-blue-00', 'group-focus-visible:bg-blue-03') })) : (_jsx(Text, { className: tailwind('whitespace-normal', isDestructive
19
16
  ? 'text-red-01 group-disabled:text-red-03'
20
- : 'text-gray-01 group-disabled:text-gray-03'), children: label })), helperLabel && ((0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.HELPER, color: components_1.TextColors.BLACK, className: "group-disabled:text-gray-03 whitespace-normal", children: helperLabel }))] })] }, id));
17
+ : 'text-gray-01 group-disabled:text-gray-03'), children: label })), helperLabel && (_jsx(Text, { variant: TextVariant.HELPER, color: TextColors.BLACK, className: "group-disabled:text-gray-03 whitespace-normal", children: helperLabel }))] })] }, id));
21
18
  }
22
19
  //# sourceMappingURL=menu-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item.js","sourceRoot":"","sources":["../../../../../src/components/atoms/drop-down-menu/components/menu-item.tsx"],"names":[],"mappings":";;AA0BA,4BAqGC;;AA/HD,uDASgC;AAChC,qEAA4D;AAC5D,uFAAgF;AAChF,uDAAoD;AAcpD,S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CAAC,UAAU;oBACT,2FAA2F,CAC9F,GACD,CACH,EAED,iCAAK,SAAS,EAAC,2BAA2B,aACvC,YAAY,CAAC,CAAC,CAAC,CACd,uBAAC,uBAAU,IACT,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,IAAA,yBAAQ,EACjB,cAAc,EACd,6BAA6B,EAC7B,wBAAwB,EACxB,mDAAmD,EACnD,gCAAgC,CACjC,GACD,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,iBAAI,IACH,SAAS,EAAE,IAAA,yBAAQ,EACjB,mBAAmB,EACnB,aAAa;4BACX,CAAC,CAAC,wCAAwC;4BAC1C,CAAC,CAAC,0CAA0C,CAC/C,YAEA,KAAK,GACD,CACR,EAEA,WAAW,IAAI,CACd,uBAAC,iBAAI,IACH,OAAO,EAAE,wBAAW,CAAC,MAAM,EAC3B,KAAK,EAAE,uBAAU,CAAC,KAAK,EACvB,SAAS,EAAC,+CAA+C,YAExD,WAAW,GACP,CACR,IACG,KAnED,EAAE,CAoEA,CACV,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"menu-item.js","sourceRoot":"","sources":["../../../../../src/components/atoms/drop-down-menu/components/menu-item.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EAER,IAAI,EACJ,UAAU,EACV,UAAU,EACV,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAcpD,MAAM,UAAU,QAAQ,CAAC,EACvB,UAAU,GAAG,KAAK,EAClB,UAAU,GAAG,KAAK,EAClB,EAAE,EACF,KAAK,EACL,SAAS,EACT,WAAW,EACX,OAAO,GAAG,eAAe,CAAC,OAAO,E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