period-ui 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/billo-icon/billo-icon-types.d.ts +116 -0
- package/dist/components/atoms/billo-icon/billo-icon-types.js +9 -6
- package/dist/components/atoms/billo-icon/billo-icon-types.js.map +1 -1
- package/dist/components/atoms/billo-icon/billo-icon.d.ts +11 -0
- package/dist/components/atoms/billo-icon/billo-icon.js +8 -5
- package/dist/components/atoms/billo-icon/billo-icon.js.map +1 -1
- package/dist/components/atoms/billo-icon/index.d.ts +3 -0
- package/dist/components/atoms/billo-icon/index.js +18 -2
- package/dist/components/atoms/billo-icon/index.js.map +1 -1
- package/dist/components/atoms/button/button-types.d.ts +6 -0
- package/dist/components/atoms/button/button-types.js +5 -2
- package/dist/components/atoms/button/button-types.js.map +1 -1
- package/dist/components/atoms/button/button.d.ts +9 -0
- package/dist/components/atoms/button/button.js +12 -9
- package/dist/components/atoms/button/button.js.map +1 -1
- package/dist/components/atoms/button/index.d.ts +3 -0
- package/dist/components/atoms/button/index.js +18 -2
- package/dist/components/atoms/button/index.js.map +1 -1
- package/dist/components/atoms/check-box/check-box-types.d.ts +10 -0
- package/dist/components/atoms/check-box/check-box-types.js +6 -3
- package/dist/components/atoms/check-box/check-box-types.js.map +1 -1
- package/dist/components/atoms/check-box/check-box.d.ts +14 -0
- package/dist/components/atoms/check-box/check-box.js +16 -13
- package/dist/components/atoms/check-box/check-box.js.map +1 -1
- package/dist/components/atoms/check-box/index.d.ts +3 -0
- package/dist/components/atoms/check-box/index.js +18 -2
- package/dist/components/atoms/check-box/index.js.map +1 -1
- package/dist/components/atoms/chip/chip/chip.d.ts +9 -0
- package/dist/components/atoms/chip/chip/chip.js +11 -8
- package/dist/components/atoms/chip/chip/chip.js.map +1 -1
- package/dist/components/atoms/chip/chip/components/clear-button.d.ts +11 -0
- package/dist/components/atoms/chip/chip/components/clear-button.js +8 -5
- package/dist/components/atoms/chip/chip/components/clear-button.js.map +1 -1
- package/dist/components/atoms/chip/chip/index.d.ts +2 -0
- package/dist/components/atoms/chip/chip/index.js +17 -1
- package/dist/components/atoms/chip/chip/index.js.map +1 -1
- package/dist/components/atoms/chip/chips-list/chips-list.d.ts +15 -0
- package/dist/components/atoms/chip/chips-list/chips-list.js +8 -5
- package/dist/components/atoms/chip/chips-list/chips-list.js.map +1 -1
- package/dist/components/atoms/chip/chips-list/index.d.ts +2 -0
- package/dist/components/atoms/chip/chips-list/index.js +17 -1
- package/dist/components/atoms/chip/chips-list/index.js.map +1 -1
- package/dist/components/atoms/drop-down-menu/components/index.d.ts +3 -0
- package/dist/components/atoms/drop-down-menu/components/index.js +18 -2
- package/dist/components/atoms/drop-down-menu/components/index.js.map +1 -1
- package/dist/components/atoms/drop-down-menu/components/menu-item-types.d.ts +7 -0
- package/dist/components/atoms/drop-down-menu/components/menu-item-types.js +5 -2
- package/dist/components/atoms/drop-down-menu/components/menu-item-types.js.map +1 -1
- package/dist/components/atoms/drop-down-menu/components/menu-item.d.ts +16 -0
- package/dist/components/atoms/drop-down-menu/components/menu-item.js +18 -15
- package/dist/components/atoms/drop-down-menu/components/menu-item.js.map +1 -1
- package/dist/components/atoms/drop-down-menu/drop-down-menu.d.ts +23 -0
- package/dist/components/atoms/drop-down-menu/drop-down-menu.js +10 -7
- package/dist/components/atoms/drop-down-menu/drop-down-menu.js.map +1 -1
- package/dist/components/atoms/drop-down-menu/index.d.ts +2 -0
- package/dist/components/atoms/drop-down-menu/index.js +17 -1
- package/dist/components/atoms/drop-down-menu/index.js.map +1 -1
- package/dist/components/atoms/icon-button/icon-button.d.ts +12 -0
- package/dist/components/atoms/icon-button/icon-button.js +8 -5
- package/dist/components/atoms/icon-button/icon-button.js.map +1 -1
- package/dist/components/atoms/icon-button/index.d.ts +2 -0
- package/dist/components/atoms/icon-button/index.js +17 -1
- package/dist/components/atoms/icon-button/index.js.map +1 -1
- package/dist/components/atoms/search-bar/components/clear-button.d.ts +10 -0
- package/dist/components/atoms/search-bar/components/clear-button.js +8 -5
- package/dist/components/atoms/search-bar/components/clear-button.js.map +1 -1
- package/dist/components/atoms/search-bar/index.d.ts +2 -0
- package/dist/components/atoms/search-bar/index.js +17 -1
- package/dist/components/atoms/search-bar/index.js.map +1 -1
- package/dist/components/atoms/search-bar/search-bar.d.ts +12 -0
- package/dist/components/atoms/search-bar/search-bar.js +12 -9
- package/dist/components/atoms/search-bar/search-bar.js.map +1 -1
- package/dist/components/atoms/text/index.d.ts +3 -0
- package/dist/components/atoms/text/index.js +18 -2
- package/dist/components/atoms/text/index.js.map +1 -1
- package/dist/components/atoms/text/text-types.d.ts +36 -0
- package/dist/components/atoms/text/text-types.js +8 -5
- package/dist/components/atoms/text/text-types.js.map +1 -1
- package/dist/components/atoms/text/text.d.ts +14 -0
- package/dist/components/atoms/text/text.js +15 -12
- package/dist/components/atoms/text/text.js.map +1 -1
- package/dist/components/atoms/text-button/index.d.ts +3 -0
- package/dist/components/atoms/text-button/index.js +18 -2
- package/dist/components/atoms/text-button/index.js.map +1 -1
- package/dist/components/atoms/text-button/text-button-types.d.ts +8 -0
- package/dist/components/atoms/text-button/text-button-types.js +6 -3
- package/dist/components/atoms/text-button/text-button-types.js.map +1 -1
- package/dist/components/atoms/text-button/text-button.d.ts +13 -0
- package/dist/components/atoms/text-button/text-button.js +12 -9
- package/dist/components/atoms/text-button/text-button.js.map +1 -1
- package/dist/components/index.d.ts +16 -0
- package/dist/components/index.js +31 -15
- package/dist/components/index.js.map +1 -1
- package/dist/components/molecules/form/form-select/form-select.d.ts +7 -0
- package/dist/components/molecules/form/form-select/form-select.js +8 -5
- package/dist/components/molecules/form/form-select/form-select.js.map +1 -1
- package/dist/components/molecules/form/form-select/index.d.ts +2 -0
- package/dist/components/molecules/form/form-select/index.js +17 -1
- package/dist/components/molecules/form/form-select/index.js.map +1 -1
- package/dist/components/molecules/form/form-story-stubs.d.ts +11 -0
- package/dist/components/molecules/form/form-story-stubs.js +4 -1
- package/dist/components/molecules/form/form-story-stubs.js.map +1 -1
- package/dist/components/molecules/form/form-test-stubs.d.ts +6 -0
- package/dist/components/molecules/form/form-test-stubs.js +4 -1
- package/dist/components/molecules/form/form-test-stubs.js.map +1 -1
- package/dist/components/molecules/form/form-text-field/form-text-field.d.ts +7 -0
- package/dist/components/molecules/form/form-text-field/form-text-field.js +8 -5
- package/dist/components/molecules/form/form-text-field/form-text-field.js.map +1 -1
- package/dist/components/molecules/form/form-text-field/index.d.ts +2 -0
- package/dist/components/molecules/form/form-text-field/index.js +17 -1
- package/dist/components/molecules/form/form-text-field/index.js.map +1 -1
- package/dist/components/molecules/form/form-types.d.ts +24 -0
- package/dist/components/molecules/form/form-types.js +2 -1
- package/dist/components/molecules/form/form.d.ts +12 -0
- package/dist/components/molecules/form/form.js +34 -8
- package/dist/components/molecules/form/form.js.map +1 -1
- package/dist/components/molecules/form/index.d.ts +3 -0
- package/dist/components/molecules/form/index.js +18 -2
- package/dist/components/molecules/form/index.js.map +1 -1
- package/dist/components/molecules/select/components/select-input.d.ts +8 -0
- package/dist/components/molecules/select/components/select-input.js +9 -6
- package/dist/components/molecules/select/components/select-input.js.map +1 -1
- package/dist/components/molecules/select/index.d.ts +3 -0
- package/dist/components/molecules/select/index.js +18 -2
- package/dist/components/molecules/select/index.js.map +1 -1
- package/dist/components/molecules/select/select.d.ts +16 -0
- package/dist/components/molecules/select/select.js +13 -10
- package/dist/components/molecules/select/select.js.map +1 -1
- package/dist/components/molecules/select/use-select.d.ts +23 -0
- package/dist/components/molecules/select/use-select.js +19 -16
- package/dist/components/molecules/select/use-select.js.map +1 -1
- package/dist/components/molecules/text-field/index.d.ts +2 -0
- package/dist/components/molecules/text-field/index.js +17 -1
- package/dist/components/molecules/text-field/index.js.map +1 -1
- package/dist/components/molecules/text-field/text-field.d.ts +18 -0
- package/dist/components/molecules/text-field/text-field.js +8 -5
- package/dist/components/molecules/text-field/text-field.js.map +1 -1
- package/dist/containers/form-control/components/form-error.d.ts +7 -0
- package/dist/containers/form-control/components/form-error.js +8 -5
- package/dist/containers/form-control/components/form-error.js.map +1 -1
- package/dist/containers/form-control/components/form-helper.d.ts +9 -0
- package/dist/containers/form-control/components/form-helper.js +8 -5
- package/dist/containers/form-control/components/form-helper.js.map +1 -1
- package/dist/containers/form-control/components/form-label.d.ts +10 -0
- package/dist/containers/form-control/components/form-label.js +8 -5
- package/dist/containers/form-control/components/form-label.js.map +1 -1
- package/dist/containers/form-control/form-control-types.d.ts +11 -0
- package/dist/containers/form-control/form-control-types.js +6 -3
- package/dist/containers/form-control/form-control-types.js.map +1 -1
- package/dist/containers/form-control/form-control.d.ts +24 -0
- package/dist/containers/form-control/form-control.js +13 -10
- package/dist/containers/form-control/form-control.js.map +1 -1
- package/dist/containers/form-control/index.d.ts +3 -0
- package/dist/containers/form-control/index.js +18 -2
- package/dist/containers/form-control/index.js.map +1 -1
- package/dist/containers/index.d.ts +2 -0
- package/dist/containers/index.js +17 -1
- package/dist/containers/index.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -4
- package/dist/index.js.map +1 -1
- package/dist/utils/string-utils/string-utils.d.ts +6 -0
- package/dist/utils/string-utils/string-utils.js +4 -1
- package/dist/utils/string-utils/string-utils.js.map +1 -1
- package/dist/utils/tailwind-utils.d.ts +3 -0
- package/dist/utils/tailwind-utils.js +10 -4
- package/dist/utils/tailwind-utils.js.map +1 -1
- package/dist/utils/window-dimensions-utils.d.ts +9 -0
- package/dist/utils/window-dimensions-utils.js +8 -5
- package/dist/utils/window-dimensions-utils.js.map +1 -1
- package/dist/vitest.setup.d.ts +2 -0
- package/dist/vitest.setup.js +2 -1
- 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,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IconColor = exports.IconSize = exports.IconSymbol = void 0;
|
|
4
|
+
var IconSymbol;
|
|
2
5
|
(function (IconSymbol) {
|
|
3
6
|
IconSymbol["WARNING"] = "icon-warning";
|
|
4
7
|
IconSymbol["CHEVRON_DOWN"] = "icon-chevron-down";
|
|
@@ -86,8 +89,8 @@ export var IconSymbol;
|
|
|
86
89
|
IconSymbol["ALERT_FILLED"] = "icon-alert-filled";
|
|
87
90
|
IconSymbol["DUPLICATE_AND_SEND"] = "icon-duplicate-and-send";
|
|
88
91
|
IconSymbol["NUMBER_PAD"] = "icon-number-pad";
|
|
89
|
-
})(IconSymbol || (IconSymbol = {}));
|
|
90
|
-
|
|
92
|
+
})(IconSymbol || (exports.IconSymbol = IconSymbol = {}));
|
|
93
|
+
var IconSize;
|
|
91
94
|
(function (IconSize) {
|
|
92
95
|
IconSize["XXS"] = "text-[10px]";
|
|
93
96
|
IconSize["XS"] = "text-[12px]";
|
|
@@ -102,8 +105,8 @@ export var IconSize;
|
|
|
102
105
|
IconSize["SIX_XL"] = "text-[60px]";
|
|
103
106
|
IconSize["SEVEN_XL"] = "text-[72px]";
|
|
104
107
|
IconSize["EIGHT_XL"] = "text-[96px]";
|
|
105
|
-
})(IconSize || (IconSize = {}));
|
|
106
|
-
|
|
108
|
+
})(IconSize || (exports.IconSize = IconSize = {}));
|
|
109
|
+
var IconColor;
|
|
107
110
|
(function (IconColor) {
|
|
108
111
|
IconColor["WHITE"] = "text-white";
|
|
109
112
|
IconColor["BLUE_01"] = "text-blue-01";
|
|
@@ -115,5 +118,5 @@ export var IconColor;
|
|
|
115
118
|
IconColor["GRAY_02"] = "text-gray-02";
|
|
116
119
|
IconColor["GRAY_03"] = "text-gray-03";
|
|
117
120
|
IconColor["RED_01"] = "text-red-01";
|
|
118
|
-
})(IconColor || (IconColor = {}));
|
|
121
|
+
})(IconColor || (exports.IconColor = IconColor = {}));
|
|
119
122
|
//# 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,
|
|
1
|
+
{"version":3,"file":"billo-icon-types.js","sourceRoot":"","sources":["../../../../src/components/atoms/billo-icon/billo-icon-types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IconColor, IconSize, IconSymbol } from './billo-icon-types';
|
|
2
|
+
type Props = {
|
|
3
|
+
icon: IconSymbol;
|
|
4
|
+
size?: IconSize;
|
|
5
|
+
color?: IconColor;
|
|
6
|
+
touchTarget?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function BilloIcon({ icon, size, color, touchTarget, className, }: Props): JSX.Element;
|
|
10
|
+
export type { Props as BilloIconProps };
|
|
11
|
+
//# sourceMappingURL=billo-icon.d.ts.map
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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) }) }));
|
|
6
9
|
}
|
|
7
10
|
//# 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":"
|
|
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,3 +1,19 @@
|
|
|
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("./billo-icon"), exports);
|
|
18
|
+
__exportStar(require("./billo-icon-types"), exports);
|
|
3
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/billo-icon/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/billo-icon/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,qDAAmC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ButtonVariant = void 0;
|
|
4
|
+
var ButtonVariant;
|
|
2
5
|
(function (ButtonVariant) {
|
|
3
6
|
ButtonVariant["PRIMARY"] = "primary";
|
|
4
7
|
ButtonVariant["SECONDARY"] = "secondary";
|
|
5
8
|
ButtonVariant["DESTRUCTIVE"] = "destructive";
|
|
6
|
-
})(ButtonVariant || (ButtonVariant = {}));
|
|
9
|
+
})(ButtonVariant || (exports.ButtonVariant = ButtonVariant = {}));
|
|
7
10
|
//# 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,
|
|
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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const buttonStyles: (props?: ({
|
|
4
|
+
variant?: "primary" | "secondary" | "destructive" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
+
type Props = ComponentProps<'button'> & VariantProps<typeof buttonStyles>;
|
|
7
|
+
export declare const Button: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export type { Props as ButtonProps };
|
|
9
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
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)([
|
|
7
10
|
'w-full md:w-fit',
|
|
8
11
|
'py-4 md:px-8',
|
|
9
12
|
'rounded-lg',
|
|
@@ -20,9 +23,9 @@ const buttonStyles = cva([
|
|
|
20
23
|
},
|
|
21
24
|
defaultVariants: { variant: 'primary' },
|
|
22
25
|
});
|
|
23
|
-
const RawButton = forwardRef(({ variant = ButtonVariant.PRIMARY, className, ...props }, ref) => {
|
|
24
|
-
return (
|
|
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 }));
|
|
25
28
|
});
|
|
26
29
|
RawButton.displayName = 'Button';
|
|
27
|
-
|
|
30
|
+
exports.Button = RawButton;
|
|
28
31
|
//# sourceMappingURL=button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../src/components/atoms/button/button.tsx"],"names":[],"mappings":"
|
|
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,3 +1,19 @@
|
|
|
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("./button"), exports);
|
|
18
|
+
__exportStar(require("./button-types"), exports);
|
|
3
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/button/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/button/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,iDAA+B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum CheckboxVariant {
|
|
2
|
+
DEFAULT = "DEFAULT",
|
|
3
|
+
INTERMEDIATE = "INTERMEDIATE",
|
|
4
|
+
DESTRUCTIVE = "DESTRUCTIVE"
|
|
5
|
+
}
|
|
6
|
+
export type ExcludedVariants = Exclude<CheckboxVariant, CheckboxVariant.INTERMEDIATE>;
|
|
7
|
+
export declare const checkBoxStyles: {
|
|
8
|
+
[type in ExcludedVariants]: string;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=check-box-types.d.ts.map
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.checkBoxStyles = exports.CheckboxVariant = void 0;
|
|
4
|
+
var CheckboxVariant;
|
|
2
5
|
(function (CheckboxVariant) {
|
|
3
6
|
CheckboxVariant["DEFAULT"] = "DEFAULT";
|
|
4
7
|
CheckboxVariant["INTERMEDIATE"] = "INTERMEDIATE";
|
|
5
8
|
CheckboxVariant["DESTRUCTIVE"] = "DESTRUCTIVE";
|
|
6
|
-
})(CheckboxVariant || (CheckboxVariant = {}));
|
|
7
|
-
|
|
9
|
+
})(CheckboxVariant || (exports.CheckboxVariant = CheckboxVariant = {}));
|
|
10
|
+
exports.checkBoxStyles = {
|
|
8
11
|
[CheckboxVariant.DEFAULT]: 'bg-blue-01 hover:bg-blue-02 focus-visible:bg-blue-02 disabled:bg-blue-03',
|
|
9
12
|
[CheckboxVariant.DESTRUCTIVE]: 'bg-red-01 hover:bg-red-02 focus-visible:bg-red-02 disabled:bg-red-03',
|
|
10
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-box-types.js","sourceRoot":"","sources":["../../../../src/components/atoms/check-box/check-box-types.ts"],"names":[],"mappings":"AAAA,
|
|
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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CheckboxVariant } from '@/components';
|
|
2
|
+
type Props = {
|
|
3
|
+
value?: boolean;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
label?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
labelName?: string;
|
|
8
|
+
containerClassName?: string;
|
|
9
|
+
variant?: CheckboxVariant;
|
|
10
|
+
onCheckToggle?: (value: boolean) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare function Checkbox({ value, isDisabled, label, className, labelName, containerClassName, variant, onCheckToggle, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export type { Props as CheckboxProps };
|
|
14
|
+
//# sourceMappingURL=check-box.d.ts.map
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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)(() => {
|
|
11
14
|
if (value === undefined) {
|
|
12
15
|
return;
|
|
13
16
|
}
|
|
@@ -23,8 +26,8 @@ export function Checkbox({ value, isDisabled = false, label, className, labelNam
|
|
|
23
26
|
}
|
|
24
27
|
onCheckToggle(isChecked);
|
|
25
28
|
};
|
|
26
|
-
const isIntermediate = variant === CheckboxVariant.INTERMEDIATE;
|
|
27
|
-
const checkBoxVariantStyle = checkBoxStyles[isIntermediate ? CheckboxVariant.DEFAULT : variant];
|
|
28
|
-
return (
|
|
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 }))] }) }));
|
|
29
32
|
}
|
|
30
33
|
//# 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":"
|
|
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,cAAc,CAAC,CAAC,CAAC,4BAAe,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAEhG,OAAO,CACL,2DACE,iCACE,SAAS,EAAE,IAAA,yBAAQ,EACjB,iCAAiC,EACjC,UAAU,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,gBAAgB,EACpD,kBAAkB,CACnB,EACD,OAAO,EAAE,WAAW,aAEpB,oCACE,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,IAAA,yBAAQ,EACjB,2EAA2E,EAC3E,iCAAiC,EACjC,uCAAuC,EACvC,yEAAyE,EACzE,iIAAiI,EACjI,SAAS,IAAI,GAAG,oBAAoB,cAAc,EAClD,SAAS,CACV,aAEA,SAAS,IAAI,CAAC,cAAc,IAAI,CAC/B,uBAAC,sBAAS,IACR,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,qBAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,qBAAQ,CAAC,EAAE,EAC3C,IAAI,EAAE,uBAAU,CAAC,KAAK,EACtB,SAAS,EAAC,0BAA0B,GACpC,CACH,EAEA,SAAS,IAAI,cAAc,IAAI,CAC9B,uBAAC,sBAAS,IACR,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,qBAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,qBAAQ,CAAC,EAAE,EAC3C,IAAI,EAAE,uBAAU,CAAC,KAAK,EACtB,SAAS,EAAC,YAAY,GACtB,CACH,IACM,EAER,KAAK,IAAI,CACR,uBAAC,iBAAI,IACH,OAAO,EAAE,wBAAW,CAAC,IAAI,EACzB,SAAS,EAAE,IAAA,yBAAQ,EAAC,yCAAyC,EAAE,SAAS,CAAC,EACzE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,uBAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,uBAAU,CAAC,KAAK,YAEzD,KAAK,GACD,CACR,IACG,GACL,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,19 @@
|
|
|
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("./check-box"), exports);
|
|
18
|
+
__exportStar(require("./check-box-types"), exports);
|
|
3
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/check-box/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/check-box/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,oDAAkC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function Chip({ id, label, className, onClick }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { Props as ChipProps };
|
|
9
|
+
//# sourceMappingURL=chip.d.ts.map
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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));
|
|
9
12
|
}
|
|
10
13
|
//# sourceMappingURL=chip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chip.js","sourceRoot":"","sources":["../../../../../src/components/atoms/chip/chip/chip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chip.js","sourceRoot":"","sources":["../../../../../src/components/atoms/chip/chip/chip.tsx"],"names":[],"mappings":";;AAYA,oBAwBC;;AApCD,qEAA4D;AAC5D,uFAAgF;AAChF,uDAAiF;AACjF,4DAAwD;AASxD,SAAgB,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAS;IAC3D,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,6CAAmB,GAAE,CAAC;IAC3C,OAAO,CACL,oDAGE,SAAS,EAAE,IAAA,yBAAQ,EACjB,kFAAkF,EAClF,kCAAkC,EAClC,0BAA0B,EAC1B,EAAE,mBAAmB,EAAE,CAAC,OAAO,EAAE,EACjC,SAAS,CACV,aAED,uBAAC,iBAAI,IACH,OAAO,EAAE,wBAAW,CAAC,IAAI,EACzB,KAAK,EAAE,uBAAU,CAAC,QAAQ,EAC1B,SAAS,EAAE,IAAA,yBAAQ,EAAC,2CAA2C,CAAC,YAE/D,KAAK,GACD,EACN,OAAO,IAAI,uBAAC,0BAAW,IAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,qBAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,qBAAQ,CAAC,EAAE,GAAI,KAjBrF,EAAE,CAkBH,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IconColor, IconSize } from '../../../../../components';
|
|
2
|
+
type Props = {
|
|
3
|
+
isDisabled?: boolean;
|
|
4
|
+
size?: IconSize;
|
|
5
|
+
color?: IconColor;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function ClearButton({ isDisabled, size, onClick, className, }: Props): JSX.Element;
|
|
10
|
+
export type { Props as ClearButtonProps };
|
|
11
|
+
//# sourceMappingURL=clear-button.d.ts.map
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 &&
|
|
6
9
|
'group-active:text-gray-01 group-hover:text-gray-01 group-focus-visible:text-gray-01') }) }));
|
|
7
10
|
}
|
|
8
11
|
//# 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":"
|
|
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,2 +1,18 @@
|
|
|
1
|
-
|
|
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);
|
|
2
18
|
//# sourceMappingURL=index.js.map
|