period-ui 0.1.18 → 0.1.20

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 (166) hide show
  1. package/dist/components/atoms/billo-icon/billo-icon-types.d.ts +116 -0
  2. package/dist/components/atoms/billo-icon/billo-icon-types.js +6 -9
  3. package/dist/components/atoms/billo-icon/billo-icon-types.js.map +1 -1
  4. package/dist/components/atoms/billo-icon/billo-icon.js +5 -8
  5. package/dist/components/atoms/billo-icon/billo-icon.js.map +1 -1
  6. package/dist/components/atoms/billo-icon/index.d.ts +3 -0
  7. package/dist/components/atoms/billo-icon/index.js +2 -18
  8. package/dist/components/atoms/billo-icon/index.js.map +1 -1
  9. package/dist/components/atoms/button/button-types.d.ts +6 -0
  10. package/dist/components/atoms/button/button-types.js +2 -5
  11. package/dist/components/atoms/button/button-types.js.map +1 -1
  12. package/dist/components/atoms/button/button.js +9 -12
  13. package/dist/components/atoms/button/button.js.map +1 -1
  14. package/dist/components/atoms/button/index.d.ts +3 -0
  15. package/dist/components/atoms/button/index.js +2 -18
  16. package/dist/components/atoms/button/index.js.map +1 -1
  17. package/dist/components/atoms/check-box/check-box-types.js +3 -6
  18. package/dist/components/atoms/check-box/check-box-types.js.map +1 -1
  19. package/dist/components/atoms/check-box/check-box.js +13 -16
  20. package/dist/components/atoms/check-box/check-box.js.map +1 -1
  21. package/dist/components/atoms/check-box/index.d.ts +3 -0
  22. package/dist/components/atoms/check-box/index.js +2 -18
  23. package/dist/components/atoms/check-box/index.js.map +1 -1
  24. package/dist/components/atoms/chip/chip/chip.js +8 -11
  25. package/dist/components/atoms/chip/chip/chip.js.map +1 -1
  26. package/dist/components/atoms/chip/chip/components/clear-button.js +5 -8
  27. package/dist/components/atoms/chip/chip/components/clear-button.js.map +1 -1
  28. package/dist/components/atoms/chip/chip/index.d.ts +2 -0
  29. package/dist/components/atoms/chip/chip/index.js +1 -17
  30. package/dist/components/atoms/chip/chip/index.js.map +1 -1
  31. package/dist/components/atoms/chip/chips-list/chips-list.d.ts +15 -0
  32. package/dist/components/atoms/chip/chips-list/chips-list.js +5 -8
  33. package/dist/components/atoms/chip/chips-list/chips-list.js.map +1 -1
  34. package/dist/components/atoms/chip/chips-list/index.d.ts +2 -0
  35. package/dist/components/atoms/chip/chips-list/index.js +1 -17
  36. package/dist/components/atoms/chip/chips-list/index.js.map +1 -1
  37. package/dist/components/atoms/drop-down-menu/components/index.d.ts +3 -0
  38. package/dist/components/atoms/drop-down-menu/components/index.js +2 -18
  39. package/dist/components/atoms/drop-down-menu/components/index.js.map +1 -1
  40. package/dist/components/atoms/drop-down-menu/components/menu-item-types.d.ts +7 -0
  41. package/dist/components/atoms/drop-down-menu/components/menu-item-types.js +2 -5
  42. package/dist/components/atoms/drop-down-menu/components/menu-item-types.js.map +1 -1
  43. package/dist/components/atoms/drop-down-menu/components/menu-item.d.ts +16 -0
  44. package/dist/components/atoms/drop-down-menu/components/menu-item.js +15 -18
  45. package/dist/components/atoms/drop-down-menu/components/menu-item.js.map +1 -1
  46. package/dist/components/atoms/drop-down-menu/drop-down-menu.d.ts +23 -0
  47. package/dist/components/atoms/drop-down-menu/drop-down-menu.js +7 -10
  48. package/dist/components/atoms/drop-down-menu/drop-down-menu.js.map +1 -1
  49. package/dist/components/atoms/drop-down-menu/index.d.ts +2 -0
  50. package/dist/components/atoms/drop-down-menu/index.js +1 -17
  51. package/dist/components/atoms/drop-down-menu/index.js.map +1 -1
  52. package/dist/components/atoms/icon-button/icon-button.d.ts +12 -0
  53. package/dist/components/atoms/icon-button/icon-button.js +5 -8
  54. package/dist/components/atoms/icon-button/icon-button.js.map +1 -1
  55. package/dist/components/atoms/icon-button/index.d.ts +2 -0
  56. package/dist/components/atoms/icon-button/index.js +1 -17
  57. package/dist/components/atoms/icon-button/index.js.map +1 -1
  58. package/dist/components/atoms/search-bar/components/clear-button.d.ts +10 -0
  59. package/dist/components/atoms/search-bar/components/clear-button.js +5 -8
  60. package/dist/components/atoms/search-bar/components/clear-button.js.map +1 -1
  61. package/dist/components/atoms/search-bar/index.d.ts +2 -0
  62. package/dist/components/atoms/search-bar/index.js +1 -17
  63. package/dist/components/atoms/search-bar/index.js.map +1 -1
  64. package/dist/components/atoms/search-bar/search-bar.d.ts +12 -0
  65. package/dist/components/atoms/search-bar/search-bar.js +9 -12
  66. package/dist/components/atoms/search-bar/search-bar.js.map +1 -1
  67. package/dist/components/atoms/text/index.d.ts +3 -0
  68. package/dist/components/atoms/text/index.js +2 -18
  69. package/dist/components/atoms/text/index.js.map +1 -1
  70. package/dist/components/atoms/text/text-types.d.ts +36 -0
  71. package/dist/components/atoms/text/text-types.js +5 -8
  72. package/dist/components/atoms/text/text-types.js.map +1 -1
  73. package/dist/components/atoms/text/text.d.ts +14 -0
  74. package/dist/components/atoms/text/text.js +12 -15
  75. package/dist/components/atoms/text/text.js.map +1 -1
  76. package/dist/components/atoms/text-button/index.d.ts +3 -0
  77. package/dist/components/atoms/text-button/index.js +2 -18
  78. package/dist/components/atoms/text-button/index.js.map +1 -1
  79. package/dist/components/atoms/text-button/text-button-types.d.ts +8 -0
  80. package/dist/components/atoms/text-button/text-button-types.js +3 -6
  81. package/dist/components/atoms/text-button/text-button-types.js.map +1 -1
  82. package/dist/components/atoms/text-button/text-button.d.ts +13 -0
  83. package/dist/components/atoms/text-button/text-button.js +9 -12
  84. package/dist/components/atoms/text-button/text-button.js.map +1 -1
  85. package/dist/components/index.d.ts +16 -0
  86. package/dist/components/index.js +15 -31
  87. package/dist/components/index.js.map +1 -1
  88. package/dist/components/molecules/form/form-select/form-select.d.ts +7 -0
  89. package/dist/components/molecules/form/form-select/form-select.js +5 -8
  90. package/dist/components/molecules/form/form-select/form-select.js.map +1 -1
  91. package/dist/components/molecules/form/form-select/index.d.ts +2 -0
  92. package/dist/components/molecules/form/form-select/index.js +1 -17
  93. package/dist/components/molecules/form/form-select/index.js.map +1 -1
  94. package/dist/components/molecules/form/form-story-stubs.d.ts +11 -0
  95. package/dist/components/molecules/form/form-story-stubs.js +1 -4
  96. package/dist/components/molecules/form/form-story-stubs.js.map +1 -1
  97. package/dist/components/molecules/form/form-test-stubs.d.ts +6 -0
  98. package/dist/components/molecules/form/form-test-stubs.js +1 -4
  99. package/dist/components/molecules/form/form-test-stubs.js.map +1 -1
  100. package/dist/components/molecules/form/form-text-field/form-text-field.d.ts +7 -0
  101. package/dist/components/molecules/form/form-text-field/form-text-field.js +5 -8
  102. package/dist/components/molecules/form/form-text-field/form-text-field.js.map +1 -1
  103. package/dist/components/molecules/form/form-text-field/index.d.ts +2 -0
  104. package/dist/components/molecules/form/form-text-field/index.js +1 -17
  105. package/dist/components/molecules/form/form-text-field/index.js.map +1 -1
  106. package/dist/components/molecules/form/form-types.d.ts +24 -0
  107. package/dist/components/molecules/form/form-types.js +1 -2
  108. package/dist/components/molecules/form/form.d.ts +12 -0
  109. package/dist/components/molecules/form/form.js +8 -34
  110. package/dist/components/molecules/form/form.js.map +1 -1
  111. package/dist/components/molecules/form/index.d.ts +3 -0
  112. package/dist/components/molecules/form/index.js +2 -18
  113. package/dist/components/molecules/form/index.js.map +1 -1
  114. package/dist/components/molecules/select/components/select-input.d.ts +8 -0
  115. package/dist/components/molecules/select/components/select-input.js +6 -9
  116. package/dist/components/molecules/select/components/select-input.js.map +1 -1
  117. package/dist/components/molecules/select/index.d.ts +3 -0
  118. package/dist/components/molecules/select/index.js +2 -18
  119. package/dist/components/molecules/select/index.js.map +1 -1
  120. package/dist/components/molecules/select/select.d.ts +16 -0
  121. package/dist/components/molecules/select/select.js +10 -13
  122. package/dist/components/molecules/select/select.js.map +1 -1
  123. package/dist/components/molecules/select/use-select.d.ts +23 -0
  124. package/dist/components/molecules/select/use-select.js +16 -19
  125. package/dist/components/molecules/select/use-select.js.map +1 -1
  126. package/dist/components/molecules/text-field/index.d.ts +2 -0
  127. package/dist/components/molecules/text-field/index.js +1 -17
  128. package/dist/components/molecules/text-field/index.js.map +1 -1
  129. package/dist/components/molecules/text-field/text-field.d.ts +18 -0
  130. package/dist/components/molecules/text-field/text-field.js +5 -8
  131. package/dist/components/molecules/text-field/text-field.js.map +1 -1
  132. package/dist/containers/form-control/components/form-error.d.ts +7 -0
  133. package/dist/containers/form-control/components/form-error.js +5 -8
  134. package/dist/containers/form-control/components/form-error.js.map +1 -1
  135. package/dist/containers/form-control/components/form-helper.d.ts +9 -0
  136. package/dist/containers/form-control/components/form-helper.js +5 -8
  137. package/dist/containers/form-control/components/form-helper.js.map +1 -1
  138. package/dist/containers/form-control/components/form-label.d.ts +10 -0
  139. package/dist/containers/form-control/components/form-label.js +5 -8
  140. package/dist/containers/form-control/components/form-label.js.map +1 -1
  141. package/dist/containers/form-control/form-control-types.d.ts +11 -0
  142. package/dist/containers/form-control/form-control-types.js +3 -6
  143. package/dist/containers/form-control/form-control-types.js.map +1 -1
  144. package/dist/containers/form-control/form-control.d.ts +24 -0
  145. package/dist/containers/form-control/form-control.js +10 -13
  146. package/dist/containers/form-control/form-control.js.map +1 -1
  147. package/dist/containers/form-control/index.d.ts +3 -0
  148. package/dist/containers/form-control/index.js +2 -18
  149. package/dist/containers/form-control/index.js.map +1 -1
  150. package/dist/containers/index.d.ts +2 -0
  151. package/dist/containers/index.js +1 -17
  152. package/dist/containers/index.js.map +1 -1
  153. package/dist/index.js +3 -29
  154. package/dist/index.js.map +1 -1
  155. package/dist/utils/string-utils/string-utils.d.ts +6 -0
  156. package/dist/utils/string-utils/string-utils.js +1 -4
  157. package/dist/utils/string-utils/string-utils.js.map +1 -1
  158. package/dist/utils/tailwind-utils.d.ts +3 -0
  159. package/dist/utils/tailwind-utils.js +4 -10
  160. package/dist/utils/tailwind-utils.js.map +1 -1
  161. package/dist/utils/window-dimensions-utils.d.ts +9 -0
  162. package/dist/utils/window-dimensions-utils.js +5 -8
  163. package/dist/utils/window-dimensions-utils.js.map +1 -1
  164. package/dist/vitest.setup.d.ts +2 -0
  165. package/dist/vitest.setup.js +1 -2
  166. package/package.json +2 -1
