@oxyhq/bloom 0.4.0 → 0.5.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 (186) hide show
  1. package/README.md +105 -90
  2. package/lib/commonjs/bottom-sheet/index.js +2 -2
  3. package/lib/commonjs/context-menu/index.js +18 -19
  4. package/lib/commonjs/context-menu/index.js.map +1 -1
  5. package/lib/commonjs/dialog/BloomDialogProvider.js +61 -0
  6. package/lib/commonjs/dialog/BloomDialogProvider.js.map +1 -0
  7. package/lib/commonjs/dialog/BloomDialogProvider.web.js +45 -0
  8. package/lib/commonjs/dialog/BloomDialogProvider.web.js.map +1 -0
  9. package/lib/commonjs/dialog/Dialog.js +197 -100
  10. package/lib/commonjs/dialog/Dialog.js.map +1 -1
  11. package/lib/commonjs/dialog/Dialog.web.js +194 -84
  12. package/lib/commonjs/dialog/Dialog.web.js.map +1 -1
  13. package/lib/commonjs/dialog/SheetShell.js +149 -0
  14. package/lib/commonjs/dialog/SheetShell.js.map +1 -0
  15. package/lib/commonjs/dialog/alert-store.js +116 -0
  16. package/lib/commonjs/dialog/alert-store.js.map +1 -0
  17. package/lib/commonjs/dialog/alert.js +38 -0
  18. package/lib/commonjs/dialog/alert.js.map +1 -0
  19. package/lib/commonjs/dialog/context.js +10 -2
  20. package/lib/commonjs/dialog/context.js.map +1 -1
  21. package/lib/commonjs/dialog/index.js +8 -24
  22. package/lib/commonjs/dialog/index.js.map +1 -1
  23. package/lib/commonjs/dialog/index.web.js +10 -20
  24. package/lib/commonjs/dialog/index.web.js.map +1 -1
  25. package/lib/commonjs/index.js +101 -66
  26. package/lib/commonjs/index.js.map +1 -1
  27. package/lib/commonjs/index.web.js +101 -66
  28. package/lib/commonjs/index.web.js.map +1 -1
  29. package/lib/commonjs/menu/index.js +21 -23
  30. package/lib/commonjs/menu/index.js.map +1 -1
  31. package/lib/commonjs/select/index.js +26 -27
  32. package/lib/commonjs/select/index.js.map +1 -1
  33. package/lib/commonjs/toast/index.js +42 -13
  34. package/lib/commonjs/toast/index.js.map +1 -1
  35. package/lib/commonjs/toast/index.web.js +19 -15
  36. package/lib/commonjs/toast/index.web.js.map +1 -1
  37. package/lib/module/bottom-sheet/index.js +2 -2
  38. package/lib/module/context-menu/index.js +15 -16
  39. package/lib/module/context-menu/index.js.map +1 -1
  40. package/lib/module/dialog/BloomDialogProvider.js +57 -0
  41. package/lib/module/dialog/BloomDialogProvider.js.map +1 -0
  42. package/lib/module/dialog/BloomDialogProvider.web.js +41 -0
  43. package/lib/module/dialog/BloomDialogProvider.web.js.map +1 -0
  44. package/lib/module/dialog/Dialog.js +199 -87
  45. package/lib/module/dialog/Dialog.js.map +1 -1
  46. package/lib/module/dialog/Dialog.web.js +195 -70
  47. package/lib/module/dialog/Dialog.web.js.map +1 -1
  48. package/lib/module/dialog/SheetShell.js +143 -0
  49. package/lib/module/dialog/SheetShell.js.map +1 -0
  50. package/lib/module/dialog/alert-store.js +107 -0
  51. package/lib/module/dialog/alert-store.js.map +1 -0
  52. package/lib/module/dialog/alert.js +35 -0
  53. package/lib/module/dialog/alert.js.map +1 -0
  54. package/lib/module/dialog/context.js +10 -2
  55. package/lib/module/dialog/context.js.map +1 -1
  56. package/lib/module/dialog/index.js +3 -1
  57. package/lib/module/dialog/index.js.map +1 -1
  58. package/lib/module/dialog/index.web.js +9 -7
  59. package/lib/module/dialog/index.web.js.map +1 -1
  60. package/lib/module/index.js +2 -3
  61. package/lib/module/index.js.map +1 -1
  62. package/lib/module/index.web.js +2 -3
  63. package/lib/module/index.web.js.map +1 -1
  64. package/lib/module/menu/index.js +11 -13
  65. package/lib/module/menu/index.js.map +1 -1
  66. package/lib/module/select/index.js +27 -28
  67. package/lib/module/select/index.js.map +1 -1
  68. package/lib/module/toast/index.js +41 -11
  69. package/lib/module/toast/index.js.map +1 -1
  70. package/lib/module/toast/index.web.js +18 -13
  71. package/lib/module/toast/index.web.js.map +1 -1
  72. package/lib/typescript/commonjs/__tests__/Dialog.test.d.ts +2 -0
  73. package/lib/typescript/commonjs/__tests__/Dialog.test.d.ts.map +1 -0
  74. package/lib/typescript/commonjs/bottom-sheet/index.d.ts +1 -1
  75. package/lib/typescript/commonjs/context-menu/index.d.ts +4 -3
  76. package/lib/typescript/commonjs/context-menu/index.d.ts.map +1 -1
  77. package/lib/typescript/commonjs/dialog/BloomDialogProvider.d.ts +27 -0
  78. package/lib/typescript/commonjs/dialog/BloomDialogProvider.d.ts.map +1 -0
  79. package/lib/typescript/commonjs/dialog/BloomDialogProvider.web.d.ts +15 -0
  80. package/lib/typescript/commonjs/dialog/BloomDialogProvider.web.d.ts.map +1 -0
  81. package/lib/typescript/commonjs/dialog/Dialog.d.ts +37 -10
  82. package/lib/typescript/commonjs/dialog/Dialog.d.ts.map +1 -1
  83. package/lib/typescript/commonjs/dialog/Dialog.web.d.ts +26 -10
  84. package/lib/typescript/commonjs/dialog/Dialog.web.d.ts.map +1 -1
  85. package/lib/typescript/commonjs/dialog/SheetShell.d.ts +31 -0
  86. package/lib/typescript/commonjs/dialog/SheetShell.d.ts.map +1 -0
  87. package/lib/typescript/commonjs/dialog/alert-store.d.ts +70 -0
  88. package/lib/typescript/commonjs/dialog/alert-store.d.ts.map +1 -0
  89. package/lib/typescript/commonjs/dialog/alert.d.ts +27 -0
  90. package/lib/typescript/commonjs/dialog/alert.d.ts.map +1 -0
  91. package/lib/typescript/commonjs/dialog/context.d.ts +7 -0
  92. package/lib/typescript/commonjs/dialog/context.d.ts.map +1 -1
  93. package/lib/typescript/commonjs/dialog/index.d.ts +5 -2
  94. package/lib/typescript/commonjs/dialog/index.d.ts.map +1 -1
  95. package/lib/typescript/commonjs/dialog/index.web.d.ts +5 -2
  96. package/lib/typescript/commonjs/dialog/index.web.d.ts.map +1 -1
  97. package/lib/typescript/commonjs/dialog/types.d.ts +70 -15
  98. package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
  99. package/lib/typescript/commonjs/index.d.ts +3 -3
  100. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  101. package/lib/typescript/commonjs/index.web.d.ts +3 -3
  102. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  103. package/lib/typescript/commonjs/menu/index.d.ts +4 -4
  104. package/lib/typescript/commonjs/menu/index.d.ts.map +1 -1
  105. package/lib/typescript/commonjs/select/index.d.ts.map +1 -1
  106. package/lib/typescript/commonjs/toast/index.d.ts +32 -3
  107. package/lib/typescript/commonjs/toast/index.d.ts.map +1 -1
  108. package/lib/typescript/commonjs/toast/index.web.d.ts +14 -7
  109. package/lib/typescript/commonjs/toast/index.web.d.ts.map +1 -1
  110. package/lib/typescript/module/__tests__/Dialog.test.d.ts +2 -0
  111. package/lib/typescript/module/__tests__/Dialog.test.d.ts.map +1 -0
  112. package/lib/typescript/module/bottom-sheet/index.d.ts +1 -1
  113. package/lib/typescript/module/context-menu/index.d.ts +4 -3
  114. package/lib/typescript/module/context-menu/index.d.ts.map +1 -1
  115. package/lib/typescript/module/dialog/BloomDialogProvider.d.ts +27 -0
  116. package/lib/typescript/module/dialog/BloomDialogProvider.d.ts.map +1 -0
  117. package/lib/typescript/module/dialog/BloomDialogProvider.web.d.ts +15 -0
  118. package/lib/typescript/module/dialog/BloomDialogProvider.web.d.ts.map +1 -0
  119. package/lib/typescript/module/dialog/Dialog.d.ts +37 -10
  120. package/lib/typescript/module/dialog/Dialog.d.ts.map +1 -1
  121. package/lib/typescript/module/dialog/Dialog.web.d.ts +26 -10
  122. package/lib/typescript/module/dialog/Dialog.web.d.ts.map +1 -1
  123. package/lib/typescript/module/dialog/SheetShell.d.ts +31 -0
  124. package/lib/typescript/module/dialog/SheetShell.d.ts.map +1 -0
  125. package/lib/typescript/module/dialog/alert-store.d.ts +70 -0
  126. package/lib/typescript/module/dialog/alert-store.d.ts.map +1 -0
  127. package/lib/typescript/module/dialog/alert.d.ts +27 -0
  128. package/lib/typescript/module/dialog/alert.d.ts.map +1 -0
  129. package/lib/typescript/module/dialog/context.d.ts +7 -0
  130. package/lib/typescript/module/dialog/context.d.ts.map +1 -1
  131. package/lib/typescript/module/dialog/index.d.ts +5 -2
  132. package/lib/typescript/module/dialog/index.d.ts.map +1 -1
  133. package/lib/typescript/module/dialog/index.web.d.ts +5 -2
  134. package/lib/typescript/module/dialog/index.web.d.ts.map +1 -1
  135. package/lib/typescript/module/dialog/types.d.ts +70 -15
  136. package/lib/typescript/module/dialog/types.d.ts.map +1 -1
  137. package/lib/typescript/module/index.d.ts +3 -3
  138. package/lib/typescript/module/index.d.ts.map +1 -1
  139. package/lib/typescript/module/index.web.d.ts +3 -3
  140. package/lib/typescript/module/index.web.d.ts.map +1 -1
  141. package/lib/typescript/module/menu/index.d.ts +4 -4
  142. package/lib/typescript/module/menu/index.d.ts.map +1 -1
  143. package/lib/typescript/module/select/index.d.ts.map +1 -1
  144. package/lib/typescript/module/toast/index.d.ts +32 -3
  145. package/lib/typescript/module/toast/index.d.ts.map +1 -1
  146. package/lib/typescript/module/toast/index.web.d.ts +14 -7
  147. package/lib/typescript/module/toast/index.web.d.ts.map +1 -1
  148. package/package.json +3 -14
  149. package/src/__tests__/Dialog.test.tsx +177 -0
  150. package/src/bottom-sheet/index.tsx +3 -3
  151. package/src/context-menu/index.tsx +12 -12
  152. package/src/dialog/BloomDialogProvider.tsx +61 -0
  153. package/src/dialog/BloomDialogProvider.web.tsx +46 -0
  154. package/src/dialog/Dialog.tsx +217 -64
  155. package/src/dialog/Dialog.web.tsx +240 -75
  156. package/src/dialog/SheetShell.tsx +154 -0
  157. package/src/dialog/alert-store.ts +126 -0
  158. package/src/dialog/alert.ts +42 -0
  159. package/src/dialog/context.ts +14 -3
  160. package/src/dialog/index.ts +14 -2
  161. package/src/dialog/index.web.ts +20 -8
  162. package/src/dialog/types.ts +73 -16
  163. package/src/index.ts +17 -3
  164. package/src/index.web.ts +17 -3
  165. package/src/menu/index.tsx +13 -17
  166. package/src/select/index.tsx +30 -30
  167. package/src/toast/index.tsx +55 -11
  168. package/src/toast/index.web.tsx +33 -13
  169. package/lib/commonjs/prompt/Prompt.js +0 -267
  170. package/lib/commonjs/prompt/Prompt.js.map +0 -1
  171. package/lib/commonjs/prompt/index.js +0 -61
  172. package/lib/commonjs/prompt/index.js.map +0 -1
  173. package/lib/module/prompt/Prompt.js +0 -250
  174. package/lib/module/prompt/Prompt.js.map +0 -1
  175. package/lib/module/prompt/index.js +0 -4
  176. package/lib/module/prompt/index.js.map +0 -1
  177. package/lib/typescript/commonjs/prompt/Prompt.d.ts +0 -42
  178. package/lib/typescript/commonjs/prompt/Prompt.d.ts.map +0 -1
  179. package/lib/typescript/commonjs/prompt/index.d.ts +0 -3
  180. package/lib/typescript/commonjs/prompt/index.d.ts.map +0 -1
  181. package/lib/typescript/module/prompt/Prompt.d.ts +0 -42
  182. package/lib/typescript/module/prompt/Prompt.d.ts.map +0 -1
  183. package/lib/typescript/module/prompt/index.d.ts +0 -3
  184. package/lib/typescript/module/prompt/index.d.ts.map +0 -1
  185. package/src/prompt/Prompt.tsx +0 -247
  186. package/src/prompt/index.ts +0 -13
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.buttonToAction = buttonToAction;
7
+ exports.dismissAlert = dismissAlert;
8
+ exports.enqueueAlert = enqueueAlert;
9
+ exports.getAlertQueue = getAlertQueue;
10
+ exports.resolveButtons = resolveButtons;
11
+ exports.subscribeAlerts = subscribeAlerts;
12
+ let idCounter = 0;
13
+ function genId() {
14
+ idCounter += 1;
15
+ return `bloom-alert-${idCounter}`;
16
+ }
17
+
18
+ /**
19
+ * Imperative-alert store.
20
+ *
21
+ * The store sits in module scope so `alert()` works from anywhere — event
22
+ * handlers, async callbacks, top-level helpers — without threading a
23
+ * provider context through every call site.
24
+ *
25
+ * The visible UI is owned by a single subscriber (the `<BloomDialogProvider>`
26
+ * mounted inside the app's React tree). When there is no subscriber yet —
27
+ * because `alert()` was called before the provider mounted, or because the
28
+ * app forgot to mount the provider — entries accumulate in the queue and
29
+ * drain as soon as a subscriber attaches.
30
+ *
31
+ * Multiple subscribers are not supported by design. Two providers would
32
+ * race for the same alert; we instead enforce a single listener and let
33
+ * the most recent subscription win (the older one falls back to no-op).
34
+ */
35
+
36
+ let queue = [];
37
+ let listener = null;
38
+ function emit() {
39
+ if (listener) listener(queue);
40
+ }
41
+
42
+ /**
43
+ * Enqueue an alert. Returns the generated id so callers can dismiss it
44
+ * imperatively (rare — usually the dialog dismisses itself via a button
45
+ * tap). The runtime guarantees this enqueues even before any provider
46
+ * mounts; the provider drains pending entries on subscribe.
47
+ */
48
+ function enqueueAlert(entry) {
49
+ const id = genId();
50
+ queue = [...queue, {
51
+ ...entry,
52
+ id
53
+ }];
54
+ emit();
55
+ return id;
56
+ }
57
+
58
+ /**
59
+ * Remove an alert from the queue. Called by the provider once the bloom
60
+ * Dialog has finished closing for that entry.
61
+ */
62
+ function dismissAlert(id) {
63
+ const next = queue.filter(e => e.id !== id);
64
+ if (next.length === queue.length) return;
65
+ queue = next;
66
+ emit();
67
+ }
68
+
69
+ /**
70
+ * Subscribe to queue changes. Replaces any previously-registered listener
71
+ * (single-subscriber model — see header). Returns an unsubscribe function.
72
+ *
73
+ * On subscribe, the current queue is delivered synchronously so the
74
+ * subscriber can render pending entries that arrived before mount.
75
+ */
76
+ function subscribeAlerts(fn) {
77
+ listener = fn;
78
+ // Deliver the current queue immediately so a freshly-mounted provider
79
+ // catches up with whatever accumulated before it subscribed.
80
+ fn(queue);
81
+ return () => {
82
+ if (listener === fn) listener = null;
83
+ };
84
+ }
85
+
86
+ /** Inspect the current queue. Used internally and by tests. */
87
+ function getAlertQueue() {
88
+ return queue;
89
+ }
90
+
91
+ /**
92
+ * Translate an alert button to the action shape the unified `Dialog`
93
+ * accepts. Pure — no React, no theme — so it can be reused on web and
94
+ * native without forking.
95
+ */
96
+ function buttonToAction(button) {
97
+ return {
98
+ label: button.text,
99
+ onPress: button.onPress ? () => button.onPress?.() : undefined,
100
+ color: button.style === 'destructive' ? 'destructive' : button.style === 'cancel' ? 'cancel' : 'default'
101
+ };
102
+ }
103
+
104
+ /**
105
+ * Compute the effective button set for an alert. Mirrors React Native's
106
+ * `Alert.alert` semantics — an empty/omitted buttons array implies a
107
+ * single `OK` confirmation button.
108
+ */
109
+ function resolveButtons(buttons) {
110
+ if (buttons && buttons.length > 0) return buttons;
111
+ return [{
112
+ text: 'OK',
113
+ style: 'default'
114
+ }];
115
+ }
116
+ //# sourceMappingURL=alert-store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["idCounter","genId","queue","listener","emit","enqueueAlert","entry","id","dismissAlert","next","filter","e","length","subscribeAlerts","fn","getAlertQueue","buttonToAction","button","label","text","onPress","undefined","color","style","resolveButtons","buttons"],"sourceRoot":"../../../src","sources":["dialog/alert-store.ts"],"mappings":";;;;;;;;;;;AAEA,IAAIA,SAAS,GAAG,CAAC;AACjB,SAASC,KAAKA,CAAA,EAAW;EACvBD,SAAS,IAAI,CAAC;EACd,OAAO,eAAeA,SAAS,EAAE;AACnC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAsBA,IAAIE,KAAmB,GAAG,EAAE;AAC5B,IAAIC,QAAyB,GAAG,IAAI;AAEpC,SAASC,IAAIA,CAAA,EAAS;EACpB,IAAID,QAAQ,EAAEA,QAAQ,CAACD,KAAK,CAAC;AAC/B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,YAAYA,CAACC,KAA6B,EAAU;EAClE,MAAMC,EAAE,GAAGN,KAAK,CAAC,CAAC;EAClBC,KAAK,GAAG,CAAC,GAAGA,KAAK,EAAE;IAAE,GAAGI,KAAK;IAAEC;EAAG,CAAC,CAAC;EACpCH,IAAI,CAAC,CAAC;EACN,OAAOG,EAAE;AACX;;AAEA;AACA;AACA;AACA;AACO,SAASC,YAAYA,CAACD,EAAU,EAAQ;EAC7C,MAAME,IAAI,GAAGP,KAAK,CAACQ,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACJ,EAAE,KAAKA,EAAE,CAAC;EAC7C,IAAIE,IAAI,CAACG,MAAM,KAAKV,KAAK,CAACU,MAAM,EAAE;EAClCV,KAAK,GAAGO,IAAI;EACZL,IAAI,CAAC,CAAC;AACR;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASS,eAAeA,CAACC,EAAY,EAAc;EACxDX,QAAQ,GAAGW,EAAE;EACb;EACA;EACAA,EAAE,CAACZ,KAAK,CAAC;EACT,OAAO,MAAM;IACX,IAAIC,QAAQ,KAAKW,EAAE,EAAEX,QAAQ,GAAG,IAAI;EACtC,CAAC;AACH;;AAEA;AACO,SAASY,aAAaA,CAAA,EAA0B;EACrD,OAAOb,KAAK;AACd;;AAEA;AACA;AACA;AACA;AACA;AACO,SAASc,cAAcA,CAACC,MAAmB,EAAgB;EAChE,OAAO;IACLC,KAAK,EAAED,MAAM,CAACE,IAAI;IAClBC,OAAO,EAAEH,MAAM,CAACG,OAAO,GAAG,MAAMH,MAAM,CAACG,OAAO,GAAG,CAAC,GAAGC,SAAS;IAC9DC,KAAK,EACHL,MAAM,CAACM,KAAK,KAAK,aAAa,GAC1B,aAAa,GACbN,MAAM,CAACM,KAAK,KAAK,QAAQ,GACvB,QAAQ,GACR;EACV,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACO,SAASC,cAAcA,CAACC,OAAkC,EAAiB;EAChF,IAAIA,OAAO,IAAIA,OAAO,CAACb,MAAM,GAAG,CAAC,EAAE,OAAOa,OAAO;EACjD,OAAO,CAAC;IAAEN,IAAI,EAAE,IAAI;IAAEI,KAAK,EAAE;EAAU,CAAC,CAAC;AAC3C","ignoreList":[]}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.alert = alert;
7
+ var _alertStore = require("./alert-store.js");
8
+ /**
9
+ * Show a Bloom-styled confirmation dialog. Mirrors React Native's
10
+ * `Alert.alert(title, message?, buttons?)` signature so existing call
11
+ * sites migrate by changing the import only.
12
+ *
13
+ * If no buttons are passed, a single `OK` confirmation is rendered.
14
+ *
15
+ * The alert is enqueued in a module-scope store and rendered by
16
+ * `<BloomDialogProvider>`. Calls made before the provider mounts are
17
+ * queued and drained once the provider attaches — there is no fire-and-
18
+ * forget loss window. Calls made when no provider is ever mounted are
19
+ * silently queued forever; in development, mount the provider once at
20
+ * the app root and the queue will catch up immediately.
21
+ *
22
+ * ```tsx
23
+ * import { alert } from '@oxyhq/bloom';
24
+ *
25
+ * alert('Sign out?', 'You will need to enter your password to sign in again.', [
26
+ * { text: 'Cancel', style: 'cancel' },
27
+ * { text: 'Sign out', style: 'destructive', onPress: doSignOut },
28
+ * ]);
29
+ * ```
30
+ */
31
+ function alert(title, message, buttons) {
32
+ (0, _alertStore.enqueueAlert)({
33
+ title,
34
+ message,
35
+ buttons: (0, _alertStore.resolveButtons)(buttons)
36
+ });
37
+ }
38
+ //# sourceMappingURL=alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_alertStore","require","alert","title","message","buttons","enqueueAlert","resolveButtons"],"sourceRoot":"../../../src","sources":["dialog/alert.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,KAAKA,CACnBC,KAAa,EACbC,OAAgB,EAChBC,OAAuB,EACjB;EACN,IAAAC,wBAAY,EAAC;IACXH,KAAK;IACLC,OAAO;IACPC,OAAO,EAAE,IAAAE,0BAAc,EAACF,OAAO;EACjC,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -15,6 +15,14 @@ Context.displayName = 'BloomDialogContext';
15
15
  function useDialogContext() {
16
16
  return (0, _react.useContext)(Context);
17
17
  }
