@coveord/plasma-mantine 56.13.0 → 56.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/.turbo/turbo-build.log +4 -4
  2. package/.turbo/turbo-test.log +105 -113
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/cjs/components/Anchor/Anchor.d.ts +1 -1
  5. package/dist/cjs/components/Anchor/Anchor.d.ts.map +1 -1
  6. package/dist/cjs/components/Anchor/Anchor.js +1 -0
  7. package/dist/cjs/components/Anchor/Anchor.js.map +1 -1
  8. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  9. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.js +1 -0
  10. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  11. package/dist/cjs/components/Checkbox/Checkbox.d.ts.map +1 -1
  12. package/dist/cjs/components/Checkbox/Checkbox.js +1 -0
  13. package/dist/cjs/components/Checkbox/Checkbox.js.map +1 -1
  14. package/dist/cjs/components/CloseButton/CloseButton.d.ts.map +1 -1
  15. package/dist/cjs/components/CloseButton/CloseButton.js +1 -0
  16. package/dist/cjs/components/CloseButton/CloseButton.js.map +1 -1
  17. package/dist/cjs/components/DateRangePicker/DateRangePicker.d.ts +2 -2
  18. package/dist/cjs/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  19. package/dist/cjs/components/DateRangePicker/DateRangePicker.js +2 -1
  20. package/dist/cjs/components/DateRangePicker/DateRangePicker.js.map +1 -1
  21. package/dist/cjs/components/Flex/Flex.d.ts.map +1 -1
  22. package/dist/cjs/components/Flex/Flex.js +1 -0
  23. package/dist/cjs/components/Flex/Flex.js.map +1 -1
  24. package/dist/cjs/components/Group/Group.d.ts.map +1 -1
  25. package/dist/cjs/components/Group/Group.js +1 -0
  26. package/dist/cjs/components/Group/Group.js.map +1 -1
  27. package/dist/cjs/components/Header/Header.d.ts.map +1 -1
  28. package/dist/cjs/components/Header/Header.js +3 -1
  29. package/dist/cjs/components/Header/Header.js.map +1 -1
  30. package/dist/cjs/components/Kbd/Kbd.d.ts.map +1 -1
  31. package/dist/cjs/components/Kbd/Kbd.js +1 -0
  32. package/dist/cjs/components/Kbd/Kbd.js.map +1 -1
  33. package/dist/cjs/components/Loader/Loader.d.ts.map +1 -1
  34. package/dist/cjs/components/Loader/Loader.js +1 -0
  35. package/dist/cjs/components/Loader/Loader.js.map +1 -1
  36. package/dist/cjs/components/Notification/Notification.d.ts.map +1 -1
  37. package/dist/cjs/components/Notification/Notification.js +1 -0
  38. package/dist/cjs/components/Notification/Notification.js.map +1 -1
  39. package/dist/cjs/components/Pagination/Pagination.d.ts.map +1 -1
  40. package/dist/cjs/components/Pagination/Pagination.js +1 -0
  41. package/dist/cjs/components/Pagination/Pagination.js.map +1 -1
  42. package/dist/cjs/components/Pill/Pill.d.ts.map +1 -1
  43. package/dist/cjs/components/Pill/Pill.js +1 -0
  44. package/dist/cjs/components/Pill/Pill.js.map +1 -1
  45. package/dist/cjs/components/Progress/Progress.d.ts.map +1 -1
  46. package/dist/cjs/components/Progress/Progress.js +1 -0
  47. package/dist/cjs/components/Progress/Progress.js.map +1 -1
  48. package/dist/cjs/components/Radio/Radio.d.ts.map +1 -1
  49. package/dist/cjs/components/Radio/Radio.js +2 -0
  50. package/dist/cjs/components/Radio/Radio.js.map +1 -1
  51. package/dist/cjs/components/RadioCard/RadioCard.d.ts +4 -0
  52. package/dist/cjs/components/RadioCard/RadioCard.d.ts.map +1 -1
  53. package/dist/cjs/components/RadioCard/RadioCard.js +3 -1
  54. package/dist/cjs/components/RadioCard/RadioCard.js.map +1 -1
  55. package/dist/cjs/components/Slider/Slider.d.ts.map +1 -1
  56. package/dist/cjs/components/Slider/Slider.js +1 -0
  57. package/dist/cjs/components/Slider/Slider.js.map +1 -1
  58. package/dist/cjs/components/Stack/Stack.d.ts.map +1 -1
  59. package/dist/cjs/components/Stack/Stack.js +1 -0
  60. package/dist/cjs/components/Stack/Stack.js.map +1 -1
  61. package/dist/cjs/components/Switch/Switch.d.ts.map +1 -1
  62. package/dist/cjs/components/Switch/Switch.js +2 -0
  63. package/dist/cjs/components/Switch/Switch.js.map +1 -1
  64. package/dist/cjs/components/Text/Text.d.ts.map +1 -1
  65. package/dist/cjs/components/Text/Text.js +1 -0
  66. package/dist/cjs/components/Text/Text.js.map +1 -1
  67. package/dist/cjs/styles/RadioCard.module.css +19 -0
  68. package/dist/esm/components/Anchor/Anchor.d.ts +1 -1
  69. package/dist/esm/components/Anchor/Anchor.d.ts.map +1 -1
  70. package/dist/esm/components/Anchor/Anchor.js +2 -0
  71. package/dist/esm/components/Anchor/Anchor.js.map +1 -1
  72. package/dist/esm/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  73. package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +2 -0
  74. package/dist/esm/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  75. package/dist/esm/components/Checkbox/Checkbox.d.ts.map +1 -1
  76. package/dist/esm/components/Checkbox/Checkbox.js +2 -0
  77. package/dist/esm/components/Checkbox/Checkbox.js.map +1 -1
  78. package/dist/esm/components/CloseButton/CloseButton.d.ts.map +1 -1
  79. package/dist/esm/components/CloseButton/CloseButton.js +2 -0
  80. package/dist/esm/components/CloseButton/CloseButton.js.map +1 -1
  81. package/dist/esm/components/DateRangePicker/DateRangePicker.d.ts +2 -2
  82. package/dist/esm/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  83. package/dist/esm/components/DateRangePicker/DateRangePicker.js +2 -1
  84. package/dist/esm/components/DateRangePicker/DateRangePicker.js.map +1 -1
  85. package/dist/esm/components/Flex/Flex.d.ts.map +1 -1
  86. package/dist/esm/components/Flex/Flex.js +2 -0
  87. package/dist/esm/components/Flex/Flex.js.map +1 -1
  88. package/dist/esm/components/Group/Group.d.ts.map +1 -1
  89. package/dist/esm/components/Group/Group.js +2 -0
  90. package/dist/esm/components/Group/Group.js.map +1 -1
  91. package/dist/esm/components/Header/Header.d.ts.map +1 -1
  92. package/dist/esm/components/Header/Header.js +1 -0
  93. package/dist/esm/components/Header/Header.js.map +1 -1
  94. package/dist/esm/components/Kbd/Kbd.d.ts.map +1 -1
  95. package/dist/esm/components/Kbd/Kbd.js +2 -0
  96. package/dist/esm/components/Kbd/Kbd.js.map +1 -1
  97. package/dist/esm/components/Loader/Loader.d.ts.map +1 -1
  98. package/dist/esm/components/Loader/Loader.js +2 -0
  99. package/dist/esm/components/Loader/Loader.js.map +1 -1
  100. package/dist/esm/components/Notification/Notification.d.ts.map +1 -1
  101. package/dist/esm/components/Notification/Notification.js +2 -0
  102. package/dist/esm/components/Notification/Notification.js.map +1 -1
  103. package/dist/esm/components/Pagination/Pagination.d.ts.map +1 -1
  104. package/dist/esm/components/Pagination/Pagination.js +2 -0
  105. package/dist/esm/components/Pagination/Pagination.js.map +1 -1
  106. package/dist/esm/components/Pill/Pill.d.ts.map +1 -1
  107. package/dist/esm/components/Pill/Pill.js +2 -0
  108. package/dist/esm/components/Pill/Pill.js.map +1 -1
  109. package/dist/esm/components/Progress/Progress.d.ts.map +1 -1
  110. package/dist/esm/components/Progress/Progress.js +2 -0
  111. package/dist/esm/components/Progress/Progress.js.map +1 -1
  112. package/dist/esm/components/Radio/Radio.d.ts.map +1 -1
  113. package/dist/esm/components/Radio/Radio.js +3 -0
  114. package/dist/esm/components/Radio/Radio.js.map +1 -1
  115. package/dist/esm/components/RadioCard/RadioCard.d.ts +4 -0
  116. package/dist/esm/components/RadioCard/RadioCard.d.ts.map +1 -1
  117. package/dist/esm/components/RadioCard/RadioCard.js +2 -0
  118. package/dist/esm/components/RadioCard/RadioCard.js.map +1 -1
  119. package/dist/esm/components/Slider/Slider.d.ts.map +1 -1
  120. package/dist/esm/components/Slider/Slider.js +2 -0
  121. package/dist/esm/components/Slider/Slider.js.map +1 -1
  122. package/dist/esm/components/Stack/Stack.d.ts.map +1 -1
  123. package/dist/esm/components/Stack/Stack.js +2 -0
  124. package/dist/esm/components/Stack/Stack.js.map +1 -1
  125. package/dist/esm/components/Switch/Switch.d.ts.map +1 -1
  126. package/dist/esm/components/Switch/Switch.js +3 -0
  127. package/dist/esm/components/Switch/Switch.js.map +1 -1
  128. package/dist/esm/components/Text/Text.d.ts.map +1 -1
  129. package/dist/esm/components/Text/Text.js +2 -0
  130. package/dist/esm/components/Text/Text.js.map +1 -1
  131. package/dist/esm/styles/RadioCard.module.css +19 -0
  132. package/package.json +1 -1
  133. package/src/components/Anchor/Anchor.ts +6 -2
  134. package/src/components/Breadcrumbs/Breadcrumbs.ts +4 -0
  135. package/src/components/Checkbox/Checkbox.ts +3 -0
  136. package/src/components/CloseButton/CloseButton.ts +3 -0
  137. package/src/components/DateRangePicker/DateRangePicker.tsx +5 -3
  138. package/src/components/Flex/Flex.ts +4 -0
  139. package/src/components/Group/Group.ts +4 -0
  140. package/src/components/Header/Header.tsx +7 -2
  141. package/src/components/Kbd/Kbd.ts +4 -0
  142. package/src/components/Loader/Loader.ts +4 -0
  143. package/src/components/Notification/Notification.ts +4 -0
  144. package/src/components/Pagination/Pagination.ts +4 -0
  145. package/src/components/Pill/Pill.ts +4 -0
  146. package/src/components/Progress/Progress.ts +4 -0
  147. package/src/components/Radio/Radio.ts +5 -0
  148. package/src/components/RadioCard/RadioCard.tsx +6 -0
  149. package/src/components/Slider/Slider.ts +4 -0
  150. package/src/components/Stack/Stack.ts +4 -0
  151. package/src/components/Switch/Switch.ts +5 -0
  152. package/src/components/Text/Text.ts +4 -0
  153. package/src/styles/RadioCard.module.css +19 -0