@@ -0,0 +1,116 @@
1
+ export declare enum IconSymbol {
2
+ WARNING = "icon-warning",
3
+ CHEVRON_DOWN = "icon-chevron-down",
4
+ CHEVRON_UP = "icon-chevron-up",
5
+ CHEVRON_RIGHT = "icon-chevron-right",
6
+ CHEVRON_LEFT = "icon-chevron-left",
7
+ COPY = "icon-copy",
8
+ DOT_MENU = "icon-dot-menu",
9
+ FUNNEL = "icon-funnel",
10
+ CLOCK_WARNING = "icon-clock-warning",
11
+ SPINNER = "icon-spinner",
12
+ MINUS = "icon-minus",
13
+ MAGNIFYING_GLASS = "icon-magnifying-glass",
14
+ ARROWS_LEFT_RIGHT = "icon-arrows-left-right",
15
+ TAG = "icon-tag",
16
+ CALENDER = "icon-calendar",
17
+ CHECK_CIRCLE = "icon-check-circle",
18
+ ADDRESS_BOOK = "icon-address-book",
19
+ ICON_X = "icon-x",
20
+ CREDIT_CARD = "icon-credit-card",
21
+ POS = "icon-pos",
22
+ FILE = "icon-file",
23
+ DOWNLOAD = "icon-download",
24
+ PENCIL = "icon-pencil",
25
+ ALERT = "icon-alert",
26
+ QUESTION_CONTAINED = "icon-question-contained",
27
+ EYE_SLASH = "icon-eye-slash",
28
+ IMAGE = "icon-image",
29
+ UPLOAD = "icon-upload",
30
+ LINK = "icon-link",
31
+ SIGN_OUT = "icon-sign-out",
32
+ MASTER_CARD = "icon-mastercard",
33
+ MENU = "icon-menu",
34
+ FILE_PDF = "icon-file-pdf",
35
+ PLUS = "icon-plus",
36
+ BASKET = "icon-basket",
37
+ STOCK = "icon-stock",
38
+ QR_CODE = "icon-qr-code",
39
+ X_CIRCLE = "icon-x-circle",
40
+ PIE_CHART = "icon-pie-chart",
41
+ MAGNIFYING_GLASS_X = "icon-magnifying-glass-x",
42
+ PAPER_PLANE = "icon-paper-plane",
43
+ GEAR = "icon-gear",
44
+ EYE = "icon-eye",
45
+ CLIPBOARD = "icon-clipboard",
46
+ INFO = "icon-info",
47
+ TRASH = "icon-trash",
48
+ LINK_BREAK = "icon-link-break",
49
+ ELECTRICITY_BILL = "icon-electricity-bill",
50
+ VISA = "icon-visa",
51
+ RECEIPT = "icon-receipt",
52
+ RECEIPT_CONTAINED = "icon-receipt-contained",
53
+ CLOCK = "icon-clock",
54
+ CARET_DOWN = "icon-caret-down",
55
+ CARET_UP = "icon-caret-up",
56
+ QUESTION = "icon-question",
57
+ USER_CONTAINED = "icon-user-contained",
58
+ WHATSAPP = "icon-whatsapp",
59
+ STORE_CLOCK = "icon-store-clock",
60
+ PHONE_CALL = "icon-phone-call",
61
+ LOCK = "icon-lock",
62
+ ARROW_SQUARE_OUT = "icon-arrow-square-out",
63
+ ARROW_LEFT = "icon-arrow-left",
64
+ ARROW_RIGHT = "icon-arrow-right",
65
+ DEVICES = "icon-devices",
66
+ CASH = "icon-cash",
67
+ BANK = "icon-bank",
68
+ MOBILE = "icon-mobile",
69
+ CHECK = "icon-check",
70
+ MEGAPHONE = "icon-megaphone",
71
+ BELL = "icon-bell",
72
+ STOREFRONT = "icon-storefront",
73
+ HOUSE = "icon-house",
74
+ ARROW_CLOCKWISE = "icon-arrow-clockwise",
75
+ ENVELOPE = "icon-envelope",
76
+ USER = "icon-user",
77
+ CHECK_SEAL = "icon-check-seal",
78
+ PIN = "icon-pin",
79
+ BILLO_LOGO = "icon-billo-logo",
80
+ BN_LOGO = "icon-banco-nacional-logo",
81
+ SHOPPING_CART = "icon-shopping-cart",
82
+ WARNING_FILLED = "icon-warning-filled",
83
+ INFO_FILLED = "icon-info-filled",
84
+ CHECK_CIRCLE_FILLED = "icon-check-circle-filled",
85
+ ALERT_FILLED = "icon-alert-filled",
86
+ DUPLICATE_AND_SEND = "icon-duplicate-and-send",
87
+ NUMBER_PAD = "icon-number-pad"
88
+ }
89
+ export declare enum IconSize {
90
+ XXS = "text-[10px]",
91
+ XS = "text-[12px]",
92
+ SM = "text-[14px]",
93
+ MD = "text-[16px]",
94
+ LG = "text-[18px]",
95
+ XL = "text-[20px]",
96
+ TWO_XL = "text-[24px]",
97
+ THREE_XL = "text-[30px]",
98
+ FOUR_XL = "text-[36px]",
99
+ FIVE_XL = "text-[48px]",
100
+ SIX_XL = "text-[60px]",
101
+ SEVEN_XL = "text-[72px]",
102
+ EIGHT_XL = "text-[96px]"
103
+ }
104
+ export declare enum IconColor {
105
+ WHITE = "text-white",
106
+ BLUE_01 = "text-blue-01",
107
+ BLUE_02 = "text-blue-02",
108
+ BLUE_03 = "text-blue-03",
109
+ GREEN_02 = "text-green-02",
110
+ YELLOW_02 = "text-yellow-02",
111
+ RED_02 = "text-red-02",
112
+ GRAY_02 = "text-gray-02",
113
+ GRAY_03 = "text-gray-03",
114
+ RED_01 = "text-red-01"
115
+ }
116
+ //# sourceMappingURL=billo-icon-types.d.ts.map
@@ -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,CAAA;IAClB,wCAA0B,CAAA;IAC1B,oCAAsB,CAAA;IACtB,kCAAoB,CAAA;IACpB,4DAA8C,CAAA;IAC9C,0CAA4B,CAAA;IAC5B,kCAAoB,CAAA;IACpB,oCAAsB,CAAA;IACtB,gCAAkB,CAAA;IAClB,wCAA0B,CAAA;IAC1B,6CAA+B,CAAA;IAC/B,gCAAkB,CAAA;IAClB,wCAA0B,CAAA;IAC1B,gCAAkB,CAAA;IAClB,oCAAsB,CAAA;IACtB,kCAAoB,CAAA;IACpB,sCAAwB,CAAA;IACxB,wCAA0B,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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,CAAA;IAC5C,8BAAgB,CAAA;IAChB,wCAA0B,CAAA;IAC1B,gDAAkC,CAAA;IAClC,gDAAkC,CAAA;IAClC,+BAAiB,CAAA;IACjB,8CAAgC,CAAA;IAChC,8BAAgB,CAAA;IAChB,gCAAkB,CAAA;IAClB,wCAA0B,CAAA;IAC1B,oCAAsB,CAAA;IACtB,kCAAoB,CAAA;IACpB,4DAA8C,CAAA;IAC9C,0CAA4B,CAAA;IAC5B,kCAAoB,CAAA;IACpB,oCAAsB,CAAA;IACtB,gCAAkB,CAAA;IAClB,wCAA0B,CAAA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AAN,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"}
@@ -0,0 +1,3 @@
1
+ export * from './billo-icon';
2
+ export * from './billo-icon-types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -0,0 +1,6 @@
1
+ export declare enum ButtonVariant {
2
+ PRIMARY = "primary",
3
+ SECONDARY = "secondary",
4
+ DESTRUCTIVE = "destructive"
5
+ }
6
+ //# sourceMappingURL=button-types.d.ts.map
@@ -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"}
@@ -0,0 +1,3 @@
1
+ export * from './button';
2
+ export * from './button-types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,CAAC;IAChE,MAAM,oBAAoB,GAAG,2BAAc,CAAC,c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,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,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC,CAAC;IA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CAAC,UAAU,CAAC,KAAK,YAEzD,KAAK,GACD,CACR,IACG,GACL,CACJ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './check-box';
2
+ export * from './check-box-types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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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AE,CAAC;IAC3C,OAAO,CACL,kCAGE,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"}
@@ -0,0 +1,2 @@
1
+ export * from './chip';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -0,0 +1,15 @@
1
+ import { ReactElement } from 'react';
2
+ export type ChipOptionsProps = {
3
+ label: string;
4
+ value: string;
5
+ onClear: () => void;
6
+ };
7
+ type Props = {
8
+ data: ChipOptionsProps[];
9
+ firstComponent?: ReactElement;
10
+ lasItemComponent?: ReactElement;
11
+ className?: string;
12
+ };
13
+ export declare function ChipList({ data, className, firstComponent, lasItemComponent }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=chips-list.d.ts.map
@@ -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,I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,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"}
@@ -0,0 +1,2 @@
1
+ export * from './chips-list';
2
+ //# sourceMappingURL=index.d.ts.map