18
+
19
+ /**
20
+ * Return a stable handle that can imperatively `open()` and `close()` a
21
+ * `<Dialog>` mounted with the same control.
22
+ *
23
+ * The handle survives across re-renders; mounting a different `<Dialog>`
24
+ * with the same control attaches the new instance via the internal ref.
25
+ */
18
26
  function useDialogControl() {
19
27
  const id = (0, _react.useId)();
20
28
  const control = (0, _react.useRef)({
@@ -24,8 +32,8 @@ function useDialogControl() {
24
32
  return (0, _react.useMemo)(() => ({
25
33
  id,
26
34
  ref: control,
27
- open: options => {
28
- control.current?.open(options);
35
+ open: () => {
36
+ control.current?.open();
29
37
  },
30
38
  close: cb => {
31
39
  control.current?.close(cb);
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","Context","exports","createContext","close","isWithinDialog","displayName","useDialogContext","useContext","useDialogControl","id","useId","control","useRef","open","useMemo","ref","options","current","cb"],"sourceRoot":"../../../src","sources":["dialog/context.ts"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGO,MAAMC,OAAO,GAAAC,OAAA,CAAAD,OAAA,gBAAG,IAAAE,oBAAa,EAAqB;EACvDC,KAAK,EAAEA,CAAA,KAAM,CAAC,CAAC;EACfC,cAAc,EAAE;AAClB,CAAC,CAAC;AACFJ,OAAO,CAACK,WAAW,GAAG,oBAAoB;AAEnC,SAASC,gBAAgBA,CAAA,EAAuB;EACrD,OAAO,IAAAC,iBAAU,EAACP,OAAO,CAAC;AAC5B;AAEO,SAASQ,gBAAgBA,CAAA,EAAuB;EACrD,MAAMC,EAAE,GAAG,IAAAC,YAAK,EAAC,CAAC;EAClB,MAAMC,OAAO,GAAG,IAAAC,aAAM,EAA+B;IACnDC,IAAI,EAAEA,CAAA,KAAM,CAAC,CAAC;IACdV,KAAK,EAAEA,CAAA,KAAM,CAAC;EAChB,CAAC,CAAC;EAEF,OAAO,IAAAW,cAAO,EACZ,OAAO;IACLL,EAAE;IACFM,GAAG,EAAEJ,OAAO;IACZE,IAAI,EAAGG,OAAO,IAAK;MACjBL,OAAO,CAACM,OAAO,EAAEJ,IAAI,CAACG,OAAO,CAAC;IAChC,CAAC;IACDb,KAAK,EAAGe,EAAE,IAAK;MACbP,OAAO,CAACM,OAAO,EAAEd,KAAK,CAACe,EAAE,CAAC;IAC5B;EACF,CAAC,CAAC,EACF,CAACT,EAAE,CACL,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","Context","exports","createContext","close","isWithinDialog","displayName","useDialogContext","useContext","useDialogControl","id","useId","control","useRef","open","useMemo","ref","current","cb"],"sourceRoot":"../../../src","sources":["dialog/context.ts"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOO,MAAMC,OAAO,GAAAC,OAAA,CAAAD,OAAA,gBAAG,IAAAE,oBAAa,EAAqB;EACvDC,KAAK,EAAEA,CAAA,KAAM,CAAC,CAAC;EACfC,cAAc,EAAE;AAClB,CAAC,CAAC;AACFJ,OAAO,CAACK,WAAW,GAAG,oBAAoB;AAEnC,SAASC,gBAAgBA,CAAA,EAAuB;EACrD,OAAO,IAAAC,iBAAU,EAACP,OAAO,CAAC;AAC5B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASQ,gBAAgBA,CAAA,EAAuB;EACrD,MAAMC,EAAE,GAAG,IAAAC,YAAK,EAAC,CAAC;EAClB,MAAMC,OAAO,GAAG,IAAAC,aAAM,EAA+B;IACnDC,IAAI,EAAEA,CAAA,KAAM,CAAC,CAAC;IACdV,KAAK,EAAEA,CAAA,KAAM,CAAC;EAChB,CAAC,CAAC;EAEF,OAAO,IAAAW,cAAO,EACZ,OAAO;IACLL,EAAE;IACFM,GAAG,EAAEJ,OAAO;IACZE,IAAI,EAAEA,CAAA,KAAM;MACVF,OAAO,CAACK,OAAO,EAAEH,IAAI,CAAC,CAAC;IACzB,CAAC;IACDV,KAAK,EAAGc,EAAE,IAAK;MACbN,OAAO,CAACK,OAAO,EAAEb,KAAK,CAACc,EAAE,CAAC;IAC5B;EACF,CAAC,CAAC,EACF,CAACR,EAAE,CACL,CAAC;AACH","ignoreList":[]}
@@ -3,40 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "Backdrop", {
6
+ Object.defineProperty(exports, "BloomDialogProvider", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _Dialog.Backdrop;
9
+ return _BloomDialogProvider.BloomDialogProvider;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "Close", {
12
+ Object.defineProperty(exports, "Dialog", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _Dialog.Close;
15
+ return _Dialog.Dialog;
16
16
  }
17
17
  });
18
- Object.defineProperty(exports, "Handle", {
18
+ Object.defineProperty(exports, "alert", {
19
19
  enumerable: true,
20
20
  get: function () {
21
- return _Dialog.Handle;
22
- }
23
- });
24
- Object.defineProperty(exports, "Inner", {
25
- enumerable: true,
26
- get: function () {
27
- return _Dialog.Inner;
28
- }
29
- });
30
- Object.defineProperty(exports, "Outer", {
31
- enumerable: true,
32
- get: function () {
33
- return _Dialog.Outer;
34
- }
35
- });
36
- Object.defineProperty(exports, "ScrollableInner", {
37
- enumerable: true,
38
- get: function () {
39
- return _Dialog.ScrollableInner;
21
+ return _alert.alert;
40
22
  }
41
23
  });
42
24
  Object.defineProperty(exports, "useDialogContext", {
@@ -52,5 +34,7 @@ Object.defineProperty(exports, "useDialogControl", {
52
34
  }
53
35
  });
54
36
  var _Dialog = require("./Dialog");
37
+ var _BloomDialogProvider = require("./BloomDialogProvider");
38
+ var _alert = require("./alert.js");
55
39
  var _context = require("./context.js");
56
40
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_Dialog","require","_context"],"sourceRoot":"../../../src","sources":["dialog/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_Dialog","require","_BloomDialogProvider","_alert","_context"],"sourceRoot":"../../../src","sources":["dialog/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA","ignoreList":[]}
@@ -3,40 +3,28 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "Backdrop", {
6
+ Object.defineProperty(exports, "BLOOM_DIALOG_CSS", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _DialogWeb.Backdrop;
9
+ return _DialogWeb.BLOOM_DIALOG_CSS;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "Close", {
12
+ Object.defineProperty(exports, "BloomDialogProvider", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _DialogWeb.Close;
15
+ return _BloomDialogProviderWeb.BloomDialogProvider;
16
16
  }
17
17
  });
18
- Object.defineProperty(exports, "Handle", {
18
+ Object.defineProperty(exports, "Dialog", {
19
19
  enumerable: true,
20
20
  get: function () {
21
- return _DialogWeb.Handle;
21
+ return _DialogWeb.Dialog;
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "Inner", {
24
+ Object.defineProperty(exports, "alert", {
25
25
  enumerable: true,
26
26
  get: function () {
27
- return _DialogWeb.Inner;
28
- }
29
- });
30
- Object.defineProperty(exports, "Outer", {
31
- enumerable: true,
32
- get: function () {
33
- return _DialogWeb.Outer;
34
- }
35
- });
36
- Object.defineProperty(exports, "ScrollableInner", {
37
- enumerable: true,
38
- get: function () {
39
- return _DialogWeb.ScrollableInner;
27
+ return _alert.alert;
40
28
  }
41
29
  });
42
30
  Object.defineProperty(exports, "useDialogContext", {
@@ -52,5 +40,7 @@ Object.defineProperty(exports, "useDialogControl", {
52
40
  }
53
41
  });
54
42
  var _DialogWeb = require("./Dialog.web.js");
43
+ var _BloomDialogProviderWeb = require("./BloomDialogProvider.web.js");
44
+ var _alert = require("./alert.js");
55
45
  var _context = require("./context.js");
56
46
  //# sourceMappingURL=index.web.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_DialogWeb","require","_context"],"sourceRoot":"../../../src","sources":["dialog/index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_DialogWeb","require","_BloomDialogProviderWeb","_alert","_context"],"sourceRoot":"../../../src","sources":["dialog/index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA","ignoreList":[]}
@@ -20,10 +20,13 @@ var _exportNames = {
20
20
  iconSizes: true,
21
21
  useCommonSVGProps: true,
22
22
  Dialog: true,
23
- Prompt: true,
23
+ BloomDialogProvider: true,
24
+ alert: true,
25
+ useDialogContext: true,
26
+ useDialogControl: true,
24
27
  ErrorBoundary: true,
25
28
  PromptInput: true,
26
- Toast: true,
29
+ toast: true,
27
30
  Typography: true,
28
31
  Skeleton: true,
29
32
  Grid: true,
@@ -44,40 +47,58 @@ var _exportNames = {
44
47
  Fonts: true
45
48
  };
46
49
  exports.Admonition = exports.Accordion = void 0;
50
+ Object.defineProperty(exports, "BloomDialogProvider", {
51
+ enumerable: true,
52
+ get: function () {
53
+ return _dialog.BloomDialogProvider;
54
+ }
55
+ });
47
56
  Object.defineProperty(exports, "BottomSheet", {
48
57
  enumerable: true,
49
58
  get: function () {
50
- return _index21.BottomSheet;
59
+ return _index20.BottomSheet;
60
+ }
61
+ });
62
+ exports.ContextMenu = exports.Code = void 0;
63
+ Object.defineProperty(exports, "Dialog", {
64
+ enumerable: true,
65
+ get: function () {
66
+ return _dialog.Dialog;
51
67
  }
52
68
  });
53
- exports.Dialog = exports.ContextMenu = exports.Code = void 0;
54
69
  Object.defineProperty(exports, "ErrorBoundary", {
55
70
  enumerable: true,
56
71
  get: function () {
57
- return _index0.ErrorBoundary;
72
+ return _index9.ErrorBoundary;
58
73
  }
59
74
  });
60
75
  Object.defineProperty(exports, "Fill", {
61
76
  enumerable: true,
62
77
  get: function () {
63
- return _index16.Fill;
78
+ return _index15.Fill;
64
79
  }
65
80
  });
66
81
  exports.Grid = exports.Fonts = void 0;
67
82
  Object.defineProperty(exports, "IconCircle", {
68
83
  enumerable: true,
69
84
  get: function () {
70
- return _index17.IconCircle;
85
+ return _index16.IconCircle;
71
86
  }
72
87
  });
73
- exports.PromptInput = exports.Prompt = exports.Menu = exports.Icons = void 0;
88
+ exports.PromptInput = exports.Menu = exports.Icons = void 0;
74
89
  Object.defineProperty(exports, "SearchInput", {
75
90
  enumerable: true,
76
91
  get: function () {
77
- return _index20.SearchInput;
92
+ return _index19.SearchInput;
93
+ }
94
+ });
95
+ exports.Typography = exports.Tooltip = exports.TextField = exports.Tabs = exports.Skeleton = exports.Select = exports.SegmentedControl = void 0;
96
+ Object.defineProperty(exports, "alert", {
97
+ enumerable: true,
98
+ get: function () {
99
+ return _dialog.alert;
78
100
  }
79
101
  });
80
- exports.Typography = exports.Tooltip = exports.Toast = exports.TextField = exports.Tabs = exports.Skeleton = exports.Select = exports.SegmentedControl = void 0;
81
102
  Object.defineProperty(exports, "android", {
82
103
  enumerable: true,
83
104
  get: function () {
@@ -126,6 +147,12 @@ Object.defineProperty(exports, "select", {
126
147
  return _platform.select;
127
148
  }
128
149
  });
150
+ Object.defineProperty(exports, "toast", {
151
+ enumerable: true,
152
+ get: function () {
153
+ return _toast.toast;
154
+ }
155
+ });
129
156
  exports.tokens = void 0;
130
157
  Object.defineProperty(exports, "useCommonSVGProps", {
131
158
  enumerable: true,
@@ -139,6 +166,18 @@ Object.defineProperty(exports, "useDelayedLoading", {
139
166
  return _useDelayedLoading.useDelayedLoading;
140
167
  }
141
168
  });
169
+ Object.defineProperty(exports, "useDialogContext", {
170
+ enumerable: true,
171
+ get: function () {
172
+ return _dialog.useDialogContext;
173
+ }
174
+ });
175
+ Object.defineProperty(exports, "useDialogControl", {
176
+ enumerable: true,
177
+ get: function () {
178
+ return _dialog.useDialogControl;
179
+ }
180
+ });
142
181
  Object.defineProperty(exports, "useInteractionState", {
143
182
  enumerable: true,
144
183
  get: function () {
@@ -191,11 +230,20 @@ Object.keys(_portal).forEach(function (key) {
191
230
  }
192
231
  });
193
232
  });
194
- var _Dialog = _interopRequireWildcard(require("./dialog"));
195
- exports.Dialog = _Dialog;
196
- var _Prompt = _interopRequireWildcard(require("./prompt/index.js"));
197
- exports.Prompt = _Prompt;
198
- var _index5 = require("./button/index.js");
233
+ var _dialog = require("./dialog");
234
+ var _index4 = require("./button/index.js");
235
+ Object.keys(_index4).forEach(function (key) {
236
+ if (key === "default" || key === "__esModule") return;
237
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
238
+ if (key in exports && exports[key] === _index4[key]) return;
239
+ Object.defineProperty(exports, key, {
240
+ enumerable: true,
241
+ get: function () {
242
+ return _index4[key];
243
+ }
244
+ });
245
+ });
246
+ var _index5 = require("./grouped-buttons/index.js");
199
247
  Object.keys(_index5).forEach(function (key) {
200
248
  if (key === "default" || key === "__esModule") return;
201
249
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -207,7 +255,7 @@ Object.keys(_index5).forEach(function (key) {
207
255
  }
208
256
  });
209
257
  });
210
- var _index6 = require("./grouped-buttons/index.js");
258
+ var _index6 = require("./divider/index.js");
211
259
  Object.keys(_index6).forEach(function (key) {
212
260
  if (key === "default" || key === "__esModule") return;
213
261
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -219,7 +267,7 @@ Object.keys(_index6).forEach(function (key) {
219
267
  }
220
268
  });
221
269
  });
222
- var _index7 = require("./divider/index.js");
270
+ var _index7 = require("./radio-indicator/index.js");
223
271
  Object.keys(_index7).forEach(function (key) {
224
272
  if (key === "default" || key === "__esModule") return;
225
273
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -231,7 +279,7 @@ Object.keys(_index7).forEach(function (key) {
231
279
  }
232
280
  });
233
281
  });
234
- var _index8 = require("./radio-indicator/index.js");
282
+ var _index8 = require("./collapsible/index.js");
235
283
  Object.keys(_index8).forEach(function (key) {
236
284
  if (key === "default" || key === "__esModule") return;
237
285
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -243,20 +291,20 @@ Object.keys(_index8).forEach(function (key) {
243
291
  }
244
292
  });
245
293
  });
246
- var _index9 = require("./collapsible/index.js");
247
- Object.keys(_index9).forEach(function (key) {
294
+ var _index9 = require("./error-boundary/index.js");
295
+ var _index0 = require("./avatar/index.js");
296
+ Object.keys(_index0).forEach(function (key) {
248
297
  if (key === "default" || key === "__esModule") return;
249
298
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
250
- if (key in exports && exports[key] === _index9[key]) return;
299
+ if (key in exports && exports[key] === _index0[key]) return;
251
300
  Object.defineProperty(exports, key, {
252
301
  enumerable: true,
253
302
  get: function () {
254
- return _index9[key];
303
+ return _index0[key];
255
304
  }
256
305
  });
257
306
  });
258
- var _index0 = require("./error-boundary/index.js");
259
- var _index1 = require("./avatar/index.js");
307
+ var _index1 = require("./loading/index.js");
260
308
  Object.keys(_index1).forEach(function (key) {
261
309
  if (key === "default" || key === "__esModule") return;
262
310
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -268,109 +316,96 @@ Object.keys(_index1).forEach(function (key) {
268
316
  }
269
317
  });
270
318
  });
271
- var _index10 = require("./loading/index.js");
272
- Object.keys(_index10).forEach(function (key) {
273
- if (key === "default" || key === "__esModule") return;
274
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
275
- if (key in exports && exports[key] === _index10[key]) return;
276
- Object.defineProperty(exports, key, {
277
- enumerable: true,
278
- get: function () {
279
- return _index10[key];
280
- }
281
- });
282
- });
283
319
  var _PromptInput = _interopRequireWildcard(require("./prompt-input/index.js"));
284
320
  exports.PromptInput = _PromptInput;
285
- var _index12 = require("./switch/index.js");
286
- Object.keys(_index12).forEach(function (key) {
321
+ var _index11 = require("./switch/index.js");
322
+ Object.keys(_index11).forEach(function (key) {
287
323
  if (key === "default" || key === "__esModule") return;
288
324
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
289
- if (key in exports && exports[key] === _index12[key]) return;
325
+ if (key in exports && exports[key] === _index11[key]) return;
290
326
  Object.defineProperty(exports, key, {
291
327
  enumerable: true,
292
328
  get: function () {
293
- return _index12[key];
329
+ return _index11[key];
294
330
  }
295
331
  });
296
332
  });
297
- var _Toast = _interopRequireWildcard(require("./toast"));
298
- exports.Toast = _Toast;
333
+ var _toast = require("./toast");
299
334
  var _Typography = _interopRequireWildcard(require("./typography/index.js"));
300
335
  exports.Typography = _Typography;
301
336
  var _Skeleton = _interopRequireWildcard(require("./skeleton/index.js"));
302
337
  exports.Skeleton = _Skeleton;
303
338
  var _Grid = _interopRequireWildcard(require("./grid/index.js"));
304
339
  exports.Grid = _Grid;
305
- var _index16 = require("./fill/index.js");
306
- var _index17 = require("./icon-circle/index.js");
340
+ var _index15 = require("./fill/index.js");
341
+ var _index16 = require("./icon-circle/index.js");
307
342
  var _TextField = _interopRequireWildcard(require("./text-field/index.js"));
308
343
  exports.TextField = _TextField;
309
344
  var _SegmentedControl = _interopRequireWildcard(require("./segmented-control/index.js"));
310
345
  exports.SegmentedControl = _SegmentedControl;
311
- var _index20 = require("./search-input/index.js");
312
- var _index21 = require("./bottom-sheet/index.js");
313
- var _index22 = require("./card/index.js");
314
- Object.keys(_index22).forEach(function (key) {
346
+ var _index19 = require("./search-input/index.js");
347
+ var _index20 = require("./bottom-sheet/index.js");
348
+ var _index21 = require("./card/index.js");
349
+ Object.keys(_index21).forEach(function (key) {
315
350
  if (key === "default" || key === "__esModule") return;
316
351
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
317
- if (key in exports && exports[key] === _index22[key]) return;
352
+ if (key in exports && exports[key] === _index21[key]) return;
318
353
  Object.defineProperty(exports, key, {
319
354
  enumerable: true,
320
355
  get: function () {
321
- return _index22[key];
356
+ return _index21[key];
322
357
  }
323
358
  });
324
359
  });
325
- var _index23 = require("./badge/index.js");
326
- Object.keys(_index23).forEach(function (key) {
360
+ var _index22 = require("./badge/index.js");
361
+ Object.keys(_index22).forEach(function (key) {
327
362
  if (key === "default" || key === "__esModule") return;
328
363
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
329
- if (key in exports && exports[key] === _index23[key]) return;
364
+ if (key in exports && exports[key] === _index22[key]) return;
330
365
  Object.defineProperty(exports, key, {
331
366
  enumerable: true,
332
367
  get: function () {
333
- return _index23[key];
368
+ return _index22[key];
334
369
  }
335
370
  });
336
371
  });
337
- var _index24 = require("./chip/index.js");
338
- Object.keys(_index24).forEach(function (key) {
372
+ var _index23 = require("./chip/index.js");
373
+ Object.keys(_index23).forEach(function (key) {
339
374
  if (key === "default" || key === "__esModule") return;
340
375
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
341
- if (key in exports && exports[key] === _index24[key]) return;
376
+ if (key in exports && exports[key] === _index23[key]) return;
342
377
  Object.defineProperty(exports, key, {
343
378
  enumerable: true,
344
379
  get: function () {
345
- return _index24[key];
380
+ return _index23[key];
346
381
  }
347
382
  });
348
383
  });
349
384
  var _Tabs = _interopRequireWildcard(require("./tabs/index.js"));
350
385
  exports.Tabs = _Tabs;
351
- var _index26 = require("./checkbox/index.js");
352
- Object.keys(_index26).forEach(function (key) {
386
+ var _index25 = require("./checkbox/index.js");
387
+ Object.keys(_index25).forEach(function (key) {
353
388
  if (key === "default" || key === "__esModule") return;
354
389
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
355
- if (key in exports && exports[key] === _index26[key]) return;
390
+ if (key in exports && exports[key] === _index25[key]) return;
356
391
  Object.defineProperty(exports, key, {
357
392
  enumerable: true,
358
393
  get: function () {
359
- return _index26[key];
394
+ return _index25[key];
360
395
  }
361
396
  });
362
397
  });
363
398
  var _Accordion = _interopRequireWildcard(require("./accordion/index.js"));
364
399
  exports.Accordion = _Accordion;
365
- var _index28 = require("./settings-list/index.js");
366
- Object.keys(_index28).forEach(function (key) {
400
+ var _index27 = require("./settings-list/index.js");
401
+ Object.keys(_index27).forEach(function (key) {
367
402
  if (key === "default" || key === "__esModule") return;
368
403
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
369
- if (key in exports && exports[key] === _index28[key]) return;
404
+ if (key in exports && exports[key] === _index27[key]) return;
370
405
  Object.defineProperty(exports, key, {
371
406
  enumerable: true,
372
407
  get: function () {
373
- return _index28[key];
408
+ return _index27[key];
374
409
  }
375
410
  });
376
411
  });