@tipp/ui 1.5.0 → 1.5.1
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/app/index.cjs +100 -92
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +26 -26
- package/dist/app/platform/coach-question-list.cjs +7 -7
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +10 -10
- package/dist/app/platform/edit-coaching-time.cjs +18 -18
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +18 -18
- package/dist/app/platform/edit-service-type.cjs +10 -10
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +17 -17
- package/dist/app/platform/goal-manage-card-edit.cjs +14 -14
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +16 -16
- package/dist/app/platform/goal-manage-card-read.cjs +16 -16
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +11 -11
- package/dist/app/platform/on-offline-radio-card.js +15 -15
- package/dist/app/platform/report-card.cjs +7 -7
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +15 -15
- package/dist/app/platform/reservation-card.cjs +28 -28
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +16 -16
- package/dist/app/platform/session-card.cjs +69 -61
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +19 -19
- package/dist/app/platform/session-review-simple-read.cjs +8 -8
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +10 -10
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +17 -17
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +13 -13
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +8 -8
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +11 -11
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +13 -13
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +11 -11
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +11 -11
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +10 -10
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +11 -11
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +11 -11
- package/dist/app/platform/userInfos/utils.js +10 -10
- package/dist/atoms/dialog.cjs +49 -81
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.d.cts +2 -0
- package/dist/atoms/dialog.d.ts +2 -0
- package/dist/atoms/dialog.js +3 -3
- package/dist/atoms/drawer.js +2 -2
- package/dist/atoms/index.cjs +76 -68
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +19 -19
- package/dist/chunk-2M2IFCSK.js +52 -0
- package/dist/chunk-2M2IFCSK.js.map +1 -0
- package/dist/chunk-2OS7X2DG.js +138 -0
- package/dist/chunk-2OS7X2DG.js.map +1 -0
- package/dist/chunk-36JB7UOF.js +138 -0
- package/dist/chunk-36JB7UOF.js.map +1 -0
- package/dist/chunk-4T4KKREE.js +30 -0
- package/dist/chunk-4T4KKREE.js.map +1 -0
- package/dist/chunk-5327PTNJ.js +138 -0
- package/dist/chunk-5327PTNJ.js.map +1 -0
- package/dist/chunk-547DJCAJ.js +74 -0
- package/dist/chunk-547DJCAJ.js.map +1 -0
- package/dist/chunk-5AAS42YG.js +98 -0
- package/dist/chunk-5AAS42YG.js.map +1 -0
- package/dist/chunk-5E3TLMRW.js +138 -0
- package/dist/chunk-5E3TLMRW.js.map +1 -0
- package/dist/chunk-5FP6SWXJ.js +203 -0
- package/dist/chunk-5FP6SWXJ.js.map +1 -0
- package/dist/chunk-6Y3Z5OIX.js +101 -0
- package/dist/chunk-6Y3Z5OIX.js.map +1 -0
- package/dist/chunk-7EDPO2Y5.js +138 -0
- package/dist/chunk-7EDPO2Y5.js.map +1 -0
- package/dist/chunk-7OJSWKHZ.js +138 -0
- package/dist/chunk-7OJSWKHZ.js.map +1 -0
- package/dist/chunk-7TWIGS7O.js +101 -0
- package/dist/chunk-7TWIGS7O.js.map +1 -0
- package/dist/chunk-7WLDXOOO.js +350 -0
- package/dist/chunk-7WLDXOOO.js.map +1 -0
- package/dist/chunk-7ZEWNVHJ.js +192 -0
- package/dist/chunk-7ZEWNVHJ.js.map +1 -0
- package/dist/chunk-AKKAPBO4.js +52 -0
- package/dist/chunk-AKKAPBO4.js.map +1 -0
- package/dist/chunk-AOCMD34M.js +138 -0
- package/dist/chunk-AOCMD34M.js.map +1 -0
- package/dist/chunk-AP5ARKJL.js +138 -0
- package/dist/chunk-AP5ARKJL.js.map +1 -0
- package/dist/chunk-C24NCIRF.js +138 -0
- package/dist/chunk-C24NCIRF.js.map +1 -0
- package/dist/chunk-C3QWDJ3D.js +145 -0
- package/dist/chunk-C3QWDJ3D.js.map +1 -0
- package/dist/chunk-CEMVFONQ.js +104 -0
- package/dist/chunk-CEMVFONQ.js.map +1 -0
- package/dist/chunk-CJ3XXETF.js +109 -0
- package/dist/chunk-CJ3XXETF.js.map +1 -0
- package/dist/chunk-EBSM7TV4.js +101 -0
- package/dist/chunk-EBSM7TV4.js.map +1 -0
- package/dist/chunk-FMCDZEXR.js +58 -0
- package/dist/chunk-FMCDZEXR.js.map +1 -0
- package/dist/chunk-H623KT6H.js +138 -0
- package/dist/chunk-H623KT6H.js.map +1 -0
- package/dist/chunk-IE5GRQOQ.js +112 -0
- package/dist/chunk-IE5GRQOQ.js.map +1 -0
- package/dist/chunk-IVGPZUCB.js +203 -0
- package/dist/chunk-IVGPZUCB.js.map +1 -0
- package/dist/chunk-JTEQ25Z5.js +101 -0
- package/dist/chunk-JTEQ25Z5.js.map +1 -0
- package/dist/chunk-JXRHM4PD.js +138 -0
- package/dist/chunk-JXRHM4PD.js.map +1 -0
- package/dist/chunk-JZXYBYIV.js +39 -0
- package/dist/chunk-JZXYBYIV.js.map +1 -0
- package/dist/chunk-KJMWCR2G.js +101 -0
- package/dist/chunk-KJMWCR2G.js.map +1 -0
- package/dist/chunk-LQT6ZGLA.js +138 -0
- package/dist/chunk-LQT6ZGLA.js.map +1 -0
- package/dist/chunk-M5G5KMUE.js +76 -0
- package/dist/chunk-M5G5KMUE.js.map +1 -0
- package/dist/chunk-MI2LODDO.js +138 -0
- package/dist/chunk-MI2LODDO.js.map +1 -0
- package/dist/chunk-MOZLM3CP.js +171 -0
- package/dist/chunk-MOZLM3CP.js.map +1 -0
- package/dist/chunk-MR4FQ4H6.js +93 -0
- package/dist/chunk-MR4FQ4H6.js.map +1 -0
- package/dist/chunk-NFTADDQN.js +138 -0
- package/dist/chunk-NFTADDQN.js.map +1 -0
- package/dist/chunk-NHC6ZFBA.js +138 -0
- package/dist/chunk-NHC6ZFBA.js.map +1 -0
- package/dist/chunk-NPSJEUC6.js +138 -0
- package/dist/chunk-NPSJEUC6.js.map +1 -0
- package/dist/chunk-OUZT3SDR.js +59 -0
- package/dist/chunk-OUZT3SDR.js.map +1 -0
- package/dist/chunk-PWPVK2HB.js +112 -0
- package/dist/chunk-PWPVK2HB.js.map +1 -0
- package/dist/chunk-Q64HDW6R.js +109 -0
- package/dist/chunk-Q64HDW6R.js.map +1 -0
- package/dist/chunk-QJ4FYN6G.js +76 -0
- package/dist/chunk-QJ4FYN6G.js.map +1 -0
- package/dist/chunk-QNYWSY5P.js +164 -0
- package/dist/chunk-QNYWSY5P.js.map +1 -0
- package/dist/chunk-R255GZPB.js +35 -0
- package/dist/chunk-R255GZPB.js.map +1 -0
- package/dist/chunk-RGH3ADLO.js +101 -0
- package/dist/chunk-RGH3ADLO.js.map +1 -0
- package/dist/chunk-RLFG5TCU.js +98 -0
- package/dist/chunk-RLFG5TCU.js.map +1 -0
- package/dist/chunk-TCF7B3N3.js +101 -0
- package/dist/chunk-TCF7B3N3.js.map +1 -0
- package/dist/chunk-TJ564MUO.js +145 -0
- package/dist/chunk-TJ564MUO.js.map +1 -0
- package/dist/chunk-TJSCVJT2.js +138 -0
- package/dist/chunk-TJSCVJT2.js.map +1 -0
- package/dist/chunk-TMDNIBIV.js +64 -0
- package/dist/chunk-TMDNIBIV.js.map +1 -0
- package/dist/chunk-TW5EULWR.js +93 -0
- package/dist/chunk-TW5EULWR.js.map +1 -0
- package/dist/chunk-UB6KOKKQ.js +138 -0
- package/dist/chunk-UB6KOKKQ.js.map +1 -0
- package/dist/chunk-UVJASJN4.js +64 -0
- package/dist/chunk-UVJASJN4.js.map +1 -0
- package/dist/chunk-VYGMNI7T.js +138 -0
- package/dist/chunk-VYGMNI7T.js.map +1 -0
- package/dist/chunk-W4QKUPPN.js +138 -0
- package/dist/chunk-W4QKUPPN.js.map +1 -0
- package/dist/chunk-WVBFSWKT.js +104 -0
- package/dist/chunk-WVBFSWKT.js.map +1 -0
- package/dist/chunk-X3SEOKG4.js +243 -0
- package/dist/chunk-X3SEOKG4.js.map +1 -0
- package/dist/chunk-XBYZM24U.js +112 -0
- package/dist/chunk-XBYZM24U.js.map +1 -0
- package/dist/chunk-XEJG52Y3.js +112 -0
- package/dist/chunk-XEJG52Y3.js.map +1 -0
- package/dist/chunk-XEJNYJF6.js +80 -0
- package/dist/chunk-XEJNYJF6.js.map +1 -0
- package/dist/chunk-XNOQPF6O.js +171 -0
- package/dist/chunk-XNOQPF6O.js.map +1 -0
- package/dist/chunk-Y2MNPJCI.js +73 -0
- package/dist/chunk-Y2MNPJCI.js.map +1 -0
- package/dist/chunk-YHW5PCCE.js +57 -0
- package/dist/chunk-YHW5PCCE.js.map +1 -0
- package/dist/chunk-YK2IAHKI.js +138 -0
- package/dist/chunk-YK2IAHKI.js.map +1 -0
- package/dist/chunk-YVWOLJ44.js +101 -0
- package/dist/chunk-YVWOLJ44.js.map +1 -0
- package/dist/chunk-ZAQQ6H6W.js +30 -0
- package/dist/chunk-ZAQQ6H6W.js.map +1 -0
- package/dist/chunk-ZUL5FOQW.js +203 -0
- package/dist/chunk-ZUL5FOQW.js.map +1 -0
- package/dist/chunk-ZW34437K.js +138 -0
- package/dist/chunk-ZW34437K.js.map +1 -0
- package/dist/chunk-ZW37CDPD.js +243 -0
- package/dist/chunk-ZW37CDPD.js.map +1 -0
- package/dist/index.cjs +147 -139
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +5 -3
- package/dist/index.css.map +1 -1
- package/dist/index.js +56 -56
- package/dist/layouts/index.js +10 -10
- package/dist/layouts/response-display.js +10 -10
- package/dist/molecules/date-picker/date-picker-button.cjs +12 -12
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +10 -10
- package/dist/molecules/expand-table/index.cjs +12 -12
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +13 -13
- package/dist/molecules/expand-table/row.js +10 -10
- package/dist/molecules/form.d.cts +1 -1
- package/dist/molecules/form.d.ts +1 -1
- package/dist/molecules/index.cjs +46 -46
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +15 -15
- package/dist/molecules/navigation.js +10 -10
- package/dist/molecules/radio-button-card.js +10 -10
- package/dist/molecules/stepper.js +2 -2
- package/dist/molecules/tag-selector.js +11 -11
- package/dist/molecules/time-select.js +10 -10
- package/package.json +3 -3
- package/src/atoms/dialog.tsx +23 -6
package/dist/atoms/dialog.cjs
CHANGED
|
@@ -64,87 +64,18 @@ __export(dialog_exports, {
|
|
|
64
64
|
module.exports = __toCommonJS(dialog_exports);
|
|
65
65
|
var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
66
66
|
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
// src/atoms/button.tsx
|
|
70
|
-
var import_react = require("react");
|
|
71
|
-
var import_themes = require("@radix-ui/themes");
|
|
72
|
-
|
|
73
|
-
// src/utils/convert-button-size.ts
|
|
74
|
-
var convertSizeStr = (size) => {
|
|
75
|
-
switch (size) {
|
|
76
|
-
case "small":
|
|
77
|
-
return "1";
|
|
78
|
-
case "medium":
|
|
79
|
-
return "2";
|
|
80
|
-
case "large":
|
|
81
|
-
return "3";
|
|
82
|
-
default:
|
|
83
|
-
return "2";
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
var convertSizeResponse = (size) => {
|
|
87
|
-
if (typeof size === "string" || typeof size === "undefined") {
|
|
88
|
-
return convertSizeStr(size);
|
|
89
|
-
}
|
|
90
|
-
const radixSize = {};
|
|
91
|
-
let key = "initial";
|
|
92
|
-
for (key in size) {
|
|
93
|
-
radixSize[key] = convertSizeStr(size[key]);
|
|
94
|
-
}
|
|
95
|
-
return radixSize;
|
|
96
|
-
};
|
|
97
|
-
var convertSize = (size) => {
|
|
98
|
-
if (typeof size === "string") {
|
|
99
|
-
return convertSizeStr(size);
|
|
100
|
-
}
|
|
101
|
-
return convertSizeResponse(size);
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
// src/atoms/button.tsx
|
|
105
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
106
|
-
var Button = (0, import_react.forwardRef)(
|
|
107
|
-
(props, ref) => {
|
|
108
|
-
const _a = props, { size, style, variant } = _a, restProps = __objRest(_a, ["size", "style", "variant"]);
|
|
109
|
-
const radixSize = (0, import_react.useMemo)(() => {
|
|
110
|
-
return convertSize(size);
|
|
111
|
-
}, [size]);
|
|
112
|
-
const mergedStyle = (0, import_react.useMemo)(() => {
|
|
113
|
-
const baseStyle = {
|
|
114
|
-
background: variant === "transparent" ? "transparent" : void 0,
|
|
115
|
-
fontWeight: 400
|
|
116
|
-
};
|
|
117
|
-
return __spreadValues(__spreadValues({}, baseStyle), style);
|
|
118
|
-
}, [style, variant]);
|
|
119
|
-
const radixVariant = (0, import_react.useMemo)(() => {
|
|
120
|
-
if (variant === "transparent")
|
|
121
|
-
return "ghost";
|
|
122
|
-
return variant;
|
|
123
|
-
}, [variant]);
|
|
124
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
125
|
-
import_themes.Button,
|
|
126
|
-
__spreadProps(__spreadValues({
|
|
127
|
-
style: mergedStyle,
|
|
128
|
-
variant: radixVariant
|
|
129
|
-
}, restProps), {
|
|
130
|
-
ref,
|
|
131
|
-
size: radixSize
|
|
132
|
-
})
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
);
|
|
136
|
-
Button.displayName = "Button";
|
|
67
|
+
var import_themes4 = require("@radix-ui/themes");
|
|
137
68
|
|
|
138
69
|
// src/atoms/toast.tsx
|
|
139
70
|
var import_react_icons = require("@radix-ui/react-icons");
|
|
140
71
|
var import_react_toastify = require("react-toastify");
|
|
141
72
|
var import_react_toastify2 = require("react-toastify");
|
|
142
|
-
var
|
|
73
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
143
74
|
function CloseButton() {
|
|
144
75
|
return null;
|
|
145
76
|
}
|
|
146
77
|
function ToastContainer(props) {
|
|
147
|
-
return /* @__PURE__ */ (0,
|
|
78
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
148
79
|
import_react_toastify.ToastContainer,
|
|
149
80
|
__spreadValues({
|
|
150
81
|
autoClose: 5e3,
|
|
@@ -152,7 +83,7 @@ function ToastContainer(props) {
|
|
|
152
83
|
closeOnClick: true,
|
|
153
84
|
draggable: true,
|
|
154
85
|
hideProgressBar: true,
|
|
155
|
-
icon: /* @__PURE__ */ (0,
|
|
86
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_icons.InfoCircledIcon, {}),
|
|
156
87
|
newestOnTop: true,
|
|
157
88
|
pauseOnFocusLoss: true,
|
|
158
89
|
pauseOnHover: true,
|
|
@@ -163,6 +94,35 @@ function ToastContainer(props) {
|
|
|
163
94
|
);
|
|
164
95
|
}
|
|
165
96
|
|
|
97
|
+
// src/atoms/heading.tsx
|
|
98
|
+
var import_themes = require("@radix-ui/themes");
|
|
99
|
+
var import_react = require("react");
|
|
100
|
+
var import_themes2 = require("@radix-ui/themes");
|
|
101
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
102
|
+
function Heading2(props) {
|
|
103
|
+
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
104
|
+
const radixSize = (0, import_react.useMemo)(() => {
|
|
105
|
+
switch (variant) {
|
|
106
|
+
case "heading1":
|
|
107
|
+
return "7";
|
|
108
|
+
case "heading2":
|
|
109
|
+
return "6";
|
|
110
|
+
case "heading3":
|
|
111
|
+
return "5";
|
|
112
|
+
case "heading4":
|
|
113
|
+
return "4";
|
|
114
|
+
case "heading5":
|
|
115
|
+
return "3";
|
|
116
|
+
default:
|
|
117
|
+
return size;
|
|
118
|
+
}
|
|
119
|
+
}, [size, variant]);
|
|
120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_themes.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// src/atoms/icon-button.tsx
|
|
124
|
+
var import_themes3 = require("@radix-ui/themes");
|
|
125
|
+
|
|
166
126
|
// src/atoms/dialog.tsx
|
|
167
127
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
168
128
|
var preventDefault = (e) => {
|
|
@@ -177,7 +137,9 @@ function Content2(props) {
|
|
|
177
137
|
minWidth,
|
|
178
138
|
maxHeight,
|
|
179
139
|
height,
|
|
180
|
-
minHeight
|
|
140
|
+
minHeight,
|
|
141
|
+
title,
|
|
142
|
+
buttons
|
|
181
143
|
} = _a, rest = __objRest(_a, [
|
|
182
144
|
"children",
|
|
183
145
|
"style",
|
|
@@ -186,10 +148,12 @@ function Content2(props) {
|
|
|
186
148
|
"minWidth",
|
|
187
149
|
"maxHeight",
|
|
188
150
|
"height",
|
|
189
|
-
"minHeight"
|
|
151
|
+
"minHeight",
|
|
152
|
+
"title",
|
|
153
|
+
"buttons"
|
|
190
154
|
]);
|
|
191
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
192
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.
|
|
155
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes4.Theme, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(RadixDialog.Overlay, { className: "DialogOverlay", children: [
|
|
156
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
193
157
|
RadixDialog.Content,
|
|
194
158
|
__spreadProps(__spreadValues({
|
|
195
159
|
className: "DialogContent",
|
|
@@ -203,10 +167,14 @@ function Content2(props) {
|
|
|
203
167
|
minHeight
|
|
204
168
|
}, style)
|
|
205
169
|
}, rest), {
|
|
206
|
-
children:
|
|
207
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.
|
|
208
|
-
|
|
209
|
-
|
|
170
|
+
children: [
|
|
171
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_themes4.Flex, { gap: "2", justify: "between", children: [
|
|
172
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Heading2, { variant: "heading3", children: title }) : title }),
|
|
173
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes3.IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_icons2.Cross1Icon, {}) }) })
|
|
174
|
+
] }),
|
|
175
|
+
children,
|
|
176
|
+
buttons ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes4.Flex, { gap: "3", justify: "end", mt: "3", children: buttons }) : null
|
|
177
|
+
]
|
|
210
178
|
})
|
|
211
179
|
),
|
|
212
180
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ToastContainer, {})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/atoms/dialog.tsx","../../src/atoms/
|
|
1
|
+
{"version":3,"sources":["../../src/atoms/dialog.tsx","../../src/atoms/toast.tsx","../../src/atoms/heading.tsx","../../src/atoms/icon-button.tsx"],"sourcesContent":["import * as RadixDialog from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { Flex, Theme } from '@radix-ui/themes';\nimport { ToastContainer } from './toast';\nimport { Heading } from './heading';\nimport { IconButton } from './icon-button';\n\ntype ContentProps = RadixDialog.DialogContentProps & {\n width?: string;\n maxWidth?: string;\n minWidth?: string;\n height?: string;\n maxHeight?: string;\n minHeight?: string;\n title?: React.ReactNode;\n buttons?: React.ReactElement;\n};\n\nconst preventDefault: RadixDialog.DialogContentProps['onPointerDownOutside'] = (\n e\n) => {\n e.preventDefault();\n};\n\nfunction Content(props: ContentProps): React.ReactElement {\n const {\n children,\n style = {},\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n title,\n buttons,\n ...rest\n } = props;\n\n return (\n <RadixDialog.Portal>\n <Theme asChild>\n <RadixDialog.Overlay className=\"DialogOverlay\">\n <RadixDialog.Content\n className=\"DialogContent\"\n onPointerDownOutside={preventDefault}\n style={{\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n ...style,\n }}\n {...rest}\n >\n <Flex gap=\"2\" justify=\"between\">\n <RadixDialog.Title asChild>\n {typeof title === 'string' ? (\n <Heading variant=\"heading3\">{title}</Heading>\n ) : (\n title\n )}\n </RadixDialog.Title>\n <RadixDialog.Close asChild className=\"DialogClose\">\n <IconButton color=\"gray\" variant=\"ghost\">\n <Cross1Icon />\n </IconButton>\n </RadixDialog.Close>\n </Flex>\n {children}\n {buttons ? (\n <Flex gap=\"3\" justify=\"end\" mt=\"3\">\n {buttons}\n </Flex>\n ) : null}\n </RadixDialog.Content>\n <ToastContainer />\n </RadixDialog.Overlay>\n </Theme>\n </RadixDialog.Portal>\n );\n}\n\nfunction Close({\n children,\n ...rest\n}: RadixDialog.DialogCloseProps): React.ReactElement {\n return (\n <RadixDialog.Close asChild {...rest}>\n {children}\n </RadixDialog.Close>\n );\n}\n\nfunction Trigger({\n children,\n ...rest\n}: RadixDialog.DialogTriggerProps): React.ReactElement {\n return (\n <RadixDialog.Trigger asChild {...rest}>\n {children}\n </RadixDialog.Trigger>\n );\n}\n\nexport const Dialog = {\n Root: RadixDialog.Root,\n Trigger,\n Content,\n Close,\n Description: RadixDialog.Description,\n Title: RadixDialog.Title,\n};\n","import { InfoCircledIcon } from '@radix-ui/react-icons';\nimport {\n ToastContainer as ToastifyContainer,\n type ToastContainerProps,\n} from 'react-toastify';\n\nexport { toast } from 'react-toastify';\n\nfunction CloseButton(): React.ReactNode {\n return null;\n}\n\nexport function ToastContainer(props: ToastContainerProps): React.ReactElement {\n return (\n <ToastifyContainer\n autoClose={5000}\n closeButton={CloseButton}\n closeOnClick\n draggable\n hideProgressBar\n icon={<InfoCircledIcon />}\n newestOnTop\n pauseOnFocusLoss\n pauseOnHover\n position=\"bottom-right\"\n rtl={false}\n style={{ zIndex: 999999 }}\n {...props}\n />\n );\n}\n","import {\n Heading as RadixHeading,\n type HeadingProps as RadixHeadingProps,\n} from '@radix-ui/themes';\nimport { useMemo } from 'react';\n\nexport { Heading as RadixHeading } from '@radix-ui/themes';\n\nexport type HeadingProps = RadixHeadingProps & {\n variant?: 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5';\n};\n\nexport function Heading(props: HeadingProps): React.ReactElement {\n const { size, children, variant, ...rest } = props;\n const radixSize = useMemo<RadixHeadingProps['size']>(() => {\n switch (variant) {\n case 'heading1':\n return '7';\n case 'heading2':\n return '6';\n case 'heading3':\n return '5';\n case 'heading4':\n return '4';\n case 'heading5':\n return '3';\n default:\n return size;\n }\n }, [size, variant]);\n\n return (\n <RadixHeading {...rest} size={radixSize}>\n {children}\n </RadixHeading>\n );\n}\n","export { IconButton, type IconButtonProps } from '@radix-ui/themes';\n"],"mappings":"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","names":["import_react_icons","import_themes","import_react_toastify","ToastifyContainer","import_themes","import_jsx_runtime","Heading","RadixHeading","import_themes","import_jsx_runtime","Content","Heading","Close","Trigger"]}
|
package/dist/atoms/dialog.d.cts
CHANGED
|
@@ -8,6 +8,8 @@ type ContentProps = Dialog$1.DialogContentProps & {
|
|
|
8
8
|
height?: string;
|
|
9
9
|
maxHeight?: string;
|
|
10
10
|
minHeight?: string;
|
|
11
|
+
title?: React.ReactNode;
|
|
12
|
+
buttons?: React.ReactElement;
|
|
11
13
|
};
|
|
12
14
|
declare function Content(props: ContentProps): React.ReactElement;
|
|
13
15
|
declare function Close({ children, ...rest }: Dialog$1.DialogCloseProps): React.ReactElement;
|
package/dist/atoms/dialog.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ type ContentProps = Dialog$1.DialogContentProps & {
|
|
|
8
8
|
height?: string;
|
|
9
9
|
maxHeight?: string;
|
|
10
10
|
minHeight?: string;
|
|
11
|
+
title?: React.ReactNode;
|
|
12
|
+
buttons?: React.ReactElement;
|
|
11
13
|
};
|
|
12
14
|
declare function Content(props: ContentProps): React.ReactElement;
|
|
13
15
|
declare function Close({ children, ...rest }: Dialog$1.DialogCloseProps): React.ReactElement;
|
package/dist/atoms/dialog.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Dialog
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-CEMVFONQ.js";
|
|
4
4
|
import "../chunk-CYYWMYE7.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-HK224ADT.js";
|
|
6
|
+
import "../chunk-O3DNDMV3.js";
|
|
7
7
|
import "../chunk-N552FDTV.js";
|
|
8
8
|
export {
|
|
9
9
|
Dialog
|
package/dist/atoms/drawer.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
Drawer,
|
|
4
4
|
Root,
|
|
5
5
|
Trigger
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-7SM2C75W.js";
|
|
7
|
+
import "../chunk-UNTA4JJU.js";
|
|
7
8
|
import "../chunk-HYITAA4J.js";
|
|
8
9
|
import "../chunk-O3DNDMV3.js";
|
|
9
10
|
import "../chunk-25HMMI7R.js";
|
|
10
|
-
import "../chunk-UNTA4JJU.js";
|
|
11
11
|
import "../chunk-N552FDTV.js";
|
|
12
12
|
export {
|
|
13
13
|
Content,
|
package/dist/atoms/index.cjs
CHANGED
|
@@ -82,14 +82,14 @@ __export(atoms_exports, {
|
|
|
82
82
|
Drawer: () => Drawer,
|
|
83
83
|
DropdownMenu: () => DropdownMenu,
|
|
84
84
|
EllipsisTooltip: () => EllipsisTooltip,
|
|
85
|
-
Em: () =>
|
|
85
|
+
Em: () => import_themes21.Em,
|
|
86
86
|
FieldErrorWrapper: () => FieldErrorWrapper,
|
|
87
|
-
Flex: () =>
|
|
87
|
+
Flex: () => import_themes22.Flex,
|
|
88
88
|
Form: () => Form,
|
|
89
|
-
Grid: () =>
|
|
89
|
+
Grid: () => import_themes23.Grid,
|
|
90
90
|
Heading: () => Heading2,
|
|
91
|
-
HoverCard: () =>
|
|
92
|
-
IconButton: () =>
|
|
91
|
+
HoverCard: () => import_themes24.HoverCard,
|
|
92
|
+
IconButton: () => import_themes18.IconButton,
|
|
93
93
|
Inset: () => import_themes25.Inset,
|
|
94
94
|
Kbd: () => import_themes26.Kbd,
|
|
95
95
|
Link: () => Link,
|
|
@@ -366,7 +366,7 @@ var import_themes15 = require("@radix-ui/themes");
|
|
|
366
366
|
// src/atoms/dialog.tsx
|
|
367
367
|
var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
368
368
|
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
369
|
-
var
|
|
369
|
+
var import_themes19 = require("@radix-ui/themes");
|
|
370
370
|
|
|
371
371
|
// src/atoms/toast.tsx
|
|
372
372
|
var import_react_icons = require("@radix-ui/react-icons");
|
|
@@ -396,8 +396,37 @@ function ToastContainer(props) {
|
|
|
396
396
|
);
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
// src/atoms/
|
|
399
|
+
// src/atoms/heading.tsx
|
|
400
|
+
var import_themes16 = require("@radix-ui/themes");
|
|
401
|
+
var import_react7 = require("react");
|
|
402
|
+
var import_themes17 = require("@radix-ui/themes");
|
|
400
403
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
404
|
+
function Heading2(props) {
|
|
405
|
+
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
406
|
+
const radixSize = (0, import_react7.useMemo)(() => {
|
|
407
|
+
switch (variant) {
|
|
408
|
+
case "heading1":
|
|
409
|
+
return "7";
|
|
410
|
+
case "heading2":
|
|
411
|
+
return "6";
|
|
412
|
+
case "heading3":
|
|
413
|
+
return "5";
|
|
414
|
+
case "heading4":
|
|
415
|
+
return "4";
|
|
416
|
+
case "heading5":
|
|
417
|
+
return "3";
|
|
418
|
+
default:
|
|
419
|
+
return size;
|
|
420
|
+
}
|
|
421
|
+
}, [size, variant]);
|
|
422
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes16.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// src/atoms/icon-button.tsx
|
|
426
|
+
var import_themes18 = require("@radix-ui/themes");
|
|
427
|
+
|
|
428
|
+
// src/atoms/dialog.tsx
|
|
429
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
401
430
|
var preventDefault = (e) => {
|
|
402
431
|
e.preventDefault();
|
|
403
432
|
};
|
|
@@ -410,7 +439,9 @@ function Content2(props) {
|
|
|
410
439
|
minWidth,
|
|
411
440
|
maxHeight,
|
|
412
441
|
height,
|
|
413
|
-
minHeight
|
|
442
|
+
minHeight,
|
|
443
|
+
title,
|
|
444
|
+
buttons
|
|
414
445
|
} = _a, rest = __objRest(_a, [
|
|
415
446
|
"children",
|
|
416
447
|
"style",
|
|
@@ -419,10 +450,12 @@ function Content2(props) {
|
|
|
419
450
|
"minWidth",
|
|
420
451
|
"maxHeight",
|
|
421
452
|
"height",
|
|
422
|
-
"minHeight"
|
|
453
|
+
"minHeight",
|
|
454
|
+
"title",
|
|
455
|
+
"buttons"
|
|
423
456
|
]);
|
|
424
|
-
return /* @__PURE__ */ (0,
|
|
425
|
-
/* @__PURE__ */ (0,
|
|
457
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes19.Theme, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(RadixDialog.Overlay, { className: "DialogOverlay", children: [
|
|
458
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
426
459
|
RadixDialog.Content,
|
|
427
460
|
__spreadProps(__spreadValues({
|
|
428
461
|
className: "DialogContent",
|
|
@@ -436,13 +469,17 @@ function Content2(props) {
|
|
|
436
469
|
minHeight
|
|
437
470
|
}, style)
|
|
438
471
|
}, rest), {
|
|
439
|
-
children:
|
|
440
|
-
/* @__PURE__ */ (0,
|
|
441
|
-
|
|
442
|
-
|
|
472
|
+
children: [
|
|
473
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_themes19.Flex, { gap: "2", justify: "between", children: [
|
|
474
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Heading2, { variant: "heading3", children: title }) : title }),
|
|
475
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes18.IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_icons2.Cross1Icon, {}) }) })
|
|
476
|
+
] }),
|
|
477
|
+
children,
|
|
478
|
+
buttons ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes19.Flex, { gap: "3", justify: "end", mt: "3", children: buttons }) : null
|
|
479
|
+
]
|
|
443
480
|
})
|
|
444
481
|
),
|
|
445
|
-
/* @__PURE__ */ (0,
|
|
482
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ToastContainer, {})
|
|
446
483
|
] }) }) });
|
|
447
484
|
}
|
|
448
485
|
function Close2(_a) {
|
|
@@ -451,7 +488,7 @@ function Close2(_a) {
|
|
|
451
488
|
} = _b, rest = __objRest(_b, [
|
|
452
489
|
"children"
|
|
453
490
|
]);
|
|
454
|
-
return /* @__PURE__ */ (0,
|
|
491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
455
492
|
}
|
|
456
493
|
function Trigger2(_a) {
|
|
457
494
|
var _b = _a, {
|
|
@@ -459,7 +496,7 @@ function Trigger2(_a) {
|
|
|
459
496
|
} = _b, rest = __objRest(_b, [
|
|
460
497
|
"children"
|
|
461
498
|
]);
|
|
462
|
-
return /* @__PURE__ */ (0,
|
|
499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
463
500
|
}
|
|
464
501
|
var Dialog = {
|
|
465
502
|
Root: RadixDialog.Root,
|
|
@@ -471,17 +508,17 @@ var Dialog = {
|
|
|
471
508
|
};
|
|
472
509
|
|
|
473
510
|
// src/atoms/dropdown-menu.tsx
|
|
474
|
-
var
|
|
475
|
-
var
|
|
476
|
-
var
|
|
477
|
-
var Content3 = (0,
|
|
511
|
+
var import_themes20 = require("@radix-ui/themes");
|
|
512
|
+
var import_react8 = require("react");
|
|
513
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
514
|
+
var Content3 = (0, import_react8.forwardRef)((props, ref) => {
|
|
478
515
|
const _a = props, { isNavigation, className } = _a, rest = __objRest(_a, ["isNavigation", "className"]);
|
|
479
|
-
const contentClassName = (0,
|
|
516
|
+
const contentClassName = (0, import_react8.useMemo)(() => {
|
|
480
517
|
const cls = isNavigation ? "dropdown-navigation" : "";
|
|
481
518
|
return [cls, className].join(" ");
|
|
482
519
|
}, [isNavigation, className]);
|
|
483
|
-
return /* @__PURE__ */ (0,
|
|
484
|
-
|
|
520
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
521
|
+
import_themes20.DropdownMenu.Content,
|
|
485
522
|
__spreadProps(__spreadValues({
|
|
486
523
|
ref
|
|
487
524
|
}, rest), {
|
|
@@ -490,49 +527,20 @@ var Content3 = (0, import_react7.forwardRef)((props, ref) => {
|
|
|
490
527
|
);
|
|
491
528
|
});
|
|
492
529
|
Content3.displayName = "DropdownMenu.Content";
|
|
493
|
-
var DropdownMenu = __spreadProps(__spreadValues({},
|
|
530
|
+
var DropdownMenu = __spreadProps(__spreadValues({}, import_themes20.DropdownMenu), {
|
|
494
531
|
Content: Content3
|
|
495
532
|
});
|
|
496
533
|
|
|
497
534
|
// src/atoms/em.tsx
|
|
498
|
-
var
|
|
535
|
+
var import_themes21 = require("@radix-ui/themes");
|
|
499
536
|
|
|
500
537
|
// src/atoms/flex.tsx
|
|
501
|
-
var import_themes19 = require("@radix-ui/themes");
|
|
502
|
-
|
|
503
|
-
// src/atoms/grid.tsx
|
|
504
|
-
var import_themes20 = require("@radix-ui/themes");
|
|
505
|
-
|
|
506
|
-
// src/atoms/heading.tsx
|
|
507
|
-
var import_themes21 = require("@radix-ui/themes");
|
|
508
|
-
var import_react8 = require("react");
|
|
509
538
|
var import_themes22 = require("@radix-ui/themes");
|
|
510
|
-
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
511
|
-
function Heading2(props) {
|
|
512
|
-
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
513
|
-
const radixSize = (0, import_react8.useMemo)(() => {
|
|
514
|
-
switch (variant) {
|
|
515
|
-
case "heading1":
|
|
516
|
-
return "7";
|
|
517
|
-
case "heading2":
|
|
518
|
-
return "6";
|
|
519
|
-
case "heading3":
|
|
520
|
-
return "5";
|
|
521
|
-
case "heading4":
|
|
522
|
-
return "4";
|
|
523
|
-
case "heading5":
|
|
524
|
-
return "3";
|
|
525
|
-
default:
|
|
526
|
-
return size;
|
|
527
|
-
}
|
|
528
|
-
}, [size, variant]);
|
|
529
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes21.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
530
|
-
}
|
|
531
539
|
|
|
532
|
-
// src/atoms/
|
|
540
|
+
// src/atoms/grid.tsx
|
|
533
541
|
var import_themes23 = require("@radix-ui/themes");
|
|
534
542
|
|
|
535
|
-
// src/atoms/
|
|
543
|
+
// src/atoms/hover-card.tsx
|
|
536
544
|
var import_themes24 = require("@radix-ui/themes");
|
|
537
545
|
|
|
538
546
|
// src/atoms/inset.tsx
|
|
@@ -836,9 +844,9 @@ function Pagination(props) {
|
|
|
836
844
|
size: "3",
|
|
837
845
|
style: { borderRadius: "50%" }
|
|
838
846
|
};
|
|
839
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_themes22.Flex, { align: "center", className: "tipp-pagination", gap: "4", children: [
|
|
840
848
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
841
|
-
|
|
849
|
+
import_themes18.IconButton,
|
|
842
850
|
__spreadProps(__spreadValues({
|
|
843
851
|
disabled: !doublePrev,
|
|
844
852
|
onClick: onClickDoublePrev
|
|
@@ -846,8 +854,8 @@ function Pagination(props) {
|
|
|
846
854
|
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_icons3.DoubleArrowLeftIcon, __spreadValues({}, iconSize))
|
|
847
855
|
})
|
|
848
856
|
),
|
|
849
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
850
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
857
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes18.IconButton, __spreadProps(__spreadValues({ disabled: !prev, onClick: onClickPrev }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_icons3.ChevronLeftIcon, __spreadValues({}, iconSize)) })),
|
|
858
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes22.Flex, { gap: "1", children: visibleItems.map((item) => {
|
|
851
859
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
852
860
|
"button",
|
|
853
861
|
{
|
|
@@ -861,9 +869,9 @@ function Pagination(props) {
|
|
|
861
869
|
item
|
|
862
870
|
);
|
|
863
871
|
}) }),
|
|
864
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
872
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes18.IconButton, __spreadProps(__spreadValues({ disabled: !next, onClick: onClickNext }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_icons3.ChevronRightIcon, __spreadValues({}, iconSize)) })),
|
|
865
873
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
866
|
-
|
|
874
|
+
import_themes18.IconButton,
|
|
867
875
|
__spreadProps(__spreadValues({
|
|
868
876
|
disabled: !doubleNext,
|
|
869
877
|
onClick: onClickDoubleNext
|
|
@@ -880,7 +888,7 @@ function FieldErrorWrapper({
|
|
|
880
888
|
children,
|
|
881
889
|
error
|
|
882
890
|
}) {
|
|
883
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
891
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_themes22.Flex, { direction: "column", gap: "1", children: [
|
|
884
892
|
children,
|
|
885
893
|
error ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Typo, { color: "red", variant: "caption", children: error }) : null
|
|
886
894
|
] });
|
|
@@ -999,12 +1007,12 @@ function Content6(props) {
|
|
|
999
1007
|
}, rest), {
|
|
1000
1008
|
children: [
|
|
1001
1009
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1002
|
-
|
|
1010
|
+
import_themes22.Flex,
|
|
1003
1011
|
{
|
|
1004
1012
|
align: "center",
|
|
1005
1013
|
px: { initial: "4", md: "6" },
|
|
1006
1014
|
py: { initial: "2", md: "4" },
|
|
1007
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1015
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes18.IconButton, { color: "gray", variant: "outline", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ClosePanelArrowIcon, {}) }) })
|
|
1008
1016
|
}
|
|
1009
1017
|
),
|
|
1010
1018
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes39.Separator, { orientation: "horizontal", size: "4" }),
|
|
@@ -1177,7 +1185,7 @@ function BulletText(_a) {
|
|
|
1177
1185
|
} = _b, rest = __objRest(_b, [
|
|
1178
1186
|
"children"
|
|
1179
1187
|
]);
|
|
1180
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1188
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes22.Flex, { gap: "1", ml: "2", children: [
|
|
1181
1189
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children: "\u2022" })),
|
|
1182
1190
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children }))
|
|
1183
1191
|
] });
|