@breadstone/mosaik-elements-react 0.0.205 → 0.0.209
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +194 -0
- package/Cdk/Index.d.ts +2 -0
- package/Cdk/Index.d.ts.map +1 -0
- package/Cdk/Index.js +4 -0
- package/Cdk/Index.js.map +1 -0
- package/Cdk/Overlays/BottomSheet/BottomSheetContext.d.ts +63 -0
- package/Cdk/Overlays/BottomSheet/BottomSheetContext.d.ts.map +1 -0
- package/Cdk/Overlays/BottomSheet/BottomSheetContext.js +69 -0
- package/Cdk/Overlays/BottomSheet/BottomSheetContext.js.map +1 -0
- package/Cdk/Overlays/BottomSheet/Index.d.ts +3 -0
- package/Cdk/Overlays/BottomSheet/Index.d.ts.map +1 -0
- package/Cdk/Overlays/BottomSheet/Index.js +5 -0
- package/Cdk/Overlays/BottomSheet/Index.js.map +1 -0
- package/Cdk/Overlays/BottomSheet/useBottomSheet.d.ts +65 -0
- package/Cdk/Overlays/BottomSheet/useBottomSheet.d.ts.map +1 -0
- package/Cdk/Overlays/BottomSheet/useBottomSheet.js +49 -0
- package/Cdk/Overlays/BottomSheet/useBottomSheet.js.map +1 -0
- package/Cdk/Overlays/Dialog/DialogContext.d.ts +63 -0
- package/Cdk/Overlays/Dialog/DialogContext.d.ts.map +1 -0
- package/Cdk/Overlays/Dialog/DialogContext.js +69 -0
- package/Cdk/Overlays/Dialog/DialogContext.js.map +1 -0
- package/Cdk/Overlays/Dialog/Index.d.ts +3 -0
- package/Cdk/Overlays/Dialog/Index.d.ts.map +1 -0
- package/Cdk/Overlays/Dialog/Index.js +5 -0
- package/Cdk/Overlays/Dialog/Index.js.map +1 -0
- package/Cdk/Overlays/Dialog/useDialog.d.ts +66 -0
- package/Cdk/Overlays/Dialog/useDialog.d.ts.map +1 -0
- package/Cdk/Overlays/Dialog/useDialog.js +55 -0
- package/Cdk/Overlays/Dialog/useDialog.js.map +1 -0
- package/Cdk/Overlays/Drawer/DrawerContext.d.ts +63 -0
- package/Cdk/Overlays/Drawer/DrawerContext.d.ts.map +1 -0
- package/Cdk/Overlays/Drawer/DrawerContext.js +69 -0
- package/Cdk/Overlays/Drawer/DrawerContext.js.map +1 -0
- package/Cdk/Overlays/Drawer/Index.d.ts +3 -0
- package/Cdk/Overlays/Drawer/Index.d.ts.map +1 -0
- package/Cdk/Overlays/Drawer/Index.js +5 -0
- package/Cdk/Overlays/Drawer/Index.js.map +1 -0
- package/Cdk/Overlays/Drawer/useDrawer.d.ts +66 -0
- package/Cdk/Overlays/Drawer/useDrawer.d.ts.map +1 -0
- package/Cdk/Overlays/Drawer/useDrawer.js +50 -0
- package/Cdk/Overlays/Drawer/useDrawer.js.map +1 -0
- package/Cdk/Overlays/Index.d.ts +6 -0
- package/Cdk/Overlays/Index.d.ts.map +1 -0
- package/Cdk/Overlays/Index.js +8 -0
- package/Cdk/Overlays/Index.js.map +1 -0
- package/Cdk/Overlays/MessageBox/Index.d.ts +3 -0
- package/Cdk/Overlays/MessageBox/Index.d.ts.map +1 -0
- package/Cdk/Overlays/MessageBox/Index.js +5 -0
- package/Cdk/Overlays/MessageBox/Index.js.map +1 -0
- package/Cdk/Overlays/MessageBox/MessageBoxContext.d.ts +63 -0
- package/Cdk/Overlays/MessageBox/MessageBoxContext.d.ts.map +1 -0
- package/Cdk/Overlays/MessageBox/MessageBoxContext.js +69 -0
- package/Cdk/Overlays/MessageBox/MessageBoxContext.js.map +1 -0
- package/Cdk/Overlays/MessageBox/useMessageBox.d.ts +62 -0
- package/Cdk/Overlays/MessageBox/useMessageBox.d.ts.map +1 -0
- package/Cdk/Overlays/MessageBox/useMessageBox.js +57 -0
- package/Cdk/Overlays/MessageBox/useMessageBox.js.map +1 -0
- package/Cdk/Overlays/Sheet/Index.d.ts +3 -0
- package/Cdk/Overlays/Sheet/Index.d.ts.map +1 -0
- package/Cdk/Overlays/Sheet/Index.js +5 -0
- package/Cdk/Overlays/Sheet/Index.js.map +1 -0
- package/Cdk/Overlays/Sheet/SheetContext.d.ts +63 -0
- package/Cdk/Overlays/Sheet/SheetContext.d.ts.map +1 -0
- package/Cdk/Overlays/Sheet/SheetContext.js +69 -0
- package/Cdk/Overlays/Sheet/SheetContext.js.map +1 -0
- package/Cdk/Overlays/Sheet/useSheet.d.ts +65 -0
- package/Cdk/Overlays/Sheet/useSheet.d.ts.map +1 -0
- package/Cdk/Overlays/Sheet/useSheet.js +49 -0
- package/Cdk/Overlays/Sheet/useSheet.js.map +1 -0
- package/Cdk/Overlays/Toast/Index.d.ts +3 -0
- package/Cdk/Overlays/Toast/Index.d.ts.map +1 -0
- package/Cdk/Overlays/Toast/Index.js +5 -0
- package/Cdk/Overlays/Toast/Index.js.map +1 -0
- package/Cdk/Overlays/Toast/ToastContext.d.ts +63 -0
- package/Cdk/Overlays/Toast/ToastContext.d.ts.map +1 -0
- package/Cdk/Overlays/Toast/ToastContext.js +69 -0
- package/Cdk/Overlays/Toast/ToastContext.js.map +1 -0
- package/Cdk/Overlays/Toast/useToast.d.ts +62 -0
- package/Cdk/Overlays/Toast/useToast.d.ts.map +1 -0
- package/Cdk/Overlays/Toast/useToast.js +51 -0
- package/Cdk/Overlays/Toast/useToast.js.map +1 -0
- package/Controls/Components/Grouping/Region/RegionComponent.d.ts +19 -0
- package/Controls/Components/Grouping/Region/RegionComponent.d.ts.map +1 -0
- package/Controls/Components/Grouping/Region/RegionComponent.js +27 -0
- package/Controls/Components/Grouping/Region/RegionComponent.js.map +1 -0
- package/Controls/Components/Grouping/Region/RegionViewComponent.d.ts +18 -0
- package/Controls/Components/Grouping/Region/RegionViewComponent.d.ts.map +1 -0
- package/Controls/Components/Grouping/Region/RegionViewComponent.js +26 -0
- package/Controls/Components/Grouping/Region/RegionViewComponent.js.map +1 -0
- package/Controls/Components/Inputs/AutoCompleteBox/AutoCompleteBoxComponent.d.ts +4 -0
- package/Controls/Components/Inputs/AutoCompleteBox/AutoCompleteBoxComponent.d.ts.map +1 -1
- package/Controls/Components/Inputs/AutoCompleteBox/AutoCompleteBoxComponent.js +4 -0
- package/Controls/Components/Inputs/AutoCompleteBox/AutoCompleteBoxComponent.js.map +1 -1
- package/Controls/Components/Inputs/ColorBox/ColorBoxComponent.d.ts +4 -0
- package/Controls/Components/Inputs/ColorBox/ColorBoxComponent.d.ts.map +1 -1
- package/Controls/Components/Inputs/ColorBox/ColorBoxComponent.js +4 -0
- package/Controls/Components/Inputs/ColorBox/ColorBoxComponent.js.map +1 -1
- package/Controls/Components/Inputs/NumberBox/NumberBoxComponent.d.ts +1 -0
- package/Controls/Components/Inputs/NumberBox/NumberBoxComponent.d.ts.map +1 -1
- package/Controls/Components/Inputs/NumberBox/NumberBoxComponent.js +1 -0
- package/Controls/Components/Inputs/NumberBox/NumberBoxComponent.js.map +1 -1
- package/Controls/Components/Media/Timeline/TimelineComponent.d.ts +18 -0
- package/Controls/Components/Media/Timeline/TimelineComponent.d.ts.map +1 -0
- package/Controls/Components/Media/Timeline/TimelineComponent.js +26 -0
- package/Controls/Components/Media/Timeline/TimelineComponent.js.map +1 -0
- package/Controls/Components/Media/Timeline/TimelineContentComponent.d.ts +18 -0
- package/Controls/Components/Media/Timeline/TimelineContentComponent.d.ts.map +1 -0
- package/Controls/Components/Media/Timeline/TimelineContentComponent.js +26 -0
- package/Controls/Components/Media/Timeline/TimelineContentComponent.js.map +1 -0
- package/Controls/Components/Media/Timeline/TimelineItemComponent.d.ts +18 -0
- package/Controls/Components/Media/Timeline/TimelineItemComponent.d.ts.map +1 -0
- package/Controls/Components/Media/Timeline/TimelineItemComponent.js +26 -0
- package/Controls/Components/Media/Timeline/TimelineItemComponent.js.map +1 -0
- package/Controls/Components/Media/Timeline/TimelineMarkerComponent.d.ts +18 -0
- package/Controls/Components/Media/Timeline/TimelineMarkerComponent.d.ts.map +1 -0
- package/Controls/Components/Media/Timeline/TimelineMarkerComponent.js +26 -0
- package/Controls/Components/Media/Timeline/TimelineMarkerComponent.js.map +1 -0
- package/Controls/Components/Media/Timeline/TimelineOppositeComponent.d.ts +18 -0
- package/Controls/Components/Media/Timeline/TimelineOppositeComponent.d.ts.map +1 -0
- package/Controls/Components/Media/Timeline/TimelineOppositeComponent.js +26 -0
- package/Controls/Components/Media/Timeline/TimelineOppositeComponent.js.map +1 -0
- package/Controls/Components/Overlays/Drawer/DrawerFooterComponent.d.ts +18 -0
- package/Controls/Components/Overlays/Drawer/DrawerFooterComponent.d.ts.map +1 -0
- package/Controls/Components/Overlays/Drawer/DrawerFooterComponent.js +26 -0
- package/Controls/Components/Overlays/Drawer/DrawerFooterComponent.js.map +1 -0
- package/Controls/Components/Overlays/Drawer/DrawerHeaderComponent.d.ts +18 -0
- package/Controls/Components/Overlays/Drawer/DrawerHeaderComponent.d.ts.map +1 -0
- package/Controls/Components/Overlays/Drawer/DrawerHeaderComponent.js +26 -0
- package/Controls/Components/Overlays/Drawer/DrawerHeaderComponent.js.map +1 -0
- package/Controls/Components/Overlays/Drawer/DrawerHeaderSubTextComponent.d.ts +18 -0
- package/Controls/Components/Overlays/Drawer/DrawerHeaderSubTextComponent.d.ts.map +1 -0
- package/Controls/Components/Overlays/Drawer/DrawerHeaderSubTextComponent.js +26 -0
- package/Controls/Components/Overlays/Drawer/DrawerHeaderSubTextComponent.js.map +1 -0
- package/Controls/Components/Overlays/Drawer/DrawerHeaderTextComponent.d.ts +18 -0
- package/Controls/Components/Overlays/Drawer/DrawerHeaderTextComponent.d.ts.map +1 -0
- package/Controls/Components/Overlays/Drawer/DrawerHeaderTextComponent.js +26 -0
- package/Controls/Components/Overlays/Drawer/DrawerHeaderTextComponent.js.map +1 -0
- package/Controls/Components/Overlays/Sheet/SheetComponent.d.ts +20 -0
- package/Controls/Components/Overlays/Sheet/SheetComponent.d.ts.map +1 -0
- package/Controls/Components/Overlays/Sheet/SheetComponent.js +28 -0
- package/Controls/Components/Overlays/Sheet/SheetComponent.js.map +1 -0
- package/Controls/Components/Selectors/Stepper/StepperComponent.d.ts +21 -0
- package/Controls/Components/Selectors/Stepper/StepperComponent.d.ts.map +1 -0
- package/Controls/Components/Selectors/Stepper/StepperComponent.js +29 -0
- package/Controls/Components/Selectors/Stepper/StepperComponent.js.map +1 -0
- package/Controls/Components/Selectors/Stepper/StepperItemComponent.d.ts +20 -0
- package/Controls/Components/Selectors/Stepper/StepperItemComponent.d.ts.map +1 -0
- package/Controls/Components/Selectors/Stepper/StepperItemComponent.js +28 -0
- package/Controls/Components/Selectors/Stepper/StepperItemComponent.js.map +1 -0
- package/Index.d.ts +14 -1
- package/Index.d.ts.map +1 -1
- package/Index.js +14 -1
- package/Index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,197 @@
|
|
|
1
|
+
## 0.0.208 (2025-12-13)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- update component properties and descriptions for better clarity and functionality ([5d4069bff7](https://github.com/RueDeRennes/mosaik/commit/5d4069bff7))
|
|
6
|
+
|
|
7
|
+
## 0.0.207 (2025-12-13)
|
|
8
|
+
|
|
9
|
+
### 🚀 Features
|
|
10
|
+
|
|
11
|
+
- **stepper): add Cosmopolitan, Joy, and Memphis themes for Stepper and StepperItem components feat(stepper): implement React and Svelte components for Stepper and StepperItem feat(stepper): create Vue components for Stepper and StepperItem fix(wizard): update event detail interfaces for active step changes style(stepper:** define token styles for various themes in SCSS ([f3922024d6](https://github.com/RueDeRennes/mosaik/commit/f3922024d6))
|
|
12
|
+
- **tailwind:** implement Tailwind v4 config generation and update package scripts ([db31430aaf](https://github.com/RueDeRennes/mosaik/commit/db31430aaf))
|
|
13
|
+
|
|
14
|
+
### 🩹 Fixes
|
|
15
|
+
|
|
16
|
+
- **stepper:** update properties and styles for Stepper themes and components ([5f66855a75](https://github.com/RueDeRennes/mosaik/commit/5f66855a75))
|
|
17
|
+
|
|
18
|
+
## 0.0.206 (2025-12-09)
|
|
19
|
+
|
|
20
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
21
|
+
|
|
22
|
+
## 0.0.205 (2025-12-07)
|
|
23
|
+
|
|
24
|
+
### 🩹 Fixes
|
|
25
|
+
|
|
26
|
+
- **buttons): update stack-gap variable usage in FloatingActionButton, RepeatButton, SplitButton, ToggleButton themes fix(card): update stack-gap variable usage in CardActions theme fix(expander): update stack-gap variable usage in Expander theme fix(comment): update stack-gap variable usage in Comment theme fix(dialog): update stack-gap variable usage in DialogActions theme fix(segment): update stack-gap variable usage in SegmentItem theme fix(tab-strip): update stack-gap variable usage in TabStripItem theme fix(states): update stack-gap variable usage in Busy, Empty, Error, and Success state themes chore(package:** bump version to 0.0.204 in package.json ([878a490c1e](https://github.com/RueDeRennes/mosaik/commit/878a490c1e))
|
|
27
|
+
|
|
28
|
+
## 0.0.204 (2025-12-07)
|
|
29
|
+
|
|
30
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
31
|
+
|
|
32
|
+
## 0.0.203 (2025-12-06)
|
|
33
|
+
|
|
34
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
35
|
+
|
|
36
|
+
## 0.0.202 (2025-12-06)
|
|
37
|
+
|
|
38
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
39
|
+
|
|
40
|
+
## 0.0.201 (2025-12-05)
|
|
41
|
+
|
|
42
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
43
|
+
|
|
44
|
+
## 0.0.200 (2025-12-05)
|
|
45
|
+
|
|
46
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
47
|
+
|
|
48
|
+
## 0.0.199 (2025-12-05)
|
|
49
|
+
|
|
50
|
+
### 🩹 Fixes
|
|
51
|
+
|
|
52
|
+
- **package:** add missing newline at end of file ([e7bbe4e7c1](https://github.com/RueDeRennes/mosaik/commit/e7bbe4e7c1))
|
|
53
|
+
|
|
54
|
+
## 0.0.198 (2025-12-05)
|
|
55
|
+
|
|
56
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
57
|
+
|
|
58
|
+
## 0.0.197 (2025-12-05)
|
|
59
|
+
|
|
60
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
61
|
+
|
|
62
|
+
## 0.0.196 (2025-12-05)
|
|
63
|
+
|
|
64
|
+
### 🚀 Features
|
|
65
|
+
|
|
66
|
+
- **event-hub:** add Event Hub pattern implementation for Angular 2025 ([88dc4f7404](https://github.com/RueDeRennes/mosaik/commit/88dc4f7404))
|
|
67
|
+
|
|
68
|
+
### 🩹 Fixes
|
|
69
|
+
|
|
70
|
+
- **keywords:** add Event Bus and Message Bus to event hub documentation ([69cafcf76f](https://github.com/RueDeRennes/mosaik/commit/69cafcf76f))
|
|
71
|
+
|
|
72
|
+
## 0.0.195 (2025-12-03)
|
|
73
|
+
|
|
74
|
+
### 🩹 Fixes
|
|
75
|
+
|
|
76
|
+
- **package:** add missing newline at end of file in package.json ([a9bf15349b](https://github.com/RueDeRennes/mosaik/commit/a9bf15349b))
|
|
77
|
+
|
|
78
|
+
## 0.0.194 (2025-12-03)
|
|
79
|
+
|
|
80
|
+
### 🩹 Fixes
|
|
81
|
+
|
|
82
|
+
- **Cdk:** export FormFieldStatusDirective alongside FORM_STATUS_HOST from FormStatusDirective ([c8521cd4ff](https://github.com/RueDeRennes/mosaik/commit/c8521cd4ff))
|
|
83
|
+
|
|
84
|
+
## 0.0.193 (2025-12-03)
|
|
85
|
+
|
|
86
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
87
|
+
|
|
88
|
+
## 0.0.192 (2025-12-03)
|
|
89
|
+
|
|
90
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
91
|
+
|
|
92
|
+
## 0.0.191 (2025-12-03)
|
|
93
|
+
|
|
94
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
95
|
+
|
|
96
|
+
## 0.0.190 (2025-12-02)
|
|
97
|
+
|
|
98
|
+
### 🩹 Fixes
|
|
99
|
+
|
|
100
|
+
- **choice-group:** add flex property to root part for improved layout consistency ([8bd80ed40b](https://github.com/RueDeRennes/mosaik/commit/8bd80ed40b))
|
|
101
|
+
|
|
102
|
+
## 0.0.189 (2025-12-02)
|
|
103
|
+
|
|
104
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
105
|
+
|
|
106
|
+
## 0.0.188 (2025-12-02)
|
|
107
|
+
|
|
108
|
+
### 🚀 Features
|
|
109
|
+
|
|
110
|
+
- **directives:** update FormFieldDirective to improve error handling and usage documentation ([7c07bb43fd](https://github.com/RueDeRennes/mosaik/commit/7c07bb43fd))
|
|
111
|
+
|
|
112
|
+
## 0.0.187 (2025-12-02)
|
|
113
|
+
|
|
114
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
115
|
+
|
|
116
|
+
## 0.0.186 (2025-12-02)
|
|
117
|
+
|
|
118
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
119
|
+
|
|
120
|
+
## 0.0.185 (2025-12-02)
|
|
121
|
+
|
|
122
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
123
|
+
|
|
124
|
+
## 0.0.184 (2025-12-02)
|
|
125
|
+
|
|
126
|
+
### 🚀 Features
|
|
127
|
+
|
|
128
|
+
- **eslint:** enhance ESLint configuration and add .eslintignore file ([4b3deb5566](https://github.com/RueDeRennes/mosaik/commit/4b3deb5566))
|
|
129
|
+
|
|
130
|
+
## 0.0.183 (2025-11-30)
|
|
131
|
+
|
|
132
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
133
|
+
|
|
134
|
+
## 0.0.182 (2025-11-30)
|
|
135
|
+
|
|
136
|
+
### 🚀 Features
|
|
137
|
+
|
|
138
|
+
- **themes:** refactor theme generator strategies and update build process ([55859a854f](https://github.com/RueDeRennes/mosaik/commit/55859a854f))
|
|
139
|
+
|
|
140
|
+
## 0.0.181 (2025-11-30)
|
|
141
|
+
|
|
142
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
143
|
+
|
|
144
|
+
## 0.0.180 (2025-11-30)
|
|
145
|
+
|
|
146
|
+
This was a version bump only for mosaik-elements-react to align it with other projects, there were no code changes.
|
|
147
|
+
|
|
148
|
+
## 0.0.179 (2025-11-29)
|
|
149
|
+
|
|
150
|
+
### 🚀 Features
|
|
151
|
+
|
|
152
|
+
- **tailwind): add Material and Memphis presets for Tailwind CSS themes fix(tokens): correct typo in headline2 key in joy and memphis theme JSON files chore(tsconfig:** update TypeScript configuration to include Tailwind files ([0ae3d28053](https://github.com/RueDeRennes/mosaik/commit/0ae3d28053))
|
|
153
|
+
|
|
154
|
+
## 0.0.178 (2025-11-29)
|
|
155
|
+
|
|
156
|
+
### 🩹 Fixes
|
|
157
|
+
|
|
158
|
+
- **package:** add missing newline at end of file ([0fc5a107d6](https://github.com/RueDeRennes/mosaik/commit/0fc5a107d6))
|
|
159
|
+
|
|
160
|
+
## 0.0.177 (2025-11-29)
|
|
161
|
+
|
|
162
|
+
### 🩹 Fixes
|
|
163
|
+
|
|
164
|
+
- **release:** update release script version to 0.0.177 ([1895016b0a](https://github.com/RueDeRennes/mosaik/commit/1895016b0a))
|
|
165
|
+
|
|
166
|
+
## 0.0.176 (2025-11-29)
|
|
167
|
+
|
|
168
|
+
### 🚀 Features
|
|
169
|
+
|
|
170
|
+
- add oklch color transform and update dependencies in style-dictionary plugins ([40063afe0a](https://github.com/RueDeRennes/mosaik/commit/40063afe0a))
|
|
171
|
+
|
|
172
|
+
### 🩹 Fixes
|
|
173
|
+
|
|
174
|
+
- add missing newline at end of JSON files ([60b2109dd0](https://github.com/RueDeRennes/mosaik/commit/60b2109dd0))
|
|
175
|
+
|
|
176
|
+
## 0.0.175 (2025-11-28)
|
|
177
|
+
|
|
178
|
+
### 🩹 Fixes
|
|
179
|
+
|
|
180
|
+
- add missing newline at end of package.json ([b00046e27b](https://github.com/RueDeRennes/mosaik/commit/b00046e27b))
|
|
181
|
+
|
|
182
|
+
## 0.0.174 (2025-11-28)
|
|
183
|
+
|
|
184
|
+
### 🚀 Features
|
|
185
|
+
|
|
186
|
+
- **tailwind:** add Joy Tailwind plugin with configuration options and token exposure ([72bbf954a8](https://github.com/RueDeRennes/mosaik/commit/72bbf954a8))
|
|
187
|
+
- **svg:** add SVG to path conversion utility ([f2f74da782](https://github.com/RueDeRennes/mosaik/commit/f2f74da782))
|
|
188
|
+
|
|
189
|
+
### 🩹 Fixes
|
|
190
|
+
|
|
191
|
+
- remove unused elevation2 light token and update release version in package.json ([9a63ade438](https://github.com/RueDeRennes/mosaik/commit/9a63ade438))
|
|
192
|
+
- remove unused dependency 'element-to-path' from yarn.lock ([df86dc94de](https://github.com/RueDeRennes/mosaik/commit/df86dc94de))
|
|
193
|
+
- add newline at end of package.json ([73db364d3c](https://github.com/RueDeRennes/mosaik/commit/73db364d3c))
|
|
194
|
+
|
|
1
195
|
## 0.0.173 (2025-11-26)
|
|
2
196
|
|
|
3
197
|
### 🚀 Features
|
package/Cdk/Index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Index.d.ts","sourceRoot":"","sources":["../../src/Cdk/Index.ts"],"names":[],"mappings":"AAEA,cAAc,kBAAkB,CAAC"}
|
package/Cdk/Index.js
ADDED
package/Cdk/Index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Index.js","sourceRoot":"","sources":["../../src/Cdk/Index.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,cAAc,kBAAkB,CAAC;AAEjC,aAAa"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type IUseBottomSheetReturn } from './useBottomSheet';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the BottomSheetProvider component.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface IBottomSheetProviderProps {
|
|
9
|
+
/**
|
|
10
|
+
* Child components that will have access to the bottom sheet context.
|
|
11
|
+
*/
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Provider component that makes bottom sheet functionality available to all child components.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Place this provider at the root of your application or at a level where all
|
|
19
|
+
* components that need bottom sheet access are descendants.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* // In your app root
|
|
24
|
+
* function App() {
|
|
25
|
+
* return (
|
|
26
|
+
* <BottomSheetProvider>
|
|
27
|
+
* <YourAppContent />
|
|
28
|
+
* </BottomSheetProvider>
|
|
29
|
+
* );
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @public
|
|
34
|
+
* @param props - The provider props.
|
|
35
|
+
* @returns The provider component wrapping children.
|
|
36
|
+
*/
|
|
37
|
+
export declare function BottomSheetProvider({ children }: IBottomSheetProviderProps): ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Hook to access the bottom sheet context.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* This hook must be used within a BottomSheetProvider. If you don't need the provider pattern,
|
|
43
|
+
* use `useBottomSheet` directly instead.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* function MyComponent() {
|
|
48
|
+
* const bottomSheet = useBottomSheetContext();
|
|
49
|
+
*
|
|
50
|
+
* return (
|
|
51
|
+
* <button onClick={() => bottomSheet.open('mySheet', MyWrapper)}>
|
|
52
|
+
* Open
|
|
53
|
+
* </button>
|
|
54
|
+
* );
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
59
|
+
* @returns The bottom sheet context value.
|
|
60
|
+
* @throws Error if used outside of a BottomSheetProvider.
|
|
61
|
+
*/
|
|
62
|
+
export declare function useBottomSheetContext(): IUseBottomSheetReturn;
|
|
63
|
+
//# sourceMappingURL=BottomSheetContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetContext.d.ts","sourceRoot":"","sources":["../../../../src/Cdk/Overlays/BottomSheet/BottomSheetContext.tsx"],"names":[],"mappings":"AAEA,OAAc,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,KAAK,qBAAqB,EAAkB,MAAM,kBAAkB,CAAC;AAW9E;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IAEtC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CAEvB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,EAAE,yBAAyB,GAAG,SAAS,CAQtF;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,qBAAqB,IAAI,qBAAqB,CAQ7D"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// #region Imports
|
|
2
|
+
import React, { createContext, useContext } from 'react';
|
|
3
|
+
import { useBottomSheet } from './useBottomSheet';
|
|
4
|
+
// #endregion
|
|
5
|
+
/**
|
|
6
|
+
* Context for providing bottom sheet functionality throughout the React component tree.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
const BottomSheetContext = createContext(null);
|
|
11
|
+
/**
|
|
12
|
+
* Provider component that makes bottom sheet functionality available to all child components.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Place this provider at the root of your application or at a level where all
|
|
16
|
+
* components that need bottom sheet access are descendants.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* // In your app root
|
|
21
|
+
* function App() {
|
|
22
|
+
* return (
|
|
23
|
+
* <BottomSheetProvider>
|
|
24
|
+
* <YourAppContent />
|
|
25
|
+
* </BottomSheetProvider>
|
|
26
|
+
* );
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
* @param props - The provider props.
|
|
32
|
+
* @returns The provider component wrapping children.
|
|
33
|
+
*/
|
|
34
|
+
export function BottomSheetProvider({ children }) {
|
|
35
|
+
const bottomSheet = useBottomSheet();
|
|
36
|
+
return (React.createElement(BottomSheetContext.Provider, { value: bottomSheet }, children));
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Hook to access the bottom sheet context.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* This hook must be used within a BottomSheetProvider. If you don't need the provider pattern,
|
|
43
|
+
* use `useBottomSheet` directly instead.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* function MyComponent() {
|
|
48
|
+
* const bottomSheet = useBottomSheetContext();
|
|
49
|
+
*
|
|
50
|
+
* return (
|
|
51
|
+
* <button onClick={() => bottomSheet.open('mySheet', MyWrapper)}>
|
|
52
|
+
* Open
|
|
53
|
+
* </button>
|
|
54
|
+
* );
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
59
|
+
* @returns The bottom sheet context value.
|
|
60
|
+
* @throws Error if used outside of a BottomSheetProvider.
|
|
61
|
+
*/
|
|
62
|
+
export function useBottomSheetContext() {
|
|
63
|
+
const context = useContext(BottomSheetContext);
|
|
64
|
+
if (!context) {
|
|
65
|
+
throw new Error('useBottomSheetContext must be used within a BottomSheetProvider');
|
|
66
|
+
}
|
|
67
|
+
return context;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=BottomSheetContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetContext.js","sourceRoot":"","sources":["../../../../src/Cdk/Overlays/BottomSheet/BottomSheetContext.tsx"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAC;AACzE,OAAO,EAA8B,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE9E,aAAa;AAEb;;;;GAIG;AACH,MAAM,kBAAkB,GAAG,aAAa,CAA+B,IAAI,CAAC,CAAC;AAgB7E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAAE,QAAQ,EAA6B;IACvE,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,OAAO,CACH,oBAAC,kBAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW,IAC1C,QAAQ,CACiB,CACjC,CAAC;AACN,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,qBAAqB;IACjC,MAAM,OAAO,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAE/C,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;IACvF,CAAC;IAED,OAAO,OAAO,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Index.d.ts","sourceRoot":"","sources":["../../../../src/Cdk/Overlays/BottomSheet/Index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Index.js","sourceRoot":"","sources":["../../../../src/Cdk/Overlays/BottomSheet/Index.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,cAAc,EAA8B,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAkC,MAAM,sBAAsB,CAAC;AAElH,aAAa"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { type IBottomSheetOptions } from '@breadstone/mosaik-elements-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* Represents the return type of the `useBottomSheet` hook.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface IUseBottomSheetReturn {
|
|
8
|
+
/**
|
|
9
|
+
* Opens a bottom sheet with the specified wrapper component.
|
|
10
|
+
*
|
|
11
|
+
* @template T - Type of the wrapper component extending HTMLElement.
|
|
12
|
+
* @template TData - Type of data provided to the wrapper component.
|
|
13
|
+
* @template TResult - Expected return type of the resolved bottom sheet result.
|
|
14
|
+
* @param bottomSheetId - Unique identifier for the bottom sheet.
|
|
15
|
+
* @param wrapperClass - Constructor for the wrapper component.
|
|
16
|
+
* @param options - Optional bottom sheet configuration.
|
|
17
|
+
* @param data - Optional data to pass to the wrapper.
|
|
18
|
+
* @returns Promise resolving to the bottom sheet result.
|
|
19
|
+
*/
|
|
20
|
+
open<T extends HTMLElement, TData, TResult>(bottomSheetId: string, wrapperClass: new (args?: TData) => T, options?: IBottomSheetOptions, data?: TData): Promise<TResult>;
|
|
21
|
+
/**
|
|
22
|
+
* Closes a bottom sheet by its identifier.
|
|
23
|
+
*
|
|
24
|
+
* @template TResult - Type of the result to return.
|
|
25
|
+
* @param bottomSheetId - The identifier of the bottom sheet to close.
|
|
26
|
+
* @param result - Optional result to pass to the bottom sheet opener.
|
|
27
|
+
* @returns Promise that resolves when the bottom sheet is closed.
|
|
28
|
+
*/
|
|
29
|
+
close<TResult>(bottomSheetId: string, result?: TResult): Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* React hook for managing bottom sheets using the foundation BottomSheetService singleton.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* This hook provides a React-idiomatic interface to the foundation BottomSheetService.
|
|
36
|
+
* The service should be configured at application startup using `BottomSheetService.configure()`.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* // In your app setup
|
|
41
|
+
* BottomSheetService.configure({
|
|
42
|
+
* closeOnNavigation: true,
|
|
43
|
+
* behaviors: []
|
|
44
|
+
* });
|
|
45
|
+
*
|
|
46
|
+
* // In your component
|
|
47
|
+
* function MyComponent() {
|
|
48
|
+
* const bottomSheet = useBottomSheet();
|
|
49
|
+
*
|
|
50
|
+
* const handleOpen = async () => {
|
|
51
|
+
* const result = await bottomSheet.open('mySheet', MyBottomSheetWrapper, {
|
|
52
|
+
* header: 'Select Option'
|
|
53
|
+
* });
|
|
54
|
+
* console.log('Bottom sheet result:', result);
|
|
55
|
+
* };
|
|
56
|
+
*
|
|
57
|
+
* return <button onClick={handleOpen}>Open Bottom Sheet</button>;
|
|
58
|
+
* }
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
* @returns An object containing bottom sheet management functions.
|
|
63
|
+
*/
|
|
64
|
+
export declare function useBottomSheet(): IUseBottomSheetReturn;
|
|
65
|
+
//# sourceMappingURL=useBottomSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/Cdk/Overlays/BottomSheet/useBottomSheet.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAItG;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAElC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,CAAC,SAAS,WAAW,EAAE,KAAK,EAAE,OAAO,EACtC,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,KAAK,IAAI,CAAC,EAAE,KAAK,KAAK,CAAC,EACrC,OAAO,CAAC,EAAE,mBAAmB,EAC7B,IAAI,CAAC,EAAE,KAAK,GACb,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpB;;;;;;;OAOG;IACH,KAAK,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAE1E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,cAAc,IAAI,qBAAqB,CAsBtD"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// #region Imports
|
|
2
|
+
import { useCallback, useMemo } from 'react';
|
|
3
|
+
import { BottomSheetService } from '@breadstone/mosaik-elements-foundation';
|
|
4
|
+
/**
|
|
5
|
+
* React hook for managing bottom sheets using the foundation BottomSheetService singleton.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* This hook provides a React-idiomatic interface to the foundation BottomSheetService.
|
|
9
|
+
* The service should be configured at application startup using `BottomSheetService.configure()`.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* // In your app setup
|
|
14
|
+
* BottomSheetService.configure({
|
|
15
|
+
* closeOnNavigation: true,
|
|
16
|
+
* behaviors: []
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* // In your component
|
|
20
|
+
* function MyComponent() {
|
|
21
|
+
* const bottomSheet = useBottomSheet();
|
|
22
|
+
*
|
|
23
|
+
* const handleOpen = async () => {
|
|
24
|
+
* const result = await bottomSheet.open('mySheet', MyBottomSheetWrapper, {
|
|
25
|
+
* header: 'Select Option'
|
|
26
|
+
* });
|
|
27
|
+
* console.log('Bottom sheet result:', result);
|
|
28
|
+
* };
|
|
29
|
+
*
|
|
30
|
+
* return <button onClick={handleOpen}>Open Bottom Sheet</button>;
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @public
|
|
35
|
+
* @returns An object containing bottom sheet management functions.
|
|
36
|
+
*/
|
|
37
|
+
export function useBottomSheet() {
|
|
38
|
+
// #region Methods
|
|
39
|
+
const open = useCallback((bottomSheetId, wrapperClass, options, data) => BottomSheetService.instance.open(bottomSheetId, wrapperClass, options, data), []);
|
|
40
|
+
const close = useCallback((bottomSheetId, result) => BottomSheetService.instance.close(bottomSheetId, result), []);
|
|
41
|
+
// #endregion
|
|
42
|
+
// #region Properties
|
|
43
|
+
return useMemo(() => ({
|
|
44
|
+
open,
|
|
45
|
+
close
|
|
46
|
+
}), [open, close]);
|
|
47
|
+
// #endregion
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=useBottomSheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBottomSheet.js","sourceRoot":"","sources":["../../../../src/Cdk/Overlays/BottomSheet/useBottomSheet.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAA4B,MAAM,wCAAwC,CAAC;AA0CtG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,UAAU,cAAc;IAC1B,kBAAkB;IAElB,MAAM,IAAI,GAAG,WAAW,CAAC,CACrB,aAAqB,EACrB,YAAqC,EACrC,OAA6B,EAC7B,IAAY,EACI,EAAE,CAAC,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAoB,aAAa,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAE5H,MAAM,KAAK,GAAG,WAAW,CAAC,CAAU,aAAqB,EAAE,MAAgB,EAAiB,EAAE,CAAC,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAa,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;IAE7J,aAAa;IAEb,qBAAqB;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;QAClB,IAAI;QACJ,KAAK;KACR,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IAEnB,aAAa;AACjB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type IUseDialogReturn } from './useDialog';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the DialogProvider component.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface IDialogProviderProps {
|
|
9
|
+
/**
|
|
10
|
+
* Child components that will have access to the dialog context.
|
|
11
|
+
*/
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Provider component that makes dialog functionality available to all child components.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Place this provider at the root of your application or at a level where all
|
|
19
|
+
* components that need dialog access are descendants.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* // In your app root
|
|
24
|
+
* function App() {
|
|
25
|
+
* return (
|
|
26
|
+
* <DialogProvider>
|
|
27
|
+
* <YourAppContent />
|
|
28
|
+
* </DialogProvider>
|
|
29
|
+
* );
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @public
|
|
34
|
+
* @param props - The provider props.
|
|
35
|
+
* @returns The provider component wrapping children.
|
|
36
|
+
*/
|
|
37
|
+
export declare function DialogProvider({ children }: IDialogProviderProps): ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Hook to access the dialog context.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* This hook must be used within a DialogProvider. If you don't need the provider pattern,
|
|
43
|
+
* use `useDialog` directly instead.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* function MyComponent() {
|
|
48
|
+
* const dialog = useDialogContext();
|
|
49
|
+
*
|
|
50
|
+
* return (
|
|
51
|
+
* <button onClick={() => dialog.open('myDialog', MyWrapper)}>
|
|
52
|
+
* Open
|
|
53
|
+
* </button>
|
|
54
|
+
* );
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
59
|
+
* @returns The dialog context value.
|
|
60
|
+
* @throws Error if used outside of a DialogProvider.
|
|
61
|
+
*/
|
|
62
|
+
export declare function useDialogContext(): IUseDialogReturn;
|
|
63
|
+
//# sourceMappingURL=DialogContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DialogContext.d.ts","sourceRoot":"","sources":["../../../../src/Cdk/Overlays/Dialog/DialogContext.tsx"],"names":[],"mappings":"AAEA,OAAc,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,KAAK,gBAAgB,EAAa,MAAM,aAAa,CAAC;AAW/D;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IAEjC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CAEvB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,oBAAoB,GAAG,SAAS,CAQ5E;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,gBAAgB,IAAI,gBAAgB,CAQnD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// #region Imports
|
|
2
|
+
import React, { createContext, useContext } from 'react';
|
|
3
|
+
import { useDialog } from './useDialog';
|
|
4
|
+
// #endregion
|
|
5
|
+
/**
|
|
6
|
+
* Context for providing dialog functionality throughout the React component tree.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
const DialogContext = createContext(null);
|
|
11
|
+
/**
|
|
12
|
+
* Provider component that makes dialog functionality available to all child components.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Place this provider at the root of your application or at a level where all
|
|
16
|
+
* components that need dialog access are descendants.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* // In your app root
|
|
21
|
+
* function App() {
|
|
22
|
+
* return (
|
|
23
|
+
* <DialogProvider>
|
|
24
|
+
* <YourAppContent />
|
|
25
|
+
* </DialogProvider>
|
|
26
|
+
* );
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
* @param props - The provider props.
|
|
32
|
+
* @returns The provider component wrapping children.
|
|
33
|
+
*/
|
|
34
|
+
export function DialogProvider({ children }) {
|
|
35
|
+
const dialog = useDialog();
|
|
36
|
+
return (React.createElement(DialogContext.Provider, { value: dialog }, children));
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Hook to access the dialog context.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* This hook must be used within a DialogProvider. If you don't need the provider pattern,
|
|
43
|
+
* use `useDialog` directly instead.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* function MyComponent() {
|
|
48
|
+
* const dialog = useDialogContext();
|
|
49
|
+
*
|
|
50
|
+
* return (
|
|
51
|
+
* <button onClick={() => dialog.open('myDialog', MyWrapper)}>
|
|
52
|
+
* Open
|
|
53
|
+
* </button>
|
|
54
|
+
* );
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
59
|
+
* @returns The dialog context value.
|
|
60
|
+
* @throws Error if used outside of a DialogProvider.
|
|
61
|
+
*/
|
|
62
|
+
export function useDialogContext() {
|
|
63
|
+
const context = useContext(DialogContext);
|
|
64
|
+
if (!context) {
|
|
65
|
+
throw new Error('useDialogContext must be used within a DialogProvider');
|
|
66
|
+
}
|
|
67
|
+
return context;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=DialogContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DialogContext.js","sourceRoot":"","sources":["../../../../src/Cdk/Overlays/Dialog/DialogContext.tsx"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAC;AACzE,OAAO,EAAyB,SAAS,EAAE,MAAM,aAAa,CAAC;AAE/D,aAAa;AAEb;;;;GAIG;AACH,MAAM,aAAa,GAAG,aAAa,CAA0B,IAAI,CAAC,CAAC;AAgBnE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,cAAc,CAAC,EAAE,QAAQ,EAAwB;IAC7D,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,CACH,oBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,IAChC,QAAQ,CACY,CAC5B,CAAC;AACN,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,gBAAgB;IAC5B,MAAM,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAE1C,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;IAC7E,CAAC;IAED,OAAO,OAAO,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Index.d.ts","sourceRoot":"","sources":["../../../../src/Cdk/Overlays/Dialog/Index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Index.js","sourceRoot":"","sources":["../../../../src/Cdk/Overlays/Dialog/Index.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,SAAS,EAAyB,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAA6B,MAAM,iBAAiB,CAAC;AAE9F,aAAa"}
|