@goodhood-web/ui 3.0.0-development.63 → 3.0.0-development.65
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/index.mjs
CHANGED
|
@@ -31159,100 +31159,105 @@ const UF = "_wrapper_7h7ep_141", zF = "_textAreaInput_7h7ep_148", YF = "_textAre
|
|
|
31159
31159
|
);
|
|
31160
31160
|
});
|
|
31161
31161
|
return /* @__PURE__ */ R.jsx("div", { className: A0.root, children: n });
|
|
31162
|
-
}, oO = "
|
|
31163
|
-
"react-datepicker__day-names": "_react-datepicker__day-
|
|
31164
|
-
"react-datepicker__week": "_react-
|
|
31165
|
-
"react-datepicker__day--outside-month": "_react-datepicker__day--outside-
|
|
31166
|
-
"react-datepicker": "_react-
|
|
31162
|
+
}, oO = "_toggleContainer_5bpeg_142", aO = "_toggleLabel_5bpeg_149", iO = "_toggleLabel__labelPill_5bpeg_174", sO = "_toggleButton_5bpeg_182", ia = {
|
|
31163
|
+
"react-datepicker__day-names": "_react-datepicker__day-names_5bpeg_120",
|
|
31164
|
+
"react-datepicker__week": "_react-datepicker__week_5bpeg_124",
|
|
31165
|
+
"react-datepicker__day--outside-month": "_react-datepicker__day--outside-month_5bpeg_131",
|
|
31166
|
+
"react-datepicker": "_react-datepicker_5bpeg_120",
|
|
31167
31167
|
toggleContainer: oO,
|
|
31168
31168
|
toggleLabel: aO,
|
|
31169
|
-
"toggleLabel--outline": "_toggleLabel--
|
|
31170
|
-
"toggleLabel--filled": "_toggleLabel--
|
|
31169
|
+
"toggleLabel--outline": "_toggleLabel--outline_5bpeg_156",
|
|
31170
|
+
"toggleLabel--filled": "_toggleLabel--filled_5bpeg_164",
|
|
31171
31171
|
toggleLabel__labelPill: iO,
|
|
31172
|
-
"toggleLabel__labelPill--large": "_toggleLabel__labelPill--
|
|
31172
|
+
"toggleLabel__labelPill--large": "_toggleLabel__labelPill--large_5bpeg_179",
|
|
31173
31173
|
toggleButton: sO,
|
|
31174
|
-
"toggleContainer--default": "_toggleContainer--
|
|
31175
|
-
"toggleContainer--medium": "_toggleContainer--
|
|
31176
|
-
"toggleLabel--horizontal": "_toggleLabel--
|
|
31177
|
-
"toggleLabel--vertical": "_toggleLabel--
|
|
31178
|
-
"toggleLabel--vertical__labelPill": "_toggleLabel--
|
|
31179
|
-
"toggleContainer--large": "_toggleContainer--
|
|
31174
|
+
"toggleContainer--default": "_toggleContainer--default_5bpeg_232",
|
|
31175
|
+
"toggleContainer--medium": "_toggleContainer--medium_5bpeg_236",
|
|
31176
|
+
"toggleLabel--horizontal": "_toggleLabel--horizontal_5bpeg_240",
|
|
31177
|
+
"toggleLabel--vertical": "_toggleLabel--vertical_5bpeg_247",
|
|
31178
|
+
"toggleLabel--vertical__labelPill": "_toggleLabel--vertical__labelPill_5bpeg_252",
|
|
31179
|
+
"toggleContainer--large": "_toggleContainer--large_5bpeg_257"
|
|
31180
31180
|
}, lO = ({
|
|
31181
|
-
|
|
31182
|
-
|
|
31183
|
-
|
|
31184
|
-
|
|
31185
|
-
|
|
31186
|
-
|
|
31187
|
-
|
|
31188
|
-
|
|
31189
|
-
|
|
31190
|
-
|
|
31191
|
-
|
|
31192
|
-
|
|
31181
|
+
className: t,
|
|
31182
|
+
disabled: e,
|
|
31183
|
+
icon: n,
|
|
31184
|
+
iconSize: r = "32",
|
|
31185
|
+
id: o,
|
|
31186
|
+
isSelected: a = !1,
|
|
31187
|
+
label: s,
|
|
31188
|
+
onToggleChange: l,
|
|
31189
|
+
orientation: u = "horizontal",
|
|
31190
|
+
popular: f,
|
|
31191
|
+
style: m = "outline",
|
|
31192
|
+
value: g,
|
|
31193
|
+
variant: y = "default"
|
|
31193
31194
|
}) => {
|
|
31194
|
-
const
|
|
31195
|
-
switch (
|
|
31195
|
+
const b = () => {
|
|
31196
|
+
switch (y) {
|
|
31196
31197
|
case "large":
|
|
31197
31198
|
return "h5";
|
|
31198
31199
|
case "medium":
|
|
31199
31200
|
default:
|
|
31200
|
-
return
|
|
31201
|
+
return m === "filled" || a ? "body-semibold" : "body-regular";
|
|
31201
31202
|
}
|
|
31202
|
-
},
|
|
31203
|
-
if (
|
|
31204
|
-
switch (
|
|
31203
|
+
}, E = () => {
|
|
31204
|
+
if (n)
|
|
31205
|
+
switch (r) {
|
|
31205
31206
|
case "24":
|
|
31206
|
-
return /* @__PURE__ */ R.jsx(It, { name:
|
|
31207
|
+
return /* @__PURE__ */ R.jsx(It, { name: n, size: r, role: "presentation" });
|
|
31207
31208
|
default:
|
|
31208
|
-
return /* @__PURE__ */ R.jsx(It, { name:
|
|
31209
|
+
return /* @__PURE__ */ R.jsx(It, { name: n, size: r, role: "presentation" });
|
|
31209
31210
|
}
|
|
31210
|
-
},
|
|
31211
|
-
|
|
31211
|
+
}, D = () => {
|
|
31212
|
+
l && l({ id: o, value: g });
|
|
31212
31213
|
};
|
|
31213
31214
|
return /* @__PURE__ */ R.jsxs(
|
|
31214
31215
|
"label",
|
|
31215
31216
|
{
|
|
31216
|
-
htmlFor: `toggle-button-${
|
|
31217
|
-
"data-testid": `toggle-button-${
|
|
31218
|
-
className: pe(
|
|
31217
|
+
htmlFor: `toggle-button-${o}`,
|
|
31218
|
+
"data-testid": `toggle-button-${o}`,
|
|
31219
|
+
className: pe(
|
|
31220
|
+
ia.toggleContainer,
|
|
31221
|
+
ia[`toggleContainer--${y}`],
|
|
31222
|
+
t
|
|
31223
|
+
),
|
|
31219
31224
|
children: [
|
|
31220
31225
|
/* @__PURE__ */ R.jsx(
|
|
31221
31226
|
"input",
|
|
31222
31227
|
{
|
|
31223
31228
|
type: "checkbox",
|
|
31224
|
-
id: `toggle-button-${
|
|
31229
|
+
id: `toggle-button-${o}`,
|
|
31225
31230
|
className: ia.toggleButton,
|
|
31226
|
-
checked:
|
|
31227
|
-
onChange:
|
|
31228
|
-
disabled:
|
|
31231
|
+
checked: a,
|
|
31232
|
+
onChange: D,
|
|
31233
|
+
disabled: e
|
|
31229
31234
|
}
|
|
31230
31235
|
),
|
|
31231
31236
|
/* @__PURE__ */ R.jsxs(
|
|
31232
31237
|
Ke,
|
|
31233
31238
|
{
|
|
31234
|
-
className: pe(ia.toggleLabel, ia[`toggleLabel--${
|
|
31235
|
-
[ia[`toggleLabel--${
|
|
31239
|
+
className: pe(ia.toggleLabel, ia[`toggleLabel--${m}`], {
|
|
31240
|
+
[ia[`toggleLabel--${u}`]]: n
|
|
31236
31241
|
}),
|
|
31237
31242
|
as: "p",
|
|
31238
|
-
type:
|
|
31243
|
+
type: b(),
|
|
31239
31244
|
children: [
|
|
31240
|
-
|
|
31241
|
-
|
|
31245
|
+
E(),
|
|
31246
|
+
s
|
|
31242
31247
|
]
|
|
31243
31248
|
}
|
|
31244
31249
|
),
|
|
31245
|
-
|
|
31250
|
+
f && /* @__PURE__ */ R.jsx(
|
|
31246
31251
|
zf,
|
|
31247
31252
|
{
|
|
31248
31253
|
className: pe(
|
|
31249
31254
|
ia.toggleLabel__labelPill,
|
|
31250
|
-
ia[`toggleLabel__labelPill--${
|
|
31255
|
+
ia[`toggleLabel__labelPill--${y}`],
|
|
31251
31256
|
{
|
|
31252
|
-
[ia[`toggleLabel__labelPill--${
|
|
31257
|
+
[ia[`toggleLabel__labelPill--${u}`]]: n
|
|
31253
31258
|
}
|
|
31254
31259
|
),
|
|
31255
|
-
label:
|
|
31260
|
+
label: f,
|
|
31256
31261
|
size: "medium",
|
|
31257
31262
|
color: "lavender"
|
|
31258
31263
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SelectablePillProps } from './SelectablePill.types';
|
|
2
|
-
declare const SelectablePill: ({ disabled, icon, iconSize, id, isSelected, label, onToggleChange, orientation, popular, style, value, variant, }: SelectablePillProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const SelectablePill: ({ className, disabled, icon, iconSize, id, isSelected, label, onToggleChange, orientation, popular, style, value, variant, }: SelectablePillProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default SelectablePill;
|