@mantine-vue/core 1.1.4 → 2.0.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.
Files changed (60) hide show
  1. package/cjs/index.cjs +755 -979
  2. package/cjs/index.cjs.map +1 -1
  3. package/esm/index.mjs +754 -980
  4. package/esm/index.mjs.map +1 -1
  5. package/lib/components/Accordion/Accordion.d.ts +7 -7
  6. package/lib/components/Accordion/AccordionControl/AccordionControl.d.ts +14 -8
  7. package/lib/components/Alert/Alert.d.ts +14 -8
  8. package/lib/components/Autocomplete/Autocomplete.d.ts +14 -2
  9. package/lib/components/Badge/Badge.d.ts +12 -9
  10. package/lib/components/Blockquote/Blockquote.d.ts +14 -8
  11. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +10 -5
  12. package/lib/components/Checkbox/Checkbox.d.ts +44 -32
  13. package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +18 -11
  14. package/lib/components/Checkbox/CheckboxIndicator/CheckboxIndicator.d.ts +9 -2
  15. package/lib/components/CloseButton/CloseButton.d.ts +10 -5
  16. package/lib/components/Combobox/OptionsDropdown/OptionsDropdown.d.ts +6 -2
  17. package/lib/components/Divider/Divider.d.ts +10 -5
  18. package/lib/components/Drawer/Drawer.d.ts +14 -9
  19. package/lib/components/Fieldset/Fieldset.d.ts +10 -5
  20. package/lib/components/FileInput/FileInput.d.ts +26 -17
  21. package/lib/components/Indicator/Indicator.d.ts +10 -5
  22. package/lib/components/Input/Input.d.ts +29 -25
  23. package/lib/components/Input/InputWrapper/InputWrapper.d.ts +18 -11
  24. package/lib/components/InputBase/InputBase.d.ts +21 -14
  25. package/lib/components/List/List.d.ts +18 -13
  26. package/lib/components/List/ListItem/ListItem.d.ts +10 -5
  27. package/lib/components/Menu/Menu.d.ts +66 -27
  28. package/lib/components/Modal/Modal.d.ts +14 -9
  29. package/lib/components/MultiSelect/MultiSelect.d.ts +14 -2
  30. package/lib/components/NativeSelect/NativeSelect.d.ts +23 -14
  31. package/lib/components/NavLink/NavLink.d.ts +14 -8
  32. package/lib/components/Notification/Notification.d.ts +14 -8
  33. package/lib/components/NumberInput/NumberInput.d.ts +22 -14
  34. package/lib/components/Pagination/Pagination.d.ts +5 -5
  35. package/lib/components/Pagination/PaginationDots/PaginationDots.d.ts +5 -2
  36. package/lib/components/Pagination/PaginationEdges/PaginationEdges.d.ts +8 -5
  37. package/lib/components/PasswordInput/PasswordInput.d.ts +25 -17
  38. package/lib/components/PillsInput/PillsInput.d.ts +30 -21
  39. package/lib/components/Radio/Radio.d.ts +42 -32
  40. package/lib/components/Radio/RadioGroup/RadioGroup.d.ts +18 -11
  41. package/lib/components/Radio/RadioIndicator/RadioIndicator.d.ts +8 -2
  42. package/lib/components/Rating/Rating.d.ts +17 -8
  43. package/lib/components/Select/Select.d.ts +14 -2
  44. package/lib/components/SemiCircleProgress/SemiCircleProgress.d.ts +9 -5
  45. package/lib/components/Slider/RangeSlider/RangeSlider.d.ts +11 -2
  46. package/lib/components/Slider/Slider/Slider.d.ts +8 -2
  47. package/lib/components/Spoiler/Spoiler.d.ts +18 -10
  48. package/lib/components/Stepper/Stepper.d.ts +16 -4
  49. package/lib/components/Stepper/StepperStep/StepperStep.d.ts +12 -2
  50. package/lib/components/Switch/Switch.d.ts +58 -49
  51. package/lib/components/Switch/SwitchGroup/SwitchGroup.d.ts +18 -11
  52. package/lib/components/Tabs/Tabs.d.ts +7 -7
  53. package/lib/components/Tabs/TabsTab/TabsTab.d.ts +12 -8
  54. package/lib/components/TagsInput/TagsInput.d.ts +14 -2
  55. package/lib/components/Timeline/Timeline.d.ts +7 -7
  56. package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +14 -8
  57. package/lib/components/TreeSelect/TreeSelect.d.ts +11 -2
  58. package/lib/core/index.d.ts +1 -0
  59. package/lib/core/renderable-node.d.ts +10 -0
  60. package/package.json +3 -3
package/esm/index.mjs CHANGED
@@ -2141,6 +2141,16 @@ var DirectionProvider = defineComponent({
2141
2141
  return () => slots.default?.();
2142
2142
  }
2143
2143
  });
2144
+ //#endregion
2145
+ //#region src/core/renderable-node.ts
2146
+ /** Prop content takes precedence over slot content. Explicit null is preserved. */
2147
+ function resolveNode(prop, slot) {
2148
+ if (prop !== void 0) return typeof prop === "function" ? prop() : prop;
2149
+ return slot?.();
2150
+ }
2151
+ function hasNode(node) {
2152
+ return node !== null && node !== void 0 && node !== false;
2153
+ }
2144
2154
  var VisuallyHidden_module_default = { root: "_root_5rq9d_1" };
2145
2155
  //#endregion
2146
2156
  //#region src/components/VisuallyHidden/VisuallyHidden.ts
