@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 = "_toggleContainer_14q2u_142", aO = "_toggleLabel_14q2u_149", iO = "_toggleLabel__labelPill_14q2u_173", sO = "_toggleButton_14q2u_181", ia = {
31163
- "react-datepicker__day-names": "_react-datepicker__day-names_14q2u_120",
31164
- "react-datepicker__week": "_react-datepicker__week_14q2u_124",
31165
- "react-datepicker__day--outside-month": "_react-datepicker__day--outside-month_14q2u_131",
31166
- "react-datepicker": "_react-datepicker_14q2u_120",
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--outline_14q2u_155",
31170
- "toggleLabel--filled": "_toggleLabel--filled_14q2u_163",
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--large_14q2u_178",
31172
+ "toggleLabel__labelPill--large": "_toggleLabel__labelPill--large_5bpeg_179",
31173
31173
  toggleButton: sO,
31174
- "toggleContainer--default": "_toggleContainer--default_14q2u_219",
31175
- "toggleContainer--medium": "_toggleContainer--medium_14q2u_223",
31176
- "toggleLabel--horizontal": "_toggleLabel--horizontal_14q2u_227",
31177
- "toggleLabel--vertical": "_toggleLabel--vertical_14q2u_234",
31178
- "toggleLabel--vertical__labelPill": "_toggleLabel--vertical__labelPill_14q2u_239",
31179
- "toggleContainer--large": "_toggleContainer--large_14q2u_244"
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
- disabled: t,
31182
- icon: e,
31183
- iconSize: n = "32",
31184
- id: r,
31185
- isSelected: o = !1,
31186
- label: a,
31187
- onToggleChange: s,
31188
- orientation: l = "horizontal",
31189
- popular: u,
31190
- style: f = "outline",
31191
- value: m,
31192
- variant: g = "default"
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 y = () => {
31195
- switch (g) {
31195
+ const b = () => {
31196
+ switch (y) {
31196
31197
  case "large":
31197
31198
  return "h5";
31198
31199
  case "medium":
31199
31200
  default:
31200
- return f === "filled" || o ? "body-semibold" : "body-regular";
31201
+ return m === "filled" || a ? "body-semibold" : "body-regular";
31201
31202
  }
31202
- }, b = () => {
31203
- if (e)
31204
- switch (n) {
31203
+ }, E = () => {
31204
+ if (n)
31205
+ switch (r) {
31205
31206
  case "24":
31206
- return /* @__PURE__ */ R.jsx(It, { name: e, size: n, role: "presentation" });
31207
+ return /* @__PURE__ */ R.jsx(It, { name: n, size: r, role: "presentation" });
31207
31208
  default:
31208
- return /* @__PURE__ */ R.jsx(It, { name: e, size: n, role: "presentation" });
31209
+ return /* @__PURE__ */ R.jsx(It, { name: n, size: r, role: "presentation" });
31209
31210
  }
31210
- }, E = () => {
31211
- s && s({ id: r, value: m });
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-${r}`,
31217
- "data-testid": `toggle-button-${r}`,
31218
- className: pe(ia.toggleContainer, ia[`toggleContainer--${g}`]),
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-${r}`,
31229
+ id: `toggle-button-${o}`,
31225
31230
  className: ia.toggleButton,
31226
- checked: o,
31227
- onChange: E,
31228
- disabled: t
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--${f}`], {
31235
- [ia[`toggleLabel--${l}`]]: e
31239
+ className: pe(ia.toggleLabel, ia[`toggleLabel--${m}`], {
31240
+ [ia[`toggleLabel--${u}`]]: n
31236
31241
  }),
31237
31242
  as: "p",
31238
- type: y(),
31243
+ type: b(),
31239
31244
  children: [
31240
- b(),
31241
- a
31245
+ E(),
31246
+ s
31242
31247
  ]
31243
31248
  }
31244
31249
  ),
31245
- u && /* @__PURE__ */ R.jsx(
31250
+ f && /* @__PURE__ */ R.jsx(
31246
31251
  zf,
31247
31252
  {
31248
31253
  className: pe(
31249
31254
  ia.toggleLabel__labelPill,
31250
- ia[`toggleLabel__labelPill--${g}`],
31255
+ ia[`toggleLabel__labelPill--${y}`],
31251
31256
  {
31252
- [ia[`toggleLabel__labelPill--${l}`]]: e
31257
+ [ia[`toggleLabel__labelPill--${u}`]]: n
31253
31258
  }
31254
31259
  ),
31255
- label: u,
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;
@@ -1,5 +1,6 @@
1
1
  import { Icon24, Icon32 } from '../../../Base/Icon/Icon.types';
2
2
  export interface SelectablePillProps {
3
+ className?: string;
3
4
  disabled?: boolean;
4
5
  icon?: Icon24 | Icon32;
5
6
  iconSize?: '24' | '32';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "3.0.0-development.63",
3
+ "version": "3.0.0-development.65",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",