@@ -17,6 +17,7 @@
17
17
 
18
18
  &[disabled] {
19
19
  pointer-events: none;
20
+ border-color: var(--mantine-color-default-border);
20
21
 
21
22
  .title {
22
23
  color: var(--mantine-color-disabled-color);
@@ -26,6 +27,24 @@
26
27
  color: var(--mantine-color-disabled-color);
27
28
  }
28
29
  }
30
+
31
+ &[readonly] {
32
+ pointer-events: none;
33
+ border-color: var(--mantine-color-default-border);
34
+
35
+ & .indicator {
36
+ border-color: var(--mantine-color-default-border);
37
+
38
+ &[data-checked] {
39
+ background-color: var(--coveo-color-bg-readonly);
40
+ color: var(--coveo-color-text-readonly);
41
+
42
+ & > svg {
43
+ color: var(--coveo-color-text-readonly);
44
+ }
45
+ }
46
+ }
47
+ }
29
48
  }
30
49
 
31
50
  .container {
@@ -1,2 +1,2 @@
1
- export { Anchor, type AnchorStylesNames, type AnchorFactory, type AnchorProps, type AnchorCssVariables, type AnchorVariant, } from '@mantine/core';
1
+ export { Anchor, type AnchorCssVariables, type AnchorFactory, type AnchorProps, type AnchorStylesNames, type AnchorVariant, } from '@mantine/core';
2
2
  //# sourceMappingURL=Anchor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../../../src/components/Anchor/Anchor.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,MAAM,EACN,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,aAAa,GACrB,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../../../src/components/Anchor/Anchor.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,MAAM,EACN,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,aAAa,GACrB,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Anchor } from '@mantine/core';
2
+ Anchor.displayName = 'Anchor';
1
3
  export { Anchor } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=Anchor.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Anchor/Anchor.ts"],"sourcesContent":["export {\n Anchor,\n type AnchorStylesNames,\n type AnchorFactory,\n type AnchorProps,\n type AnchorCssVariables,\n type AnchorVariant,\n} from '@mantine/core';\n"],"names":["Anchor"],"mappings":"AAAA,SACIA,MAAM,QAMH,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Anchor/Anchor.ts"],"sourcesContent":["import {Anchor} from '@mantine/core';\n\nAnchor.displayName = 'Anchor';\n\nexport {\n Anchor,\n type AnchorCssVariables,\n type AnchorFactory,\n type AnchorProps,\n type AnchorStylesNames,\n type AnchorVariant,\n} from '@mantine/core';\n"],"names":["Anchor","displayName"],"mappings":"AAAA,SAAQA,MAAM,QAAO,gBAAgB;AAErCA,OAAOC,WAAW,GAAG;AAErB,SACID,MAAM,QAMH,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/components/Breadcrumbs/Breadcrumbs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/components/Breadcrumbs/Breadcrumbs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,WAAW,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Breadcrumbs } from '@mantine/core';
2
+ Breadcrumbs.displayName = 'Breadcrumbs';
1
3
  export { Breadcrumbs } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=Breadcrumbs.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Breadcrumbs/Breadcrumbs.ts"],"sourcesContent":["export {Breadcrumbs, type BreadcrumbsFactory, type BreadcrumbsProps} from '@mantine/core';\n"],"names":["Breadcrumbs"],"mappings":"AAAA,SAAQA,WAAW,QAAuD,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Breadcrumbs/Breadcrumbs.ts"],"sourcesContent":["import {Breadcrumbs} from '@mantine/core';\n\nBreadcrumbs.displayName = 'Breadcrumbs';\n\nexport {Breadcrumbs, type BreadcrumbsFactory, type BreadcrumbsProps} from '@mantine/core';\n"],"names":["Breadcrumbs","displayName"],"mappings":"AAAA,SAAQA,WAAW,QAAO,gBAAgB;AAE1CA,YAAYC,WAAW,GAAG;AAE1B,SAAQD,WAAW,QAAuD,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/Checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/Checkbox.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,QAAQ,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Checkbox } from '@mantine/core';
2
+ Checkbox.displayName = 'Checkbox';
1
3
  export { Checkbox } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=Checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Checkbox/Checkbox.ts"],"sourcesContent":["export {Checkbox, type CheckboxFactory, type CheckboxProps} from '@mantine/core';\n"],"names":["Checkbox"],"mappings":"AAAA,SAAQA,QAAQ,QAAiD,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Checkbox/Checkbox.ts"],"sourcesContent":["import {Checkbox} from '@mantine/core';\nCheckbox.displayName = 'Checkbox';\n\nexport {Checkbox, type CheckboxFactory, type CheckboxProps} from '@mantine/core';\n"],"names":["Checkbox","displayName"],"mappings":"AAAA,SAAQA,QAAQ,QAAO,gBAAgB;AACvCA,SAASC,WAAW,GAAG;AAEvB,SAAQD,QAAQ,QAAiD,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"CloseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/CloseButton/CloseButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"CloseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/CloseButton/CloseButton.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,WAAW,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { CloseButton } from '@mantine/core';
2
+ CloseButton.displayName = 'CloseButton';
1
3
  export { CloseButton } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=CloseButton.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/CloseButton/CloseButton.ts"],"sourcesContent":["export {CloseButton, type CloseButtonFactory, type CloseButtonProps} from '@mantine/core';\n"],"names":["CloseButton"],"mappings":"AAAA,SAAQA,WAAW,QAAuD,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/CloseButton/CloseButton.ts"],"sourcesContent":["import {CloseButton} from '@mantine/core';\nCloseButton.displayName = 'CloseButton';\n\nexport {CloseButton, type CloseButtonFactory, type CloseButtonProps} from '@mantine/core';\n"],"names":["CloseButton","displayName"],"mappings":"AAAA,SAAQA,WAAW,QAAO,gBAAgB;AAC1CA,YAAYC,WAAW,GAAG;AAE1B,SAAQD,WAAW,QAAuD,gBAAgB"}
@@ -51,12 +51,12 @@ export interface DateRangePickerProps extends BoxProps, Pick<DateRangePickerInli
51
51
  }
52
52
  export type DateRangePickerFactory = Factory<{
53
53
  props: DateRangePickerProps;
54
- ref: HTMLDivElement;
54
+ ref: HTMLButtonElement;
55
55
  stylesNames: DateRangePickerStylesNames;
56
56
  }>;
57
57
  export declare const DateRangePicker: import("@mantine/core").MantineComponent<{
58
58
  props: DateRangePickerProps;
59
- ref: HTMLDivElement;
59
+ ref: HTMLButtonElement;
60
60
  stylesNames: DateRangePickerStylesNames;
61
61
  }>;
62
62
  //# sourceMappingURL=DateRangePicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/DateRangePicker/DateRangePicker.tsx"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EAER,OAAO,EAGP,YAAY,EACZ,cAAc,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAEhE,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAgC,kCAAkC,EAAC,MAAM,iCAAiC,CAAC;AAgBlH,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC;AAEjD,MAAM,WAAW,oBACb,SAAQ,QAAQ,EACZ,IAAI,CAAC,kCAAkC,EAAE,SAAS,GAAG,oBAAoB,GAAG,YAAY,GAAG,UAAU,CAAC,EACtG,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,eAAe,CAAC,EAC9C,cAAc,CAAC,sBAAsB,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,IAAI,IAAI,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,eAAe,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAChD;;OAEG;IACH,cAAc,CAAC,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvC;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,KAAK,MAAM,CAAC;IAC/C;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;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;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC;IACzC,KAAK,EAAE,oBAAoB,CAAC;IAC5B,GAAG,EAAE,iBAAiB,CAAC;IACvB,WAAW,EAAE,0BAA0B,CAAC;CAC3C,CAAC,CAAC;AAOH,eAAO,MAAM,eAAe;WAVjB,oBAAoB;SACtB,iBAAiB;iBACT,0BAA0B;EA+GzC,CAAC"}
@@ -29,7 +29,7 @@ const defaultProps = {
29
29
  placeholder: 'Select date range',
30
30
  formatter: (time)=>dayjs(time).format('MMM D, YYYY')
31
31
  };
