@club-employes/utopia 4.377.0 → 4.378.0

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.
@@ -30,6 +30,7 @@ declare const __VLS_component: DefineComponent<RadioCardProps, {}, {}, {}, {}, C
30
30
  bigPicto: boolean;
31
31
  hideRadio: boolean;
32
32
  collapsible: boolean;
33
+ inGroup: boolean;
33
34
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
34
35
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
36
  export default _default;
@@ -1,2 +1,2 @@
1
1
  export { default as RadioCard } from './RadioCard';
2
- export type { RadioCardProps } from './types';
2
+ export type { RadioCardProps, RadioCardGroupProps } from './types';
@@ -11,7 +11,7 @@ export interface RadioCardProps {
11
11
  color?: 'primary' | 'subvention' | 'echeque';
12
12
  /** Texte affiché dans le composant Icon à côté du pictogramme (même couleur) */
13
13
  iconLabel?: string;
14
- /** Couleur du token pour licône (et le libellé si défini) */
14
+ /** Couleur du token pour l'icône (et le libellé si défini) */
15
15
  iconColor?: string;
16
16
  iconBgColor?: string;
17
17
  iconSize?: IconSize;
@@ -26,4 +26,9 @@ export interface RadioCardProps {
26
26
  hideRadio?: boolean;
27
27
  collapsible?: boolean;
28
28
  size?: 'sm' | 'md' | 'lg';
29
+ /** Mode groupe : retire la bordure/radius individuelle, centre le contenu. À utiliser dans un RadioCardGroup. */
30
+ inGroup?: boolean;
31
+ }
32
+ export interface RadioCardGroupProps {
33
+ color?: 'primary' | 'subvention' | 'echeque';
29
34
  }
@@ -26,7 +26,7 @@ export { Tabs, type TabProps, type TabsProps } from './Tabs';
26
26
  export { Tooltip } from './Tooltip';
27
27
  export { FilterLocation, type FilterLocationProps } from './FilterLocation';
28
28
  export { PageHeader, type PageHeaderProps } from './PageHeader';
29
- export { RadioCard, type RadioCardProps } from './RadioCard';
29
+ export { RadioCard, type RadioCardProps, type RadioCardGroupProps } from './RadioCard';
30
30
  export { PriceSummary, type PriceSummaryProps, type PriceSummarySavingInfoTooltip } from './PriceSummary';
31
31
  export { GrantUsersSelection, type GrantUsersSelectionProps } from './GrantUsersSelection';
32
32
  export { FooterAction, type FooterActionProps } from './FooterAction';
package/dist/index.d.ts CHANGED
@@ -52,7 +52,7 @@ export { PageHeader } from './components/molecules/PageHeader';
52
52
  export type { PageHeaderProps } from './components/molecules/PageHeader/types';
53
53
  export type { PriceSummaryProps, PriceSummarySavingInfoTooltip } from './components/molecules/PriceSummary/types';
54
54
  export type { PriceTagProps } from './components/molecules/PriceTag/types';
55
- export type { RadioCardProps } from './components/molecules/RadioCard/types';
55
+ export type { RadioCardProps, RadioCardGroupProps } from './components/molecules/RadioCard/types';
56
56
  export type { TooltipProps } from './components/molecules/Tooltip/types';
57
57
  export type { ProductImageType, ProductImageProps } from './components/molecules/ProductImage/types';
58
58
  export type { NewsItemProps } from './components/molecules/NewsItem/types';
package/dist/index.js CHANGED
@@ -13209,7 +13209,7 @@ const B6 = /* @__PURE__ */ re(y2, [["__scopeId", "data-v-983ed935"]]), T6 = ["ar
13209
13209
  },
13210
13210
  emits: ["update:open", "openChange"],
13211
13211
  setup(e, { emit: t }) {
13212
- const n = e, o = t, { isMobile: l } = kn(), a = M(() => l.value && n.mobileBehavior === "bottom-sheet"), s = M(() => {
13212
+ const n = e, o = t, { isMobile: l } = kn(), a = M(() => n.variant === "form" ? !1 : l.value && n.mobileBehavior === "bottom-sheet"), s = M(() => {
13213
13213
  if (a.value)
13214
13214
  return "utopia-bottom-sheet";
13215
13215
  if (n.variant === "form")
@@ -13404,7 +13404,7 @@ const B6 = /* @__PURE__ */ re(y2, [["__scopeId", "data-v-983ed935"]]), T6 = ["ar
13404
13404
  }
13405
13405
  }), Au = {};
13406
13406
  typeof Au == "function" && Au(w2);
13407
- const Wo = /* @__PURE__ */ re(w2, [["__scopeId", "data-v-33eee0f8"]]), G6 = { class: "utopia-pricetag" }, F6 = { key: 0 }, I6 = { class: "utopia-pricetag--price-container" }, Y6 = { key: 2 }, Z6 = { key: 3 }, z2 = /* @__PURE__ */ se({
13407
+ const Wo = /* @__PURE__ */ re(w2, [["__scopeId", "data-v-18f14e5a"]]), G6 = { class: "utopia-pricetag" }, F6 = { key: 0 }, I6 = { class: "utopia-pricetag--price-container" }, Y6 = { key: 2 }, Z6 = { key: 3 }, z2 = /* @__PURE__ */ se({
13408
13408
  __name: "PriceTag",
13409
13409
  props: {
13410
13410
  label: {},
@@ -14043,7 +14043,8 @@ const s5 = /* @__PURE__ */ re(O2, [["__scopeId", "data-v-44d04c84"]]), i5 = { cl
14043
14043
  bigPicto: { type: Boolean, default: !1 },
14044
14044
  hideRadio: { type: Boolean, default: !1 },
14045
14045
  collapsible: { type: Boolean, default: !1 },
14046
- size: { default: "md" }
14046
+ size: { default: "md" },
14047
+ inGroup: { type: Boolean, default: !1 }
14047
14048
  },
14048
14049
  emits: ["update:modelValue"],
14049
14050
  setup(e, { emit: t }) {
@@ -14051,6 +14052,7 @@ const s5 = /* @__PURE__ */ re(O2, [["__scopeId", "data-v-44d04c84"]]), i5 = { cl
14051
14052
  "utopia-radiocard--checked": l.value,
14052
14053
  "utopia-radiocard--disabled": n.disabled,
14053
14054
  "utopia-radiocard--readonly": n.readonly,
14055
+ "utopia-radiocard--in-group": n.inGroup,
14054
14056
  [`utopia-radiocard--${n.color}`]: !0,
14055
14057
  [`utopia-radiocard--${n.size}`]: !0
14056
14058
  })), s = (c) => {
@@ -14061,7 +14063,16 @@ const s5 = /* @__PURE__ */ re(O2, [["__scopeId", "data-v-44d04c84"]]), i5 = { cl
14061
14063
  class: Y(["utopia-radiocard", a.value])
14062
14064
  }, [
14063
14065
  v("div", i5, [
14064
- e.hideRadio ? (i(), d("input", {
14066
+ !e.hideRadio && !e.inGroup ? (i(), B(h(Oa), {
14067
+ key: 0,
14068
+ modelValue: e.modelValue,
14069
+ value: e.value,
14070
+ name: e.name,
14071
+ color: e.color,
14072
+ disabled: e.disabled,
14073
+ readonly: e.readonly,
14074
+ "onUpdate:modelValue": s
14075
+ }, null, 8, ["modelValue", "value", "name", "color", "disabled", "readonly"])) : (i(), d("input", {
14065
14076
  key: 1,
14066
14077
  type: "radio",
14067
14078
  name: e.name,
@@ -14071,16 +14082,7 @@ const s5 = /* @__PURE__ */ re(O2, [["__scopeId", "data-v-44d04c84"]]), i5 = { cl
14071
14082
  readonly: e.readonly,
14072
14083
  onChange: s,
14073
14084
  style: { position: "absolute", opacity: "0", width: "0", height: "0" }
14074
- }, null, 40, r5)) : (i(), B(h(Oa), {
14075
- key: 0,
14076
- modelValue: e.modelValue,
14077
- value: e.value,
14078
- name: e.name,
14079
- color: e.color,
14080
- disabled: e.disabled,
14081
- readonly: e.readonly,
14082
- "onUpdate:modelValue": s
14083
- }, null, 8, ["modelValue", "value", "name", "color", "disabled", "readonly"])),
14085
+ }, null, 40, r5)),
14084
14086
  v("div", c5, [
14085
14087
  e.bigPicto && (e.icon || e.icon3d || c.$slots.icon) ? (i(), d("div", {
14086
14088
  key: 0,
@@ -14159,7 +14161,7 @@ const s5 = /* @__PURE__ */ re(O2, [["__scopeId", "data-v-44d04c84"]]), i5 = { cl
14159
14161
  }
14160
14162
  }), hu = {};
14161
14163
  typeof hu == "function" && hu(B2);
14162
- const ri = /* @__PURE__ */ re(B2, [["__scopeId", "data-v-08863d6c"]]), b5 = { class: "utopia-pricesummary" }, h5 = { class: "utopia-pricesummary--section" }, y5 = { class: "utopia-pricesummary--section" }, w5 = { key: 1 }, z5 = { class: "utopia-pricesummary--saving-info" }, x5 = {
14164
+ const ri = /* @__PURE__ */ re(B2, [["__scopeId", "data-v-a78c4d52"]]), b5 = { class: "utopia-pricesummary" }, h5 = { class: "utopia-pricesummary--section" }, y5 = { class: "utopia-pricesummary--section" }, w5 = { key: 1 }, z5 = { class: "utopia-pricesummary--saving-info" }, x5 = {
14163
14165
  key: 0,
14164
14166
  class: "utopia-pricesummary--saving-info-tooltip"
14165
14167
  }, k5 = { class: "utopia-pricesummary__saving-info-tooltip-container" }, M5 = {