@@ -2866,6 +2876,7 @@ var varsResolver$87 = createVarsResolver((theme, { color, variant, size }) => ({
2866
2876
  var Divider = withBoxProps(defineComponent({
2867
2877
  name: "Divider",
2868
2878
  inheritAttrs: false,
2879
+ slots: Object,
2869
2880
  props: {
2870
2881
  color: {
2871
2882
  type: String,
@@ -2873,12 +2884,7 @@ var Divider = withBoxProps(defineComponent({
2873
2884
  },
2874
2885
  size: [String, Number],
2875
2886
  label: {
2876
- type: [
2877
- String,
2878
- Number,
2879
- Object,
2880
- Function
2881
- ],
2887
+ type: null,
2882
2888
  default: void 0
2883
2889
  },
2884
2890
  labelPosition: {
@@ -2925,16 +2931,16 @@ var Divider = withBoxProps(defineComponent({
2925
2931
  unstyled: props.unstyled
2926
2932
  });
2927
2933
  return () => {
2928
- const label = slots.default?.() ?? props.label;
2934
+ const label = resolveNode(props.label, slots.label ?? slots.default);
2929
2935
  return h(Box, {
2930
2936
  ...attrs,
2931
2937
  role: "separator",
2932
2938
  ...getStyles("root"),
2933
2939
  mod: {
2934
2940
  orientation: props.orientation,
2935
- withLabel: Boolean(label)
2941
+ withLabel: hasNode(label)
2936
2942
  }
2937
- }, () => label ? h(Box, {
2943
+ }, () => hasNode(label) ? h(Box, {
2938
2944
  component: "span",
2939
2945
  ...getStyles("label"),
2940
2946
  mod: { position: props.labelPosition }
@@ -3907,6 +3913,7 @@ var varsResolver$76 = createVarsResolver((theme, { radius, color, gradient, vari
3907
3913
  var Badge = withBoxProps(defineComponent({
3908
3914
  name: "Badge",
3909
3915
  inheritAttrs: false,
3916
+ slots: Object,
3910
3917
  props: {
3911
3918
  component: {
3912
3919
  type: String,
@@ -3927,21 +3934,11 @@ var Badge = withBoxProps(defineComponent({
3927
3934
  default: void 0
3928
3935
  },
3929
3936
  leftSection: {
3930
- type: [
3931
- String,
3932
- Number,
3933
- Object,
3934
- Function
3935
- ],
3937
+ type: null,
3936
3938
  default: void 0
3937
3939
  },
3938
3940
  rightSection: {
3939
- type: [
3940
- String,
3941
- Number,
3942
- Object,
3943
- Function
3944
- ],
3941
+ type: null,
3945
3942
  default: void 0
3946
3943
  },
3947
3944
  fullWidth: {
@@ -3987,12 +3984,14 @@ var Badge = withBoxProps(defineComponent({
3987
3984
  varsResolver: varsResolver$76,
3988
3985
  unstyled: props.unstyled
3989
3986
  });
3990
- const renderSection = (section, position) => section ? h("span", {
3987
+ const renderSection = (section, position) => hasNode(section) ? h("span", {
3991
3988
  ...getStyles("section"),
3992
3989
  "data-position": position
3993
- }, typeof section === "function" ? section() : section) : null;
3990
+ }, () => section) : null;
3994
3991
  return () => {
3995
- const children = slots.default?.();
3992
+ const children = slots.default?.() ?? [];
3993
+ const leftSection = resolveNode(props.leftSection, slots.leftSection);
3994
+ const rightSection = resolveNode(props.rightSection, slots.rightSection);
3996
3995
  return h(Box, {
3997
3996
  ...attrs,
3998
3997
  ...getStyles("root"),
@@ -4001,13 +4000,13 @@ var Badge = withBoxProps(defineComponent({
4001
4000
  mod: {
4002
4001
  block: props.fullWidth,
4003
4002
  circle: props.circle,
4004
- withRightSection: Boolean(props.rightSection),
4005
- withLeftSection: Boolean(props.leftSection)
4003
+ withRightSection: hasNode(rightSection),
4004
+ withLeftSection: hasNode(leftSection)
4006
4005
  }
4007
4006
  }, () => [
4008
- renderSection(props.leftSection, "left"),
4007
+ renderSection(leftSection, "left"),
4009
4008
  h("span", getStyles("label"), children),
4010
- renderSection(props.rightSection, "right")
4009
+ renderSection(rightSection, "right")
4011
4010
  ]);
4012
4011
  };
4013
4012
  }
@@ -4810,6 +4809,7 @@ var varsResolver$71 = createVarsResolver((_, { size, radius, iconSize }) => ({ r
4810
4809
  var CloseButton = defineComponent({
4811
4810
  name: "CloseButton",
4812
4811
  inheritAttrs: false,
4812
+ slots: Object,
4813
4813
  props: {
4814
4814
  component: {
4815
4815
  type: String,
@@ -4823,11 +4823,7 @@ var CloseButton = defineComponent({
4823
4823
  },
4824
4824
  iconSize: [String, Number],
4825
4825
  icon: {
4826
- type: [
4827
- String,
4828
- Object,
4829
- Function
4830
- ],
4826
+ type: null,
4831
4827
  default: void 0
4832
4828
  },
4833
4829
  variant: {
@@ -4869,15 +4865,18 @@ var CloseButton = defineComponent({
4869
4865
  vars: props.vars,
4870
4866
  varsResolver: varsResolver$71
4871
4867
  });
4872
- return () => h(UnstyledButton, {
4873
- ...attrs,
4874
- ...getStyles("root"),
4875
- component: props.component,
4876
- unstyled: props.unstyled,
4877
- variant: props.variant,
4878
- disabled: props.disabled,
4879
- mod: { disabled: props.disabled }
4880
- }, () => [props.icon ? props.icon : h(CloseIcon), slots.default?.()]);
4868
+ return () => {
4869
+ const icon = resolveNode(props.icon, slots.icon);
4870
+ return h(UnstyledButton, {
4871
+ ...attrs,
4872
+ ...getStyles("root"),
4873
+ component: props.component,
4874
+ unstyled: props.unstyled,
4875
+ variant: props.variant,
4876
+ disabled: props.disabled,
4877
+ mod: { disabled: props.disabled }
4878
+ }, () => [hasNode(icon) ? icon : h(CloseIcon), slots.default?.()]);
4879
+ };
4881
4880
  }
4882
4881
  });
4883
4882
  var Button_module_default = {
@@ -5058,7 +5057,7 @@ var varsResolver$68 = createVarsResolver((theme, { radius, color, gradient, vari
5058
5057
  "--button-hover-color": color || variant ? colors.hoverColor : void 0
5059
5058
  } };
5060
5059
  });
5061
- function renderContent$13(content) {
5060
+ function renderContent$5(content) {
5062
5061
  return typeof content === "function" ? content() : content;
5063
5062
  }
5064
5063
  var ButtonBase = defineComponent({
@@ -5183,14 +5182,14 @@ var ButtonBase = defineComponent({
5183
5182
  },
5184
5183
  varsResolver: varsResolver$68
5185
5184
  });
5186
- const renderSection = (content, position) => content ? h(Box, {
5185
+ const renderSection = (content, position) => hasNode(content) ? h(Box, {
5187
5186
  component: "span",
5188
5187
  ...getStyles("section"),
5189
5188
  mod: { position }
5190
- }, () => renderContent$13(content)) : null;
5189
+ }, () => renderContent$5(content)) : null;
5191
5190
  return () => {
5192
- const leftSection = props.leftSection ?? slots.leftSection?.();
5193
- const rightSection = props.rightSection ?? slots.rightSection?.();
5191
+ const leftSection = resolveNode(props.leftSection, slots.leftSection);
5192
+ const rightSection = resolveNode(props.rightSection, slots.rightSection);
5194
5193
  const disabled = props.disabled || props.loading;
5195
5194
  const dataDisabled = disabled || props["data-disabled"] || props.dataDisabled || attrs["data-disabled"];
5196
5195
  return h(UnstyledButton, {
@@ -5204,8 +5203,8 @@ var ButtonBase = defineComponent({
5204
5203
  disabled: dataDisabled,
5205
5204
  loading: props.loading,
5206
5205
  block: props.fullWidth,
5207
- withLeftSection: Boolean(leftSection),
5208
- withRightSection: Boolean(rightSection)
5206
+ withLeftSection: hasNode(leftSection),
5207
+ withRightSection: hasNode(rightSection)
5209
5208
  }, props.mod],
5210
5209
  ref: elementRef
5211
5210
  }, () => [h(Transition, {
@@ -5743,12 +5742,10 @@ var varsResolver$64 = createVarsResolver((theme, { radius, color, variant, autoC
5743
5742
  "--alert-bd": color || variant ? colors.border : void 0
5744
5743
  } };
5745
5744
  });
5746
- function renderContent$12(content) {
5747
- return typeof content === "function" ? content() : content;
5748
- }
5749
5745
  var Alert = withBoxProps(defineComponent({
5750
5746
  name: "Alert",
5751
5747
  inheritAttrs: false,
5748
+ slots: Object,
5752
5749
  props: {
5753
5750
  id: {
5754
5751
  type: String,
@@ -5760,21 +5757,11 @@ var Alert = withBoxProps(defineComponent({
5760
5757
  default: void 0
5761
5758
  },
5762
5759
  title: {
5763
- type: [
5764
- String,
5765
- Number,
5766
- Object,
5767
- Function
5768
- ],
5760
+ type: null,
5769
5761
  default: void 0
5770
5762
  },
5771
5763
  icon: {
5772
- type: [
5773
- String,
5774
- Number,
5775
- Object,
5776
- Function
5777
- ],
5764
+ type: null,
5778
5765
  default: void 0
5779
5766
  },
5780
5767
  withCloseButton: {
@@ -5834,11 +5821,11 @@ var Alert = withBoxProps(defineComponent({
5834
5821
  unstyled: props.unstyled
5835
5822
  });
5836
5823
  return () => {
5837
- const title = props.title ?? slots.title?.();
5838
- const icon = props.icon ?? slots.icon?.();
5824
+ const title = resolveNode(props.title, slots.title);
5825
+ const icon = resolveNode(props.icon, slots.icon);
5839
5826
  const message = slots.default?.();
5840
5827
  const id = rootId.value || void 0;
5841
- const titleId = title && id ? `${id}-title` : void 0;
5828
+ const titleId = hasNode(title) && id ? `${id}-title` : void 0;
5842
5829
  const bodyId = id ? `${id}-body` : void 0;
5843
5830
  return h(Box, {
5844
5831
  ...attrs,
@@ -5846,17 +5833,17 @@ var Alert = withBoxProps(defineComponent({
5846
5833
  id,
5847
5834
  variant: props.variant,
5848
5835
  role: props.role || "alert",
5849
- "aria-describedby": message ? bodyId : void 0,
5850
- "aria-labelledby": title ? titleId : void 0
5836
+ "aria-describedby": hasNode(message) ? bodyId : void 0,
5837
+ "aria-labelledby": hasNode(title) ? titleId : void 0
5851
5838
  }, () => h("div", getStyles("wrapper"), [
5852
- icon ? h("div", getStyles("icon"), renderContent$12(icon)) : null,
5853
- h("div", getStyles("body"), [title ? h("div", {
5839
+ hasNode(icon) ? h("div", getStyles("icon"), icon) : null,
5840
+ h("div", getStyles("body"), [hasNode(title) ? h("div", {
5854
5841
  ...getStyles("title"),
5855
5842
  "data-with-close-button": props.withCloseButton ? "" : void 0
5856
5843
  }, [h("span", {
5857
5844
  id: titleId,
5858
5845
  ...getStyles("label")
5859
- }, renderContent$12(title))]) : null, message ? h("div", {
5846
+ }, title)]) : null, hasNode(message) ? h("div", {
5860
5847
  id: bodyId,
5861
5848
  ...getStyles("message"),
5862
5849
  "data-variant": props.variant
@@ -5901,20 +5888,13 @@ var varsResolver$63 = createVarsResolver((theme, { color, iconSize, radius, text
5901
5888
  "--bq-text-wrap": textWrap
5902
5889
  } };
5903
5890
  });
5904
- function renderContent$11(content) {
5905
- return typeof content === "function" ? content() : content;
5906
- }
5907
5891
  var Blockquote = withBoxProps(defineComponent({
5908
5892
  name: "Blockquote",
5909
5893
  inheritAttrs: false,
5894
+ slots: Object,
5910
5895
  props: {
5911
5896
  icon: {
5912
- type: [
5913
- String,
5914
- Number,
5915
- Object,
5916
- Function
5917
- ],
5897
+ type: null,
5918
5898
  default: void 0
5919
5899
  },
5920
5900
  iconSize: [String, Number],
@@ -5924,12 +5904,7 @@ var Blockquote = withBoxProps(defineComponent({
5924
5904
  },
5925
5905
  radius: [String, Number],
5926
5906
  cite: {
5927
- type: [
5928
- String,
5929
- Number,
5930
- Object,
5931
- Function
5932
- ],
5907
+ type: null,
5933
5908
  default: void 0
5934
5909
  },
5935
5910
  textWrap: {
@@ -5968,16 +5943,16 @@ var Blockquote = withBoxProps(defineComponent({
5968
5943
  unstyled: props.unstyled
5969
5944
  });
5970
5945
  return () => {
5971
- const icon = props.icon ?? slots.icon?.();
5972
- const cite = props.cite ?? slots.cite?.();
5946
+ const icon = resolveNode(props.icon, slots.icon);
5947
+ const cite = resolveNode(props.cite, slots.cite);
5973
5948
  return h(Box, {
5974
5949
  ...attrs,
5975
5950
  ...getStyles("root"),
5976
5951
  component: "blockquote"
5977
5952
  }, () => [
5978
- icon ? h("span", getStyles("icon"), renderContent$11(icon)) : null,
5953
+ hasNode(icon) ? h("span", getStyles("icon"), icon) : null,
5979
5954
  slots.default?.(),
5980
- cite ? h("cite", getStyles("cite"), renderContent$11(cite)) : null
5955
+ hasNode(cite) ? h("cite", getStyles("cite"), cite) : null
5981
5956
  ]);
5982
5957
  };
5983
5958
  }
@@ -5991,23 +5966,16 @@ var Breadcrumbs_module_default = {
5991
5966
  //#region src/components/Breadcrumbs/Breadcrumbs.ts
5992
5967
  var defaultProps$38 = { separator: "/" };
5993
5968
  var varsResolver$62 = createVarsResolver((_, { separatorMargin }) => ({ root: { "--bc-separator-margin": getSpacing(separatorMargin) } }));
5994
- function renderContent$10(content) {
5995
- return typeof content === "function" ? content() : content;
5996
- }
5997
5969
  function flattenChildren$2(children) {
5998
5970
  return children.flatMap((child) => child.type === Fragment && Array.isArray(child.children) ? flattenChildren$2(child.children) : child.type === Comment ? [] : [child]);
5999
5971
  }
6000
5972
  var Breadcrumbs = withBoxProps(defineComponent({
6001
5973
  name: "Breadcrumbs",
6002
5974
  inheritAttrs: false,
5975
+ slots: Object,
6003
5976
  props: {
6004
5977
  separator: {
6005
- type: [
6006
- String,
6007
- Number,
6008
- Object,
6009
- Function
6010
- ],
5978
+ type: null,
6011
5979
  default: void 0
6012
5980
  },
6013
5981
  separatorMargin: [String, Number],
@@ -6050,7 +6018,7 @@ var Breadcrumbs = withBoxProps(defineComponent({
6050
6018
  if (index !== children.length - 1) acc.push(h(Box, {
6051
6019
  ...getStyles("separator"),
6052
6020
  key: `separator-${index}`
6053
- }, () => renderContent$10(props.separator)));
6021
+ }, () => resolveNode(props.separator, slots.separator)));
6054
6022
  return acc;
6055
6023
  }, []);
6056
6024
  return h(Box, {
@@ -6072,14 +6040,10 @@ function renderListIcon(icon) {
6072
6040
  var ListItem = withBoxProps(defineComponent({
6073
6041
  name: "ListItem",
6074
6042
  inheritAttrs: false,
6043
+ slots: Object,
6075
6044
  props: {
6076
6045
  icon: {
6077
- type: [
6078
- String,
6079
- Number,
6080
- Object,
6081
- Function
6082
- ],
6046
+ type: null,
6083
6047
  default: void 0
6084
6048
  },
6085
6049
  mod: {
@@ -6103,7 +6067,8 @@ var ListItem = withBoxProps(defineComponent({
6103
6067
  const props = useProps("ListItem", null, rawProps);
6104
6068
  const ctx = useListContext();
6105
6069
  return () => {
6106
- const icon = props.icon ?? ctx.icon;
6070
+ const ownIcon = resolveNode(props.icon, slots.icon);
6071
+ const icon = hasNode(ownIcon) ? ownIcon : renderListIcon(ctx.icon);
6107
6072
  return h(Box, {
6108
6073
  ...attrs,
6109
6074
  ...ctx.getStyles("item", {
@@ -6112,10 +6077,10 @@ var ListItem = withBoxProps(defineComponent({
6112
6077
  }),
6113
6078
  component: "li",
6114
6079
  mod: [{
6115
- withIcon: Boolean(icon),
6080
+ withIcon: hasNode(icon),
6116
6081
  centered: ctx.center
6117
6082
  }, props.mod]
6118
- }, () => h("div", ctx.getStyles("itemWrapper"), [icon ? h("span", ctx.getStyles("itemIcon"), renderListIcon(icon)) : null, h("span", ctx.getStyles("itemLabel"), slots.default?.())]));
6083
+ }, () => h("div", ctx.getStyles("itemWrapper"), [hasNode(icon) ? h("span", ctx.getStyles("itemIcon"), icon) : null, h("span", ctx.getStyles("itemLabel"), slots.default?.())]));
6119
6084
  };
6120
6085
  }
6121
6086
  }));
@@ -6136,6 +6101,7 @@ var varsResolver$61 = createVarsResolver((_, { size, spacing }) => ({ root: {
6136
6101
  var ListBase = defineComponent({
6137
6102
  name: "List",
6138
6103
  inheritAttrs: false,
6104
+ slots: Object,
6139
6105
  props: {
6140
6106
  type: {
6141
6107
  type: String,
@@ -6150,12 +6116,7 @@ var ListBase = defineComponent({
6150
6116
  default: void 0
6151
6117
  },
6152
6118
  icon: {
6153
- type: [
6154
- String,
6155
- Number,
6156
- Object,
6157
- Function
6158
- ],
6119
+ type: null,
6159
6120
  default: void 0
6160
6121
  },
6161
6122
  spacing: [String, Number],
@@ -6213,19 +6174,24 @@ var ListBase = defineComponent({
6213
6174
  provideListContext({
6214
6175
  getStyles,
6215
6176
  center: props.center,
6216
- icon: props.icon
6177
+ get icon() {
6178
+ return resolveNode(props.icon, slots.icon);
6179
+ }
6217
6180
  });
6218
- return () => h(Box, {
6219
- ...attrs,
6220
- ...getStyles("root", { style: { listStyleType: props.listStyleType } }),
6221
- component: props.type === "unordered" ? "ul" : "ol",
6222
- start: props.type === "ordered" ? props.start : void 0,
6223
- reversed: props.type === "ordered" && props.reversed ? "" : void 0,
6224
- mod: [{
6225
- withPadding: props.withPadding,
6226
- type: props.icon ? "none" : props.listStyleType
6227
- }, props.mod]
6228
- }, () => slots.default?.());
6181
+ return () => {
6182
+ const icon = resolveNode(props.icon, slots.icon);
6183
+ return h(Box, {
6184
+ ...attrs,
6185
+ ...getStyles("root", { style: { listStyleType: props.listStyleType } }),
6186
+ component: props.type === "unordered" ? "ul" : "ol",
6187
+ start: props.type === "ordered" ? props.start : void 0,
6188
+ reversed: props.type === "ordered" && props.reversed ? "" : void 0,
6189
+ mod: [{
6190
+ withPadding: props.withPadding,
6191
+ type: hasNode(icon) ? "none" : props.listStyleType
6192
+ }, props.mod]
6193
+ }, () => slots.default?.());
6194
+ };
6229
6195
  }
6230
6196
  });
6231
6197
  var List = withBoxProps(Object.assign(ListBase, { Item: ListItem }));
@@ -6294,12 +6260,10 @@ var varsResolver$60 = createVarsResolver((theme, { color, position, offset, size
6294
6260
  "--indicator-z-index": zIndex?.toString(),
6295
6261
  ...getPositionVariables(position, offset)
6296
6262
  } }));
6297
- function renderContent$9(content) {
6298
- return typeof content === "function" ? content() : content;
6299
- }
6300
6263
  var Indicator = withBoxProps(defineComponent({
6301
6264
  name: "Indicator",
6302
6265
  inheritAttrs: false,
6266
+ slots: Object,
6303
6267
  props: {
6304
6268
  position: {
6305
6269
  type: String,
@@ -6315,12 +6279,7 @@ var Indicator = withBoxProps(defineComponent({
6315
6279
  },
6316
6280
  size: [String, Number],
6317
6281
  label: {
6318
- type: [
6319
- String,
6320
- Number,
6321
- Object,
6322
- Function
6323
- ],
6282
+ type: null,
6324
6283
  default: void 0
6325
6284
  },
6326
6285
  radius: [String, Number],
@@ -6389,8 +6348,9 @@ var Indicator = withBoxProps(defineComponent({
6389
6348
  unstyled: props.unstyled
6390
6349
  });
6391
6350
  return () => {
6351
+ const labelContent = resolveNode(props.label, slots.label);
6392
6352
  const shouldHideZero = !props.showZero && (props.label === 0 || props.label === "0");
6393
- const formattedLabel = props.maxValue !== void 0 && typeof props.label === "number" && props.label > props.maxValue ? `${props.maxValue}+` : props.label;
6353
+ const formattedLabel = props.maxValue !== void 0 && typeof props.label === "number" && props.label > props.maxValue ? `${props.maxValue}+` : labelContent;
6394
6354
  return h(Box, {
6395
6355
  ...attrs,
6396
6356
  ...getStyles("root"),
@@ -6398,11 +6358,11 @@ var Indicator = withBoxProps(defineComponent({
6398
6358
  }, () => [!props.disabled && !shouldHideZero ? h(Box, {
6399
6359
  ...getStyles("indicator"),
6400
6360
  mod: {
6401
- withLabel: Boolean(props.label),
6361
+ withLabel: hasNode(labelContent),
6402
6362
  withBorder: props.withBorder,
6403
6363
  processing: props.processing
6404
6364
  }
6405
- }, () => renderContent$9(formattedLabel)) : null, slots.default?.()]);
6365
+ }, () => formattedLabel) : null, slots.default?.()]);
6406
6366
  };
6407
6367
  }
6408
6368
  }));
@@ -8333,9 +8293,6 @@ var AccordionChevron = defineComponent({
8333
8293
  var [provideAccordionItemContext, useAccordionItemContext] = createSafeContext("Accordion.Item component was not found in the tree");
8334
8294
  //#endregion
8335
8295
  //#region src/components/Accordion/AccordionControl/AccordionControl.ts
8336
- function renderContent$8(content) {
8337
- return typeof content === "function" ? content() : content;
8338
- }
8339
8296
  function createAccordionKeydownHandler(loop, onKeydown) {
8340
8297
  return (event) => {
8341
8298
  onKeydown?.(event);
@@ -8354,28 +8311,18 @@ function createAccordionKeydownHandler(loop, onKeydown) {
8354
8311
  var AccordionControl = withBoxProps(defineComponent({
8355
8312
  name: "AccordionControl",
8356
8313
  inheritAttrs: false,
8314
+ slots: Object,
8357
8315
  props: {
8358
8316
  disabled: {
8359
8317
  type: Boolean,
8360
8318
  default: false
8361
8319
  },
8362
8320
  chevron: {
8363
- type: [
8364
- String,
8365
- Number,
8366
- Object,
8367
- Function,
8368
- null
8369
- ],
8321
+ type: null,
8370
8322
  default: void 0
8371
8323
  },
8372
8324
  icon: {
8373
- type: [
8374
- String,
8375
- Number,
8376
- Object,
8377
- Function
8378
- ],
8325
+ type: null,
8379
8326
  default: void 0
8380
8327
  },
8381
8328
  onClick: {
@@ -8408,6 +8355,8 @@ var AccordionControl = withBoxProps(defineComponent({
8408
8355
  const ctx = useAccordionContext();
8409
8356
  const renderControl = () => {
8410
8357
  const isActive = ctx.isItemActive(value);
8358
+ const chevron = props.chevron !== void 0 || slots.chevron ? resolveNode(props.chevron, slots.chevron) : typeof ctx.chevron === "function" ? ctx.chevron() : ctx.chevron;
8359
+ const icon = resolveNode(props.icon, slots.icon);
8411
8360
  return h(UnstyledButton, {
8412
8361
  ...attrs,
8413
8362
  ...ctx.getStyles("control", {
@@ -8448,13 +8397,13 @@ var AccordionControl = withBoxProps(defineComponent({
8448
8397
  styles: props.styles,
8449
8398
  props
8450
8399
  })
8451
- }, () => renderContent$8(props.chevron === void 0 ? ctx.chevron : props.chevron)),
8400
+ }, () => chevron),
8452
8401
  h("span", ctx.getStyles("label", {
8453
8402
  classNames: props.classNames,
8454
8403
  styles: props.styles,
8455
8404
  props
8456
8405
  }), slots.default?.()),
8457
- props.icon ? h(Box, {
8406
+ hasNode(icon) ? h(Box, {
8458
8407
  component: "span",
8459
8408
  mod: { chevronPosition: ctx.chevronPosition },
8460
8409
  ...ctx.getStyles("icon", {
@@ -8462,7 +8411,7 @@ var AccordionControl = withBoxProps(defineComponent({
8462
8411
  styles: props.styles,
8463
8412
  props
8464
8413
  })
8465
- }, () => renderContent$8(props.icon)) : null
8414
+ }, () => icon) : null
8466
8415
  ]);
8467
8416
  };
8468
8417
  return () => typeof ctx.order === "number" ? h(`h${ctx.order}`, ctx.getStyles("itemTitle", {
@@ -8605,7 +8554,7 @@ function getSafeId$2(prefix) {
8605
8554
  return `${prefix}-${value}`;
8606
8555
  };
8607
8556
  }
8608
- function renderContent$7(content) {
8557
+ function renderContent$4(content) {
8609
8558
  return typeof content === "function" ? content() : content;
8610
8559
  }
8611
8560
  var varsResolver$55 = createVarsResolver((_, { transitionDuration, chevronSize, radius }) => ({ root: {
@@ -8777,7 +8726,7 @@ var AccordionBase = defineComponent({
8777
8726
  id: uid.value,
8778
8727
  variant: props.variant,
8779
8728
  "data-accordion": true
8780
- }, () => renderContent$7(slots.default));
8729
+ }, () => renderContent$4(slots.default));
8781
8730
  }
8782
8731
  });
8783
8732
  var Accordion = Object.assign(AccordionBase, {
@@ -8805,7 +8754,7 @@ var varsResolver$54 = createVarsResolver((theme, { controlSize, edgeGradientColo
8805
8754
  "--scroller-control-size": controlSize === void 0 ? void 0 : rem(controlSize),
8806
8755
  "--scroller-background-color": edgeGradientColor ? getThemeColor(edgeGradientColor, theme) : void 0
8807
8756
  } }));
8808
- function renderContent$6(content) {
8757
+ function renderContent$3(content) {
8809
8758
  return typeof content === "function" ? content() : content;
8810
8759
  }
8811
8760
  var Scroller = withBoxProps(defineComponent({
@@ -8915,7 +8864,7 @@ var Scroller = withBoxProps(defineComponent({
8915
8864
  "data-hidden": !showStart || void 0,
8916
8865
  "aria-label": "Scroll left",
8917
8866
  tabindex: showStart ? 0 : -1
8918
- }, () => renderContent$6(props.startControlIcon) || h(AccordionChevron, getStyles("chevron"))),
8867
+ }, () => renderContent$3(props.startControlIcon) || h(AccordionChevron, getStyles("chevron"))),
8919
8868
  h("div", {
8920
8869
  ...getStyles("container"),
8921
8870
  ref: scroller.ref,
@@ -8931,7 +8880,7 @@ var Scroller = withBoxProps(defineComponent({
8931
8880
  "data-hidden": !showEnd || void 0,
8932
8881
  "aria-label": "Scroll right",
8933
8882
  tabindex: showEnd ? 0 : -1
8934
- }, () => renderContent$6(props.endControlIcon) || h(AccordionChevron, getStyles("chevron")))
8883
+ }, () => renderContent$3(props.endControlIcon) || h(AccordionChevron, getStyles("chevron")))
8935
8884
  ]);
8936
8885
  };
8937
8886
  }
@@ -10268,6 +10217,7 @@ var Timeline_module_default = {
10268
10217
  var TimelineItem = withBoxProps(defineComponent({
10269
10218
  name: "TimelineItem",
10270
10219
  inheritAttrs: false,
10220
+ slots: Object,
10271
10221
  props: {
10272
10222
  __active: {
10273
10223
  type: Boolean,
@@ -10290,21 +10240,11 @@ var TimelineItem = withBoxProps(defineComponent({
10290
10240
  default: void 0
10291
10241
  },
10292
10242
  title: {
10293
- type: [
10294
- String,
10295
- Number,
10296
- Object,
10297
- Function
10298
- ],
10243
+ type: null,
10299
10244
  default: void 0
10300
10245
  },
10301
10246
  bullet: {
10302
- type: [
10303
- String,
10304
- Number,
10305
- Object,
10306
- Function
10307
- ],
10247
+ type: null,
10308
10248
  default: void 0
10309
10249
  },
10310
10250
  radius: {
@@ -10352,10 +10292,11 @@ var TimelineItem = withBoxProps(defineComponent({
10352
10292
  const props = useProps("TimelineItem", null, rawProps);
10353
10293
  const ctx = useTimelineContext();
10354
10294
  const theme = useMantineTheme();
10355
- const renderContent = (value) => typeof value === "function" ? value() : value;
10356
10295
  return () => {
10357
10296
  const active = props.active ?? props.__active;
10358
10297
  const lineActive = props.lineActive ?? props.__lineActive;
10298
+ const bullet = resolveNode(props.bullet, slots.bullet);
10299
+ const title = resolveNode(props.title, slots.title);
10359
10300
  const stylesApiProps = {
10360
10301
  className: props.className ?? attrs.class,
10361
10302
  props
@@ -10379,11 +10320,11 @@ var TimelineItem = withBoxProps(defineComponent({
10379
10320
  }, () => [h(Box, {
10380
10321
  ...ctx.getStyles("itemBullet", { props }),
10381
10322
  mod: {
10382
- withChild: Boolean(props.bullet),
10323
+ withChild: hasNode(bullet),
10383
10324
  align: props.__align,
10384
10325
  active
10385
10326
  }
10386
- }, () => renderContent(props.bullet)), h("div", ctx.getStyles("itemBody", { props }), [props.title ? h("div", ctx.getStyles("itemTitle", { props }), renderContent(props.title)) : null, h("div", ctx.getStyles("itemContent", { props }), slots.default?.())])]);
10327
+ }, () => bullet), h("div", ctx.getStyles("itemBody", { props }), [hasNode(title) ? h("div", ctx.getStyles("itemTitle", { props }), title) : null, h("div", ctx.getStyles("itemContent", { props }), slots.default?.())])]);
10387
10328
  };
10388
10329
  }
10389
10330
  }));
@@ -10759,6 +10700,7 @@ var varsResolver$47 = createVarsResolver((theme, { filledSegmentColor, emptySegm
10759
10700
  var SemiCircleProgress = withBoxProps(defineComponent({
10760
10701
  name: "SemiCircleProgress",
10761
10702
  inheritAttrs: false,
10703
+ slots: Object,
10762
10704
  props: {
10763
10705
  value: {
10764
10706
  type: Number,
@@ -10793,12 +10735,7 @@ var SemiCircleProgress = withBoxProps(defineComponent({
10793
10735
  default: void 0
10794
10736
  },
10795
10737
  label: {
10796
- type: [
10797
- String,
10798
- Number,
10799
- Object,
10800
- Function
10801
- ],
10738
+ type: null,
10802
10739
  default: void 0
10803
10740
  },
10804
10741
  labelPosition: {
@@ -10836,7 +10773,6 @@ var SemiCircleProgress = withBoxProps(defineComponent({
10836
10773
  vars: props.vars,
10837
10774
  varsResolver: varsResolver$47
10838
10775
  });
10839
- const renderContent = (value) => typeof value === "function" ? value() : value;
10840
10776
  return () => {
10841
10777
  const size = props.size ?? defaultProps$21.size;
10842
10778
  const thickness = props.thickness ?? defaultProps$21.thickness;
@@ -10844,7 +10780,7 @@ var SemiCircleProgress = withBoxProps(defineComponent({
10844
10780
  const radius = (size - 2 * thickness) / 2;
10845
10781
  const circumference = Math.PI * radius;
10846
10782
  const semiCirclePercentage = clamp$4(props.value, 0, 100) * (circumference / 100);
10847
- const label = props.label ?? slots.label?.();
10783
+ const label = resolveNode(props.label, slots.label);
10848
10784
  return h(Box, {
10849
10785
  ...attrs,
10850
10786
  w: size,
@@ -10852,11 +10788,11 @@ var SemiCircleProgress = withBoxProps(defineComponent({
10852
10788
  className: attrs.class,
10853
10789
  style: attrs.style
10854
10790
  })
10855
- }, () => [label ? h("div", {
10791
+ }, () => [hasNode(label) ? h("div", {
10856
10792
  ...getStyles("label"),
10857
10793
  "data-position": props.labelPosition,
10858
10794
  "data-orientation": props.orientation
10859
- }, renderContent(label)) : null, h("svg", {
10795
+ }, label) : null, h("svg", {
10860
10796
  width: size,
10861
10797
  height: size / 2,
10862
10798
  viewBox: `0 0 ${size} ${size / 2}`,
@@ -10902,28 +10838,19 @@ var varsResolver$46 = createVarsResolver((_, { transitionDuration }) => ({ root:
10902
10838
  var Spoiler = withBoxProps(defineComponent({
10903
10839
  name: "Spoiler",
10904
10840
  inheritAttrs: false,
10841
+ slots: Object,
10905
10842
  props: {
10906
10843
  maxHeight: {
10907
10844
  type: Number,
10908
10845
  default: void 0
10909
10846
  },
10910
10847
  showLabel: {
10911
- type: [
10912
- String,
10913
- Number,
10914
- Object,
10915
- Function
10916
- ],
10917
- required: true
10848
+ type: null,
10849
+ default: void 0
10918
10850
  },
10919
10851
  hideLabel: {
10920
- type: [
10921
- String,
10922
- Number,
10923
- Object,
10924
- Function
10925
- ],
10926
- required: true
10852
+ type: null,
10853
+ default: void 0
10927
10854
  },
10928
10855
  defaultExpanded: {
10929
10856
  type: Boolean,
@@ -10992,12 +10919,11 @@ var Spoiler = withBoxProps(defineComponent({
10992
10919
  onChange: (value) => props.onExpandedChange?.(value)
10993
10920
  });
10994
10921
  const { ref: contentRef, height } = useElementSize();
10995
- const renderContent = (value) => typeof value === "function" ? value() : value;
10996
10922
  return () => {
10997
10923
  const regionId = `${id.value}-region`;
10998
- const currentLabel = show.value ? props.hideLabel : props.showLabel;
10924
+ const currentLabel = show.value ? resolveNode(props.hideLabel, slots.hideLabel) : resolveNode(props.showLabel, slots.showLabel);
10999
10925
  const maxHeight = props.maxHeight ?? defaultProps$20.maxHeight;
11000
- const hasSpoiler = currentLabel !== null && maxHeight < height.value;
10926
+ const hasSpoiler = hasNode(currentLabel) && maxHeight < height.value;
11001
10927
  const ariaLabel = show.value ? props.hideAriaLabel : props.showAriaLabel;
11002
10928
  return h(Box, {
11003
10929
  ...attrs,
@@ -11015,7 +10941,7 @@ var Spoiler = withBoxProps(defineComponent({
11015
10941
  "aria-controls": regionId,
11016
10942
  "aria-label": ariaLabel,
11017
10943
  ...getStyles("control")
11018
- }, () => renderContent(currentLabel)) : null, h("div", {
10944
+ }, () => currentLabel) : null, h("div", {
11019
10945
  ...getStyles("content", { style: { maxHeight: !show.value ? rem(maxHeight) : height.value ? rem(height.value) : void 0 } }),
11020
10946
  "data-reduce-motion": "",
11021
10947
  role: "region",
@@ -11039,14 +10965,10 @@ var varsResolver$45 = createVarsResolver((_, { radius }) => ({ root: { "--fields
11039
10965
  var Fieldset = withBoxProps(defineComponent({
11040
10966
  name: "Fieldset",
11041
10967
  inheritAttrs: false,
10968
+ slots: Object,
11042
10969
  props: {
11043
10970
  legend: {
11044
- type: [
11045
- String,
11046
- Number,
11047
- Object,
11048
- Function
11049
- ],
10971
+ type: null,
11050
10972
  default: void 0
11051
10973
  },
11052
10974
  radius: {
@@ -11088,16 +11010,18 @@ var Fieldset = withBoxProps(defineComponent({
11088
11010
  vars: props.vars,
11089
11011
  varsResolver: varsResolver$45
11090
11012
  });
11091
- const renderContent = (value) => typeof value === "function" ? value() : value;
11092
- return () => h(Box, {
11093
- ...attrs,
11094
- component: "fieldset",
11095
- variant: props.variant,
11096
- ...getStyles("root", {
11097
- className: attrs.class,
11098
- style: attrs.style
11099
- })
11100
- }, () => [props.legend ? h("legend", getStyles("legend"), renderContent(props.legend)) : null, slots.default?.()]);
11013
+ return () => {
11014
+ const legend = resolveNode(props.legend, slots.legend);
11015
+ return h(Box, {
11016
+ ...attrs,
11017
+ component: "fieldset",
11018
+ variant: props.variant,
11019
+ ...getStyles("root", {
11020
+ className: attrs.class,
11021
+ style: attrs.style
11022
+ })
11023
+ }, () => [hasNode(legend) ? h("legend", getStyles("legend"), legend) : null, slots.default?.()]);
11024
+ };
11101
11025
  }
11102
11026
  }));
11103
11027
  Object.assign(Fieldset, {
@@ -11244,13 +11168,13 @@ var clearSectionOffset = {
11244
11168
  lg: 12,
11245
11169
  xl: 15
11246
11170
  };
11247
- function renderContent$5(content) {
11171
+ function renderContent$2(content) {
11248
11172
  return typeof content === "function" ? content() : content;
11249
11173
  }
11250
11174
  function InputClearSection({ __clearable, __clearSection, rightSection, __defaultRightSection, size = "sm", __clearSectionMode = "both" }) {
11251
11175
  const clearSection = __clearable && __clearSection;
11252
- if (__clearSectionMode === "rightSection") return rightSection === null ? null : renderContent$5(rightSection || __defaultRightSection);
11253
- if (__clearSectionMode === "clear") return rightSection === null ? null : renderContent$5(clearSection || __defaultRightSection);
11176
+ if (__clearSectionMode === "rightSection") return rightSection === null ? null : renderContent$2(rightSection || __defaultRightSection);
11177
+ if (__clearSectionMode === "clear") return rightSection === null ? null : renderContent$2(clearSection || __defaultRightSection);
11254
11178
  if (clearSection && (rightSection || __defaultRightSection)) return h("div", {
11255
11179
  "data-combined-clear-section": true,
11256
11180
  style: {
@@ -11259,8 +11183,8 @@ function InputClearSection({ __clearable, __clearSection, rightSection, __defaul
11259
11183
  alignItems: "center",
11260
11184
  paddingInlineEnd: `${clearSectionOffset[String(size)] ?? clearSectionOffset.sm}px`
11261
11185
  }
11262
- }, [renderContent$5(clearSection), renderContent$5(rightSection || __defaultRightSection)]);
11263
- return rightSection === null ? null : renderContent$5(rightSection || clearSection || __defaultRightSection);
11186
+ }, [renderContent$2(clearSection), renderContent$2(rightSection || __defaultRightSection)]);
11187
+ return rightSection === null ? null : renderContent$2(rightSection || clearSection || __defaultRightSection);
11264
11188
  }
11265
11189
  //#endregion
11266
11190
  //#region src/components/Input/InputWrapper.context.ts
@@ -11579,6 +11503,15 @@ var defaultOrder = [
11579
11503
  "input",
11580
11504
  "error"
11581
11505
  ];
11506
+ /**
11507
+ * Determines whether renderable content is present, honouring prop-over-slot precedence.
11508
+ * Uses truthiness for the prop (matching the original `Boolean(...)` checks) so that an
11509
+ * empty string or `false` is treated as "no content".
11510
+ */
11511
+ function nodePresent(prop, slot) {
11512
+ if (prop !== void 0) return Boolean(prop);
11513
+ return Boolean(slot);
11514
+ }
11582
11515
  var varsResolver$41 = createVarsResolver((_, { size }) => ({
11583
11516
  label: {
11584
11517
  "--input-label-size": getFontSize(size),
@@ -11587,39 +11520,21 @@ var varsResolver$41 = createVarsResolver((_, { size }) => ({
11587
11520
  error: { "--input-error-size": size === void 0 ? void 0 : `calc(${getFontSize(size)} - ${rem(2)})` },
11588
11521
  description: { "--input-description-size": size === void 0 ? void 0 : `calc(${getFontSize(size)} - ${rem(2)})` }
11589
11522
  }));
11590
- function renderContent$4(content) {
11591
- return typeof content === "function" ? content() : content;
11592
- }
11593
11523
  var InputWrapper = defineComponent({
11594
11524
  name: "InputWrapper",
11595
11525
  inheritAttrs: false,
11526
+ slots: Object,
11596
11527
  props: {
11597
11528
  label: {
11598
- type: [
11599
- String,
11600
- Number,
11601
- Object,
11602
- Function
11603
- ],
11529
+ type: null,
11604
11530
  default: void 0
11605
11531
  },
11606
11532
  description: {
11607
- type: [
11608
- String,
11609
- Number,
11610
- Object,
11611
- Function
11612
- ],
11533
+ type: null,
11613
11534
  default: void 0
11614
11535
  },
11615
11536
  error: {
11616
- type: [
11617
- String,
11618
- Number,
11619
- Object,
11620
- Function,
11621
- Boolean
11622
- ],
11537
+ type: null,
11623
11538
  default: void 0
11624
11539
  },
11625
11540
  required: {
@@ -11704,8 +11619,8 @@ var InputWrapper = defineComponent({
11704
11619
  const ids = computed(() => {
11705
11620
  const errorId = props.errorProps?.id || `${idBase.value}-error`;
11706
11621
  const descriptionId = props.descriptionProps?.id || `${idBase.value}-description`;
11707
- const hasError = Boolean(props.error) && typeof props.error !== "boolean";
11708
- const hasDescription = Boolean(props.description);
11622
+ const hasError = props.error !== void 0 ? Boolean(props.error) && typeof props.error !== "boolean" : Boolean(slots.error);
11623
+ const hasDescription = nodePresent(props.description, slots.description);
11709
11624
  const describedBy = `${hasError ? errorId : ""} ${hasDescription ? descriptionId : ""}`.trim();
11710
11625
  return {
11711
11626
  errorId,
@@ -11748,7 +11663,10 @@ var InputWrapper = defineComponent({
11748
11663
  size: props.size,
11749
11664
  variant: props.variant
11750
11665
  };
11751
- const label = props.label ? h(InputLabel, {
11666
+ const labelContent = resolveNode(props.label, slots.label);
11667
+ const descriptionContent = resolveNode(props.description, slots.description);
11668
+ const errorContent = resolveNode(props.error, slots.error);
11669
+ const label = labelContent ? h(InputLabel, {
11752
11670
  key: "label",
11753
11671
  labelElement: props.labelElement,
11754
11672
  id: ids.value.labelId,
@@ -11756,14 +11674,14 @@ var InputWrapper = defineComponent({
11756
11674
  required: isRequired,
11757
11675
  ...sharedProps,
11758
11676
  ...props.labelProps
11759
- }, () => renderContent$4(props.label)) : null;
11677
+ }, () => labelContent) : null;
11760
11678
  const description = ids.value.hasDescription ? h(InputDescription, {
11761
11679
  key: "description",
11762
11680
  ...props.descriptionProps,
11763
11681
  ...sharedProps,
11764
11682
  size: props.descriptionProps?.size || props.size,
11765
11683
  id: props.descriptionProps?.id || ids.value.descriptionId
11766
- }, () => renderContent$4(props.description)) : null;
11684
+ }, () => descriptionContent) : null;
11767
11685
  const input = props.inputContainer ? props.inputContainer(slots.default?.()) : slots.default?.();
11768
11686
  const error = ids.value.hasError ? h(InputError, {
11769
11687
  key: "error",
@@ -11771,7 +11689,7 @@ var InputWrapper = defineComponent({
11771
11689
  ...sharedProps,
11772
11690
  size: props.errorProps?.size || props.size,
11773
11691
  id: props.errorProps?.id || ids.value.errorId
11774
- }, () => renderContent$4(props.error)) : null;
11692
+ }, () => errorContent) : null;
11775
11693
  const content = order.map((part) => {
11776
11694
  if (part === "label") return label;
11777
11695
  if (part === "description") return description;
@@ -11782,7 +11700,7 @@ var InputWrapper = defineComponent({
11782
11700
  ...attrs,
11783
11701
  variant: props.variant,
11784
11702
  "data-size": props.size,
11785
- mod: [{ error: Boolean(props.error) }, props.mod],
11703
+ mod: [{ error: nodePresent(props.error, slots.error) }, props.mod],
11786
11704
  id: props.labelElement === "label" ? void 0 : props.id,
11787
11705
  ...getStyles("root", {
11788
11706
  className: attrs.class,
@@ -11810,12 +11728,13 @@ var varsResolver$40 = createVarsResolver((_, props, ctx) => ({ wrapper: {
11810
11728
  "--input-left-section-pointer-events": props.leftSectionPointerEvents,
11811
11729
  "--input-right-section-pointer-events": props.rightSectionPointerEvents
11812
11730
  } }));
11813
- function renderContent$3(content) {
11731
+ function renderContent$1(content) {
11814
11732
  return typeof content === "function" ? content() : content;
11815
11733
  }
11816
11734
  var InputBase$1 = defineComponent({
11817
11735
  name: "Input",
11818
11736
  inheritAttrs: false,
11737
+ slots: Object,
11819
11738
  props: {
11820
11739
  component: {
11821
11740
  type: [
@@ -11834,12 +11753,7 @@ var InputBase$1 = defineComponent({
11834
11753
  default: void 0
11835
11754
  },
11836
11755
  leftSection: {
11837
- type: [
11838
- String,
11839
- Number,
11840
- Object,
11841
- Function
11842
- ],
11756
+ type: null,
11843
11757
  default: void 0
11844
11758
  },
11845
11759
  leftSectionWidth: {
@@ -11855,13 +11769,7 @@ var InputBase$1 = defineComponent({
11855
11769
  default: "none"
11856
11770
  },
11857
11771
  rightSection: {
11858
- type: [
11859
- String,
11860
- Number,
11861
- Object,
11862
- Function,
11863
- null
11864
- ],
11772
+ type: null,
11865
11773
  default: void 0
11866
11774
  },
11867
11775
  rightSectionWidth: {
@@ -12030,11 +11938,13 @@ var InputBase$1 = defineComponent({
12030
11938
  stylesCtx.offsetBottom = wrapperCtx.offsetBottom;
12031
11939
  stylesCtx.offsetTop = wrapperCtx.offsetTop;
12032
11940
  const loadingIndicator = props.loading ? h(Loader, { size: props.loadingPosition === "left" ? "calc(var(--input-left-section-size) / 2)" : "calc(var(--input-right-section-size) / 2)" }) : null;
12033
- const leftSection = props.loading && props.loadingPosition === "left" ? loadingIndicator : props.leftSection;
11941
+ const resolvedLeftSection = resolveNode(props.leftSection, slots.leftSection);
11942
+ const resolvedRightSection = resolveNode(props.rightSection, slots.rightSection);
11943
+ const leftSection = props.loading && props.loadingPosition === "left" ? loadingIndicator : resolvedLeftSection;
12034
11944
  const rightSection = InputClearSection({
12035
11945
  __clearable: props.__clearable,
12036
11946
  __clearSection: props.__clearSection,
12037
- rightSection: props.loading && props.loadingPosition === "right" ? loadingIndicator : props.rightSection,
11947
+ rightSection: props.loading && props.loadingPosition === "right" ? loadingIndicator : resolvedRightSection,
12038
11948
  __defaultRightSection: props.__defaultRightSection,
12039
11949
  size: props.size,
12040
11950
  __clearSectionMode: props.__clearSectionMode
@@ -12069,7 +11979,7 @@ var InputBase$1 = defineComponent({
12069
11979
  className: props.leftSectionProps?.class,
12070
11980
  style: props.leftSectionProps?.style
12071
11981
  })
12072
- }, renderContent$3(leftSection)) : null,
11982
+ }, renderContent$1(leftSection)) : null,
12073
11983
  h(Box, {
12074
11984
  ...attrs,
12075
11985
  ...ariaAttributes,
@@ -12090,7 +12000,7 @@ var InputBase$1 = defineComponent({
12090
12000
  className: props.__bottomSectionProps?.class,
12091
12001
  style: props.__bottomSectionProps?.style
12092
12002
  })
12093
- }, renderContent$3(props.__bottomSection)) : null,
12003
+ }, renderContent$1(props.__bottomSection)) : null,
12094
12004
  rightSection ? h("div", {
12095
12005
  ...props.rightSectionProps,
12096
12006
  "data-position": "right",
@@ -12098,7 +12008,7 @@ var InputBase$1 = defineComponent({
12098
12008
  className: props.rightSectionProps?.class,
12099
12009
  style: props.rightSectionProps?.style
12100
12010
  })
12101
- }, renderContent$3(rightSection)) : null
12011
+ }, renderContent$1(rightSection)) : null
12102
12012
  ]);
12103
12013
  };
12104
12014
  }
@@ -12118,6 +12028,7 @@ var Input = withBoxProps(Object.assign(InputBase$1, {
12118
12028
  var InputBase = withBoxProps(defineComponent({
12119
12029
  name: "InputBase",
12120
12030
  inheritAttrs: false,
12031
+ slots: Object,
12121
12032
  props: {
12122
12033
  component: {
12123
12034
  type: [
@@ -12136,31 +12047,15 @@ var InputBase = withBoxProps(defineComponent({
12136
12047
  default: void 0
12137
12048
  },
12138
12049
  label: {
12139
- type: [
12140
- String,
12141
- Number,
12142
- Object,
12143
- Function
12144
- ],
12050
+ type: null,
12145
12051
  default: void 0
12146
12052
  },
12147
12053
  description: {
12148
- type: [
12149
- String,
12150
- Number,
12151
- Object,
12152
- Function
12153
- ],
12054
+ type: null,
12154
12055
  default: void 0
12155
12056
  },
12156
12057
  error: {
12157
- type: [
12158
- String,
12159
- Number,
12160
- Object,
12161
- Function,
12162
- Boolean
12163
- ],
12058
+ type: null,
12164
12059
  default: void 0
12165
12060
  },
12166
12061
  required: {
@@ -12257,13 +12152,7 @@ var InputBase = withBoxProps(defineComponent({
12257
12152
  default: void 0
12258
12153
  },
12259
12154
  rightSection: {
12260
- type: [
12261
- String,
12262
- Number,
12263
- Object,
12264
- Function,
12265
- null
12266
- ],
12155
+ type: null,
12267
12156
  default: void 0
12268
12157
  },
12269
12158
  rightSectionWidth: {
@@ -12376,45 +12265,54 @@ var InputBase = withBoxProps(defineComponent({
12376
12265
  vars: props.vars,
12377
12266
  unstyled: props.unstyled,
12378
12267
  mod: props.mod
12379
- }, () => h(Input, {
12380
- ...attrs,
12381
- component: props.component,
12382
- __staticSelector: props.__staticSelector,
12383
- __stylesApiProps: props.__stylesApiProps ?? props,
12384
- error: props.error,
12385
- required: props.required,
12386
- id: props.id,
12387
- size: props.size,
12388
- variant: props.variant,
12389
- multiline: props.multiline,
12390
- withAria: props.withAria,
12391
- classNames: props.classNames,
12392
- styles: props.styles,
12393
- vars: props.vars,
12394
- unstyled: props.unstyled,
12395
- leftSection: props.leftSection,
12396
- leftSectionWidth: props.leftSectionWidth,
12397
- leftSectionProps: props.leftSectionProps,
12398
- leftSectionPointerEvents: props.leftSectionPointerEvents,
12399
- rightSection: props.rightSection,
12400
- rightSectionWidth: props.rightSectionWidth,
12401
- rightSectionProps: props.rightSectionProps,
12402
- rightSectionPointerEvents: props.rightSectionPointerEvents,
12403
- __clearSection: props.__clearSection,
12404
- __clearable: props.__clearable,
12405
- __clearSectionMode: props.__clearSectionMode,
12406
- __defaultRightSection: props.__defaultRightSection,
12407
- radius: props.radius,
12408
- disabled: props.disabled,
12409
- pointer: props.pointer,
12410
- withErrorStyles: props.withErrorStyles,
12411
- inputSize: props.inputSize,
12412
- loading: props.loading,
12413
- loadingPosition: props.loadingPosition,
12414
- __bottomSection: props.__bottomSection,
12415
- __bottomSectionProps: props.__bottomSectionProps,
12416
- rootRef: props.rootRef
12417
- }, () => slots.default?.()));
12268
+ }, {
12269
+ label: slots.label,
12270
+ description: slots.description,
12271
+ error: slots.error,
12272
+ default: () => h(Input, {
12273
+ ...attrs,
12274
+ component: props.component,
12275
+ __staticSelector: props.__staticSelector,
12276
+ __stylesApiProps: props.__stylesApiProps ?? props,
12277
+ error: props.error ?? (slots.error ? true : void 0),
12278
+ required: props.required,
12279
+ id: props.id,
12280
+ size: props.size,
12281
+ variant: props.variant,
12282
+ multiline: props.multiline,
12283
+ withAria: props.withAria,
12284
+ classNames: props.classNames,
12285
+ styles: props.styles,
12286
+ vars: props.vars,
12287
+ unstyled: props.unstyled,
12288
+ leftSection: props.leftSection,
12289
+ leftSectionWidth: props.leftSectionWidth,
12290
+ leftSectionProps: props.leftSectionProps,
12291
+ leftSectionPointerEvents: props.leftSectionPointerEvents,
12292
+ rightSection: props.rightSection,
12293
+ rightSectionWidth: props.rightSectionWidth,
12294
+ rightSectionProps: props.rightSectionProps,
12295
+ rightSectionPointerEvents: props.rightSectionPointerEvents,
12296
+ __clearSection: props.__clearSection,
12297
+ __clearable: props.__clearable,
12298
+ __clearSectionMode: props.__clearSectionMode,
12299
+ __defaultRightSection: props.__defaultRightSection,
12300
+ radius: props.radius,
12301
+ disabled: props.disabled,
12302
+ pointer: props.pointer,
12303
+ withErrorStyles: props.withErrorStyles,
12304
+ inputSize: props.inputSize,
12305
+ loading: props.loading,
12306
+ loadingPosition: props.loadingPosition,
12307
+ __bottomSection: props.__bottomSection,
12308
+ __bottomSectionProps: props.__bottomSectionProps,
12309
+ rootRef: props.rootRef
12310
+ }, {
12311
+ default: () => slots.default?.(),
12312
+ leftSection: slots.leftSection,
12313
+ rightSection: slots.rightSection
12314
+ })
12315
+ });
12418
12316
  }
12419
12317
  }));
12420
12318
  Object.assign(InputBase, { classes: Input.classes });
@@ -12430,6 +12328,7 @@ function defaultValueComponent(value) {
12430
12328
  var FileInput = defineComponent({
12431
12329
  name: "FileInput",
12432
12330
  inheritAttrs: false,
12331
+ slots: Object,
12433
12332
  props: {
12434
12333
  component: {
12435
12334
  type: String,
@@ -12500,12 +12399,7 @@ var FileInput = defineComponent({
12500
12399
  default: void 0
12501
12400
  },
12502
12401
  placeholder: {
12503
- type: [
12504
- String,
12505
- Number,
12506
- Object,
12507
- Function
12508
- ],
12402
+ type: null,
12509
12403
  default: void 0
12510
12404
  },
12511
12405
  resetRef: {
@@ -12513,13 +12407,7 @@ var FileInput = defineComponent({
12513
12407
  default: void 0
12514
12408
  },
12515
12409
  rightSection: {
12516
- type: [
12517
- String,
12518
- Number,
12519
- Object,
12520
- Function,
12521
- null
12522
- ],
12410
+ type: null,
12523
12411
  default: void 0
12524
12412
  },
12525
12413
  size: {
@@ -12527,31 +12415,15 @@ var FileInput = defineComponent({
12527
12415
  default: "sm"
12528
12416
  },
12529
12417
  label: {
12530
- type: [
12531
- String,
12532
- Number,
12533
- Object,
12534
- Function
12535
- ],
12418
+ type: null,
12536
12419
  default: void 0
12537
12420
  },
12538
12421
  description: {
12539
- type: [
12540
- String,
12541
- Number,
12542
- Object,
12543
- Function
12544
- ],
12422
+ type: null,
12545
12423
  default: void 0
12546
12424
  },
12547
12425
  error: {
12548
- type: [
12549
- String,
12550
- Number,
12551
- Object,
12552
- Function,
12553
- Boolean
12554
- ],
12426
+ type: null,
12555
12427
  default: void 0
12556
12428
  },
12557
12429
  required: {
@@ -12583,7 +12455,7 @@ var FileInput = defineComponent({
12583
12455
  default: false
12584
12456
  }
12585
12457
  },
12586
- setup(props, { attrs }) {
12458
+ setup(props, { attrs, slots }) {
12587
12459
  const resetRef = ref(null);
12588
12460
  const [value, setValue] = useUncontrolled({
12589
12461
  value: () => props.value,
@@ -12642,7 +12514,18 @@ var FileInput = defineComponent({
12642
12514
  classNames: props.classNames,
12643
12515
  styles: props.styles,
12644
12516
  vars: props.vars
12645
- }, () => !hasValue.value ? h(Input.Placeholder, { __staticSelector: "FileInput" }, () => props.placeholder) : props.valueComponent(value.value)) });
12517
+ }, {
12518
+ default: () => {
12519
+ if (hasValue.value) return props.valueComponent(value.value);
12520
+ const placeholder = resolveNode(props.placeholder, slots.placeholder);
12521
+ return hasNode(placeholder) ? h(Input.Placeholder, { __staticSelector: "FileInput" }, () => placeholder) : null;
12522
+ },
12523
+ label: slots.label,
12524
+ description: slots.description,
12525
+ error: slots.error,
12526
+ leftSection: slots.leftSection,
12527
+ rightSection: slots.rightSection
12528
+ }) });
12646
12529
  };
12647
12530
  }
12648
12531
  });
@@ -12666,6 +12549,7 @@ var varsResolver$39 = createVarsResolver((theme, { radius, color }) => ({ root:
12666
12549
  var Notification = withBoxProps(defineComponent({
12667
12550
  name: "Notification",
12668
12551
  inheritAttrs: false,
12552
+ slots: Object,
12669
12553
  props: {
12670
12554
  onClose: {
12671
12555
  type: Function,
@@ -12680,21 +12564,11 @@ var Notification = withBoxProps(defineComponent({
12680
12564
  default: void 0
12681
12565
  },
12682
12566
  icon: {
12683
- type: [
12684
- String,
12685
- Number,
12686
- Object,
12687
- Function
12688
- ],
12567
+ type: null,
12689
12568
  default: void 0
12690
12569
  },
12691
12570
  title: {
12692
- type: [
12693
- String,
12694
- Number,
12695
- Object,
12696
- Function
12697
- ],
12571
+ type: null,
12698
12572
  default: void 0
12699
12573
  },
12700
12574
  loading: {
@@ -12752,43 +12626,46 @@ var Notification = withBoxProps(defineComponent({
12752
12626
  vars: props.vars,
12753
12627
  varsResolver: varsResolver$39
12754
12628
  });
12755
- const renderContent = (value) => typeof value === "function" ? value() : value;
12756
- return () => h(Box, {
12757
- ...attrs,
12758
- role: attrs.role || "alert",
12759
- mod: [{
12760
- withIcon: Boolean(props.icon) || props.loading,
12761
- withBorder: props.withBorder
12762
- }, props.mod],
12763
- ...getStyles("root", {
12764
- className: attrs.class,
12765
- style: attrs.style
12766
- })
12767
- }, () => [
12768
- props.icon && !props.loading ? h("div", getStyles("icon"), renderContent(props.icon)) : null,
12769
- props.loading ? h(Loader, {
12770
- size: 28,
12771
- color: props.color,
12772
- ...getStyles("loader"),
12773
- ...props.loaderProps
12774
- }) : null,
12775
- h("div", getStyles("body"), [props.title ? h("div", getStyles("title"), renderContent(props.title)) : null, h(Box, {
12776
- ...getStyles("description"),
12777
- mod: { withTitle: Boolean(props.title) }
12778
- }, () => slots.default?.())]),
12779
- props.withCloseButton ? h(CloseButton, {
12780
- iconSize: 16,
12781
- color: "gray",
12782
- __staticSelector: "Notification",
12783
- unstyled: props.unstyled,
12784
- ...props.closeButtonProps,
12785
- ...getStyles("closeButton"),
12786
- onClick: (event) => {
12787
- props.closeButtonProps?.onClick?.(event);
12788
- props.onClose?.();
12789
- }
12790
- }) : null
12791
- ]);
12629
+ return () => {
12630
+ const icon = resolveNode(props.icon, slots.icon);
12631
+ const title = resolveNode(props.title, slots.title);
12632
+ return h(Box, {
12633
+ ...attrs,
12634
+ role: attrs.role || "alert",
12635
+ mod: [{
12636
+ withIcon: hasNode(icon) || props.loading,
12637
+ withBorder: props.withBorder
12638
+ }, props.mod],
12639
+ ...getStyles("root", {
12640
+ className: attrs.class,
12641
+ style: attrs.style
12642
+ })
12643
+ }, () => [
12644
+ hasNode(icon) && !props.loading ? h("div", getStyles("icon"), icon) : null,
12645
+ props.loading ? h(Loader, {
12646
+ size: 28,
12647
+ color: props.color,
12648
+ ...getStyles("loader"),
12649
+ ...props.loaderProps
12650
+ }) : null,
12651
+ h("div", getStyles("body"), [hasNode(title) ? h("div", getStyles("title"), title) : null, h(Box, {
12652
+ ...getStyles("description"),
12653
+ mod: { withTitle: hasNode(title) }
12654
+ }, () => slots.default?.())]),
12655
+ props.withCloseButton ? h(CloseButton, {
12656
+ iconSize: 16,
12657
+ color: "gray",
12658
+ __staticSelector: "Notification",
12659
+ unstyled: props.unstyled,
12660
+ ...props.closeButtonProps,
12661
+ ...getStyles("closeButton"),
12662
+ onClick: (event) => {
12663
+ props.closeButtonProps?.onClick?.(event);
12664
+ props.onClose?.();
12665
+ }
12666
+ }) : null
12667
+ ]);
12668
+ };
12792
12669
  }
12793
12670
  }));
12794
12671
  Object.assign(Notification, {
@@ -13042,6 +12919,7 @@ function getDecimalPlaces(value) {
13042
12919
  var NumberInput = defineComponent({
13043
12920
  name: "NumberInput",
13044
12921
  inheritAttrs: false,
12922
+ slots: Object,
13045
12923
  props: {
13046
12924
  value: {
13047
12925
  type: [
@@ -13180,13 +13058,7 @@ var NumberInput = defineComponent({
13180
13058
  default: false
13181
13059
  },
13182
13060
  rightSection: {
13183
- type: [
13184
- String,
13185
- Number,
13186
- Object,
13187
- Function,
13188
- null
13189
- ],
13061
+ type: null,
13190
13062
  default: void 0
13191
13063
  },
13192
13064
  rightSectionWidth: {
@@ -13198,31 +13070,15 @@ var NumberInput = defineComponent({
13198
13070
  default: void 0
13199
13071
  },
13200
13072
  label: {
13201
- type: [
13202
- String,
13203
- Number,
13204
- Object,
13205
- Function
13206
- ],
13073
+ type: null,
13207
13074
  default: void 0
13208
13075
  },
13209
13076
  description: {
13210
- type: [
13211
- String,
13212
- Number,
13213
- Object,
13214
- Function
13215
- ],
13077
+ type: null,
13216
13078
  default: void 0
13217
13079
  },
13218
13080
  error: {
13219
- type: [
13220
- String,
13221
- Number,
13222
- Object,
13223
- Function,
13224
- Boolean
13225
- ],
13081
+ type: null,
13226
13082
  default: void 0
13227
13083
  },
13228
13084
  required: {
@@ -13254,7 +13110,7 @@ var NumberInput = defineComponent({
13254
13110
  default: false
13255
13111
  }
13256
13112
  },
13257
- setup(props, { attrs }) {
13113
+ setup(props, { attrs, slots }) {
13258
13114
  const inputRef = ref(null);
13259
13115
  const isEditing = ref(false);
13260
13116
  const isBigIntMode = computed(() => typeof props.value === "bigint" || typeof props.defaultValue === "bigint");
@@ -13435,7 +13291,7 @@ var NumberInput = defineComponent({
13435
13291
  styles: props.styles,
13436
13292
  vars: props.vars,
13437
13293
  unstyled: props.unstyled,
13438
- rightSection: props.hideControls || props.readOnly ? props.rightSection : props.rightSection || controls,
13294
+ rightSection: props.hideControls || props.readOnly ? props.rightSection : props.rightSection !== void 0 || slots.rightSection ? props.rightSection : controls,
13439
13295
  rightSectionPointerEvents: props.rightSectionPointerEvents ?? (props.disabled ? "none" : void 0),
13440
13296
  rightSectionWidth: props.rightSectionWidth ?? `var(--ni-right-section-width-${props.size || "sm"})`,
13441
13297
  class: [NumberInput_module_default.root, attrs.class],
@@ -13489,7 +13345,7 @@ var NumberInput = defineComponent({
13489
13345
  rootRef: (node) => {
13490
13346
  inputRef.value = node?.querySelector?.("input") ?? node;
13491
13347
  }
13492
- });
13348
+ }, slots);
13493
13349
  }
13494
13350
  });
13495
13351
  Object.assign(NumberInput, {
@@ -14039,6 +13895,7 @@ function NativeSelectChevron() {
14039
13895
  var NativeSelect = defineComponent({
14040
13896
  name: "NativeSelect",
14041
13897
  inheritAttrs: false,
13898
+ slots: Object,
14042
13899
  props: {
14043
13900
  data: {
14044
13901
  type: Array,
@@ -14049,23 +13906,11 @@ var NativeSelect = defineComponent({
14049
13906
  default: void 0
14050
13907
  },
14051
13908
  error: {
14052
- type: [
14053
- String,
14054
- Number,
14055
- Object,
14056
- Function,
14057
- Boolean
14058
- ],
13909
+ type: null,
14059
13910
  default: void 0
14060
13911
  },
14061
13912
  rightSection: {
14062
- type: [
14063
- String,
14064
- Number,
14065
- Object,
14066
- Function,
14067
- null
14068
- ],
13913
+ type: null,
14069
13914
  default: void 0
14070
13915
  },
14071
13916
  rightSectionPointerEvents: {
@@ -14073,21 +13918,11 @@ var NativeSelect = defineComponent({
14073
13918
  default: void 0
14074
13919
  },
14075
13920
  label: {
14076
- type: [
14077
- String,
14078
- Number,
14079
- Object,
14080
- Function
14081
- ],
13921
+ type: null,
14082
13922
  default: void 0
14083
13923
  },
14084
13924
  description: {
14085
- type: [
14086
- String,
14087
- Number,
14088
- Object,
14089
- Function
14090
- ],
13925
+ type: null,
14091
13926
  default: void 0
14092
13927
  },
14093
13928
  required: {
@@ -14162,7 +13997,7 @@ var NativeSelect = defineComponent({
14162
13997
  pointer: true,
14163
13998
  error: props.error,
14164
13999
  unstyled: props.unstyled,
14165
- rightSection: props.rightSection ?? NativeSelectChevron,
14000
+ rightSection: props.rightSection !== void 0 || slots.rightSection ? props.rightSection : NativeSelectChevron,
14166
14001
  rightSectionPointerEvents: props.rightSectionPointerEvents,
14167
14002
  label: props.label,
14168
14003
  description: props.description,
@@ -14179,7 +14014,14 @@ var NativeSelect = defineComponent({
14179
14014
  classNames: props.classNames,
14180
14015
  styles: props.styles,
14181
14016
  vars: props.vars
14182
- }, () => slots.default?.() ?? parsedOptions);
14017
+ }, {
14018
+ default: () => slots.default?.() ?? parsedOptions,
14019
+ label: slots.label,
14020
+ description: slots.description,
14021
+ error: slots.error,
14022
+ leftSection: slots.leftSection,
14023
+ rightSection: slots.rightSection
14024
+ });
14183
14025
  };
14184
14026
  }
14185
14027
  });
@@ -14211,7 +14053,7 @@ var varsResolver$35 = createVarsResolver((theme, { variant, color, childrenOffse
14211
14053
  children: { "--nl-offset": getSpacing(childrenOffset) }
14212
14054
  };
14213
14055
  });
14214
- function renderContent$2(content) {
14056
+ function renderContent(content) {
14215
14057
  return typeof content === "function" ? content() : content;
14216
14058
  }
14217
14059
  function callHandler$8(handler, event) {
@@ -14221,6 +14063,7 @@ function callHandler$8(handler, event) {
14221
14063
  var NavLink = withBoxProps(defineComponent({
14222
14064
  name: "NavLink",
14223
14065
  inheritAttrs: false,
14066
+ slots: Object,
14224
14067
  props: {
14225
14068
  component: {
14226
14069
  type: String,
@@ -14236,12 +14079,7 @@ var NavLink = withBoxProps(defineComponent({
14236
14079
  default: void 0
14237
14080
  },
14238
14081
  description: {
14239
- type: [
14240
- String,
14241
- Number,
14242
- Object,
14243
- Function
14244
- ],
14082
+ type: null,
14245
14083
  default: void 0
14246
14084
  },
14247
14085
  leftSection: {
@@ -14254,13 +14092,7 @@ var NavLink = withBoxProps(defineComponent({
14254
14092
  default: void 0
14255
14093
  },
14256
14094
  rightSection: {
14257
- type: [
14258
- String,
14259
- Number,
14260
- Object,
14261
- Function,
14262
- null
14263
- ],
14095
+ type: null,
14264
14096
  default: void 0
14265
14097
  },
14266
14098
  active: {
@@ -14352,10 +14184,10 @@ var NavLink = withBoxProps(defineComponent({
14352
14184
  varsResolver: varsResolver$35
14353
14185
  });
14354
14186
  return () => {
14355
- const children = slots.default?.();
14356
- const withChildren = Boolean(children && children.length > 0);
14357
- const rightSection = props.rightSection ?? slots.rightSection?.();
14358
- const leftSection = props.leftSection ?? slots.leftSection?.();
14187
+ const children = slots.default?.() ?? [];
14188
+ const withChildren = hasNode(children);
14189
+ const rightSection = resolveNode(props.rightSection, slots.rightSection);
14190
+ const leftSection = resolveNode(props.leftSection, slots.leftSection);
14359
14191
  const toggle = (event) => {
14360
14192
  if (withChildren) {
14361
14193
  event.preventDefault();
@@ -14385,30 +14217,30 @@ var NavLink = withBoxProps(defineComponent({
14385
14217
  if (event.code === "Space" && withChildren) toggle(event);
14386
14218
  }
14387
14219
  }, () => [
14388
- leftSection ? h(Box, {
14220
+ hasNode(leftSection) ? h(Box, {
14389
14221
  component: "span",
14390
14222
  ...getStyles("section"),
14391
14223
  mod: { position: "left" }
14392
- }, () => renderContent$2(leftSection)) : null,
14224
+ }, () => renderContent(leftSection)) : null,
14393
14225
  h(Box, {
14394
14226
  ...getStyles("body"),
14395
14227
  mod: { "no-wrap": props.noWrap }
14396
14228
  }, () => [h(Box, {
14397
14229
  component: "span",
14398
14230
  ...getStyles("label")
14399
- }, () => renderContent$2(props.label ?? slots.label?.())), props.description || slots.description ? h(Box, {
14231
+ }, () => renderContent(props.label ?? slots.label?.())), props.description || slots.description ? h(Box, {
14400
14232
  component: "span",
14401
14233
  mod: { active: props.active },
14402
14234
  ...getStyles("description")
14403
- }, () => renderContent$2(props.description ?? slots.description?.())) : null]),
14404
- withChildren || rightSection !== void 0 ? h(Box, {
14235
+ }, () => renderContent(props.description ?? slots.description?.())) : null]),
14236
+ withChildren || hasNode(rightSection) ? h(Box, {
14405
14237
  ...getStyles("section"),
14406
14238
  component: "span",
14407
14239
  mod: {
14408
14240
  rotate: opened.value && !props.disableRightSectionRotation,
14409
14241
  position: "right"
14410
14242
  }
14411
- }, () => withChildren ? rightSection !== void 0 ? renderContent$2(rightSection) : h(AccordionChevron, getStyles("chevron")) : renderContent$2(rightSection)) : null
14243
+ }, () => withChildren ? hasNode(rightSection) ? renderContent(rightSection) : h(AccordionChevron, getStyles("chevron")) : renderContent(rightSection)) : null
14412
14244
  ]), withChildren ? h(Collapse, {
14413
14245
  expanded: opened.value,
14414
14246
  keepMounted: props.keepMounted,
@@ -14944,6 +14776,7 @@ var varsResolver$31 = createVarsResolver((theme, { size, color }) => ({ root: {
14944
14776
  var Rating = withBoxProps(defineComponent({
14945
14777
  name: "Rating",
14946
14778
  inheritAttrs: false,
14779
+ slots: Object,
14947
14780
  props: {
14948
14781
  defaultValue: {
14949
14782
  type: Number,
@@ -14958,21 +14791,11 @@ var Rating = withBoxProps(defineComponent({
14958
14791
  default: void 0
14959
14792
  },
14960
14793
  emptySymbol: {
14961
- type: [
14962
- String,
14963
- Number,
14964
- Object,
14965
- Function
14966
- ],
14794
+ type: null,
14967
14795
  default: void 0
14968
14796
  },
14969
14797
  fullSymbol: {
14970
- type: [
14971
- String,
14972
- Number,
14973
- Object,
14974
- Function
14975
- ],
14798
+ type: null,
14976
14799
  default: void 0
14977
14800
  },
14978
14801
  fractions: {
@@ -15036,7 +14859,7 @@ var Rating = withBoxProps(defineComponent({
15036
14859
  default: false
15037
14860
  }
15038
14861
  },
15039
- setup(rawProps, { attrs }) {
14862
+ setup(rawProps, { attrs, slots }) {
15040
14863
  const props = useProps("Rating", defaultProps$11, rawProps);
15041
14864
  const rootRef = ref(null);
15042
14865
  const hovered = ref(-1);
@@ -15070,6 +14893,8 @@ var Rating = withBoxProps(defineComponent({
15070
14893
  return clamp$2(roundValueTo((dir.value === "rtl" ? right - x : x - left) / symbolWidth + decimalUnit / 2, decimalUnit), decimalUnit, count);
15071
14894
  };
15072
14895
  return () => {
14896
+ const emptySymbol = props.emptySymbol ?? (slots.emptySymbol ? (value) => slots.emptySymbol({ value }) : void 0);
14897
+ const fullSymbol = props.fullSymbol ?? (slots.fullSymbol ? (value) => slots.fullSymbol({ value }) : void 0);
15073
14898
  const count = Math.max(0, Math.floor(props.count ?? defaultProps$11.count));
15074
14899
  const fractions = Math.floor(props.fractions ?? defaultProps$11.fractions);
15075
14900
  if (fractions < 0) throw new Error("Rating fractions cannot be negative");
@@ -15089,8 +14914,8 @@ var Rating = withBoxProps(defineComponent({
15089
14914
  return h(RatingItem, {
15090
14915
  key: `${integerValue}-${symbolValue}`,
15091
14916
  getSymbolLabel: props.getSymbolLabel,
15092
- emptyIcon: props.emptySymbol,
15093
- fullIcon: props.fullSymbol,
14917
+ emptyIcon: emptySymbol,
14918
+ fullIcon: fullSymbol,
15094
14919
  full: props.highlightSelectedOnly ? symbolValue === finalValue : symbolValue <= finalValue,
15095
14920
  active: symbolValue === finalValue,
15096
14921
  checked: symbolValue === stableValueRounded,
@@ -15683,6 +15508,7 @@ function createEdge(name, icon, label, getDisabled, getAction) {
15683
15508
  return defineComponent({
15684
15509
  name,
15685
15510
  inheritAttrs: false,
15511
+ slots: Object,
15686
15512
  props: {
15687
15513
  icon: {
15688
15514
  type: [Object, Function],
@@ -15693,7 +15519,7 @@ function createEdge(name, icon, label, getDisabled, getAction) {
15693
15519
  default: false
15694
15520
  }
15695
15521
  },
15696
- setup(props, { attrs }) {
15522
+ setup(props, { attrs, slots }) {
15697
15523
  const ctx = usePaginationContext();
15698
15524
  return () => {
15699
15525
  const Icon = props.icon ?? icon;
@@ -15704,7 +15530,7 @@ function createEdge(name, icon, label, getDisabled, getAction) {
15704
15530
  withPadding: false,
15705
15531
  "aria-label": attrs["aria-label"] ?? label,
15706
15532
  onClick: disabled ? void 0 : getAction(ctx)
15707
- }, () => h(Icon, { class: "mantine-rotate-rtl" }));
15533
+ }, () => slots.icon ? slots.icon() : h(Icon, { class: "mantine-rotate-rtl" }));
15708
15534
  };
15709
15535
  }
15710
15536
  });
@@ -15718,11 +15544,12 @@ var PaginationLast = withBoxProps(createEdge("PaginationLast", PaginationLastIco
15718
15544
  var PaginationDots = withBoxProps(defineComponent({
15719
15545
  name: "PaginationDots",
15720
15546
  inheritAttrs: false,
15547
+ slots: Object,
15721
15548
  props: { icon: {
15722
15549
  type: [Object, Function],
15723
15550
  default: void 0
15724
15551
  } },
15725
- setup(props, { attrs }) {
15552
+ setup(props, { attrs, slots }) {
15726
15553
  const ctx = usePaginationContext();
15727
15554
  return () => {
15728
15555
  const Icon = props.icon ?? PaginationDotsIcon;
@@ -15733,7 +15560,7 @@ var PaginationDots = withBoxProps(defineComponent({
15733
15560
  className: attrs.class,
15734
15561
  style: attrs.style
15735
15562
  })
15736
- }, () => h(Icon));
15563
+ }, () => slots.icon ? slots.icon() : h(Icon));
15737
15564
  };
15738
15565
  }
15739
15566
  }));
@@ -16215,9 +16042,6 @@ var TabsPanel = withBoxProps(defineComponent({
16215
16042
  }));
16216
16043
  //#endregion
16217
16044
  //#region src/components/Tabs/TabsTab/TabsTab.ts
16218
- function renderContent$1(content) {
16219
- return typeof content === "function" ? content() : content;
16220
- }
16221
16045
  function getTabs(event, selector) {
16222
16046
  const parent = event.currentTarget.closest("[role=\"tablist\"]");
16223
16047
  return Array.from(parent?.querySelectorAll(selector) ?? []).filter((item) => !item.hasAttribute("disabled") && item.getAttribute("aria-disabled") !== "true");
@@ -16250,27 +16074,18 @@ function createTabsKeydownHandler({ orientation, dir, loop, activateOnFocus, onK
16250
16074
  var TabsTab = defineComponent({
16251
16075
  name: "TabsTab",
16252
16076
  inheritAttrs: false,
16077
+ slots: Object,
16253
16078
  props: {
16254
16079
  value: {
16255
16080
  type: String,
16256
16081
  required: true
16257
16082
  },
16258
16083
  rightSection: {
16259
- type: [
16260
- String,
16261
- Number,
16262
- Object,
16263
- Function
16264
- ],
16084
+ type: null,
16265
16085
  default: void 0
16266
16086
  },
16267
16087
  leftSection: {
16268
- type: [
16269
- String,
16270
- Number,
16271
- Object,
16272
- Function
16273
- ],
16088
+ type: null,
16274
16089
  default: void 0
16275
16090
  },
16276
16091
  color: {
@@ -16316,6 +16131,8 @@ var TabsTab = defineComponent({
16316
16131
  const ctx = useTabsContext();
16317
16132
  return () => {
16318
16133
  const active = props.value === ctx.value;
16134
+ const leftSection = resolveNode(props.leftSection, slots.leftSection);
16135
+ const rightSection = resolveNode(props.rightSection, slots.rightSection);
16319
16136
  const stylesApiProps = {
16320
16137
  classNames: props.classNames,
16321
16138
  styles: props.styles,
@@ -16360,20 +16177,20 @@ var TabsTab = defineComponent({
16360
16177
  onKeydown: props.onKeydown ?? props.onKeyDown
16361
16178
  })
16362
16179
  }, () => [
16363
- props.leftSection ? h(Box, {
16180
+ hasNode(leftSection) ? h(Box, {
16364
16181
  component: "span",
16365
16182
  ...ctx.getStyles("tabSection", stylesApiProps),
16366
16183
  "data-position": "left"
16367
- }, () => renderContent$1(props.leftSection)) : null,
16184
+ }, () => leftSection) : null,
16368
16185
  slots.default ? h(Box, {
16369
16186
  component: "span",
16370
16187
  ...ctx.getStyles("tabLabel", stylesApiProps)
16371
16188
  }, () => slots.default?.()) : null,
16372
- props.rightSection ? h(Box, {
16189
+ hasNode(rightSection) ? h(Box, {
16373
16190
  component: "span",
16374
16191
  ...ctx.getStyles("tabSection", stylesApiProps),
16375
16192
  "data-position": "right"
16376
- }, () => renderContent$1(props.rightSection)) : null
16193
+ }, () => rightSection) : null
16377
16194
  ]);
16378
16195
  };
16379
16196
  }
@@ -16806,7 +16623,7 @@ var Textarea = defineComponent({
16806
16623
  default: void 0
16807
16624
  }
16808
16625
  },
16809
- setup(props, { attrs }) {
16626
+ setup(props, { attrs, slots }) {
16810
16627
  return () => {
16811
16628
  const shouldAutosize = props.autosize;
16812
16629
  const autosizeProps = shouldAutosize ? {
@@ -16823,7 +16640,7 @@ var Textarea = defineComponent({
16823
16640
  __bottomSectionProps: props.bottomSectionProps,
16824
16641
  style: [{ "--input-resize": props.resize }, attrs.style],
16825
16642
  ...autosizeProps
16826
- });
16643
+ }, slots);
16827
16644
  };
16828
16645
  }
16829
16646
  });
@@ -16902,7 +16719,7 @@ var JsonInput = defineComponent({
16902
16719
  default: void 0
16903
16720
  }
16904
16721
  },
16905
- setup(props, { attrs }) {
16722
+ setup(props, { attrs, slots }) {
16906
16723
  const [value, setValue] = useUncontrolled({
16907
16724
  value: () => props.value,
16908
16725
  defaultValue: props.defaultValue,
@@ -16933,7 +16750,7 @@ var JsonInput = defineComponent({
16933
16750
  if (props.formatOnBlur && !props.readOnly && isValid && target.value.trim() !== "") setValue(props.serialize(props.deserialize(target.value), null, props.indentSpaces));
16934
16751
  valid.value = isValid;
16935
16752
  }
16936
- });
16753
+ }, slots);
16937
16754
  }
16938
16755
  });
16939
16756
  Object.assign(JsonInput, { classes: InputBase.classes });
@@ -16942,13 +16759,13 @@ Object.assign(JsonInput, { classes: InputBase.classes });
16942
16759
  var TextInput = defineComponent({
16943
16760
  name: "TextInput",
16944
16761
  inheritAttrs: false,
16945
- setup(_, { attrs }) {
16762
+ setup(_, { attrs, slots }) {
16946
16763
  return () => h(InputBase, {
16947
16764
  ...attrs,
16948
16765
  component: "input",
16949
16766
  __staticSelector: "TextInput",
16950
16767
  __stylesApiProps: attrs
16951
- });
16768
+ }, slots);
16952
16769
  }
16953
16770
  });
16954
16771
  Object.assign(TextInput, { classes: InputBase.classes });
@@ -17034,6 +16851,7 @@ var mergedClasses$3 = {
17034
16851
  var PasswordInput = defineComponent({
17035
16852
  name: "PasswordInput",
17036
16853
  inheritAttrs: false,
16854
+ slots: Object,
17037
16855
  props: {
17038
16856
  visibilityToggleIcon: {
17039
16857
  type: [Object, Function],
@@ -17056,31 +16874,15 @@ var PasswordInput = defineComponent({
17056
16874
  default: void 0
17057
16875
  },
17058
16876
  label: {
17059
- type: [
17060
- String,
17061
- Number,
17062
- Object,
17063
- Function
17064
- ],
16877
+ type: null,
17065
16878
  default: void 0
17066
16879
  },
17067
16880
  description: {
17068
- type: [
17069
- String,
17070
- Number,
17071
- Object,
17072
- Function
17073
- ],
16881
+ type: null,
17074
16882
  default: void 0
17075
16883
  },
17076
16884
  error: {
17077
- type: [
17078
- String,
17079
- Number,
17080
- Object,
17081
- Function,
17082
- Boolean
17083
- ],
16885
+ type: null,
17084
16886
  default: void 0
17085
16887
  },
17086
16888
  required: {
@@ -17136,12 +16938,7 @@ var PasswordInput = defineComponent({
17136
16938
  default: false
17137
16939
  },
17138
16940
  leftSection: {
17139
- type: [
17140
- String,
17141
- Number,
17142
- Object,
17143
- Function
17144
- ],
16941
+ type: null,
17145
16942
  default: void 0
17146
16943
  },
17147
16944
  leftSectionWidth: {
@@ -17157,13 +16954,7 @@ var PasswordInput = defineComponent({
17157
16954
  default: void 0
17158
16955
  },
17159
16956
  rightSection: {
17160
- type: [
17161
- String,
17162
- Number,
17163
- Object,
17164
- Function,
17165
- null
17166
- ],
16957
+ type: null,
17167
16958
  default: void 0
17168
16959
  },
17169
16960
  rightSectionWidth: {
@@ -17199,7 +16990,7 @@ var PasswordInput = defineComponent({
17199
16990
  default: false
17200
16991
  }
17201
16992
  },
17202
- setup(props, { attrs }) {
16993
+ setup(props, { attrs, slots }) {
17203
16994
  const uuid = useId(props.id);
17204
16995
  const fallbackId = ref(`password-input-${Math.random().toString(36).slice(2)}`);
17205
16996
  const [visible, setVisible] = useUncontrolled({
@@ -17225,8 +17016,8 @@ var PasswordInput = defineComponent({
17225
17016
  const id = uuid.value || fallbackId.value;
17226
17017
  const errorId = props.errorProps?.id || `${id}-error`;
17227
17018
  const descriptionId = props.descriptionProps?.id || `${id}-description`;
17228
- const hasError = Boolean(props.error) && typeof props.error !== "boolean";
17229
- const hasDescription = Boolean(props.description);
17019
+ const hasError = props.error !== void 0 ? Boolean(props.error) && typeof props.error !== "boolean" : Boolean(slots.error);
17020
+ const hasDescription = props.description !== void 0 ? props.description !== null : Boolean(slots.description);
17230
17021
  const describedBy = `${hasError ? errorId : ""} ${hasDescription ? descriptionId : ""}`.trim() || void 0;
17231
17022
  const VisibilityToggleIcon = props.visibilityToggleIcon || PasswordToggleIcon;
17232
17023
  const visibilityToggleButton = h(ActionIcon, {
@@ -17290,43 +17081,52 @@ var PasswordInput = defineComponent({
17290
17081
  className: attrs.class,
17291
17082
  style: attrs.style
17292
17083
  })
17293
- }, () => h(Input, {
17294
- component: "div",
17295
- error: props.error,
17296
- leftSection: props.leftSection,
17297
- size: props.size,
17298
- classNames: {
17299
- ...props.classNames,
17300
- input: [PasswordInput_module_default.input, props.classNames?.input]
17301
- },
17302
- styles: props.styles,
17303
- radius: props.radius,
17304
- disabled: props.disabled,
17305
- __staticSelector: "PasswordInput",
17306
- __stylesApiProps: props,
17307
- rightSectionWidth: props.rightSectionWidth,
17308
- rightSection: props.rightSection ?? visibilityToggleButton,
17309
- variant: props.variant,
17310
- unstyled: props.unstyled,
17311
- leftSectionWidth: props.leftSectionWidth,
17312
- rightSectionPointerEvents: props.rightSectionPointerEvents || "all",
17313
- rightSectionProps: props.rightSectionProps,
17314
- leftSectionProps: props.leftSectionProps,
17315
- leftSectionPointerEvents: props.leftSectionPointerEvents,
17316
- withAria: false,
17317
- withErrorStyles: props.withErrorStyles
17318
- }, () => h("input", {
17319
- ...attrs,
17320
- ...getStyles("innerInput"),
17321
- required: props.required,
17322
- "data-invalid": props.error ? true : void 0,
17323
- "data-with-left-section": props.leftSection ? true : void 0,
17324
- disabled: props.disabled,
17325
- id,
17326
- "aria-describedby": describedBy,
17327
- autocomplete: attrs.autocomplete || "off",
17328
- type: visible.value ? "text" : "password"
17329
- })));
17084
+ }, {
17085
+ label: slots.label,
17086
+ description: slots.description,
17087
+ error: slots.error,
17088
+ default: () => h(Input, {
17089
+ component: "div",
17090
+ error: props.error ?? (slots.error ? true : void 0),
17091
+ leftSection: props.leftSection,
17092
+ size: props.size,
17093
+ classNames: {
17094
+ ...props.classNames,
17095
+ input: [PasswordInput_module_default.input, props.classNames?.input]
17096
+ },
17097
+ styles: props.styles,
17098
+ radius: props.radius,
17099
+ disabled: props.disabled,
17100
+ __staticSelector: "PasswordInput",
17101
+ __stylesApiProps: props,
17102
+ rightSectionWidth: props.rightSectionWidth,
17103
+ rightSection: props.rightSection !== void 0 || slots.rightSection ? props.rightSection : visibilityToggleButton,
17104
+ variant: props.variant,
17105
+ unstyled: props.unstyled,
17106
+ leftSectionWidth: props.leftSectionWidth,
17107
+ rightSectionPointerEvents: props.rightSectionPointerEvents || "all",
17108
+ rightSectionProps: props.rightSectionProps,
17109
+ leftSectionProps: props.leftSectionProps,
17110
+ leftSectionPointerEvents: props.leftSectionPointerEvents,
17111
+ withAria: false,
17112
+ withErrorStyles: props.withErrorStyles
17113
+ }, {
17114
+ default: () => h("input", {
17115
+ ...attrs,
17116
+ ...getStyles("innerInput"),
17117
+ required: props.required,
17118
+ "data-invalid": props.error || slots.error ? true : void 0,
17119
+ "data-with-left-section": props.leftSection !== void 0 || slots.leftSection ? true : void 0,
17120
+ disabled: props.disabled,
17121
+ id,
17122
+ "aria-describedby": describedBy,
17123
+ autocomplete: attrs.autocomplete || "off",
17124
+ type: visible.value ? "text" : "password"
17125
+ }),
17126
+ leftSection: slots.leftSection,
17127
+ rightSection: slots.rightSection
17128
+ })
17129
+ });
17330
17130
  };
17331
17131
  }
17332
17132
  });
@@ -17565,6 +17365,7 @@ function useCheckboxGroupContext() {
17565
17365
  var CheckboxGroup = defineComponent({
17566
17366
  name: "CheckboxGroup",
17567
17367
  inheritAttrs: false,
17368
+ slots: Object,
17568
17369
  props: {
17569
17370
  value: {
17570
17371
  type: Array,
@@ -17611,31 +17412,15 @@ var CheckboxGroup = defineComponent({
17611
17412
  default: false
17612
17413
  },
17613
17414
  label: {
17614
- type: [
17615
- String,
17616
- Number,
17617
- Object,
17618
- Function
17619
- ],
17415
+ type: null,
17620
17416
  default: void 0
17621
17417
  },
17622
17418
  description: {
17623
- type: [
17624
- String,
17625
- Number,
17626
- Object,
17627
- Function
17628
- ],
17419
+ type: null,
17629
17420
  default: void 0
17630
17421
  },
17631
17422
  error: {
17632
- type: [
17633
- String,
17634
- Number,
17635
- Object,
17636
- Function,
17637
- Boolean
17638
- ],
17423
+ type: null,
17639
17424
  default: void 0
17640
17425
  },
17641
17426
  classNames: {
@@ -17692,9 +17477,9 @@ var CheckboxGroup = defineComponent({
17692
17477
  size: props.size,
17693
17478
  ...props.wrapperProps,
17694
17479
  ...attrs,
17695
- label: props.label,
17696
- description: props.description,
17697
- error: props.error,
17480
+ label: resolveNode(props.label, slots.label),
17481
+ description: resolveNode(props.description, slots.description),
17482
+ error: resolveNode(props.error, slots.error),
17698
17483
  classNames: props.classNames,
17699
17484
  styles: props.styles,
17700
17485
  vars: props.vars,
@@ -17836,6 +17621,7 @@ var varsResolver$24 = createVarsResolver((theme, { radius, color, size, iconColo
17836
17621
  var CheckboxIndicator = withBoxProps(defineComponent({
17837
17622
  name: "CheckboxIndicator",
17838
17623
  inheritAttrs: false,
17624
+ slots: Object,
17839
17625
  props: {
17840
17626
  color: {
17841
17627
  type: String,
@@ -17898,7 +17684,7 @@ var CheckboxIndicator = withBoxProps(defineComponent({
17898
17684
  default: false
17899
17685
  }
17900
17686
  },
17901
- setup(props, { attrs }) {
17687
+ setup(props, { attrs, slots }) {
17902
17688
  const cardContext = useCheckboxCardContext();
17903
17689
  const getStyles = useStyles({
17904
17690
  name: "CheckboxIndicator",
@@ -17913,6 +17699,7 @@ var CheckboxIndicator = withBoxProps(defineComponent({
17913
17699
  varsResolver: varsResolver$24
17914
17700
  });
17915
17701
  return () => {
17702
+ const iconStyles = getStyles("icon");
17916
17703
  const Icon = props.icon || CheckboxIcon;
17917
17704
  const checked = typeof props.checked === "boolean" || props.indeterminate ? props.checked || props.indeterminate : cardContext?.checked || false;
17918
17705
  return h(Box, {
@@ -17927,9 +17714,12 @@ var CheckboxIndicator = withBoxProps(defineComponent({
17927
17714
  indeterminate: props.indeterminate,
17928
17715
  disabled: props.disabled
17929
17716
  }, props.mod]
17930
- }, () => h(Icon, {
17717
+ }, () => slots.icon ? slots.icon({
17931
17718
  indeterminate: props.indeterminate,
17932
- ...getStyles("icon")
17719
+ ...iconStyles
17720
+ }) : h(Icon, {
17721
+ indeterminate: props.indeterminate,
17722
+ ...iconStyles
17933
17723
  }));
17934
17724
  };
17935
17725
  }
@@ -17967,18 +17757,14 @@ function callHandler$6(handler, event) {
17967
17757
  var CheckboxBase = defineComponent({
17968
17758
  name: "Checkbox",
17969
17759
  inheritAttrs: false,
17760
+ slots: Object,
17970
17761
  props: {
17971
17762
  id: {
17972
17763
  type: String,
17973
17764
  default: void 0
17974
17765
  },
17975
17766
  label: {
17976
- type: [
17977
- String,
17978
- Number,
17979
- Object,
17980
- Function
17981
- ],
17767
+ type: null,
17982
17768
  default: void 0
17983
17769
  },
17984
17770
  color: {
@@ -18002,22 +17788,11 @@ var CheckboxBase = defineComponent({
18002
17788
  default: "right"
18003
17789
  },
18004
17790
  description: {
18005
- type: [
18006
- String,
18007
- Number,
18008
- Object,
18009
- Function
18010
- ],
17791
+ type: null,
18011
17792
  default: void 0
18012
17793
  },
18013
17794
  error: {
18014
- type: [
18015
- String,
18016
- Number,
18017
- Object,
18018
- Function,
18019
- Boolean
18020
- ],
17795
+ type: null,
18021
17796
  default: void 0
18022
17797
  },
18023
17798
  indeterminate: {
@@ -18081,7 +17856,7 @@ var CheckboxBase = defineComponent({
18081
17856
  default: false
18082
17857
  }
18083
17858
  },
18084
- setup(props, { attrs }) {
17859
+ setup(props, { attrs, slots }) {
18085
17860
  const uuid = useId(props.id);
18086
17861
  const groupContext = useCheckboxGroupContext();
18087
17862
  const getStyles = useStyles({
@@ -18098,11 +17873,19 @@ var CheckboxBase = defineComponent({
18098
17873
  });
18099
17874
  return () => {
18100
17875
  const id = uuid.value || props.id || "";
17876
+ const label = resolveNode(props.label, slots.label);
17877
+ const description = resolveNode(props.description, slots.description);
17878
+ const error = resolveNode(props.error, slots.error);
18101
17879
  const describedBy = [
18102
- props.description ? `${id}-description` : void 0,
18103
- props.error && typeof props.error !== "boolean" ? `${id}-error` : void 0,
17880
+ description ? `${id}-description` : void 0,
17881
+ error && typeof error !== "boolean" ? `${id}-error` : void 0,
18104
17882
  attrs["aria-describedby"]
18105
17883
  ].filter(Boolean).join(" ") || void 0;
17884
+ const iconStyles = getStyles("icon");
17885
+ const iconSlotProps = {
17886
+ indeterminate: props.indeterminate,
17887
+ ...iconStyles
17888
+ };
18106
17889
  const Icon = props.icon || CheckboxIcon;
18107
17890
  const value = String(attrs.value ?? "");
18108
17891
  const checked = groupContext ? groupContext.value.includes(value) : props.checked;
@@ -18119,9 +17902,9 @@ var CheckboxBase = defineComponent({
18119
17902
  id,
18120
17903
  size,
18121
17904
  labelPosition: props.labelPosition,
18122
- label: props.label,
18123
- description: props.description,
18124
- error: props.error,
17905
+ label,
17906
+ description,
17907
+ error,
18125
17908
  disabled,
18126
17909
  classNames: props.classNames,
18127
17910
  styles: props.styles,
@@ -18145,7 +17928,7 @@ var CheckboxBase = defineComponent({
18145
17928
  "aria-describedby": describedBy,
18146
17929
  "data-indeterminate": props.indeterminate || void 0,
18147
17930
  mod: {
18148
- error: Boolean(props.error),
17931
+ error: Boolean(error),
18149
17932
  withErrorStyles: props.withErrorStyles
18150
17933
  },
18151
17934
  variant: props.variant,
@@ -18157,9 +17940,9 @@ var CheckboxBase = defineComponent({
18157
17940
  callHandler$6(attrs.onChange, event);
18158
17941
  groupContext?.onChange(event);
18159
17942
  }
18160
- }), h(Icon, {
17943
+ }), slots.icon ? slots.icon(iconSlotProps) : h(Icon, {
18161
17944
  indeterminate: props.indeterminate,
18162
- ...getStyles("icon")
17945
+ ...iconStyles
18163
17946
  })]));
18164
17947
  };
18165
17948
  }
@@ -18751,6 +18534,7 @@ Object.assign(PillsInputField, { classes: PillsInput_module_default });
18751
18534
  var PillsInputBase = defineComponent({
18752
18535
  name: "PillsInput",
18753
18536
  inheritAttrs: false,
18537
+ slots: Object,
18754
18538
  props: {
18755
18539
  size: {
18756
18540
  type: [String, Number],
@@ -18761,13 +18545,7 @@ var PillsInputBase = defineComponent({
18761
18545
  default: false
18762
18546
  },
18763
18547
  error: {
18764
- type: [
18765
- String,
18766
- Number,
18767
- Object,
18768
- Function,
18769
- Boolean
18770
- ],
18548
+ type: null,
18771
18549
  default: void 0
18772
18550
  },
18773
18551
  variant: {
@@ -18783,21 +18561,11 @@ var PillsInputBase = defineComponent({
18783
18561
  default: void 0
18784
18562
  },
18785
18563
  label: {
18786
- type: [
18787
- String,
18788
- Number,
18789
- Object,
18790
- Function
18791
- ],
18792
- default: void 0
18793
- },
18794
- description: {
18795
- type: [
18796
- String,
18797
- Number,
18798
- Object,
18799
- Function
18800
- ],
18564
+ type: null,
18565
+ default: void 0
18566
+ },
18567
+ description: {
18568
+ type: null,
18801
18569
  default: void 0
18802
18570
  },
18803
18571
  required: {
@@ -18894,7 +18662,14 @@ var PillsInputBase = defineComponent({
18894
18662
  else handler?.(event);
18895
18663
  }
18896
18664
  }
18897
- }, () => slots.default?.());
18665
+ }, {
18666
+ default: () => slots.default?.(),
18667
+ label: slots.label,
18668
+ description: slots.description,
18669
+ error: slots.error,
18670
+ leftSection: slots.leftSection,
18671
+ rightSection: slots.rightSection
18672
+ });
18898
18673
  }
18899
18674
  });
18900
18675
  var PillsInput = Object.assign(PillsInputBase, {
@@ -18910,6 +18685,7 @@ function useRadioGroupContext() {
18910
18685
  var RadioGroup = defineComponent({
18911
18686
  name: "RadioGroup",
18912
18687
  inheritAttrs: false,
18688
+ slots: Object,
18913
18689
  props: {
18914
18690
  value: {
18915
18691
  type: String,
@@ -18944,31 +18720,15 @@ var RadioGroup = defineComponent({
18944
18720
  default: false
18945
18721
  },
18946
18722
  label: {
18947
- type: [
18948
- String,
18949
- Number,
18950
- Object,
18951
- Function
18952
- ],
18723
+ type: null,
18953
18724
  default: void 0
18954
18725
  },
18955
18726
  description: {
18956
- type: [
18957
- String,
18958
- Number,
18959
- Object,
18960
- Function
18961
- ],
18727
+ type: null,
18962
18728
  default: void 0
18963
18729
  },
18964
18730
  error: {
18965
- type: [
18966
- String,
18967
- Number,
18968
- Object,
18969
- Function,
18970
- Boolean
18971
- ],
18731
+ type: null,
18972
18732
  default: void 0
18973
18733
  },
18974
18734
  classNames: {
@@ -19019,9 +18779,9 @@ var RadioGroup = defineComponent({
19019
18779
  size: props.size,
19020
18780
  ...props.wrapperProps,
19021
18781
  ...attrs,
19022
- label: props.label,
19023
- description: props.description,
19024
- error: props.error,
18782
+ label: resolveNode(props.label, slots.label),
18783
+ description: resolveNode(props.description, slots.description),
18784
+ error: resolveNode(props.error, slots.error),
19025
18785
  classNames: props.classNames,
19026
18786
  styles: props.styles,
19027
18787
  vars: props.vars,
@@ -19177,6 +18937,7 @@ var varsResolver$18 = createVarsResolver((theme, { radius, color, size, iconColo
19177
18937
  var RadioIndicator = withBoxProps(defineComponent({
19178
18938
  name: "RadioIndicator",
19179
18939
  inheritAttrs: false,
18940
+ slots: Object,
19180
18941
  props: {
19181
18942
  color: {
19182
18943
  type: String,
@@ -19235,7 +18996,7 @@ var RadioIndicator = withBoxProps(defineComponent({
19235
18996
  default: false
19236
18997
  }
19237
18998
  },
19238
- setup(props, { attrs }) {
18999
+ setup(props, { attrs, slots }) {
19239
19000
  const cardContext = useRadioCardContext();
19240
19001
  const getStyles = useStyles({
19241
19002
  name: "RadioIndicator",
@@ -19250,6 +19011,7 @@ var RadioIndicator = withBoxProps(defineComponent({
19250
19011
  varsResolver: varsResolver$18
19251
19012
  });
19252
19013
  return () => {
19014
+ const iconStyles = getStyles("icon");
19253
19015
  const Icon = props.icon || RadioIcon;
19254
19016
  const checked = typeof props.checked === "boolean" ? props.checked : cardContext?.checked || false;
19255
19017
  return h(Box, {
@@ -19263,7 +19025,7 @@ var RadioIndicator = withBoxProps(defineComponent({
19263
19025
  checked,
19264
19026
  disabled: props.disabled
19265
19027
  }, props.mod]
19266
- }, () => h(Icon, getStyles("icon")));
19028
+ }, () => slots.icon ? slots.icon(iconStyles) : h(Icon, iconStyles));
19267
19029
  };
19268
19030
  }
19269
19031
  }));
@@ -19301,18 +19063,14 @@ function callHandler$2(handler, event) {
19301
19063
  var RadioBase = defineComponent({
19302
19064
  name: "Radio",
19303
19065
  inheritAttrs: false,
19066
+ slots: Object,
19304
19067
  props: {
19305
19068
  id: {
19306
19069
  type: String,
19307
19070
  default: void 0
19308
19071
  },
19309
19072
  label: {
19310
- type: [
19311
- String,
19312
- Number,
19313
- Object,
19314
- Function
19315
- ],
19073
+ type: null,
19316
19074
  default: void 0
19317
19075
  },
19318
19076
  color: {
@@ -19336,22 +19094,11 @@ var RadioBase = defineComponent({
19336
19094
  default: "right"
19337
19095
  },
19338
19096
  description: {
19339
- type: [
19340
- String,
19341
- Number,
19342
- Object,
19343
- Function
19344
- ],
19097
+ type: null,
19345
19098
  default: void 0
19346
19099
  },
19347
19100
  error: {
19348
- type: [
19349
- String,
19350
- Number,
19351
- Object,
19352
- Function,
19353
- Boolean
19354
- ],
19101
+ type: null,
19355
19102
  default: void 0
19356
19103
  },
19357
19104
  radius: {
@@ -19407,7 +19154,7 @@ var RadioBase = defineComponent({
19407
19154
  default: false
19408
19155
  }
19409
19156
  },
19410
- setup(props, { attrs }) {
19157
+ setup(props, { attrs, slots }) {
19411
19158
  const uuid = useId(props.id);
19412
19159
  const groupContext = useRadioGroupContext();
19413
19160
  const getStyles = useStyles({
@@ -19424,11 +19171,15 @@ var RadioBase = defineComponent({
19424
19171
  });
19425
19172
  return () => {
19426
19173
  const id = uuid.value || props.id || "";
19174
+ const label = resolveNode(props.label, slots.label);
19175
+ const description = resolveNode(props.description, slots.description);
19176
+ const error = resolveNode(props.error, slots.error);
19427
19177
  const describedBy = [
19428
- props.description ? `${id}-description` : void 0,
19429
- props.error && typeof props.error !== "boolean" ? `${id}-error` : void 0,
19178
+ description ? `${id}-description` : void 0,
19179
+ error && typeof error !== "boolean" ? `${id}-error` : void 0,
19430
19180
  attrs["aria-describedby"]
19431
19181
  ].filter(Boolean).join(" ") || void 0;
19182
+ const iconStyles = getStyles("icon");
19432
19183
  const Icon = props.icon || RadioIcon;
19433
19184
  const value = String(attrs.value ?? "");
19434
19185
  const checked = groupContext ? groupContext.value === value : props.checked;
@@ -19446,9 +19197,9 @@ var RadioBase = defineComponent({
19446
19197
  id,
19447
19198
  size,
19448
19199
  labelPosition: props.labelPosition,
19449
- label: props.label,
19450
- description: props.description,
19451
- error: props.error,
19200
+ label,
19201
+ description,
19202
+ error,
19452
19203
  disabled,
19453
19204
  classNames: props.classNames,
19454
19205
  styles: props.styles,
@@ -19471,7 +19222,7 @@ var RadioBase = defineComponent({
19471
19222
  type: "radio",
19472
19223
  "aria-describedby": describedBy,
19473
19224
  mod: {
19474
- error: Boolean(props.error),
19225
+ error: Boolean(error),
19475
19226
  withErrorStyles: props.withErrorStyles
19476
19227
  },
19477
19228
  variant: props.variant,
@@ -19479,7 +19230,7 @@ var RadioBase = defineComponent({
19479
19230
  callHandler$2(attrs.onChange, event);
19480
19231
  groupContext?.onChange(event);
19481
19232
  }
19482
- }), h(Icon, getStyles("icon"))]));
19233
+ }), slots.icon ? slots.icon(iconStyles) : h(Icon, iconStyles)]));
19483
19234
  };
19484
19235
  }
19485
19236
  });
@@ -19499,6 +19250,7 @@ function useSwitchGroupContext() {
19499
19250
  var SwitchGroup = defineComponent({
19500
19251
  name: "SwitchGroup",
19501
19252
  inheritAttrs: false,
19253
+ slots: Object,
19502
19254
  props: {
19503
19255
  value: {
19504
19256
  type: Array,
@@ -19545,31 +19297,15 @@ var SwitchGroup = defineComponent({
19545
19297
  default: false
19546
19298
  },
19547
19299
  label: {
19548
- type: [
19549
- String,
19550
- Number,
19551
- Object,
19552
- Function
19553
- ],
19300
+ type: null,
19554
19301
  default: void 0
19555
19302
  },
19556
19303
  description: {
19557
- type: [
19558
- String,
19559
- Number,
19560
- Object,
19561
- Function
19562
- ],
19304
+ type: null,
19563
19305
  default: void 0
19564
19306
  },
19565
19307
  error: {
19566
- type: [
19567
- String,
19568
- Number,
19569
- Object,
19570
- Function,
19571
- Boolean
19572
- ],
19308
+ type: null,
19573
19309
  default: void 0
19574
19310
  },
19575
19311
  classNames: {
@@ -19624,9 +19360,9 @@ var SwitchGroup = defineComponent({
19624
19360
  size: props.size,
19625
19361
  ...props.wrapperProps,
19626
19362
  ...attrs,
19627
- label: props.label,
19628
- description: props.description,
19629
- error: props.error,
19363
+ label: resolveNode(props.label, slots.label),
19364
+ description: resolveNode(props.description, slots.description),
19365
+ error: resolveNode(props.error, slots.error),
19630
19366
  classNames: props.classNames,
19631
19367
  styles: props.styles,
19632
19368
  vars: props.vars,
@@ -19664,9 +19400,6 @@ var varsResolver$16 = createVarsResolver((theme, { radius, color, size }) => ({
19664
19400
  "--switch-track-label-padding": getSize(size, "switch-track-label-padding"),
19665
19401
  "--switch-color": color ? getThemeColor(color, theme) : void 0
19666
19402
  } }));
19667
- function renderContent(content) {
19668
- return typeof content === "function" ? content() : content;
19669
- }
19670
19403
  function callHandler$1(handler, event) {
19671
19404
  if (Array.isArray(handler)) handler.forEach((item) => item?.(event));
19672
19405
  else handler?.(event);
@@ -19674,36 +19407,22 @@ function callHandler$1(handler, event) {
19674
19407
  var SwitchBase = defineComponent({
19675
19408
  name: "Switch",
19676
19409
  inheritAttrs: false,
19410
+ slots: Object,
19677
19411
  props: {
19678
19412
  id: {
19679
19413
  type: String,
19680
19414
  default: void 0
19681
19415
  },
19682
19416
  label: {
19683
- type: [
19684
- String,
19685
- Number,
19686
- Object,
19687
- Function
19688
- ],
19417
+ type: null,
19689
19418
  default: void 0
19690
19419
  },
19691
19420
  offLabel: {
19692
- type: [
19693
- String,
19694
- Number,
19695
- Object,
19696
- Function
19697
- ],
19421
+ type: null,
19698
19422
  default: void 0
19699
19423
  },
19700
19424
  onLabel: {
19701
- type: [
19702
- String,
19703
- Number,
19704
- Object,
19705
- Function
19706
- ],
19425
+ type: null,
19707
19426
  default: void 0
19708
19427
  },
19709
19428
  color: {
@@ -19723,12 +19442,7 @@ var SwitchBase = defineComponent({
19723
19442
  default: void 0
19724
19443
  },
19725
19444
  thumbIcon: {
19726
- type: [
19727
- String,
19728
- Number,
19729
- Object,
19730
- Function
19731
- ],
19445
+ type: null,
19732
19446
  default: void 0
19733
19447
  },
19734
19448
  labelPosition: {
@@ -19736,22 +19450,11 @@ var SwitchBase = defineComponent({
19736
19450
  default: "right"
19737
19451
  },
19738
19452
  description: {
19739
- type: [
19740
- String,
19741
- Number,
19742
- Object,
19743
- Function
19744
- ],
19453
+ type: null,
19745
19454
  default: void 0
19746
19455
  },
19747
19456
  error: {
19748
- type: [
19749
- String,
19750
- Number,
19751
- Object,
19752
- Function,
19753
- Boolean
19754
- ],
19457
+ type: null,
19755
19458
  default: void 0
19756
19459
  },
19757
19460
  rootRef: {
@@ -19803,7 +19506,7 @@ var SwitchBase = defineComponent({
19803
19506
  default: false
19804
19507
  }
19805
19508
  },
19806
- setup(props, { attrs }) {
19509
+ setup(props, { attrs, slots }) {
19807
19510
  const uuid = useId(props.id);
19808
19511
  const groupContext = useSwitchGroupContext();
19809
19512
  const internalChecked = ref(false);
@@ -19829,9 +19532,15 @@ var SwitchBase = defineComponent({
19829
19532
  });
19830
19533
  return () => {
19831
19534
  const id = uuid.value || props.id || "";
19535
+ const label = resolveNode(props.label, slots.label);
19536
+ const description = resolveNode(props.description, slots.description);
19537
+ const error = resolveNode(props.error, slots.error);
19538
+ const thumbIcon = resolveNode(props.thumbIcon, slots.thumbIcon);
19539
+ const onLabel = resolveNode(props.onLabel, slots.onLabel);
19540
+ const offLabel = resolveNode(props.offLabel, slots.offLabel);
19832
19541
  const describedBy = [
19833
- props.description ? `${id}-description` : void 0,
19834
- props.error && typeof props.error !== "boolean" ? `${id}-error` : void 0,
19542
+ description ? `${id}-description` : void 0,
19543
+ error && typeof error !== "boolean" ? `${id}-error` : void 0,
19835
19544
  attrs["aria-describedby"]
19836
19545
  ].filter(Boolean).join(" ") || void 0;
19837
19546
  const value = String(attrs.value ?? "");
@@ -19849,9 +19558,9 @@ var SwitchBase = defineComponent({
19849
19558
  id,
19850
19559
  size,
19851
19560
  labelPosition: props.labelPosition,
19852
- label: props.label,
19853
- description: props.description,
19854
- error: props.error,
19561
+ label,
19562
+ description,
19563
+ error,
19855
19564
  disabled,
19856
19565
  bodyElement: "label",
19857
19566
  labelElement: "span",
@@ -19881,16 +19590,16 @@ var SwitchBase = defineComponent({
19881
19590
  component: "span",
19882
19591
  "aria-hidden": "true",
19883
19592
  mod: {
19884
- error: Boolean(props.error),
19593
+ error: Boolean(error),
19885
19594
  labelPosition: props.labelPosition,
19886
- withoutLabels: !props.onLabel && !props.offLabel
19595
+ withoutLabels: !onLabel && !offLabel
19887
19596
  },
19888
19597
  ...getStyles("track")
19889
19598
  }, () => [h(Box, {
19890
19599
  component: "span",
19891
- mod: { withThumbIndicator: props.withThumbIndicator && !props.thumbIcon },
19600
+ mod: { withThumbIndicator: props.withThumbIndicator && !thumbIcon },
19892
19601
  ...getStyles("thumb")
19893
- }, () => renderContent(props.thumbIcon)), h("span", getStyles("trackLabel"), renderContent(currentChecked ? props.onLabel : props.offLabel))])]);
19602
+ }, () => thumbIcon), h("span", getStyles("trackLabel"), currentChecked ? onLabel : offLabel)])]);
19894
19603
  };
19895
19604
  }
19896
19605
  });
@@ -20143,6 +19852,11 @@ function renderFragment(fragment, step = 0) {
20143
19852
  if (typeof fragment === "function") return fragment({ step });
20144
19853
  return isVNode(fragment) ? fragment : fragment;
20145
19854
  }
19855
+ /** Resolve a Stepper fragment, honouring prop-over-slot precedence and passing `{ step }`. */
19856
+ function resolveFragment(prop, slot, step) {
19857
+ if (prop !== void 0) return renderFragment(prop, step);
19858
+ return slot ? slot({ step }) : void 0;
19859
+ }
20146
19860
  var defaultProps$6 = {
20147
19861
  withIcon: true,
20148
19862
  allowStepClick: true,
@@ -20151,6 +19865,7 @@ var defaultProps$6 = {
20151
19865
  var StepperStep = withBoxProps(defineComponent({
20152
19866
  name: "StepperStep",
20153
19867
  inheritAttrs: false,
19868
+ slots: Object,
20154
19869
  props: {
20155
19870
  step: {
20156
19871
  type: Number,
@@ -20266,7 +19981,7 @@ var StepperStep = withBoxProps(defineComponent({
20266
19981
  default: void 0
20267
19982
  }
20268
19983
  },
20269
- setup(rawProps, { attrs }) {
19984
+ setup(rawProps, { attrs, slots }) {
20270
19985
  const props = useProps("StepperStep", defaultProps$6, rawProps);
20271
19986
  const ctx = useStepperContext();
20272
19987
  const theme = useMantineTheme();
@@ -20275,17 +19990,24 @@ var StepperStep = withBoxProps(defineComponent({
20275
19990
  "data-progress": props.state === "stepProgress" || void 0,
20276
19991
  "data-completed": props.state === "stepCompleted" || void 0
20277
19992
  };
19993
+ const step = props.step ?? 0;
20278
19994
  const iconPosition = props.iconPosition ?? ctx.iconPosition;
20279
19995
  const stylesApi = {
20280
19996
  classNames: props.classNames,
20281
19997
  styles: props.styles,
20282
19998
  props
20283
19999
  };
20284
- const currentIcon = props.state === "stepProgress" ? props.progressIcon ?? props.icon : props.icon;
20285
- const completed = props.completedIcon ? renderFragment(props.completedIcon, props.step) : h(CheckIcon, {
20000
+ const iconNode = resolveFragment(props.icon, slots.icon, step);
20001
+ const progressIconNode = props.progressIcon !== void 0 || slots.progressIcon ? resolveFragment(props.progressIcon, slots.progressIcon, step) : void 0;
20002
+ const currentIcon = props.state === "stepProgress" ? progressIconNode ?? iconNode : iconNode;
20003
+ const completed = props.completedIcon !== void 0 || !!slots.completedIcon ? resolveFragment(props.completedIcon, slots.completedIcon, step) : h(CheckIcon, {
20286
20004
  width: "60%",
20287
20005
  height: "60%"
20288
20006
  });
20007
+ const labelPresent = props.label !== void 0 || !!slots.label;
20008
+ const descriptionPresent = props.description !== void 0 || !!slots.description;
20009
+ const labelNode = resolveFragment(props.label, slots.label, step);
20010
+ const descriptionNode = resolveFragment(props.description, slots.description, step);
20289
20011
  const stepStyles = ctx.getStyles("step", {
20290
20012
  className: [props.className ?? attrs.class, Stepper_module_default[`step--${ctx.orientation}`]],
20291
20013
  style: props.style ?? attrs.style,
@@ -20324,14 +20046,14 @@ var StepperStep = withBoxProps(defineComponent({
20324
20046
  size: "calc(var(--stepper-icon-size) / 2)",
20325
20047
  color: props.color,
20326
20048
  ...ctx.getStyles("stepLoader", stylesApi)
20327
- }) : renderFragment(currentIcon, props.step)) : null]), props.orientation === "vertical" ? h("span", {
20049
+ }) : currentIcon) : null]), props.orientation === "vertical" ? h("span", {
20328
20050
  ...ctx.getStyles("verticalSeparator", stylesApi),
20329
20051
  "data-active": props.state === "stepCompleted" || void 0
20330
- }) : null]) : null, props.label !== void 0 || props.description !== void 0 ? h("span", {
20052
+ }) : null]) : null, labelPresent || descriptionPresent ? h("span", {
20331
20053
  ...ctx.getStyles("stepBody", stylesApi),
20332
20054
  "data-orientation": ctx.orientation,
20333
20055
  "data-icon-position": iconPosition
20334
- }, [props.label !== void 0 ? h("span", ctx.getStyles("stepLabel", stylesApi), renderFragment(props.label, props.step)) : null, props.description !== void 0 ? h("span", ctx.getStyles("stepDescription", stylesApi), renderFragment(props.description, props.step)) : null]) : null]);
20056
+ }, [labelPresent ? h("span", ctx.getStyles("stepLabel", stylesApi), labelNode) : null, descriptionPresent ? h("span", ctx.getStyles("stepDescription", stylesApi), descriptionNode) : null]) : null]);
20335
20057
  };
20336
20058
  }
20337
20059
  }));
@@ -20367,6 +20089,7 @@ function flattenChildren$1(children) {
20367
20089
  var StepperBase = defineComponent({
20368
20090
  name: "Stepper",
20369
20091
  inheritAttrs: false,
20092
+ slots: Object,
20370
20093
  props: {
20371
20094
  active: {
20372
20095
  type: Number,
@@ -20501,13 +20224,13 @@ var StepperBase = defineComponent({
20501
20224
  const state = props.active === index ? "stepProgress" : props.active > index ? "stepCompleted" : "stepInactive";
20502
20225
  const selectable = typeof props.onStepClick === "function" && (typeof itemProps.allowStepSelect === "boolean" ? itemProps.allowStepSelect : state === "stepCompleted" || props.allowNextStepsSelect);
20503
20226
  items.push(cloneVNode(item, {
20504
- icon: itemProps.icon ?? props.icon ?? index + 1,
20227
+ icon: itemProps.icon ?? props.icon ?? (slots.icon ? (payload) => slots.icon(payload) : index + 1),
20505
20228
  step: index,
20506
20229
  state,
20507
20230
  onClick: () => selectable && props.onStepClick?.(index),
20508
20231
  allowStepClick: selectable,
20509
- completedIcon: itemProps.completedIcon ?? props.completedIcon,
20510
- progressIcon: itemProps.progressIcon ?? props.progressIcon,
20232
+ completedIcon: itemProps.completedIcon ?? props.completedIcon ?? (slots.completedIcon ? (payload) => slots.completedIcon(payload) : void 0),
20233
+ progressIcon: itemProps.progressIcon ?? props.progressIcon ?? (slots.progressIcon ? (payload) => slots.progressIcon(payload) : void 0),
20511
20234
  color: itemProps.color ?? props.color,
20512
20235
  iconSize: props.iconSize,
20513
20236
  iconPosition: itemProps.iconPosition ?? props.iconPosition,
@@ -21479,6 +21202,7 @@ var varsResolver$11 = createVarsResolver((theme, { size, color, thumbSize, radiu
21479
21202
  var Slider = withBoxProps(defineComponent({
21480
21203
  name: "Slider",
21481
21204
  inheritAttrs: false,
21205
+ slots: Object,
21482
21206
  props: {
21483
21207
  color: {
21484
21208
  type: String,
@@ -21627,7 +21351,7 @@ var Slider = withBoxProps(defineComponent({
21627
21351
  default: false
21628
21352
  }
21629
21353
  },
21630
- setup(rawProps, { attrs }) {
21354
+ setup(rawProps, { attrs, slots }) {
21631
21355
  const props = useProps("Slider", defaultProps$1, rawProps);
21632
21356
  const direction = useDirection();
21633
21357
  const hovered = ref(false);
@@ -21689,7 +21413,7 @@ var Slider = withBoxProps(defineComponent({
21689
21413
  max: domain.value[1]
21690
21414
  });
21691
21415
  const scaled = props.scale(current.value);
21692
- const label = typeof props.label === "function" ? props.label(scaled) : props.label;
21416
+ const label = slots.label ? slots.label({ value: scaled }) : typeof props.label === "function" ? props.label(scaled) : props.label;
21693
21417
  const start = typeof props.startPointValue === "number" && !props.inverted ? getPosition$1({
21694
21418
  value: props.startPointValue,
21695
21419
  min: domain.value[0],
@@ -21733,7 +21457,7 @@ var Slider = withBoxProps(defineComponent({
21733
21457
  disabled: props.disabled,
21734
21458
  orientation: props.orientation,
21735
21459
  onKeydown: keydown
21736
- }, () => props.thumbChildren) }), props.name ? h("input", {
21460
+ }, () => resolveNode(props.thumbChildren, slots.thumbChildren)) }), props.name ? h("input", {
21737
21461
  type: "hidden",
21738
21462
  name: props.name,
21739
21463
  value: current.value,
@@ -21772,6 +21496,7 @@ var varsResolver$10 = createVarsResolver((theme, { size, color, thumbSize, radiu
21772
21496
  var RangeSlider = defineComponent({
21773
21497
  name: "RangeSlider",
21774
21498
  inheritAttrs: false,
21499
+ slots: Object,
21775
21500
  props: {
21776
21501
  value: {
21777
21502
  type: Array,
@@ -21919,7 +21644,7 @@ var RangeSlider = defineComponent({
21919
21644
  default: false
21920
21645
  }
21921
21646
  },
21922
- setup(rawProps, { attrs }) {
21647
+ setup(rawProps, { attrs, slots }) {
21923
21648
  const props = useProps("RangeSlider", defaults$5, rawProps);
21924
21649
  const direction = useDirection();
21925
21650
  const activeThumb = ref(0);
@@ -22021,7 +21746,10 @@ var RangeSlider = defineComponent({
22021
21746
  value: props.scale(current.value[index]),
22022
21747
  position: positions[index],
22023
21748
  dragging: move.active.value && activeThumb.value === index,
22024
- label: typeof props.label === "function" ? props.label(props.scale(current.value[index])) : props.label,
21749
+ label: slots.label ? slots.label({
21750
+ value: props.scale(current.value[index]),
21751
+ index
21752
+ }) : typeof props.label === "function" ? props.label(props.scale(current.value[index])) : props.label,
22025
21753
  labelAlwaysOn: props.labelAlwaysOn,
22026
21754
  thumbLabel: props.thumbLabel?.[index],
22027
21755
  thumbValueText: props.thumbValueText,
@@ -22032,7 +21760,7 @@ var RangeSlider = defineComponent({
22032
21760
  onMousedown: () => activeThumb.value = index,
22033
21761
  onFocus: () => focused.value = index,
22034
21762
  onKeydown: (event) => keydown(index, event)
22035
- }, () => props.thumbChildren?.[index])) }), props.name ? [h("input", {
21763
+ }, () => slots.thumbChildren ? slots.thumbChildren({ index }) : props.thumbChildren?.[index])) }), props.name ? [h("input", {
22036
21764
  type: "hidden",
22037
21765
  name: `${props.name}_from`,
22038
21766
  value: current.value[0],
@@ -23654,7 +23382,7 @@ var MaskInput = defineComponent({
23654
23382
  default: void 0
23655
23383
  }
23656
23384
  },
23657
- setup(props, { attrs }) {
23385
+ setup(props, { attrs, slots }) {
23658
23386
  const input = ref(null);
23659
23387
  const processed = ref("");
23660
23388
  const rawValue = ref("");
@@ -23857,7 +23585,7 @@ var MaskInput = defineComponent({
23857
23585
  onBlur: handleBlur,
23858
23586
  onKeydown: handleKeydown,
23859
23587
  onPaste: handlePaste
23860
- });
23588
+ }, slots);
23861
23589
  };
23862
23590
  }
23863
23591
  });
@@ -26107,6 +25835,7 @@ var ModalContent = compound$1("ModalContent", ModalBaseContent, "content", (ctx)
26107
25835
  var ModalBaseComponent = defineComponent({
26108
25836
  name: "Modal",
26109
25837
  inheritAttrs: false,
25838
+ slots: Object,
26110
25839
  props: {
26111
25840
  opened: {
26112
25841
  type: Boolean,
@@ -26117,11 +25846,7 @@ var ModalBaseComponent = defineComponent({
26117
25846
  required: true
26118
25847
  },
26119
25848
  title: {
26120
- type: [
26121
- String,
26122
- Object,
26123
- Function
26124
- ],
25849
+ type: null,
26125
25850
  default: void 0
26126
25851
  },
26127
25852
  withOverlay: {
@@ -26137,13 +25862,13 @@ var ModalBaseComponent = defineComponent({
26137
25862
  },
26138
25863
  setup(props, { attrs, slots }) {
26139
25864
  return () => {
26140
- const title = typeof props.title === "function" ? props.title() : props.title;
26141
- const header = title != null || props.withCloseButton;
25865
+ const title = resolveNode(props.title, slots.title);
25866
+ const header = hasNode(title) || props.withCloseButton;
26142
25867
  return h(ModalRoot, {
26143
25868
  ...attrs,
26144
25869
  opened: props.opened,
26145
25870
  onClose: props.onClose
26146
- }, { default: () => [props.withOverlay && h(ModalOverlay, props.overlayProps), h(ModalContent, null, { default: () => [header && h(ModalHeader, null, { default: () => [title != null && h(ModalTitle, null, { default: () => title }), props.withCloseButton && h(ModalCloseButton, props.closeButtonProps)] }), h(ModalBody, null, slots)] })] });
25871
+ }, { default: () => [props.withOverlay && h(ModalOverlay, props.overlayProps), h(ModalContent, null, { default: () => [header && h(ModalHeader, null, { default: () => [hasNode(title) && h(ModalTitle, null, { default: () => title }), props.withCloseButton && h(ModalCloseButton, props.closeButtonProps)] }), h(ModalBody, null, { default: () => slots.default?.() })] })] });
26147
25872
  };
26148
25873
  }
26149
25874
  });
@@ -26374,6 +26099,7 @@ var DrawerContent = compound("DrawerContent", ModalBaseContent, "content", (ctx)
26374
26099
  var DrawerBaseComponent = defineComponent({
26375
26100
  name: "Drawer",
26376
26101
  inheritAttrs: false,
26102
+ slots: Object,
26377
26103
  props: {
26378
26104
  opened: {
26379
26105
  type: Boolean,
@@ -26384,11 +26110,7 @@ var DrawerBaseComponent = defineComponent({
26384
26110
  required: true
26385
26111
  },
26386
26112
  title: {
26387
- type: [
26388
- String,
26389
- Object,
26390
- Function
26391
- ],
26113
+ type: null,
26392
26114
  default: void 0
26393
26115
  },
26394
26116
  withOverlay: {
@@ -26438,8 +26160,8 @@ var DrawerBaseComponent = defineComponent({
26438
26160
  return false;
26439
26161
  });
26440
26162
  return () => {
26441
- const title = typeof props.title === "function" ? props.title() : props.title;
26442
- const header = title != null || props.withCloseButton;
26163
+ const title = resolveNode(props.title, slots.title);
26164
+ const header = hasNode(title) || props.withCloseButton;
26443
26165
  return h(DrawerRoot, {
26444
26166
  ...attrs,
26445
26167
  opened: props.opened,
@@ -26450,7 +26172,7 @@ var DrawerBaseComponent = defineComponent({
26450
26172
  visible: overlayVisible.value,
26451
26173
  transitionProps: stackCtx && props.stackId ? { duration: 0 } : void 0,
26452
26174
  ...props.overlayProps
26453
- }), h(DrawerContent, { __hidden: contentHidden.value }, { default: () => [header && h(DrawerHeader, null, { default: () => [title != null && h(DrawerTitle, null, { default: () => title }), props.withCloseButton && h(DrawerCloseButton, props.closeButtonProps)] }), h(DrawerBody, null, slots)] })] });
26175
+ }), h(DrawerContent, { __hidden: contentHidden.value }, { default: () => [header && h(DrawerHeader, null, { default: () => [hasNode(title) && h(DrawerTitle, null, { default: () => title }), props.withCloseButton && h(DrawerCloseButton, props.closeButtonProps)] }), h(DrawerBody, null, { default: () => slots.default?.() })] })] });
26454
26176
  };
26455
26177
  }
26456
26178
  });
@@ -28154,6 +27876,7 @@ var MenuDropdown = defineComponent({
28154
27876
  var MenuItem = defineComponent({
28155
27877
  name: "MenuItem",
28156
27878
  inheritAttrs: false,
27879
+ slots: Object,
28157
27880
  props: {
28158
27881
  component: {
28159
27882
  type: [
@@ -28187,6 +27910,8 @@ var MenuItem = defineComponent({
28187
27910
  const ctx = useMenuContext();
28188
27911
  return () => {
28189
27912
  const indicator = ctx.alignItemsLabels === "all" || props.reserveIndicator;
27913
+ const leftSection = resolveNode(props.leftSection, slots.leftSection);
27914
+ const rightSection = resolveNode(props.rightSection, slots.rightSection);
28190
27915
  return h(UnstyledButton, {
28191
27916
  ...attrs,
28192
27917
  component: props.component,
@@ -28209,15 +27934,15 @@ var MenuItem = defineComponent({
28209
27934
  }
28210
27935
  }, () => [
28211
27936
  indicator && h("span", ctx.getStyles("itemIndicator"), props.indicator),
28212
- props.leftSection != null && h("span", {
27937
+ hasNode(leftSection) && h("span", {
28213
27938
  ...ctx.getStyles("itemSection"),
28214
27939
  "data-position": "left"
28215
- }, props.leftSection),
27940
+ }, leftSection),
28216
27941
  h("span", ctx.getStyles("itemLabel"), slots),
28217
- props.rightSection != null && h("span", {
27942
+ hasNode(rightSection) && h("span", {
28218
27943
  ...ctx.getStyles("itemSection"),
28219
27944
  "data-position": "right"
28220
- }, props.rightSection)
27945
+ }, rightSection)
28221
27946
  ]);
28222
27947
  };
28223
27948
  }
@@ -28393,6 +28118,7 @@ var MenuRadioGroup = group$1(RadioGroupKey, false);
28393
28118
  var MenuCheckboxItem = defineComponent({
28394
28119
  name: "MenuCheckboxItem",
28395
28120
  inheritAttrs: false,
28121
+ slots: Object,
28396
28122
  props: {
28397
28123
  value: String,
28398
28124
  checked: {
@@ -28422,21 +28148,24 @@ var MenuCheckboxItem = defineComponent({
28422
28148
  else if (props.checked === void 0) local.value = next;
28423
28149
  props.onChange?.(next);
28424
28150
  };
28151
+ const checkIcon = props.checkIcon !== void 0 ? typeof props.checkIcon === "function" ? props.checkIcon() : props.checkIcon : slots.checkIcon ? slots.checkIcon({ checked: !!checked }) : menu.checkIcon ?? "✓";
28152
+ const { checkIcon: _checkIconSlot, ...forwardedSlots } = slots;
28425
28153
  return h(MenuItem, {
28426
28154
  ...attrs,
28427
28155
  role: "menuitemcheckbox",
28428
28156
  "aria-checked": checked,
28429
28157
  reserveIndicator: menu.alignItemsLabels !== "none" || checked,
28430
- indicator: checked ? props.checkIcon ?? menu.checkIcon ?? "✓" : void 0,
28158
+ indicator: checked ? checkIcon : void 0,
28431
28159
  closeMenuOnClick: props.closeMenuOnClick,
28432
28160
  onClick: toggle
28433
- }, slots);
28161
+ }, forwardedSlots);
28434
28162
  };
28435
28163
  }
28436
28164
  });
28437
28165
  var MenuRadioItem = defineComponent({
28438
28166
  name: "MenuRadioItem",
28439
28167
  inheritAttrs: false,
28168
+ slots: Object,
28440
28169
  props: {
28441
28170
  value: {
28442
28171
  type: String,
@@ -28447,6 +28176,10 @@ var MenuRadioItem = defineComponent({
28447
28176
  default: void 0
28448
28177
  },
28449
28178
  onChange: Function,
28179
+ checkIcon: {
28180
+ type: null,
28181
+ default: void 0
28182
+ },
28450
28183
  closeMenuOnClick: {
28451
28184
  type: Boolean,
28452
28185
  default: false
@@ -28461,15 +28194,17 @@ var MenuRadioItem = defineComponent({
28461
28194
  group?.setValue(props.value);
28462
28195
  props.onChange?.(props.value);
28463
28196
  };
28197
+ const checkIcon = props.checkIcon !== void 0 ? typeof props.checkIcon === "function" ? props.checkIcon() : props.checkIcon : slots.checkIcon ? slots.checkIcon({ checked: !!checked }) : menu.checkIcon ?? "✓";
28198
+ const { checkIcon: _checkIconSlot, ...forwardedSlots } = slots;
28464
28199
  return h(MenuItem, {
28465
28200
  ...attrs,
28466
28201
  role: "menuitemradio",
28467
28202
  "aria-checked": checked,
28468
28203
  reserveIndicator: menu.alignItemsLabels !== "none" || checked,
28469
- indicator: checked ? menu.checkIcon ?? "✓" : void 0,
28204
+ indicator: checked ? checkIcon : void 0,
28470
28205
  closeMenuOnClick: props.closeMenuOnClick,
28471
28206
  onClick: select
28472
- }, slots);
28207
+ }, forwardedSlots);
28473
28208
  };
28474
28209
  }
28475
28210
  });
@@ -29410,6 +29145,7 @@ function renderItem(item, props) {
29410
29145
  var OptionsDropdown = defineComponent({
29411
29146
  name: "OptionsDropdown",
29412
29147
  inheritAttrs: false,
29148
+ slots: Object,
29413
29149
  props: {
29414
29150
  data: {
29415
29151
  type: Array,
@@ -29455,17 +29191,22 @@ var OptionsDropdown = defineComponent({
29455
29191
  renderOption: Function,
29456
29192
  scrollAreaProps: Object
29457
29193
  },
29458
- setup(props) {
29194
+ setup(props, { slots }) {
29459
29195
  const ctx = useComboboxContext();
29460
29196
  return () => {
29461
29197
  validateOptions(props.data);
29198
+ const renderOption = props.renderOption ?? (slots.renderOption ? (input) => slots.renderOption(input) : void 0);
29199
+ const nothingFound = props.nothingFoundMessage ?? (slots.nothingFound ? slots.nothingFound() : void 0);
29462
29200
  const data = typeof props.search === "string" ? (props.filter || defaultOptionsFilter)({
29463
29201
  options: props.data,
29464
29202
  search: props.filterOptions ? props.search : "",
29465
29203
  limit: props.limit ?? Infinity
29466
29204
  }) : props.data;
29467
29205
  const empty = isEmptyComboboxData(data);
29468
- const options = data.map((item) => renderItem(item, props));
29206
+ const options = data.map((item) => renderItem(item, {
29207
+ ...props,
29208
+ renderOption
29209
+ }));
29469
29210
  const content = props.withScrollArea ? h(ScrollAreaAutosize, {
29470
29211
  mah: (props.floatingHeight ?? ctx.floatingHeight) === "viewport" ? "var(--combobox-floating-options-max-height)" : props.maxDropdownHeight ?? 220,
29471
29212
  type: "scroll",
@@ -29479,7 +29220,7 @@ var OptionsDropdown = defineComponent({
29479
29220
  }, () => h(Combobox.Options, {
29480
29221
  labelledBy: props.labelId,
29481
29222
  "aria-label": props.ariaLabel
29482
- }, () => [content, empty && props.nothingFoundMessage != null && h(Combobox.Empty, null, () => props.nothingFoundMessage)]));
29223
+ }, () => [content, empty && nothingFound != null && h(Combobox.Empty, null, () => nothingFound)]));
29483
29224
  };
29484
29225
  }
29485
29226
  });
@@ -29547,6 +29288,7 @@ function usePillsReorder(input) {
29547
29288
  var Select = defineComponent({
29548
29289
  name: "Select",
29549
29290
  inheritAttrs: false,
29291
+ slots: Object,
29550
29292
  props: {
29551
29293
  modelValue: {
29552
29294
  type: null,
@@ -29627,7 +29369,7 @@ var Select = defineComponent({
29627
29369
  }
29628
29370
  },
29629
29371
  emits: ["update:modelValue", "update:searchValue"],
29630
- setup(props, { attrs, emit }) {
29372
+ setup(props, { attrs, emit, slots }) {
29631
29373
  const parsed = computed(() => getParsedComboboxData(props.data));
29632
29374
  const lockup = computed(() => getOptionsLockup(parsed.value));
29633
29375
  const retained = {};
@@ -29748,13 +29490,13 @@ var Select = defineComponent({
29748
29490
  else combobox.toggleDropdown();
29749
29491
  attrs.onClick?.(event);
29750
29492
  }
29751
- })), h(OptionsDropdown, {
29493
+ }, slots)), h(OptionsDropdown, {
29752
29494
  data: parsed.value,
29753
29495
  hidden: readOnly || disabled,
29754
29496
  filter: props.filter,
29755
29497
  search: search(),
29756
29498
  limit: props.limit,
29757
- hiddenWhenEmpty: !props.nothingFoundMessage,
29499
+ hiddenWhenEmpty: !props.nothingFoundMessage && !slots.nothingFound,
29758
29500
  withScrollArea: props.withScrollArea,
29759
29501
  maxDropdownHeight: props.maxDropdownHeight,
29760
29502
  filterOptions: !!props.searchable && selected.value?.label !== search(),
@@ -29766,6 +29508,9 @@ var Select = defineComponent({
29766
29508
  labelId: attrs.label ? `${id.value}-label` : void 0,
29767
29509
  renderOption: props.renderOption,
29768
29510
  scrollAreaProps: props.scrollAreaProps
29511
+ }, {
29512
+ renderOption: slots.renderOption,
29513
+ nothingFound: slots.nothingFound
29769
29514
  })]), h(Combobox.HiddenInput, {
29770
29515
  value: current(),
29771
29516
  name: attrs.name,
@@ -29785,6 +29530,7 @@ Object.assign(Select, { classes: {
29785
29530
  var Autocomplete = defineComponent({
29786
29531
  name: "Autocomplete",
29787
29532
  inheritAttrs: false,
29533
+ slots: Object,
29788
29534
  props: {
29789
29535
  modelValue: {
29790
29536
  type: String,
@@ -29832,7 +29578,7 @@ var Autocomplete = defineComponent({
29832
29578
  }
29833
29579
  },
29834
29580
  emits: { "update:modelValue": (value) => typeof value === "string" },
29835
- setup(props, { attrs, emit }) {
29581
+ setup(props, { attrs, emit, slots }) {
29836
29582
  const internal = ref(props.defaultValue);
29837
29583
  const current = () => props.modelValue ?? props.value ?? internal.value;
29838
29584
  const controlled = () => props.modelValue !== void 0 || props.value !== void 0;
@@ -29919,18 +29665,21 @@ var Autocomplete = defineComponent({
29919
29665
  combobox.openDropdown();
29920
29666
  attrs.onClick?.(event);
29921
29667
  }
29922
- })), h(OptionsDropdown, {
29668
+ }, slots)), h(OptionsDropdown, {
29923
29669
  data: parsed.value,
29924
29670
  hidden: readOnly || disabled,
29925
29671
  filter: props.filter,
29926
29672
  search: current(),
29927
29673
  limit: props.limit,
29928
- hiddenWhenEmpty: true,
29674
+ hiddenWhenEmpty: !slots.nothingFound,
29929
29675
  withScrollArea: props.withScrollArea,
29930
29676
  maxDropdownHeight: props.maxDropdownHeight,
29931
29677
  labelId: attrs.label ? `${id.value}-label` : void 0,
29932
29678
  renderOption: props.renderOption,
29933
29679
  scrollAreaProps: props.scrollAreaProps
29680
+ }, {
29681
+ renderOption: slots.renderOption,
29682
+ nothingFound: slots.nothingFound
29934
29683
  })]);
29935
29684
  };
29936
29685
  }
@@ -29950,6 +29699,7 @@ function filterPicked(data, values) {
29950
29699
  var MultiSelect = defineComponent({
29951
29700
  name: "MultiSelect",
29952
29701
  inheritAttrs: false,
29702
+ slots: Object,
29953
29703
  props: {
29954
29704
  modelValue: Array,
29955
29705
  value: Array,
@@ -30023,7 +29773,7 @@ var MultiSelect = defineComponent({
30023
29773
  selectFirstOptionOnDropdownOpen: Boolean
30024
29774
  },
30025
29775
  emits: ["update:modelValue", "update:searchValue"],
30026
- setup(props, { attrs, emit }) {
29776
+ setup(props, { attrs, emit, slots }) {
30027
29777
  const parsed = computed(() => getParsedComboboxData(props.data));
30028
29778
  const lockup = computed(() => getOptionsLockup(parsed.value));
30029
29779
  const retained = {};
@@ -30110,56 +29860,63 @@ var MultiSelect = defineComponent({
30110
29860
  rightSection,
30111
29861
  rightSectionPointerEvents: canClear ? "all" : "none",
30112
29862
  onClick: () => props.searchable ? combobox.openDropdown() : combobox.toggleDropdown()
30113
- }, () => h(Pill.Group, null, () => [...values.map((item, index) => {
30114
- const option = lockup.value[String(item)] ?? retained[String(item)] ?? {
30115
- value: item,
30116
- label: String(item)
30117
- };
30118
- const onRemove = () => remove(item);
30119
- return props.renderPill ? props.renderPill({
30120
- option,
30121
- value: item,
30122
- onRemove,
30123
- disabled
30124
- }) : h(Pill, {
30125
- key: `${String(item)}-${index}`,
30126
- withRemoveButton: !readOnly && !option.disabled,
29863
+ }, {
29864
+ label: slots.label,
29865
+ description: slots.description,
29866
+ error: slots.error,
29867
+ leftSection: slots.leftSection,
29868
+ rightSection: slots.rightSection,
29869
+ default: () => h(Pill.Group, null, () => [...values.map((item, index) => {
29870
+ const option = lockup.value[String(item)] ?? retained[String(item)] ?? {
29871
+ value: item,
29872
+ label: String(item)
29873
+ };
29874
+ const onRemove = () => remove(item);
29875
+ return props.renderPill ? props.renderPill({
29876
+ option,
29877
+ value: item,
29878
+ onRemove,
29879
+ disabled
29880
+ }) : h(Pill, {
29881
+ key: `${String(item)}-${index}`,
29882
+ withRemoveButton: !readOnly && !option.disabled,
29883
+ disabled,
29884
+ onRemove
29885
+ }, () => option.label);
29886
+ }), h(Combobox.EventsTarget, { withExpandedAttribute: true }, () => h(PillsInput.Field, {
29887
+ value: search(),
29888
+ readonly: !props.searchable || readOnly,
30127
29889
  disabled,
30128
- onRemove
30129
- }, () => option.label);
30130
- }), h(Combobox.EventsTarget, { withExpandedAttribute: true }, () => h(PillsInput.Field, {
30131
- value: search(),
30132
- readonly: !props.searchable || readOnly,
30133
- disabled,
30134
- placeholder: values.length === 0 ? attrs.placeholder : void 0,
30135
- onInput: (event) => {
30136
- setSearch(event.target.value);
30137
- combobox.openDropdown();
30138
- },
30139
- onFocus: (event) => {
30140
- if (props.openOnFocus && props.searchable) combobox.openDropdown();
30141
- attrs.onFocus?.(event);
30142
- },
30143
- onBlur: (event) => {
30144
- combobox.closeDropdown();
30145
- attrs.onBlur?.(event);
30146
- },
30147
- onKeydown: (event) => {
30148
- if (event.key === " " && !props.searchable) {
30149
- event.preventDefault();
30150
- combobox.toggleDropdown();
29890
+ placeholder: values.length === 0 ? attrs.placeholder : void 0,
29891
+ onInput: (event) => {
29892
+ setSearch(event.target.value);
29893
+ combobox.openDropdown();
29894
+ },
29895
+ onFocus: (event) => {
29896
+ if (props.openOnFocus && props.searchable) combobox.openDropdown();
29897
+ attrs.onFocus?.(event);
29898
+ },
29899
+ onBlur: (event) => {
29900
+ combobox.closeDropdown();
29901
+ attrs.onBlur?.(event);
29902
+ },
29903
+ onKeydown: (event) => {
29904
+ if (event.key === " " && !props.searchable) {
29905
+ event.preventDefault();
29906
+ combobox.toggleDropdown();
29907
+ }
29908
+ if (event.key === "Backspace" && !search() && values.length && !readOnly) remove(values[values.length - 1]);
29909
+ attrs.onKeydown?.(event);
30151
29910
  }
30152
- if (event.key === "Backspace" && !search() && values.length && !readOnly) remove(values[values.length - 1]);
30153
- attrs.onKeydown?.(event);
30154
- }
30155
- }))]))), h(OptionsDropdown, {
29911
+ }))])
29912
+ })), h(OptionsDropdown, {
30156
29913
  data: options,
30157
29914
  hidden: disabled || readOnly,
30158
29915
  search: search(),
30159
29916
  filter: props.filter,
30160
29917
  limit: props.limit,
30161
29918
  filterOptions: props.searchable,
30162
- hiddenWhenEmpty: props.nothingFoundMessage == null,
29919
+ hiddenWhenEmpty: props.nothingFoundMessage == null && !slots.nothingFound,
30163
29920
  nothingFoundMessage: props.nothingFoundMessage,
30164
29921
  value: values,
30165
29922
  withCheckIcon: props.withCheckIcon,
@@ -30169,6 +29926,9 @@ var MultiSelect = defineComponent({
30169
29926
  maxDropdownHeight: props.maxDropdownHeight,
30170
29927
  renderOption: props.renderOption,
30171
29928
  scrollAreaProps: props.scrollAreaProps
29929
+ }, {
29930
+ renderOption: slots.renderOption,
29931
+ nothingFound: slots.nothingFound
30172
29932
  })]), h(Combobox.HiddenInput, {
30173
29933
  value: values,
30174
29934
  valuesDivider: props.hiddenInputValuesDivider,
@@ -30201,6 +29961,7 @@ function getSplittedTags({ value, splitChars = [","], currentTags = [], allowDup
30201
29961
  var TagsInput = defineComponent({
30202
29962
  name: "TagsInput",
30203
29963
  inheritAttrs: false,
29964
+ slots: Object,
30204
29965
  props: {
30205
29966
  modelValue: Array,
30206
29967
  value: Array,
@@ -30270,7 +30031,7 @@ var TagsInput = defineComponent({
30270
30031
  selectFirstOptionOnDropdownOpen: Boolean
30271
30032
  },
30272
30033
  emits: ["update:modelValue", "update:searchValue"],
30273
- setup(props, { attrs, emit }) {
30034
+ setup(props, { attrs, emit, slots }) {
30274
30035
  const parsed = computed(() => getParsedComboboxData(props.data));
30275
30036
  const lockup = computed(() => getOptionsLockup(parsed.value));
30276
30037
  const internal = ref([...props.defaultValue]);
@@ -30378,74 +30139,84 @@ var TagsInput = defineComponent({
30378
30139
  disabled,
30379
30140
  rightSection,
30380
30141
  rightSectionPointerEvents: canClear ? "all" : void 0
30381
- }, () => h(Pill.Group, null, () => [...current.map((item, index) => {
30382
- const onRemove = () => removeAt(index);
30383
- const option = lockup.value[item] ?? {
30384
- value: item,
30385
- label: item,
30386
- disabled: false
30387
- };
30388
- return props.renderPill ? props.renderPill({
30389
- option,
30390
- value: item,
30391
- onRemove,
30392
- disabled
30393
- }) : h(Pill, {
30394
- key: `${item}-${index}`,
30395
- withRemoveButton: !readOnly,
30142
+ }, {
30143
+ label: slots.label,
30144
+ description: slots.description,
30145
+ error: slots.error,
30146
+ leftSection: slots.leftSection,
30147
+ rightSection: slots.rightSection,
30148
+ default: () => h(Pill.Group, null, () => [...current.map((item, index) => {
30149
+ const onRemove = () => removeAt(index);
30150
+ const option = lockup.value[item] ?? {
30151
+ value: item,
30152
+ label: item,
30153
+ disabled: false
30154
+ };
30155
+ return props.renderPill ? props.renderPill({
30156
+ option,
30157
+ value: item,
30158
+ onRemove,
30159
+ disabled
30160
+ }) : h(Pill, {
30161
+ key: `${item}-${index}`,
30162
+ withRemoveButton: !readOnly,
30163
+ disabled,
30164
+ onRemove
30165
+ }, () => item);
30166
+ }), h(PillsInput.Field, {
30167
+ value: search(),
30168
+ readonly: readOnly,
30396
30169
  disabled,
30397
- onRemove
30398
- }, () => item);
30399
- }), h(PillsInput.Field, {
30400
- value: search(),
30401
- readonly: readOnly,
30402
- disabled,
30403
- placeholder: current.length === 0 ? attrs.placeholder : void 0,
30404
- onInput: (event) => {
30405
- const input = event.target.value;
30406
- if (props.splitChars.some((char) => input.includes(char))) split(input);
30407
- else setSearch(input);
30408
- combobox.openDropdown();
30409
- },
30410
- onPaste: (event) => {
30411
- if (!event.clipboardData) return;
30412
- event.preventDefault();
30413
- split(`${search()}${event.clipboardData.getData("text/plain")}`);
30414
- attrs.onPaste?.(event);
30415
- },
30416
- onFocus: (event) => {
30417
- if (props.openOnFocus) combobox.openDropdown();
30418
- attrs.onFocus?.(event);
30419
- },
30420
- onBlur: (event) => {
30421
- if (props.acceptValueOnBlur) submit(search());
30422
- combobox.closeDropdown();
30423
- attrs.onBlur?.(event);
30424
- },
30425
- onClick: () => combobox.openDropdown(),
30426
- onKeydown: (event) => {
30427
- if (event.isComposing) return;
30428
- if (event.key === "Enter" && search().trim()) {
30429
- event.preventDefault();
30430
- submit(search());
30431
- } else if (props.splitChars.includes(event.key) && search().trim()) {
30170
+ placeholder: current.length === 0 ? attrs.placeholder : void 0,
30171
+ onInput: (event) => {
30172
+ const input = event.target.value;
30173
+ if (props.splitChars.some((char) => input.includes(char))) split(input);
30174
+ else setSearch(input);
30175
+ combobox.openDropdown();
30176
+ },
30177
+ onPaste: (event) => {
30178
+ if (!event.clipboardData) return;
30432
30179
  event.preventDefault();
30433
- split(search());
30434
- } else if (event.key === "Backspace" && !search() && current.length && !readOnly) removeAt(current.length - 1);
30435
- attrs.onKeydown?.(event);
30436
- }
30437
- })]))), h(OptionsDropdown, {
30180
+ split(`${search()}${event.clipboardData.getData("text/plain")}`);
30181
+ attrs.onPaste?.(event);
30182
+ },
30183
+ onFocus: (event) => {
30184
+ if (props.openOnFocus) combobox.openDropdown();
30185
+ attrs.onFocus?.(event);
30186
+ },
30187
+ onBlur: (event) => {
30188
+ if (props.acceptValueOnBlur) submit(search());
30189
+ combobox.closeDropdown();
30190
+ attrs.onBlur?.(event);
30191
+ },
30192
+ onClick: () => combobox.openDropdown(),
30193
+ onKeydown: (event) => {
30194
+ if (event.isComposing) return;
30195
+ if (event.key === "Enter" && search().trim()) {
30196
+ event.preventDefault();
30197
+ submit(search());
30198
+ } else if (props.splitChars.includes(event.key) && search().trim()) {
30199
+ event.preventDefault();
30200
+ split(search());
30201
+ } else if (event.key === "Backspace" && !search() && current.length && !readOnly) removeAt(current.length - 1);
30202
+ attrs.onKeydown?.(event);
30203
+ }
30204
+ })])
30205
+ })), h(OptionsDropdown, {
30438
30206
  data: parsed.value,
30439
30207
  hidden: disabled || readOnly,
30440
30208
  search: search(),
30441
30209
  filter: props.filter,
30442
30210
  limit: props.limit,
30443
- hiddenWhenEmpty: props.nothingFoundMessage == null,
30211
+ hiddenWhenEmpty: props.nothingFoundMessage == null && !slots.nothingFound,
30444
30212
  nothingFoundMessage: props.nothingFoundMessage,
30445
30213
  withScrollArea: props.withScrollArea,
30446
30214
  maxDropdownHeight: props.maxDropdownHeight,
30447
30215
  renderOption: props.renderOption,
30448
30216
  scrollAreaProps: props.scrollAreaProps
30217
+ }, {
30218
+ renderOption: slots.renderOption,
30219
+ nothingFound: slots.nothingFound
30449
30220
  })]), h(Combobox.HiddenInput, {
30450
30221
  value: current,
30451
30222
  valuesDivider: props.hiddenInputValuesDivider,
@@ -30551,7 +30322,7 @@ var ColorInput = defineComponent({
30551
30322
  }
30552
30323
  },
30553
30324
  emits: ["update:modelValue"],
30554
- setup(props, { attrs, emit }) {
30325
+ setup(props, { attrs, emit, slots }) {
30555
30326
  const internal = ref(props.defaultValue);
30556
30327
  const current = () => props.modelValue ?? props.value ?? internal.value;
30557
30328
  const controlled = () => props.modelValue !== void 0 || props.value !== void 0;
@@ -30621,8 +30392,8 @@ var ColorInput = defineComponent({
30621
30392
  readonly: props.disallowInput || readOnly,
30622
30393
  pointer: props.disallowInput,
30623
30394
  value,
30624
- leftSection: attrs.leftSection ?? preview,
30625
- rightSection: attrs.rightSection ?? eye,
30395
+ leftSection: attrs.leftSection !== void 0 || slots.leftSection ? attrs.leftSection : preview,
30396
+ rightSection: attrs.rightSection !== void 0 || slots.rightSection ? attrs.rightSection : eye,
30626
30397
  onInput: (event) => setValue(event.target.value, true),
30627
30398
  onFocus: (event) => {
30628
30399
  opened.value = true;
@@ -30637,7 +30408,7 @@ var ColorInput = defineComponent({
30637
30408
  opened.value = false;
30638
30409
  attrs.onBlur?.(event);
30639
30410
  }
30640
- })), h(Popover.Dropdown, {
30411
+ }, slots)), h(Popover.Dropdown, {
30641
30412
  class: ColorInput_module_default.dropdown,
30642
30413
  onMousedown: (event) => event.preventDefault()
30643
30414
  }, () => h(ColorPicker, {
@@ -30873,6 +30644,7 @@ var TreeSelectOption = defineComponent({
30873
30644
  var TreeSelect = defineComponent({
30874
30645
  name: "TreeSelect",
30875
30646
  inheritAttrs: false,
30647
+ slots: Object,
30876
30648
  props: {
30877
30649
  data: {
30878
30650
  type: Array,
@@ -30968,7 +30740,7 @@ var TreeSelect = defineComponent({
30968
30740
  chevronAriaLabels: Object
30969
30741
  },
30970
30742
  emits: ["update:modelValue", "update:searchValue"],
30971
- setup(props, { attrs, emit }) {
30743
+ setup(props, { attrs, emit, slots }) {
30972
30744
  const isMulti = () => props.mode !== "single";
30973
30745
  const internal = ref(props.defaultValue !== void 0 ? props.defaultValue : isMulti() ? [] : null);
30974
30746
  const current = () => props.modelValue ?? props.value ?? internal.value;
@@ -31070,6 +30842,8 @@ var TreeSelect = defineComponent({
31070
30842
  const multiValues = selectedArray();
31071
30843
  const hasValue = isMulti() ? multiValues.length > 0 : current() != null;
31072
30844
  const canClear = props.clearable && hasValue && !disabled && !readOnly;
30845
+ const nothingFound = props.nothingFoundMessage ?? (slots.nothingFound ? slots.nothingFound() : void 0);
30846
+ const renderNode = props.renderNode ?? (slots.renderNode ? (payload) => slots.renderNode(payload) : void 0);
31073
30847
  const clear = (event) => {
31074
30848
  event.stopPropagation();
31075
30849
  setValue(isMulti() ? [] : null);
@@ -31079,7 +30853,7 @@ var TreeSelect = defineComponent({
31079
30853
  const rightSection = canClear ? h(Combobox.ClearButton, {
31080
30854
  ...attrs.clearButtonProps,
31081
30855
  onClick: clear
31082
- }) : attrs.rightSection ?? h(Combobox.Chevron, {
30856
+ }) : attrs.rightSection !== void 0 || slots.rightSection ? attrs.rightSection : h(Combobox.Chevron, {
31083
30857
  size: attrs.size ?? "sm",
31084
30858
  error: attrs.error
31085
30859
  });
@@ -31147,7 +30921,7 @@ var TreeSelect = defineComponent({
31147
30921
  combobox.closeDropdown();
31148
30922
  setSearch(current() ? String(nodes.value[current()]?.label ?? "") : "");
31149
30923
  }
31150
- });
30924
+ }, slots);
31151
30925
  const treeOptions = flat.value.map((flatNode) => {
31152
30926
  const { node, level, hasChildren, expanded: nodeExpanded, isLastChild, lineGuides } = flatNode;
31153
30927
  const vals = selectedArray();
@@ -31169,7 +30943,7 @@ var TreeSelect = defineComponent({
31169
30943
  lineGuides,
31170
30944
  withLines: props.withLines,
31171
30945
  onToggleExpand: toggleExpand,
31172
- renderNode: props.renderNode,
30946
+ renderNode,
31173
30947
  chevronAriaLabels: props.chevronAriaLabels
31174
30948
  });
31175
30949
  });
@@ -31180,7 +30954,7 @@ var TreeSelect = defineComponent({
31180
30954
  maxHeight: typeof props.maxDropdownHeight === "number" ? `${props.maxDropdownHeight}px` : props.maxDropdownHeight,
31181
30955
  overflowY: "auto"
31182
30956
  }, props.scrollAreaProps?.style]
31183
- }, treeOptions) : props.nothingFoundMessage != null ? h(Combobox.Empty, null, () => props.nothingFoundMessage) : null;
30957
+ }, treeOptions) : nothingFound != null ? h(Combobox.Empty, null, () => nothingFound) : null;
31184
30958
  return [h(Combobox, {
31185
30959
  store: combobox,
31186
30960
  readOnly,
@@ -31208,6 +30982,6 @@ Object.assign(TreeSelect, { classes: {
31208
30982
  ...TreeSelect_module_default
31209
30983
  } });
31210
30984
  //#endregion
31211
- export { Accordion, AccordionChevron, AccordionControl, AccordionItem, AccordionPanel, ActionIcon, ActionIconGroup, ActionIconGroupSection, Affix, Alert, AlphaSlider, Anchor, AngleSlider, AppShell, AppShellAside, AppShellFooter, AppShellHeader, AppShellMain, AppShellNavbar, AppShellSection, AspectRatio, Autocomplete, Avatar, AvatarGroup, AvatarGroupContextKey, BackgroundImage, Badge, Bars, Blockquote, Box, Breadcrumbs, Burger, Button, ButtonGroup, ButtonGroupSection, Card, CardSection, Center, CheckIcon, Checkbox, CheckboxCard, CheckboxGroup, CheckboxIcon, CheckboxIndicator, Chip, ChipGroup, CloseButton, CloseIcon, Code, Collapse, ColorInput, ColorPicker, ColorSlider, ColorSwatch, Combobox, ComboboxChevron, ComboboxClearButton, ComboboxDropdown, ComboboxDropdownTarget, ComboboxEmpty, ComboboxEventsTarget, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxHiddenInput, ComboboxOption, ComboboxOptions, ComboboxSearch, ComboboxTarget, Container, CopyButton, DEFAULT_COLORS, DEFAULT_THEME, Dialog, DirectionContextKey, DirectionProvider, Divider, Dots, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerHeader, DrawerOverlay, DrawerRoot, DrawerStack, DrawerTitle, FLEX_STYLE_PROPS_DATA, Fieldset, FileButton, FileInput, FlatTreeNode, Flex, FloatingIndicator, FloatingWindow, FocusTrap, FocusTrapInitialFocus, Grid, GridCol, Group, HeadlessMantineProvider, Highlight, HoverCard, HoverCardDropdown, HoverCardGroup, HoverCardTarget, HueSlider, INVALID_PRIMARY_COLOR_ERROR, INVALID_PRIMARY_SHADE_ERROR, Image, Indicator, InlineStyles, Input, InputBase, InputClearButton, InputClearSection, InputDescription, InputError, InputLabel, InputPlaceholder, InputWrapper, JsonInput, Kbd, List, ListItem, Loader, LoadingOverlay, MantineClasses, MantineContextKey, MantineCssVariables, MantineProvider, MantineThemeKey, MantineThemeProvider, Mark, Marquee, MaskInput, Menu, MenuCheckboxGroup, MenuCheckboxItem, MenuContextMenu, MenuDivider, MenuDropdown, MenuItem, MenuLabel, MenuRadioGroup, MenuRadioItem, MenuSearch, MenuSub, MenuSubDropdown, MenuSubItem, MenuSubTarget, MenuTarget, Modal, ModalBase, ModalBaseBody, ModalBaseCloseButton, ModalBaseContent, ModalBaseHeader, ModalBaseOverlay, ModalBaseTitle, ModalBody, ModalCloseButton, ModalContent, ModalHeader, ModalOverlay, ModalRoot, ModalTitle, MultiSelect, NativeScrollArea, NativeSelect, NativeSelectOption, NavLink, Notification, NumberFormatter, NumberInput, NumberInputChevron, OptionalPortal, OptionsDropdown, Oval, OverflowList, Overlay, Pagination, PaginationControl, PaginationDots, PaginationFirst, PaginationItems, PaginationItemsGroup, PaginationLabel, PaginationLast, PaginationNext, PaginationPrevious, PaginationRoot, Paper, PasswordInput, PasswordToggleIcon, Pill, PillGroup, PillsInput, PillsInputField, PinInput, Popover, PopoverContextMenu, PopoverDropdown, PopoverTarget, Portal, Progress, ProgressLabel, ProgressRoot, ProgressSection, Radio, RadioCard, RadioGroup, RadioIcon, RadioIndicator, RangeSlider, Rating, RingProgress, RollingNumber, STYLE_PROPS_DATA, ScrollArea, ScrollAreaAutosize, Scroller, SegmentedControl, Select, SemiCircleProgress, SimpleGrid, Skeleton, Slider, Space, Splitter, SplitterPane, Spoiler, Stack, Stepper, StepperCompleted, StepperStep, Switch, SwitchGroup, Table, TableCaption, TableDataRenderer, TableOfContents, TableScrollContainer, TableTbody, TableTd, TableTfoot, TableTh, TableThead, TableTr, Tabs, TabsList, TabsPanel, TabsTab, TagsInput, Text, TextInput, Textarea, ThemeIcon, Timeline, TimelineItem, Title, Tooltip, TooltipFloating, TooltipGroup, Transition, Tree, TreeSelect, TreeSelectOption, Typography, UnstyledButton, VisuallyHidden, alpha, buildValue, camelToKebabCase, colorsTuple, convertCssVariables, convertHsvaTo, createEventHandler, createProviderColorScheme, createSafeContext, createSafeInjectionContext, createVarsResolver, cssVariablesObjectToString, darken, deepMerge, defaultCssVariablesResolver, defaultLoaders, defaultOptionsFilter, defaultTreeNodeFilter, defaultVariantColorsResolver, em, factory, factory as polymorphicFactory, filterProps, filterTreeData, findClosestNumber, flattenTreeData, foldAccents, formatNumber, getVariables as getAppShellVariables, getAutoContrastValue, getBaseValue, getBreakpointValue, getContrastColor, getDefaultZIndex, getDigitParts, getFontSize, getGradient, getInitials, getInitialsColor, getLineHeight, getMarkColor, getMergedVariables, getOptionsLockup, getParsedComboboxData, getParsedNativeSelectData, getPositionVariables, getPrimaryContrastColor, getPrimaryShade, getRadius, getRenderSlots, getRenderSlotsFromValues, getSafeId, getShadow, getSize, getSortedBreakpoints, getSpacing, getSplittedTags, getThemeColor, getTitleSize, getTreeExpandedState, hashStyleProps, highlighter, hsvaToHex, hsvaToHexa, hsvaToHsl, hsvaToRgba, hsvaToRgbaObject, isColorValid, isEmptyComboboxData, isLightColor, isNumberLike, isOptionsGroup, isPrimitive, isVirtualColor, keys, lighten, luminance, memoize, mergeAsyncChildren, mergeMantineTheme, movePill, moveTreeNode, noop, parseColor, parseHex, parseHexa, parseHsla, parseHue, parseRgba, parseStyleProps, parseThemeColor, polymorphicProps, provideGridContext, provideListContext, provideMantineContext, provideMantineTheme, providePillsInputContext, px, rem, renderPolymorphic, resolveColorScheme, rgba, round, toRgba, useAccordionContext, useAccordionItemContext, useAppShellContext, useAvatarGroupContext, useCheckboxCardContext, useCheckboxGroupContext, useChipGroupContext, useCombobox, useComboboxContext, useComboboxTargetProps, useComputedColorScheme, useDirection, useDrawersStack, useFloatingIndicator, useForwardedRef, useGridContext, useHoverCardContext, useInputContext, useInputWrapperContext, useListContext, useMantineClassNamesPrefix, useMantineColorScheme, useMantineContext, useMantineCssVariablesResolver, useMantineDeduplicateInlineStyles, useMantineEnv, useMantineIsHeadless, useMantineStyleNonce, useMantineTheme, useMantineWithStaticClasses, useMenuContext, usePaginationContext, usePillGroupContext, usePillsInputContext, usePillsReorder, useProgressContext, useProps, useRadioCardContext, useRadioGroupContext, useRandomClassName, useSafeMantineTheme, useScrollAreaContext, useSplitterContext, useStepperContext, useStyles, useSwitchGroupContext, useTabsContext, useTree, useVirtualizedCombobox, validateJson, validateMantineTheme, validateOptions, virtualColor, withBoxProps };
30985
+ export { Accordion, AccordionChevron, AccordionControl, AccordionItem, AccordionPanel, ActionIcon, ActionIconGroup, ActionIconGroupSection, Affix, Alert, AlphaSlider, Anchor, AngleSlider, AppShell, AppShellAside, AppShellFooter, AppShellHeader, AppShellMain, AppShellNavbar, AppShellSection, AspectRatio, Autocomplete, Avatar, AvatarGroup, AvatarGroupContextKey, BackgroundImage, Badge, Bars, Blockquote, Box, Breadcrumbs, Burger, Button, ButtonGroup, ButtonGroupSection, Card, CardSection, Center, CheckIcon, Checkbox, CheckboxCard, CheckboxGroup, CheckboxIcon, CheckboxIndicator, Chip, ChipGroup, CloseButton, CloseIcon, Code, Collapse, ColorInput, ColorPicker, ColorSlider, ColorSwatch, Combobox, ComboboxChevron, ComboboxClearButton, ComboboxDropdown, ComboboxDropdownTarget, ComboboxEmpty, ComboboxEventsTarget, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxHiddenInput, ComboboxOption, ComboboxOptions, ComboboxSearch, ComboboxTarget, Container, CopyButton, DEFAULT_COLORS, DEFAULT_THEME, Dialog, DirectionContextKey, DirectionProvider, Divider, Dots, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerHeader, DrawerOverlay, DrawerRoot, DrawerStack, DrawerTitle, FLEX_STYLE_PROPS_DATA, Fieldset, FileButton, FileInput, FlatTreeNode, Flex, FloatingIndicator, FloatingWindow, FocusTrap, FocusTrapInitialFocus, Grid, GridCol, Group, HeadlessMantineProvider, Highlight, HoverCard, HoverCardDropdown, HoverCardGroup, HoverCardTarget, HueSlider, INVALID_PRIMARY_COLOR_ERROR, INVALID_PRIMARY_SHADE_ERROR, Image, Indicator, InlineStyles, Input, InputBase, InputClearButton, InputClearSection, InputDescription, InputError, InputLabel, InputPlaceholder, InputWrapper, JsonInput, Kbd, List, ListItem, Loader, LoadingOverlay, MantineClasses, MantineContextKey, MantineCssVariables, MantineProvider, MantineThemeKey, MantineThemeProvider, Mark, Marquee, MaskInput, Menu, MenuCheckboxGroup, MenuCheckboxItem, MenuContextMenu, MenuDivider, MenuDropdown, MenuItem, MenuLabel, MenuRadioGroup, MenuRadioItem, MenuSearch, MenuSub, MenuSubDropdown, MenuSubItem, MenuSubTarget, MenuTarget, Modal, ModalBase, ModalBaseBody, ModalBaseCloseButton, ModalBaseContent, ModalBaseHeader, ModalBaseOverlay, ModalBaseTitle, ModalBody, ModalCloseButton, ModalContent, ModalHeader, ModalOverlay, ModalRoot, ModalTitle, MultiSelect, NativeScrollArea, NativeSelect, NativeSelectOption, NavLink, Notification, NumberFormatter, NumberInput, NumberInputChevron, OptionalPortal, OptionsDropdown, Oval, OverflowList, Overlay, Pagination, PaginationControl, PaginationDots, PaginationFirst, PaginationItems, PaginationItemsGroup, PaginationLabel, PaginationLast, PaginationNext, PaginationPrevious, PaginationRoot, Paper, PasswordInput, PasswordToggleIcon, Pill, PillGroup, PillsInput, PillsInputField, PinInput, Popover, PopoverContextMenu, PopoverDropdown, PopoverTarget, Portal, Progress, ProgressLabel, ProgressRoot, ProgressSection, Radio, RadioCard, RadioGroup, RadioIcon, RadioIndicator, RangeSlider, Rating, RingProgress, RollingNumber, STYLE_PROPS_DATA, ScrollArea, ScrollAreaAutosize, Scroller, SegmentedControl, Select, SemiCircleProgress, SimpleGrid, Skeleton, Slider, Space, Splitter, SplitterPane, Spoiler, Stack, Stepper, StepperCompleted, StepperStep, Switch, SwitchGroup, Table, TableCaption, TableDataRenderer, TableOfContents, TableScrollContainer, TableTbody, TableTd, TableTfoot, TableTh, TableThead, TableTr, Tabs, TabsList, TabsPanel, TabsTab, TagsInput, Text, TextInput, Textarea, ThemeIcon, Timeline, TimelineItem, Title, Tooltip, TooltipFloating, TooltipGroup, Transition, Tree, TreeSelect, TreeSelectOption, Typography, UnstyledButton, VisuallyHidden, alpha, buildValue, camelToKebabCase, colorsTuple, convertCssVariables, convertHsvaTo, createEventHandler, createProviderColorScheme, createSafeContext, createSafeInjectionContext, createVarsResolver, cssVariablesObjectToString, darken, deepMerge, defaultCssVariablesResolver, defaultLoaders, defaultOptionsFilter, defaultTreeNodeFilter, defaultVariantColorsResolver, em, factory, factory as polymorphicFactory, filterProps, filterTreeData, findClosestNumber, flattenTreeData, foldAccents, formatNumber, getVariables as getAppShellVariables, getAutoContrastValue, getBaseValue, getBreakpointValue, getContrastColor, getDefaultZIndex, getDigitParts, getFontSize, getGradient, getInitials, getInitialsColor, getLineHeight, getMarkColor, getMergedVariables, getOptionsLockup, getParsedComboboxData, getParsedNativeSelectData, getPositionVariables, getPrimaryContrastColor, getPrimaryShade, getRadius, getRenderSlots, getRenderSlotsFromValues, getSafeId, getShadow, getSize, getSortedBreakpoints, getSpacing, getSplittedTags, getThemeColor, getTitleSize, getTreeExpandedState, hasNode, hashStyleProps, highlighter, hsvaToHex, hsvaToHexa, hsvaToHsl, hsvaToRgba, hsvaToRgbaObject, isColorValid, isEmptyComboboxData, isLightColor, isNumberLike, isOptionsGroup, isPrimitive, isVirtualColor, keys, lighten, luminance, memoize, mergeAsyncChildren, mergeMantineTheme, movePill, moveTreeNode, noop, parseColor, parseHex, parseHexa, parseHsla, parseHue, parseRgba, parseStyleProps, parseThemeColor, polymorphicProps, provideGridContext, provideListContext, provideMantineContext, provideMantineTheme, providePillsInputContext, px, rem, renderPolymorphic, resolveColorScheme, resolveNode, rgba, round, toRgba, useAccordionContext, useAccordionItemContext, useAppShellContext, useAvatarGroupContext, useCheckboxCardContext, useCheckboxGroupContext, useChipGroupContext, useCombobox, useComboboxContext, useComboboxTargetProps, useComputedColorScheme, useDirection, useDrawersStack, useFloatingIndicator, useForwardedRef, useGridContext, useHoverCardContext, useInputContext, useInputWrapperContext, useListContext, useMantineClassNamesPrefix, useMantineColorScheme, useMantineContext, useMantineCssVariablesResolver, useMantineDeduplicateInlineStyles, useMantineEnv, useMantineIsHeadless, useMantineStyleNonce, useMantineTheme, useMantineWithStaticClasses, useMenuContext, usePaginationContext, usePillGroupContext, usePillsInputContext, usePillsReorder, useProgressContext, useProps, useRadioCardContext, useRadioGroupContext, useRandomClassName, useSafeMantineTheme, useScrollAreaContext, useSplitterContext, useStepperContext, useStyles, useSwitchGroupContext, useTabsContext, useTree, useVirtualizedCombobox, validateJson, validateMantineTheme, validateOptions, virtualColor, withBoxProps };
31212
30986
 
31213
30987
  //# sourceMappingURL=index.mjs.map