32
- export const DateRangePicker = factory((props)=>{
32
+ export const DateRangePicker = factory((props, ref)=>{
33
33
  const { defaultValue, value, opened, defaultOpened, onOpenedChange, onClick, onCancel, onChange, presets, startProps, endProps, rangeCalendarProps, formatter, placeholder, syncWithUrl, error, className, classNames, style, styles, vars, unstyled, ...others } = useProps('PlasmaDateRangePicker', defaultProps, props);
34
34
  const getStyles = useStyles({
35
35
  name: 'DateRangePicker',
@@ -84,6 +84,7 @@ export const DateRangePicker = factory((props)=>{
84
84
  children: [
85
85
  /*#__PURE__*/ _jsx(Popover.Target, {
86
86
  children: /*#__PURE__*/ _jsx(InputBase, {
87
+ ref: ref,
87
88
  component: "button",
88
89
  leftSection: /*#__PURE__*/ _jsx(IconCalendar, {
89
90
  height: 16
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/DateRangePicker/DateRangePicker.tsx"],"sourcesContent":["import {IconCalendar} from '@coveord/plasma-react-icons';\nimport {\n BoxProps,\n factory,\n Factory,\n InputBase,\n Popover,\n PopoverProps,\n StylesApiProps,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {DatesRangeValue, DateStringValue} from '@mantine/dates';\nimport {useUncontrolled} from '@mantine/hooks';\nimport dayjs from 'dayjs';\nimport {useUrlSyncedState, UseUrlSyncedStateOptions} from '../../hooks/use-url-synced-state';\nimport classes from './DateRange.module.css';\nimport {DateRangePickerInlineCalendar, DateRangePickerInlineCalendarProps} from './DateRangePickerInlineCalendar';\n\nconst serialization = (input: Pick<UseUrlSyncedStateOptions<DatesRangeValue<string>>, 'serializer' | 'deserializer'>) =>\n Object.freeze(input);\n\nconst DATE_RANGE_SERIALIZATION = serialization({\n serializer: ([from, to]) => [\n ['from', from ? new Date(from).toISOString() : '', true],\n ['to', to ? new Date(to).toISOString() : '', true],\n ],\n deserializer: (params, initial) => [\n params.get('from') ? params.get('from') : initial[0],\n params.get('to') ? params.get('to') : initial[1],\n ],\n});\n\nexport type DateRangePickerStylesNames = 'input';\n\nexport interface DateRangePickerProps\n extends BoxProps,\n Pick<DateRangePickerInlineCalendarProps, 'presets' | 'rangeCalendarProps' | 'startProps' | 'endProps'>,\n Pick<PopoverProps, 'opened' | 'defaultOpened'>,\n StylesApiProps<DateRangePickerFactory> {\n /**\n * Called when the target input is clicked\n */\n onClick?(): void;\n /**\n * Function called when the cancel button is clicked.\n */\n onCancel?(): void;\n /**\n * Function called when the date range value changes.\n */\n onChange?(dates: DatesRangeValue<string>): void;\n /**\n * Called when the popover opened state changes.\n */\n onOpenedChange?(opened: boolean): void;\n /**\n * Optional formatter function to format the date value.\n * Receives the date prop and should return a string.\n * @default (time) => dayjs(time).format('MMM D, YYYY')\n */\n formatter?: (time: dayjs.ConfigType) => string;\n /**\n * The placeholder label to display when no date range is selected.\n *\n * @default \"Select date range\"\n */\n placeholder?: string;\n /**\n * Default value for uncontrolled input\n */\n defaultValue?: DatesRangeValue<string>;\n /**\n * Value for controlled input\n */\n value?: DatesRangeValue<string>;\n /**\n * Sync the selected dates to URL query parameters\n */\n syncWithUrl?: boolean;\n /**\n * Error message to display.\n */\n error?: string;\n}\n\nexport type DateRangePickerFactory = Factory<{\n props: DateRangePickerProps;\n ref: HTMLDivElement;\n stylesNames: DateRangePickerStylesNames;\n}>;\n\nconst defaultProps: Partial<DateRangePickerProps> = {\n placeholder: 'Select date range',\n formatter: (time) => dayjs(time).format('MMM D, YYYY'),\n};\n\nexport const DateRangePicker = factory<DateRangePickerFactory>((props: DateRangePickerProps) => {\n const {\n defaultValue,\n value,\n opened,\n defaultOpened,\n onOpenedChange,\n onClick,\n onCancel,\n onChange,\n presets,\n startProps,\n endProps,\n rangeCalendarProps,\n formatter,\n placeholder,\n syncWithUrl,\n error,\n className,\n classNames,\n style,\n styles,\n vars,\n unstyled,\n ...others\n } = useProps('PlasmaDateRangePicker', defaultProps as Partial<DateRangePickerProps>, props);\n\n const getStyles = useStyles<DateRangePickerFactory>({\n name: 'DateRangePicker',\n classes,\n props,\n className,\n classNames,\n style,\n styles,\n unstyled,\n vars,\n });\n const stylesApiProps = {classNames, styles};\n\n const [_opened, setOpened] = useUncontrolled({\n value: opened,\n defaultValue: defaultOpened,\n finalValue: false,\n onChange: onOpenedChange,\n });\n\n const [dateRange, setDateRange] = useUrlSyncedState<DatesRangeValue<string>>({\n ...DATE_RANGE_SERIALIZATION,\n initialState: defaultValue !== undefined ? defaultValue : [null, null],\n sync: !!syncWithUrl,\n });\n\n const handleApply = (dates: DatesRangeValue<string>) => {\n if (value === undefined) {\n setDateRange(dates);\n }\n onChange?.(dates);\n setOpened(false);\n };\n\n const handleClick = () => {\n setOpened(true);\n onClick?.();\n };\n\n const handleCancel = () => {\n setOpened(false);\n onCancel?.();\n };\n\n const _value = value ?? dateRange;\n const formattedRange = `${formatter(_value[0])} - ${formatter(_value[1])}`;\n const dateRangeInitialized = _value.every((date: DateStringValue) => typeof date === 'string' && date !== '');\n\n return (\n <Popover opened={_opened} onChange={setOpened}>\n <Popover.Target>\n <InputBase\n component=\"button\"\n leftSection={<IconCalendar height={16} />}\n onClick={handleClick}\n error={error}\n {...getStyles('input', {className, style, ...stylesApiProps})}\n {...others}\n >\n {dateRangeInitialized ? formattedRange : placeholder}\n </InputBase>\n </Popover.Target>\n <Popover.Dropdown p={0}>\n <DateRangePickerInlineCalendar\n initialRange={_value}\n onApply={handleApply}\n onCancel={handleCancel}\n presets={presets}\n rangeCalendarProps={rangeCalendarProps}\n startProps={startProps}\n endProps={endProps}\n />\n </Popover.Dropdown>\n </Popover>\n );\n});\n"],"names":["IconCalendar","factory","InputBase","Popover","useProps","useStyles","useUncontrolled","dayjs","useUrlSyncedState","classes","DateRangePickerInlineCalendar","serialization","input","Object","freeze","DATE_RANGE_SERIALIZATION","serializer","from","to","Date","toISOString","deserializer","params","initial","get","defaultProps","placeholder","formatter","time","format","DateRangePicker","props","defaultValue","value","opened","defaultOpened","onOpenedChange","onClick","onCancel","onChange","presets","startProps","endProps","rangeCalendarProps","syncWithUrl","error","className","classNames","style","styles","vars","unstyled","others","getStyles","name","stylesApiProps","_opened","setOpened","finalValue","dateRange","setDateRange","initialState","undefined","sync","handleApply","dates","handleClick","handleCancel","_value","formattedRange","dateRangeInitialized","every","date","Target","component","leftSection","height","Dropdown","p","initialRange","onApply"],"mappings":";AAAA,SAAQA,YAAY,QAAO,8BAA8B;AACzD,SAEIC,OAAO,EAEPC,SAAS,EACTC,OAAO,EAGPC,QAAQ,EACRC,SAAS,QACN,gBAAgB;AAEvB,SAAQC,eAAe,QAAO,iBAAiB;AAC/C,OAAOC,WAAW,QAAQ;AAC1B,SAAQC,iBAAiB,QAAiC,mCAAmC;AAC7F,OAAOC,aAAa,yBAAyB;AAC7C,SAAQC,6BAA6B,QAA2C,kCAAkC;AAElH,MAAMC,gBAAgB,CAACC,QACnBC,OAAOC,MAAM,CAACF;AAElB,MAAMG,2BAA2BJ,cAAc;IAC3CK,YAAY,CAAC,CAACC,MAAMC,GAAG,GAAK;YACxB;gBAAC;gBAAQD,OAAO,IAAIE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Ac,CAACC;QACjB,IAAIhC,UAAU6B,WAAW;YACrBF,aAAaK;QACjB;QACA1B,WAAW0B;QACXR,UAAU;IACd;IAEA,MAAMS,cAAc;QAChBT,UAAU;QACVpB;IACJ;IAEA,MAAM8B,eAAe;QACjBV,UAAU;QACVnB;IACJ;IAEA,MAAM8B,SAASnC,SAAS0B;IACxB,MAAMU,iBAAiB,GAAG1C,UAAUyC,MAAM,CAAC,EAAE,EAAE,GAAG,EAAEzC,UAAUyC,MAAM,CAAC,EAAE,GAAG;IAC1E,MAAME,uBAAuBF,OAAOG,KAAK,CAAC,CAACC,OAA0B,OAAOA,SAAS,YAAYA,SAAS;IAE1G,qBACI,MAACrE;QAAQ+B,QAAQsB;QAASjB,UAAUkB;;0BAChC,KAACtD,QAAQsE,MAAM;0BACX,cAAA,KAACvE;oBACGwE,WAAU;oBACVC,2BAAa,KAAC3E;wBAAa4E,QAAQ;;oBACnCvC,SAAS6B;oBACTrB,OAAOA;oBACN,GAAGQ,UAAU,SAAS;wBAACP;wBAAWE;wBAAO,GAAGO,cAAc;oBAAA,EAAE;oBAC5D,GAAGH,MAAM;8BAETkB,uBAAuBD,iBAAiB3C;;;0BAGjD,KAACvB,QAAQ0E,QAAQ;gBAACC,GAAG;0BACjB,cAAA,KAACpE;oBACGqE,cAAcX;oBACdY,SAAShB;oBACT1B,UAAU6B;oBACV3B,SAASA;oBACTG,oBAAoBA;oBACpBF,YAAYA;oBACZC,UAAUA;;;;;AAK9B,GAAG"}
1
+ {"version":3,"sources":["../../../../src/components/DateRangePicker/DateRangePicker.tsx"],"sourcesContent":["import {IconCalendar} from '@coveord/plasma-react-icons';\nimport {\n BoxProps,\n factory,\n Factory,\n InputBase,\n Popover,\n PopoverProps,\n StylesApiProps,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {DatesRangeValue, DateStringValue} from '@mantine/dates';\nimport {useUncontrolled} from '@mantine/hooks';\nimport dayjs from 'dayjs';\nimport {useUrlSyncedState, UseUrlSyncedStateOptions} from '../../hooks/use-url-synced-state';\nimport classes from './DateRange.module.css';\nimport {DateRangePickerInlineCalendar, DateRangePickerInlineCalendarProps} from './DateRangePickerInlineCalendar';\n\nconst serialization = (input: Pick<UseUrlSyncedStateOptions<DatesRangeValue<string>>, 'serializer' | 'deserializer'>) =>\n Object.freeze(input);\n\nconst DATE_RANGE_SERIALIZATION = serialization({\n serializer: ([from, to]) => [\n ['from', from ? new Date(from).toISOString() : '', true],\n ['to', to ? new Date(to).toISOString() : '', true],\n ],\n deserializer: (params, initial) => [\n params.get('from') ? params.get('from') : initial[0],\n params.get('to') ? params.get('to') : initial[1],\n ],\n});\n\nexport type DateRangePickerStylesNames = 'input';\n\nexport interface DateRangePickerProps\n extends\n BoxProps,\n Pick<DateRangePickerInlineCalendarProps, 'presets' | 'rangeCalendarProps' | 'startProps' | 'endProps'>,\n Pick<PopoverProps, 'opened' | 'defaultOpened'>,\n StylesApiProps<DateRangePickerFactory> {\n /**\n * Called when the target input is clicked\n */\n onClick?(): void;\n /**\n * Function called when the cancel button is clicked.\n */\n onCancel?(): void;\n /**\n * Function called when the date range value changes.\n */\n onChange?(dates: DatesRangeValue<string>): void;\n /**\n * Called when the popover opened state changes.\n */\n onOpenedChange?(opened: boolean): void;\n /**\n * Optional formatter function to format the date value.\n * Receives the date prop and should return a string.\n * @default (time) => dayjs(time).format('MMM D, YYYY')\n */\n formatter?: (time: dayjs.ConfigType) => string;\n /**\n * The placeholder label to display when no date range is selected.\n *\n * @default \"Select date range\"\n */\n placeholder?: string;\n /**\n * Default value for uncontrolled input\n */\n defaultValue?: DatesRangeValue<string>;\n /**\n * Value for controlled input\n */\n value?: DatesRangeValue<string>;\n /**\n * Sync the selected dates to URL query parameters\n */\n syncWithUrl?: boolean;\n /**\n * Error message to display.\n */\n error?: string;\n}\n\nexport type DateRangePickerFactory = Factory<{\n props: DateRangePickerProps;\n ref: HTMLButtonElement;\n stylesNames: DateRangePickerStylesNames;\n}>;\n\nconst defaultProps: Partial<DateRangePickerProps> = {\n placeholder: 'Select date range',\n formatter: (time) => dayjs(time).format('MMM D, YYYY'),\n};\n\nexport const DateRangePicker = factory<DateRangePickerFactory>((props: DateRangePickerProps, ref) => {\n const {\n defaultValue,\n value,\n opened,\n defaultOpened,\n onOpenedChange,\n onClick,\n onCancel,\n onChange,\n presets,\n startProps,\n endProps,\n rangeCalendarProps,\n formatter,\n placeholder,\n syncWithUrl,\n error,\n className,\n classNames,\n style,\n styles,\n vars,\n unstyled,\n ...others\n } = useProps('PlasmaDateRangePicker', defaultProps as Partial<DateRangePickerProps>, props);\n\n const getStyles = useStyles<DateRangePickerFactory>({\n name: 'DateRangePicker',\n classes,\n props,\n className,\n classNames,\n style,\n styles,\n unstyled,\n vars,\n });\n const stylesApiProps = {classNames, styles};\n\n const [_opened, setOpened] = useUncontrolled({\n value: opened,\n defaultValue: defaultOpened,\n finalValue: false,\n onChange: onOpenedChange,\n });\n\n const [dateRange, setDateRange] = useUrlSyncedState<DatesRangeValue<string>>({\n ...DATE_RANGE_SERIALIZATION,\n initialState: defaultValue !== undefined ? defaultValue : [null, null],\n sync: !!syncWithUrl,\n });\n\n const handleApply = (dates: DatesRangeValue<string>) => {\n if (value === undefined) {\n setDateRange(dates);\n }\n onChange?.(dates);\n setOpened(false);\n };\n\n const handleClick = () => {\n setOpened(true);\n onClick?.();\n };\n\n const handleCancel = () => {\n setOpened(false);\n onCancel?.();\n };\n\n const _value = value ?? dateRange;\n const formattedRange = `${formatter(_value[0])} - ${formatter(_value[1])}`;\n const dateRangeInitialized = _value.every((date: DateStringValue) => typeof date === 'string' && date !== '');\n\n return (\n <Popover opened={_opened} onChange={setOpened}>\n <Popover.Target>\n <InputBase\n ref={ref}\n component=\"button\"\n leftSection={<IconCalendar height={16} />}\n onClick={handleClick}\n error={error}\n {...getStyles('input', {className, style, ...stylesApiProps})}\n {...others}\n >\n {dateRangeInitialized ? formattedRange : placeholder}\n </InputBase>\n </Popover.Target>\n <Popover.Dropdown p={0}>\n <DateRangePickerInlineCalendar\n initialRange={_value}\n onApply={handleApply}\n onCancel={handleCancel}\n presets={presets}\n rangeCalendarProps={rangeCalendarProps}\n startProps={startProps}\n endProps={endProps}\n />\n </Popover.Dropdown>\n </Popover>\n );\n});\n"],"names":["IconCalendar","factory","InputBase","Popover","useProps","useStyles","useUncontrolled","dayjs","useUrlSyncedState","classes","DateRangePickerInlineCalendar","serialization","input","Object","freeze","DATE_RANGE_SERIALIZATION","serializer","from","to","Date","toISOString","deserializer","params","initial","get","defaultProps","placeholder","formatter","time","format","DateRangePicker","props","ref","defaultValue","value","opened","defaultOpened","onOpenedChange","onClick","onCancel","onChange","presets","startProps","endProps","rangeCalendarProps","syncWithUrl","error","className","classNames","style","styles","vars","unstyled","others","getStyles","name","stylesApiProps","_opened","setOpened","finalValue","dateRange","setDateRange","initialState","undefined","sync","handleApply","dates","handleClick","handleCancel","_value","formattedRange","dateRangeInitialized","every","date","Target","component","leftSection","height","Dropdown","p","initialRange","onApply"],"mappings":";AAAA,SAAQA,YAAY,QAAO,8BAA8B;AACzD,SAEIC,OAAO,EAEPC,SAAS,EACTC,OAAO,EAGPC,QAAQ,EACRC,SAAS,QACN,gBAAgB;AAEvB,SAAQC,eAAe,QAAO,iBAAiB;AAC/C,OAAOC,WAAW,QAAQ;AAC1B,SAAQC,iBAAiB,QAAiC,mCAAmC;AAC7F,OAAOC,aAAa,yBAAyB;AAC7C,SAAQC,6BAA6B,QAA2C,kCAAkC;AAElH,MAAMC,gBAAgB,CAACC,QACnBC,OAAOC,MAAM,CAACF;AAElB,MAAMG,2BAA2BJ,cAAc;IAC3CK,YAAY,CAAC,CAACC,MAAMC,GAAG,GAAK;YACxB;gBAAC;gBAAQD,OAAO,IAAIE,KAAKF,MAAMG,WAAW,KAAK;gBAAI;aAAK;YACxD;gBAAC;gBAAMF,KAAK,IAAIC,KAAKD,IAAIE,WAAW,KAAK;gBAAI;aAAK;SACrD;IACDC,cAAc,CAACC,QAAQC,UAAY;YAC/BD,OAAO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QACjBV,UAAU;QACVnB;IACJ;IAEA,MAAM8B,SAASnC,SAAS0B;IACxB,MAAMU,iBAAiB,GAAG3C,UAAU0C,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE1C,UAAU0C,MAAM,CAAC,EAAE,GAAG;IAC1E,MAAME,uBAAuBF,OAAOG,KAAK,CAAC,CAACC,OAA0B,OAAOA,SAAS,YAAYA,SAAS;IAE1G,qBACI,MAACtE;QAAQgC,QAAQsB;QAASjB,UAAUkB;;0BAChC,KAACvD,QAAQuE,MAAM;0BACX,cAAA,KAACxE;oBACG8B,KAAKA;oBACL2C,WAAU;oBACVC,2BAAa,KAAC5E;wBAAa6E,QAAQ;;oBACnCvC,SAAS6B;oBACTrB,OAAOA;oBACN,GAAGQ,UAAU,SAAS;wBAACP;wBAAWE;wBAAO,GAAGO,cAAc;oBAAA,EAAE;oBAC5D,GAAGH,MAAM;8BAETkB,uBAAuBD,iBAAiB5C;;;0BAGjD,KAACvB,QAAQ2E,QAAQ;gBAACC,GAAG;0BACjB,cAAA,KAACrE;oBACGsE,cAAcX;oBACdY,SAAShB;oBACT1B,UAAU6B;oBACV3B,SAASA;oBACTG,oBAAoBA;oBACpBF,YAAYA;oBACZC,UAAUA;;;;;AAK9B,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../../src/components/Flex/Flex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../../src/components/Flex/Flex.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Flex } from '@mantine/core';
2
+ Flex.displayName = 'Flex';
1
3
  export { Flex } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=Flex.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Flex/Flex.ts"],"sourcesContent":["export {Flex, type FlexFactory, type FlexProps} from '@mantine/core';\n"],"names":["Flex"],"mappings":"AAAA,SAAQA,IAAI,QAAyC,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Flex/Flex.ts"],"sourcesContent":["import {Flex} from '@mantine/core';\n\nFlex.displayName = 'Flex';\n\nexport {Flex, type FlexFactory, type FlexProps} from '@mantine/core';\n"],"names":["Flex","displayName"],"mappings":"AAAA,SAAQA,IAAI,QAAO,gBAAgB;AAEnCA,KAAKC,WAAW,GAAG;AAEnB,SAAQD,IAAI,QAAyC,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../src/components/Group/Group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../src/components/Group/Group.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Group } from '@mantine/core';
2
+ Group.displayName = 'Group';
1
3
  export { Group } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=Group.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Group/Group.ts"],"sourcesContent":["export {Group, type GroupFactory, type GroupProps} from '@mantine/core';\n"],"names":["Group"],"mappings":"AAAA,SAAQA,KAAK,QAA2C,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Group/Group.ts"],"sourcesContent":["import {Group} from '@mantine/core';\n\nGroup.displayName = 'Group';\n\nexport {Group, type GroupFactory, type GroupProps} from '@mantine/core';\n"],"names":["Group","displayName"],"mappings":"AAAA,SAAQ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,gBAAgB,EAAE,OAAO,sBAAsB,CAAC;QAChD,cAAc,EAAE,OAAO,oBAAoB,CAAC;QAC5C,KAAK,EAAE,OAAO,WAAW,CAAC;QAC1B,SAAS,EAAE,OAAO,eAAe,CAAC;KACrC,CAAC;CACL,CAAC,CAAC;AAUH,eAAO,MAAM,MAAM;WArBR,WAAW;SACb,cAAc;aACV,aAAa;iBACT,gBAAgB;sBACX;QACd,WAAW,EAAE,OAAO,iBAAiB,CAAC;QACtC,gBAAgB,EAAE,OAAO,sBAAsB,CAAC;QAChD,cAAc,EAAE,OAAO,oBAAoB,CAAC;QAC5C,KAAK,EAAE,OAAO,WAAW,CAAC;QAC1B,SAAS,EAAE,OAAO,eAAe,CAAC;KACrC;EA0EH,CAAC"}
@@ -63,6 +63,7 @@ export const Header = factory((_props, ref)=>{
63
63
  ]
64
64
  }),
65
65
  /*#__PURE__*/ _jsx(Text, {
66
+ component: "div",
66
67
  ...getStyles('description', stylesApiProps),
67
68
  size: variant === 'primary' ? 'md' : 'sm',
68
69
  children: description
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Header/Header.tsx"],"sourcesContent":["import {\n Divider,\n Factory,\n Group,\n GroupProps,\n Stack,\n StylesApiProps,\n Text,\n Title,\n factory,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {Children, ElementType, ReactElement, ReactNode} from 'react';\nimport {HeaderProvider} from './Header.context.js';\nimport classes from './Header.module.css';\nimport {\n HeaderBreadcrumbAnchor,\n type HeaderBreadcrumbAnchorStyleNames,\n} from './HeaderBreadcrumbs/HeaderBreadcrumbAnchor.js';\nimport {HeaderBreadcrumbs, HeaderBreadcrumbsStyleNames} from './HeaderBreadcrumbs/HeaderBreadcrumbs.js';\nimport {HeaderBreadcrumbText, HeaderBreadcrumbTextStyleNames} from './HeaderBreadcrumbs/HeaderBreadcrumbText.js';\nimport {HeaderDocAnchor, HeaderDocAnchorStyleNames} from './HeaderDocAnchor/HeaderDocAnchor.js';\nimport {HeaderRight, HeaderRightStyleNames} from './HeaderRight/HeaderRight.js';\n\nexport type {HeaderBreadcrumbsProps} from './HeaderBreadcrumbs/HeaderBreadcrumbs.js';\nexport type {HeaderDocAnchorProps} from './HeaderDocAnchor/HeaderDocAnchor.js';\nexport type {HeaderRightProps} from './HeaderRight/HeaderRight.js';\n\nexport type HeaderVariant = 'primary' | 'secondary';\nexport type HeaderStyleNames =\n | 'root'\n | 'title'\n | 'description'\n | 'divider'\n | 'body'\n | HeaderDocAnchorStyleNames\n | HeaderBreadcrumbsStyleNames\n | HeaderBreadcrumbAnchorStyleNames\n | HeaderBreadcrumbTextStyleNames\n | HeaderRightStyleNames;\n\nexport interface HeaderProps\n extends StylesApiProps<HeaderFactory>,\n Omit<GroupProps, 'classNames' | 'styles' | 'vars' | 'variant' | 'attributes'> {\n /**\n * The description text displayed inside the header underneath the title\n */\n description?: ReactNode;\n /**\n * Whether the header should have a border on the bottom\n */\n borderBottom?: boolean;\n /**\n * Use the primary variant for page header and secondary variant elsewhere\n *\n * @default 'primary'\n */\n variant?: 'primary' | 'secondary';\n /**\n * The title of the header.\n */\n children: ReactNode;\n /**\n * The component used to render the title.\n *\n * @default Title\n * @example 'h2'\n */\n titleComponent?: ElementType;\n}\n\nexport type HeaderFactory = Factory<{\n props: HeaderProps;\n ref: HTMLDivElement;\n variant: HeaderVariant;\n stylesNames: HeaderStyleNames;\n staticComponents: {\n Breadcrumbs: typeof HeaderBreadcrumbs;\n BreadcrumbAnchor: typeof HeaderBreadcrumbAnchor;\n BreadcrumbText: typeof HeaderBreadcrumbText;\n Right: typeof HeaderRight;\n DocAnchor: typeof HeaderDocAnchor;\n };\n}>;\n\nconst defaultProps: Partial<HeaderProps> = {\n variant: 'primary',\n justify: 'space-between',\n wrap: 'nowrap',\n};\n\nconst getSpacing = (variant: HeaderVariant) => (variant === 'secondary' ? 'xxs' : 'xs');\n\nexport const Header = factory<HeaderFactory>((_props, ref) => {\n const props = useProps('PlasmaHeader', defaultProps, _props);\n const {\n className,\n description,\n borderBottom,\n variant,\n children,\n style,\n classNames,\n unstyled,\n vars,\n styles,\n titleComponent: TitleComponent,\n ...others\n } = props;\n const getStyles = useStyles<HeaderFactory>({\n name: 'PlasmaHeader',\n props,\n classes,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n });\n const stylesApiProps = {classNames, styles};\n\n const convertedChildren = Children.toArray(children) as ReactElement[];\n const breadcrumbs = convertedChildren.find((child) => child.type === HeaderBreadcrumbs);\n const right = convertedChildren.find((child) => child.type === HeaderRight);\n const docAnchor = convertedChildren.find((child) => child.type === HeaderDocAnchor);\n const otherChildren = convertedChildren.filter(\n (child) => child.type !== HeaderBreadcrumbs && child.type !== HeaderRight && child.type !== HeaderDocAnchor,\n );\n return (\n <HeaderProvider value={{getStyles}}>\n <Group ref={ref} variant={variant} {...getStyles('root')} {...others}>\n <Stack gap={getSpacing(variant)}>\n {breadcrumbs}\n <Title\n variant={variant}\n component={TitleComponent}\n order={variant === 'primary' ? 1 : 3}\n {...getStyles('title', stylesApiProps)}\n >\n {otherChildren}\n {docAnchor}\n </Title>\n <Text {...getStyles('description', stylesApiProps)} size={variant === 'primary' ? 'md' : 'sm'}>\n {description}\n </Text>\n </Stack>\n {right}\n </Group>\n {borderBottom ? <Divider {...getStyles('divider', stylesApiProps)} size=\"xs\" /> : null}\n </HeaderProvider>\n );\n});\n\nHeader.Breadcrumbs = HeaderBreadcrumbs;\nHeader.BreadcrumbAnchor = HeaderBreadcrumbAnchor;\nHeader.BreadcrumbText = HeaderBreadcrumbText;\nHeader.Right = HeaderRight;\nHeader.DocAnchor = HeaderDocAnchor;\n"],"names":["Divider","Group","Stack","Text","Title","factory","useProps","useStyles","Children","HeaderProvider","classes","HeaderBreadcrumbAnchor","HeaderBreadcrumbs","HeaderBreadcrumbText","HeaderDocAnchor","HeaderRight","defaultProps","variant","justify","wrap","getSpacing","Header","_props","ref","props","className","description","borderBottom","children","style","classNames","unstyled","vars","styles","titleComponent","TitleComponent","others","getStyles","name","stylesApiProps","convertedChildren","toArray","breadcrumbs","find","child","type","right","docAnchor","otherChildren","filter","value","gap","component","order","size","Breadcrumbs","BreadcrumbAnchor","BreadcrumbText","Right","DocAnchor"],"mappings":";AAAA,SACIA,OAAO,EAEPC,KAAK,EAELC,KAAK,EAELC,IAAI,EACJC,KAAK,EACLC,OAAO,EACPC,QAAQ,EACRC,SAAS,QACN,gBAAgB;AACvB,SAAQC,QAAQ,QAA6C,QAAQ;AACrE,SAAQC,cAAc,QAAO,sBAAsB;AACnD,OAAOC,aAAa,sBAAsB;AAC1C,SACIC,sBAAsB,QAEnB,gDAAgD;AACvD,SAAQC,iBAAiB,QAAoC,2CAA2C;AACxG,SAAQC,oBAAoB,QAAuC,8CAA8C;AACjH,SAAQC,eAAe,QAAkC,uCAAuC;AAChG,SAAQC,WAAW,QAA8B,+BAA+B;AA+DhF,MAAMC,eAAqC;IACvCC,SAAS;IACTC,SAAS;IACTC,MAAM;AACV;AAEA,MAAMC,aAAa,CAACH,UAA4BA,YAAY,cAAc,QAAQ;AAElF,OAAO,MAAMI,SAAShB,QAAuB,CAACiB,QAAQC;IAClD,MAAMC,QAAQlB,SAAS,gBAAgBU,cAAcM;IACrD,MAAM,EACFG,SAAS,EACTC,WAAW,EACXC,YAAY,EACZV,OAAO,EACPW,QAAQ,EACRC,KAAK,EACLC,UAAU,EACVC,QAAQ,EACRC,IAAI,EACJC,MAAM,EACNC,gBAAgBC,cAAc,EAC9B,GAAGC,QACN,GAAGZ;IACJ,MAAMa,YAAY9B,UAAyB;QACvC+B,MAAM;QACNd;QACAd;QACAe;QACAI;QACAC;QACAG;QACAF;QACAC;IACJ;IACA,MAAMO,iBAAiB;QAACT;QAAYG;IAAM;IAE1C,MAAMO,oBAAoBhC,SAASiC,OAAO,CAACb;IAC3C,MAAMc,cAAcF,kBAAkBG,IAAI,CAAC,CAACC,QAAUA,MAAMC,IAAI,KAAKjC;IACrE,MAAMkC,QAAQN,kBAAkBG,IAAI,CAAC,CAACC,QAAUA,MAAMC,IAAI,KAAK9B;IAC/D,MAAMgC,YAAYP,kBAAkBG,IAAI,CAAC,CAACC,QAAUA,MAAMC,IAAI,KAAK/B;IACnE,MAAMkC,gBAAgBR,kBAAkBS,MAAM,CAC1C,CAACL,QAAUA,MAAMC,IAAI,KAAKjC,qBAAqBgC,MAAMC,IAAI,KAAK9B,eAAe6B,MAAMC,IAAI,KAAK/B;IAEhG,qBACI,MAACL;QAAeyC,OAAO;YAACb;QAAS;;0BAC7B,MAACpC;gBAAMsB,KAAKA;gBAAKN,SAASA;gBAAU,GAAGoB,UAAU,OAAO;gBAAG,GAAGD,MAAM;;kCAChE,MAAClC;wBAAMiD,KAAK/B,WAAWH;;4BAClByB;0CACD,MAACtC;gCACGa,SAASA;gCACTmC,WAAWjB;gCACXkB,OAAOpC,YAAY,YAAY,IAAI;gCAClC,GAAGoB,UAAU,SAASE,eAAe;;oCAErCS;oCACAD;;;0CAEL,KAAC5C;gCAAM,GAAGkC,UAAU,eAAeE,eAAe;gCAAEe,MAAMrC,YAAY,YAAY,OAAO;0CACpFS;;;;oBAGRoB;;;YAEJnB,6BAAe,KAAC3B;gBAAS,GAAGqC,UAAU,WAAWE,eAAe;gBAAEe,MAAK;iBAAU;;;AAG9F,GAAG;AAEHjC,OAAOkC,WAAW,GAAG3C;AACrBS,OAAOmC,gBAAgB,GAAG7C;AAC1BU,OAAOoC,cAAc,GAAG5C;AACxBQ,OAAOqC,KAAK,GAAG3C;AACfM,OAAOsC,SAAS,GAAG7C"}
1
+ {"version":3,"sources":["../../../../src/components/Header/Header.tsx"],"sourcesContent":["import {\n Divider,\n Factory,\n Group,\n GroupProps,\n Stack,\n StylesApiProps,\n Text,\n Title,\n factory,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {Children, ElementType, ReactElement, ReactNode} from 'react';\nimport {HeaderProvider} from './Header.context.js';\nimport classes from './Header.module.css';\nimport {\n HeaderBreadcrumbAnchor,\n type HeaderBreadcrumbAnchorStyleNames,\n} from './HeaderBreadcrumbs/HeaderBreadcrumbAnchor.js';\nimport {HeaderBreadcrumbs, HeaderBreadcrumbsStyleNames} from './HeaderBreadcrumbs/HeaderBreadcrumbs.js';\nimport {HeaderBreadcrumbText, HeaderBreadcrumbTextStyleNames} from './HeaderBreadcrumbs/HeaderBreadcrumbText.js';\nimport {HeaderDocAnchor, HeaderDocAnchorStyleNames} from './HeaderDocAnchor/HeaderDocAnchor.js';\nimport {HeaderRight, HeaderRightStyleNames} from './HeaderRight/HeaderRight.js';\n\nexport type {HeaderBreadcrumbsProps} from './HeaderBreadcrumbs/HeaderBreadcrumbs.js';\nexport type {HeaderDocAnchorProps} from './HeaderDocAnchor/HeaderDocAnchor.js';\nexport type {HeaderRightProps} from './HeaderRight/HeaderRight.js';\n\nexport type HeaderVariant = 'primary' | 'secondary';\nexport type HeaderStyleNames =\n | 'root'\n | 'title'\n | 'description'\n | 'divider'\n | 'body'\n | HeaderDocAnchorStyleNames\n | HeaderBreadcrumbsStyleNames\n | HeaderBreadcrumbAnchorStyleNames\n | HeaderBreadcrumbTextStyleNames\n | HeaderRightStyleNames;\n\nexport interface HeaderProps\n extends\n StylesApiProps<HeaderFactory>,\n Omit<GroupProps, 'classNames' | 'styles' | 'vars' | 'variant' | 'attributes'> {\n /**\n * The description text displayed inside the header underneath the title\n */\n description?: ReactNode;\n /**\n * Whether the header should have a border on the bottom\n */\n borderBottom?: boolean;\n /**\n * Use the primary variant for page header and secondary variant elsewhere\n *\n * @default 'primary'\n */\n variant?: 'primary' | 'secondary';\n /**\n * The title of the header.\n */\n children: ReactNode;\n /**\n * The component used to render the title.\n *\n * @default Title\n * @example 'h2'\n */\n titleComponent?: ElementType;\n}\n\nexport type HeaderFactory = Factory<{\n props: HeaderProps;\n ref: HTMLDivElement;\n variant: HeaderVariant;\n stylesNames: HeaderStyleNames;\n staticComponents: {\n Breadcrumbs: typeof HeaderBreadcrumbs;\n BreadcrumbAnchor: typeof HeaderBreadcrumbAnchor;\n BreadcrumbText: typeof HeaderBreadcrumbText;\n Right: typeof HeaderRight;\n DocAnchor: typeof HeaderDocAnchor;\n };\n}>;\n\nconst defaultProps: Partial<HeaderProps> = {\n variant: 'primary',\n justify: 'space-between',\n wrap: 'nowrap',\n};\n\nconst getSpacing = (variant: HeaderVariant) => (variant === 'secondary' ? 'xxs' : 'xs');\n\nexport const Header = factory<HeaderFactory>((_props, ref) => {\n const props = useProps('PlasmaHeader', defaultProps, _props);\n const {\n className,\n description,\n borderBottom,\n variant,\n children,\n style,\n classNames,\n unstyled,\n vars,\n styles,\n titleComponent: TitleComponent,\n ...others\n } = props;\n const getStyles = useStyles<HeaderFactory>({\n name: 'PlasmaHeader',\n props,\n classes,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n });\n const stylesApiProps = {classNames, styles};\n\n const convertedChildren = Children.toArray(children) as ReactElement[];\n const breadcrumbs = convertedChildren.find((child) => child.type === HeaderBreadcrumbs);\n const right = convertedChildren.find((child) => child.type === HeaderRight);\n const docAnchor = convertedChildren.find((child) => child.type === HeaderDocAnchor);\n const otherChildren = convertedChildren.filter(\n (child) => child.type !== HeaderBreadcrumbs && child.type !== HeaderRight && child.type !== HeaderDocAnchor,\n );\n return (\n <HeaderProvider value={{getStyles}}>\n <Group ref={ref} variant={variant} {...getStyles('root')} {...others}>\n <Stack gap={getSpacing(variant)}>\n {breadcrumbs}\n <Title\n variant={variant}\n component={TitleComponent}\n order={variant === 'primary' ? 1 : 3}\n {...getStyles('title', stylesApiProps)}\n >\n {otherChildren}\n {docAnchor}\n </Title>\n <Text\n component=\"div\"\n {...getStyles('description', stylesApiProps)}\n size={variant === 'primary' ? 'md' : 'sm'}\n >\n {description}\n </Text>\n </Stack>\n {right}\n </Group>\n {borderBottom ? <Divider {...getStyles('divider', stylesApiProps)} size=\"xs\" /> : null}\n </HeaderProvider>\n );\n});\n\nHeader.Breadcrumbs = HeaderBreadcrumbs;\nHeader.BreadcrumbAnchor = HeaderBreadcrumbAnchor;\nHeader.BreadcrumbText = HeaderBreadcrumbText;\nHeader.Right = HeaderRight;\nHeader.DocAnchor = HeaderDocAnchor;\n"],"names":["Divider","Group","Stack","Text","Title","factory","useProps","useStyles","Children","HeaderProvider","classes","HeaderBreadcrumbAnchor","HeaderBreadcrumbs","HeaderBreadcrumbText","HeaderDocAnchor","HeaderRight","defaultProps","variant","justify","wrap","getSpacing","Header","_props","ref","props","className","description","borderBottom","children","style","classNames","unstyled","vars","styles","titleComponent","TitleComponent","others","getStyles","name","stylesApiProps","convertedChildren","toArray","breadcrumbs","find","child","type","right","docAnchor","otherChildren","filter","value","gap","component","order","size","Breadcrumbs","BreadcrumbAnchor","BreadcrumbText","Right","DocAnchor"],"mappings":";AAAA,SACIA,OAAO,EAEPC,KAAK,EAELC,KAAK,EAELC,IAAI,EACJC,KAAK,EACLC,OAAO,EACPC,QAAQ,EACRC,SAAS,QACN,gBAAgB;AACvB,SAAQC,QAAQ,QAA6C,QAAQ;AACrE,SAAQC,cAAc,QAAO,sBAAsB;AACnD,OAAOC,aAAa,sBAAsB;AAC1C,SACIC,sBAAsB,QAEnB,gDAAgD;AACvD,SAAQC,iBAAiB,QAAoC,2CAA2C;AACxG,SAAQC,oBAAoB,QAAuC,8CAA8C;AACjH,SAAQC,eAAe,QAAkC,uCAAuC;AAChG,SAAQC,WAAW,QAA8B,+BAA+B;AAgEhF,MAAMC,eAAqC;IACvCC,SAAS;IACTC,SAAS;IACTC,MAAM;AACV;AAEA,MAAMC,aAAa,CAACH,UAA4BA,YAAY,cAAc,QAAQ;AAElF,OAAO,MAAMI,SAAShB,QAAuB,CAACiB,QAAQC;IAClD,MAAMC,QAAQlB,SAAS,gBAAgBU,cAAcM;IACrD,MAAM,EACFG,SAAS,EACTC,WAAW,EACXC,YAAY,EACZV,OAAO,EACPW,QAAQ,EACRC,KAAK,EACLC,UAAU,EACVC,QAAQ,EACRC,IAAI,EACJC,MAAM,EACNC,gBAAgBC,cAAc,EAC9B,GAAGC,QACN,GAAGZ;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;AACfM,OAAOsC,SAAS,GAAG7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"Kbd.d.ts","sourceRoot":"","sources":["../../../../src/components/Kbd/Kbd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Kbd.d.ts","sourceRoot":"","sources":["../../../../src/components/Kbd/Kbd.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,GAAG,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Kbd } from '@mantine/core';
2
+ Kbd.displayName = 'Kbd';
1
3
  export { Kbd } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=Kbd.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Kbd/Kbd.ts"],"sourcesContent":["export {Kbd, type KbdFactory, type KbdProps} from '@mantine/core';\n"],"names":["Kbd"],"mappings":"AAAA,SAAQA,GAAG,QAAuC,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Kbd/Kbd.ts"],"sourcesContent":["import {Kbd} from '@mantine/core';\n\nKbd.displayName = 'Kbd';\n\nexport {Kbd, type KbdFactory, type KbdProps} from '@mantine/core';\n"],"names":["Kbd","displayName"],"mappings":"AAAA,SAAQA,GAAG,QAAO,gBAAgB;AAElCA,IAAIC,WAAW,GAAG;AAElB,SAAQD,GAAG,QAAuC,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../../src/components/Loader/Loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../../src/components/Loader/Loader.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Loader } from '@mantine/core';
2
+ Loader.displayName = 'Loader';
1
3
  export { Loader } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=Loader.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Loader/Loader.ts"],"sourcesContent":["export {Loader, type LoaderFactory, type LoaderProps} from '@mantine/core';\n"],"names":["Loader"],"mappings":"AAAA,SAAQA,MAAM,QAA6C,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Loader/Loader.ts"],"sourcesContent":["import {Loader} from '@mantine/core';\n\nLoader.displayName = 'Loader';\n\nexport {Loader, type LoaderFactory, type LoaderProps} from '@mantine/core';\n"],"names":["Loader","displayName"],"mappings":"AAAA,SAAQA,MAAM,QAAO,gBAAgB;AAErCA,OAAOC,WAAW,GAAG;AAErB,SAAQD,MAAM,QAA6C,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/Notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/Notification.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,YAAY,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Notification } from '@mantine/core';
2
+ Notification.displayName = 'Notification';
1
3
  export { Notification } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=Notification.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Notification/Notification.ts"],"sourcesContent":["export {Notification, type NotificationFactory, type NotificationProps} from '@mantine/core';\n"],"names":["Notification"],"mappings":"AAAA,SAAQA,YAAY,QAAyD,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Notification/Notification.ts"],"sourcesContent":["import {Notification} from '@mantine/core';\n\nNotification.displayName = 'Notification';\n\nexport {Notification, type NotificationFactory, type NotificationProps} from '@mantine/core';\n"],"names":["Notification","displayName"],"mappings":"AAAA,SAAQA,YAAY,QAAO,gBAAgB;AAE3CA,aAAaC,WAAW,GAAG;AAE3B,SAAQD,YAAY,QAAyD,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/Pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/Pagination.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,UAAU,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Pagination } from '@mantine/core';
2
+ Pagination.displayName = 'Pagination';
1
3
  export { Pagination } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=Pagination.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Pagination/Pagination.ts"],"sourcesContent":["export {Pagination, type PaginationFactory, type PaginationProps} from '@mantine/core';\n"],"names":["Pagination"],"mappings":"AAAA,SAAQA,UAAU,QAAqD,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Pagination/Pagination.ts"],"sourcesContent":["import {Pagination} from '@mantine/core';\n\nPagination.displayName = 'Pagination';\n\nexport {Pagination, type PaginationFactory, type PaginationProps} from '@mantine/core';\n"],"names":["Pagination","displayName"],"mappings":"AAAA,SAAQA,UAAU,QAAO,gBAAgB;AAEzCA,WAAWC,WAAW,GAAG;AAEzB,SAAQD,UAAU,QAAqD,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Pill.d.ts","sourceRoot":"","sources":["../../../../src/components/Pill/Pill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Pill.d.ts","sourceRoot":"","sources":["../../../../src/components/Pill/Pill.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Pill } from '@mantine/core';
2
+ Pill.displayName = 'Pill';
1
3
  export { Pill } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=Pill.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Pill/Pill.ts"],"sourcesContent":["export {Pill, type PillFactory, type PillProps} from '@mantine/core';\n"],"names":["Pill"],"mappings":"AAAA,SAAQA,IAAI,QAAyC,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Pill/Pill.ts"],"sourcesContent":["import {Pill} from '@mantine/core';\n\nPill.displayName = 'Pill';\n\nexport {Pill, type PillFactory, type PillProps} from '@mantine/core';\n"],"names":["Pill","displayName"],"mappings":"AAAA,SAAQA,IAAI,QAAO,gBAAgB;AAEnCA,KAAKC,WAAW,GAAG;AAEnB,SAAQD,IAAI,QAAyC,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../../src/components/Progress/Progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../../src/components/Progress/Progress.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,QAAQ,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Progress } from '@mantine/core';
2
+ Progress.displayName = 'Progress';
1
3
  export { Progress } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=Progress.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Progress/Progress.ts"],"sourcesContent":["export {Progress, type ProgressFactory, type ProgressProps} from '@mantine/core';\n"],"names":["Progress"],"mappings":"AAAA,SAAQA,QAAQ,QAAiD,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Progress/Progress.ts"],"sourcesContent":["import {Progress} from '@mantine/core';\n\nProgress.displayName = 'Progress';\n\nexport {Progress, type ProgressFactory, type ProgressProps} from '@mantine/core';\n"],"names":["Progress","displayName"],"mappings":"AAAA,SAAQA,QAAQ,QAAO,gBAAgB;AAEvCA,SAASC,WAAW,GAAG;AAEvB,SAAQD,QAAQ,QAAiD,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../src/components/Radio/Radio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../src/components/Radio/Radio.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,6 @@
1
+ import { Radio } from '@mantine/core';
2
+ Radio.displayName = 'Radio';
3
+ Radio.Group.displayName = 'Radio.Group';
1
4
  export { Radio } from '@mantine/core';
2
5
 
3
6
  //# sourceMappingURL=Radio.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Radio/Radio.ts"],"sourcesContent":["export {Radio, type RadioFactory, type RadioProps} from '@mantine/core';\n"],"names":["Radio"],"mappings":"AAAA,SAAQA,KAAK,QAA2C,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Radio/Radio.ts"],"sourcesContent":["import {Radio} from '@mantine/core';\n\nRadio.displayName = 'Radio';\nRadio.Group.displayName = 'Radio.Group';\n\nexport {Radio, type RadioFactory, type RadioProps} from '@mantine/core';\n"],"names":["Radio","displayName","Group"],"mappings":"AAAA,SAAQA,KAAK,QAAO,gBAAgB;AAEpCA,MAAMC,WAAW,GAAG;AACpBD,MAAME,KAAK,CAACD,WAAW,GAAG;AAE1B,SAAQD,KAAK,QAA2C,gBAAgB"}
@@ -16,6 +16,10 @@ export type RadioCardProps = MantineRadioCardProps & StylesApiProps<RadioCardFac
16
16
  * The description of the card. Appears under the title.
17
17
  */
18
18
  description?: ReactNode;
19
+ /**
20
+ * If true, the radio card will be displayed in a read-only state.
21
+ */
22
+ readOnly?: boolean;
19
23
  };
20
24
  export declare const RadioCard: import("@mantine/core").MantineComponent<{
21
25
  props: RadioCardProps;
@@ -1 +1 @@
1
- {"version":3,"file":"RadioCard.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioCard/RadioCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,OAAO,EAEP,cAAc,IAAI,qBAAqB,EACvC,oBAAoB,IAAI,2BAA2B,EAEnD,qBAAqB,EACrB,cAAc,EAKjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAGhC,MAAM,MAAM,oBAAoB,GAAG,2BAA2B,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,GAAG,aAAa,CAAC;AACrH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC;IACnC,KAAK,EAAE,cAAc,CAAC;IACtB,GAAG,EAAE,iBAAiB,CAAC;IACvB,WAAW,EAAE,oBAAoB,CAAC;IAClC,IAAI,EAAE,qBAAqB,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,qBAAqB,GAC9C,cAAc,CAAC,gBAAgB,CAAC,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;CAC3B,CAAC;AAIN,eAAO,MAAM,SAAS;WApBX,cAAc;SAChB,iBAAiB;iBACT,oBAAoB;UAC3B,qBAAqB;EAkD7B,CAAC"}
1
+ {"version":3,"file":"RadioCard.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioCard/RadioCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,OAAO,EAEP,cAAc,IAAI,qBAAqB,EACvC,oBAAoB,IAAI,2BAA2B,EAEnD,qBAAqB,EACrB,cAAc,EAKjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAGhC,MAAM,MAAM,oBAAoB,GAAG,2BAA2B,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,GAAG,aAAa,CAAC;AACrH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC;IACnC,KAAK,EAAE,cAAc,CAAC;IACtB,GAAG,EAAE,iBAAiB,CAAC;IACvB,WAAW,EAAE,oBAAoB,CAAC;IAClC,IAAI,EAAE,qBAAqB,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,qBAAqB,GAC9C,cAAc,CAAC,gBAAgB,CAAC,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAIN,eAAO,MAAM,SAAS;WAxBX,cAAc;SAChB,iBAAiB;iBACT,oBAAoB;UAC3B,qBAAqB;EAuD7B,CAAC"}
@@ -17,6 +17,7 @@ export const RadioCard = factory((_props, ref)=>{
17
17
  return /*#__PURE__*/ _jsxs(Radio.Card, {
18
18
  ref: ref,
19
19
  disabled: disabled,
20
+ readOnly: _props.readOnly,
20
21
  ...getStyles('card', {
21
22
  className,
22
23
  style,
@@ -59,5 +60,6 @@ export const RadioCard = factory((_props, ref)=>{
59
60
  ]
60
61
  });
61
62
  });
63
+ RadioCard.displayName = 'RadioCard';
62
64
 
63
65
  //# sourceMappingURL=RadioCard.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/RadioCard/RadioCard.tsx"],"sourcesContent":["import {\n Box,\n Factory,\n Group,\n RadioCardProps as MantineRadioCardProps,\n RadioCardStylesNames as MantineRadioCardStylesNames,\n Radio,\n RadioCardCssVariables,\n StylesApiProps,\n Title,\n factory,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {ReactNode} from 'react';\nimport classes from '../../styles/RadioCard.module.css';\n\nexport type RadioCardStylesNames = MantineRadioCardStylesNames | 'container' | 'indicator' | 'title' | 'description';\nexport type RadioCardFactory = Factory<{\n props: RadioCardProps;\n ref: HTMLButtonElement;\n stylesNames: RadioCardStylesNames;\n vars: RadioCardCssVariables;\n}>;\n\nexport type RadioCardProps = MantineRadioCardProps &\n StylesApiProps<RadioCardFactory> & {\n /**\n * The label of the card. Appears next to the radio indicator.\n */\n label: ReactNode;\n /**\n * The description of the card. Appears under the title.\n */\n description?: ReactNode;\n };\n\nconst defaultProps: Partial<RadioCardProps> = {};\n\nexport const RadioCard = factory<RadioCardFactory>((_props, ref) => {\n const {classNames, styles, style, className, vars, disabled, label, description, ...others} = useProps(\n 'RadioCard',\n defaultProps,\n _props,\n );\n const getStyles = useStyles<RadioCardFactory>({\n name: 'RadioCard',\n classes,\n vars,\n classNames,\n className,\n style,\n props: _props,\n styles,\n });\n\n return (\n <Radio.Card\n ref={ref}\n disabled={disabled}\n {...getStyles('card', {className, style, classNames, styles})}\n {...others}\n >\n <Group {...getStyles('container', {classNames, styles})}>\n <Radio.Indicator size=\"xs\" disabled={disabled} {...getStyles('indicator', {classNames, styles})} />\n <Title order={4} {...getStyles('title', {classNames, styles})}>\n {label}\n </Title>\n </Group>\n {description && <Box {...getStyles('description', {classNames, styles})}>{description}</Box>}\n </Radio.Card>\n );\n});\n"],"names":["Box","Group","Radio","Title","factory","useProps","useStyles","classes","defaultProps","RadioCard","_props","ref","classNames","styles","style","className","vars","disabled","label","description","others","getStyles","name","props","Card","Indicator","size","order"],"mappings":";AAAA,SACIA,GAAG,EAEHC,KAAK,EAGLC,KAAK,EAGLC,KAAK,EACLC,OAAO,EACPC,QAAQ,EACRC,SAAS,QACN,gBAAgB;AAEvB,OAAOC,aAAa,oCAAoC;AAsBxD,MAAMC,eAAwC,CAAC;AAE/C,OAAO,MAAMC,YAAYL,QAA0B,CAACM,QAAQC;IACxD,MAAM,EAACC,UAAU,EAAEC,MAAM,EAAEC,KAAK,EAAEC,SAAS,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,WAAW,EAAE,GAAGC,QAAO,GAAGf,SAC1F,aACAG,cACAE;IAEJ,MAAMW,YAAYf,UAA4B;QAC1CgB,MAAM;QACNf;QACAS;QACAJ;QACAG;QACAD;QACAS,OAAOb;QACPG;IACJ;IAEA,qBACI,MAACX,MAAMsB,IAAI;QACPb,KAAKA;QACLM,UAAUA;QACT,GAAGI,UAAU,QAAQ;YAACN;YAAWD;YAAOF;YAAYC;QAAM,EAAE;QAC5D,GAAGO,MAAM;;0BAEV,MAACnB;gBAAO,GAAGoB,UAAU,aAAa;oBAACT;oBAAYC;gBAAM,EAAE;;kCACnD,KAACX,MAAMuB,SAAS;wBAACC,MAAK;wBAAKT,UAAUA;wBAAW,GAAGI,UAAU,aAAa;4BAACT;4BAAYC;wBAAM,EAAE;;kCAC/F,KAACV;wBAAMwB,OAAO;wBAAI,GAAGN,UAAU,SAAS;4BAACT;4BAAYC;wBAAM,EAAE;kCACxDK;;;;YAGRC,6BAAe,KAACnB;gBAAK,GAAGqB,UAAU,eAAe;oBAACT;oBAAYC;gBAAM,EAAE;0BAAGM;;;;AAGtF,GAAG"}
1
+ {"version":3,"sources":["../../../../src/components/RadioCard/RadioCard.tsx"],"sourcesContent":["import {\n Box,\n Factory,\n Group,\n RadioCardProps as MantineRadioCardProps,\n RadioCardStylesNames as MantineRadioCardStylesNames,\n Radio,\n RadioCardCssVariables,\n StylesApiProps,\n Title,\n factory,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {ReactNode} from 'react';\nimport classes from '../../styles/RadioCard.module.css';\n\nexport type RadioCardStylesNames = MantineRadioCardStylesNames | 'container' | 'indicator' | 'title' | 'description';\nexport type RadioCardFactory = Factory<{\n props: RadioCardProps;\n ref: HTMLButtonElement;\n stylesNames: RadioCardStylesNames;\n vars: RadioCardCssVariables;\n}>;\n\nexport type RadioCardProps = MantineRadioCardProps &\n StylesApiProps<RadioCardFactory> & {\n /**\n * The label of the card. Appears next to the radio indicator.\n */\n label: ReactNode;\n /**\n * The description of the card. Appears under the title.\n */\n description?: ReactNode;\n /**\n * If true, the radio card will be displayed in a read-only state.\n */\n readOnly?: boolean;\n };\n\nconst defaultProps: Partial<RadioCardProps> = {};\n\nexport const RadioCard = factory<RadioCardFactory>((_props, ref) => {\n const {classNames, styles, style, className, vars, disabled, label, description, ...others} = useProps(\n 'RadioCard',\n defaultProps,\n _props,\n );\n const getStyles = useStyles<RadioCardFactory>({\n name: 'RadioCard',\n classes,\n vars,\n classNames,\n className,\n style,\n props: _props,\n styles,\n });\n\n return (\n <Radio.Card\n ref={ref}\n disabled={disabled}\n readOnly={_props.readOnly}\n {...getStyles('card', {className, style, classNames, styles})}\n {...others}\n >\n <Group {...getStyles('container', {classNames, styles})}>\n <Radio.Indicator size=\"xs\" disabled={disabled} {...getStyles('indicator', {classNames, styles})} />\n <Title order={4} {...getStyles('title', {classNames, styles})}>\n {label}\n </Title>\n </Group>\n {description && <Box {...getStyles('description', {classNames, styles})}>{description}</Box>}\n </Radio.Card>\n );\n});\nRadioCard.displayName = 'RadioCard';\n"],"names":["Box","Group","Radio","Title","factory","useProps","useStyles","classes","defaultProps","RadioCard","_props","ref","classNames","styles","style","className","vars","disabled","label","description","others","getStyles","name","props","Card","readOnly","Indicator","size","order","displayName"],"mappings":";AAAA,SACIA,GAAG,EAEHC,KAAK,EAGLC,KAAK,EAGLC,KAAK,EACLC,OAAO,EACPC,QAAQ,EACRC,SAAS,QACN,gBAAgB;AAEvB,OAAOC,aAAa,oCAAoC;AA0BxD,MAAMC,eAAwC,CAAC;AAE/C,OAAO,MAAMC,YAAYL,QAA0B,CAACM,QAAQC;IACxD,MAAM,EAACC,UAAU,EAAEC,MAAM,EAAEC,KAAK,EAAEC,SAAS,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,WAAW,EAAE,GAAGC,QAAO,GAAGf,SAC1F,aACAG,cACAE;IAEJ,MAAMW,YAAYf,UAA4B;QAC1CgB,MAAM;QACNf;QACAS;QACAJ;QACAG;QACAD;QACAS,OAAOb;QACPG;IACJ;IAEA,qBACI,MAACX,MAAMsB,IAAI;QACPb,KAAKA;QACLM,UAAUA;QACVQ,UAAUf,OAAOe,QAAQ;QACxB,GAAGJ,UAAU,QAAQ;YAACN;YAAWD;YAAOF;YAAYC;QAAM,EAAE;QAC5D,GAAGO,MAAM;;0BAEV,MAACnB;gBAAO,GAAGoB,UAAU,aAAa;oBAACT;oBAAYC;gBAAM,EAAE;;kCACnD,KAACX,MAAMwB,SAAS;wBAACC,MAAK;wBAAKV,UAAUA;wBAAW,GAAGI,UAAU,aAAa;4BAACT;4BAAYC;wBAAM,EAAE;;kCAC/F,KAACV;wBAAMyB,OAAO;wBAAI,GAAGP,UAAU,SAAS;4BAACT;4BAAYC;wBAAM,EAAE;kCACxDK;;;;YAGRC,6BAAe,KAACnB;gBAAK,GAAGqB,UAAU,eAAe;oBAACT;oBAAYC;gBAAM,EAAE;0BAAGM;;;;AAGtF,GAAG;AACHV,UAAUoB,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/Slider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/Slider.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Slider } from '@mantine/core';
2
+ Slider.displayName = 'Slider';
1
3
  export { Slider } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=Slider.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Slider/Slider.ts"],"sourcesContent":["export {Slider, type SliderFactory, type SliderProps} from '@mantine/core';\n"],"names":["Slider"],"mappings":"AAAA,SAAQA,MAAM,QAA6C,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Slider/Slider.ts"],"sourcesContent":["import {Slider} from '@mantine/core';\n\nSlider.displayName = 'Slider';\n\nexport {Slider, type SliderFactory, type SliderProps} from '@mantine/core';\n"],"names":["Slider","displayName"],"mappings":"AAAA,SAAQA,MAAM,QAAO,gBAAgB;AAErCA,OAAOC,WAAW,GAAG;AAErB,SAAQD,MAAM,QAA6C,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/Stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/Stack.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Stack } from '@mantine/core';
2
+ Stack.displayName = 'Stack';
1
3
  export { Stack } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=Stack.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Stack/Stack.ts"],"sourcesContent":["export {Stack, type StackFactory, type StackProps} from '@mantine/core';\n"],"names":["Stack"],"mappings":"AAAA,SAAQA,KAAK,QAA2C,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Stack/Stack.ts"],"sourcesContent":["import {Stack} from '@mantine/core';\n\nStack.displayName = 'Stack';\n\nexport {Stack, type StackFactory, type StackProps} from '@mantine/core';\n"],"names":["Stack","displayName"],"mappings":"AAAA,SAAQA,KAAK,QAAO,gBAAgB;AAEpCA,MAAMC,WAAW,GAAG;AAEpB,SAAQD,KAAK,QAA2C,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/Switch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/Switch.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,6 @@
1
+ import { Switch } from '@mantine/core';
2
+ Switch.displayName = 'Switch';
3
+ Switch.Group.displayName = 'Switch.Group';
1
4
  export { Switch } from '@mantine/core';
2
5
 
3
6
  //# sourceMappingURL=Switch.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Switch/Switch.ts"],"sourcesContent":["export {Switch, type SwitchFactory, type SwitchProps} from '@mantine/core';\n"],"names":["Switch"],"mappings":"AAAA,SAAQA,MAAM,QAA6C,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Switch/Switch.ts"],"sourcesContent":["import {Switch} from '@mantine/core';\n\nSwitch.displayName = 'Switch';\nSwitch.Group.displayName = 'Switch.Group';\n\nexport {Switch, type SwitchFactory, type SwitchProps} from '@mantine/core';\n"],"names":["Switch","displayName","Group"],"mappings":"AAAA,SAAQA,MAAM,QAAO,gBAAgB;AAErCA,OAAOC,WAAW,GAAG;AACrBD,OAAOE,KAAK,CAACD,WAAW,GAAG;AAE3B,SAAQD,MAAM,QAA6C,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/Text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/Text.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAC,MAAM,eAAe,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { Text } from '@mantine/core';
2
+ Text.displayName = 'Text';
1
3
  export { Text } from '@mantine/core';
2
4
 
3
5
  //# sourceMappingURL=Text.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Text/Text.ts"],"sourcesContent":["export {Text, type TextFactory, type TextProps} from '@mantine/core';\n"],"names":["Text"],"mappings":"AAAA,SAAQA,IAAI,QAAyC,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/components/Text/Text.ts"],"sourcesContent":["import {Text} from '@mantine/core';\n\nText.displayName = 'Text';\n\nexport {Text, type TextFactory, type TextProps} from '@mantine/core';\n"],"names":["Text","displayName"],"mappings":"AAAA,SAAQA,IAAI,QAAO,gBAAgB;AAEnCA,KAAKC,WAAW,GAAG;AAEnB,SAAQD,IAAI,QAAyC,gBAAgB"}