@fink-ui/react 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +287 -0
- package/README.md +59 -2
- package/dist/index.cjs +745 -0
- package/dist/index.d.cts +378 -0
- package/dist/index.d.mts +378 -0
- package/dist/index.d.ts +378 -0
- package/dist/index.mjs +609 -0
- package/fink.css +2 -0
- package/package.json +54 -3
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,609 @@
|
|
|
1
|
+
import React, { useState, useEffect, useCallback, useMemo, Fragment, useContext, createContext } from 'react';
|
|
2
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
3
|
+
import { defineCustomElement, FinkAppShell as FinkAppShell$1 } from '@fink-ui/components/dist/components/fink-app-shell.js';
|
|
4
|
+
import { defineCustomElement as defineCustomElement$1, FinkAvatarGroup as FinkAvatarGroup$1 } from '@fink-ui/components/dist/components/fink-avatar-group.js';
|
|
5
|
+
import { defineCustomElement as defineCustomElement$2, FinkBackToTop as FinkBackToTop$1 } from '@fink-ui/components/dist/components/fink-back-to-top.js';
|
|
6
|
+
import { defineCustomElement as defineCustomElement$3, FinkBarChart as FinkBarChart$1 } from '@fink-ui/components/dist/components/fink-bar-chart.js';
|
|
7
|
+
import { defineCustomElement as defineCustomElement$4, FinkBottomNav as FinkBottomNav$1 } from '@fink-ui/components/dist/components/fink-bottom-nav.js';
|
|
8
|
+
import { defineCustomElement as defineCustomElement$5, FinkCalendar as FinkCalendar$1 } from '@fink-ui/components/dist/components/fink-calendar.js';
|
|
9
|
+
import { defineCustomElement as defineCustomElement$6, FinkCarousel as FinkCarousel$1 } from '@fink-ui/components/dist/components/fink-carousel.js';
|
|
10
|
+
import { defineCustomElement as defineCustomElement$7, FinkChip as FinkChip$1 } from '@fink-ui/components/dist/components/fink-chip.js';
|
|
11
|
+
import { defineCustomElement as defineCustomElement$8, FinkCodeBlock as FinkCodeBlock$1 } from '@fink-ui/components/dist/components/fink-code-block.js';
|
|
12
|
+
import { defineCustomElement as defineCustomElement$9, FinkConsentBanner as FinkConsentBanner$1 } from '@fink-ui/components/dist/components/fink-consent-banner.js';
|
|
13
|
+
import { defineCustomElement as defineCustomElement$a, FinkDivider as FinkDivider$1 } from '@fink-ui/components/dist/components/fink-divider.js';
|
|
14
|
+
import { defineCustomElement as defineCustomElement$b, FinkEmptyState as FinkEmptyState$1 } from '@fink-ui/components/dist/components/fink-empty-state.js';
|
|
15
|
+
import { defineCustomElement as defineCustomElement$c, FinkFab as FinkFab$1 } from '@fink-ui/components/dist/components/fink-fab.js';
|
|
16
|
+
import { defineCustomElement as defineCustomElement$d, FinkFeedback as FinkFeedback$1 } from '@fink-ui/components/dist/components/fink-feedback.js';
|
|
17
|
+
import { defineCustomElement as defineCustomElement$e, FinkFileUpload as FinkFileUpload$1 } from '@fink-ui/components/dist/components/fink-file-upload.js';
|
|
18
|
+
import { defineCustomElement as defineCustomElement$f, FinkFooter as FinkFooter$1 } from '@fink-ui/components/dist/components/fink-footer.js';
|
|
19
|
+
import { defineCustomElement as defineCustomElement$g, FinkGrid as FinkGrid$1 } from '@fink-ui/components/dist/components/fink-grid.js';
|
|
20
|
+
import { defineCustomElement as defineCustomElement$h, FinkImageList as FinkImageList$1 } from '@fink-ui/components/dist/components/fink-image-list.js';
|
|
21
|
+
import { defineCustomElement as defineCustomElement$i, FinkInfiniteScroll as FinkInfiniteScroll$1 } from '@fink-ui/components/dist/components/fink-infinite-scroll.js';
|
|
22
|
+
import { defineCustomElement as defineCustomElement$j, FinkKbd as FinkKbd$1 } from '@fink-ui/components/dist/components/fink-kbd.js';
|
|
23
|
+
import { defineCustomElement as defineCustomElement$k, FinkList as FinkList$1 } from '@fink-ui/components/dist/components/fink-list.js';
|
|
24
|
+
import { defineCustomElement as defineCustomElement$l, FinkLogo as FinkLogo$1 } from '@fink-ui/components/dist/components/fink-logo.js';
|
|
25
|
+
import { defineCustomElement as defineCustomElement$m, FinkMenu as FinkMenu$1 } from '@fink-ui/components/dist/components/fink-menu.js';
|
|
26
|
+
import { defineCustomElement as defineCustomElement$n, FinkOtpInput as FinkOtpInput$1 } from '@fink-ui/components/dist/components/fink-otp-input.js';
|
|
27
|
+
import { defineCustomElement as defineCustomElement$o, FinkPageHeader as FinkPageHeader$1 } from '@fink-ui/components/dist/components/fink-page-header.js';
|
|
28
|
+
import { defineCustomElement as defineCustomElement$p, FinkPanel as FinkPanel$1 } from '@fink-ui/components/dist/components/fink-panel.js';
|
|
29
|
+
import { defineCustomElement as defineCustomElement$q, FinkPopconfirm as FinkPopconfirm$1 } from '@fink-ui/components/dist/components/fink-popconfirm.js';
|
|
30
|
+
import { defineCustomElement as defineCustomElement$r, FinkRangeSlider as FinkRangeSlider$1 } from '@fink-ui/components/dist/components/fink-range-slider.js';
|
|
31
|
+
import { defineCustomElement as defineCustomElement$s, FinkRating as FinkRating$1 } from '@fink-ui/components/dist/components/fink-rating.js';
|
|
32
|
+
import { defineCustomElement as defineCustomElement$t, FinkResult as FinkResult$1 } from '@fink-ui/components/dist/components/fink-result.js';
|
|
33
|
+
import { defineCustomElement as defineCustomElement$u, FinkSegmented as FinkSegmented$1 } from '@fink-ui/components/dist/components/fink-segmented.js';
|
|
34
|
+
import { defineCustomElement as defineCustomElement$v, FinkSelectionBar as FinkSelectionBar$1 } from '@fink-ui/components/dist/components/fink-selection-bar.js';
|
|
35
|
+
import { defineCustomElement as defineCustomElement$w, FinkSkeleton as FinkSkeleton$1 } from '@fink-ui/components/dist/components/fink-skeleton.js';
|
|
36
|
+
import { defineCustomElement as defineCustomElement$x, FinkSparkline as FinkSparkline$1 } from '@fink-ui/components/dist/components/fink-sparkline.js';
|
|
37
|
+
import { defineCustomElement as defineCustomElement$y, FinkSplitter as FinkSplitter$1 } from '@fink-ui/components/dist/components/fink-splitter.js';
|
|
38
|
+
import { defineCustomElement as defineCustomElement$z, FinkStack as FinkStack$1 } from '@fink-ui/components/dist/components/fink-stack.js';
|
|
39
|
+
import { defineCustomElement as defineCustomElement$A, FinkStatCard as FinkStatCard$1 } from '@fink-ui/components/dist/components/fink-stat-card.js';
|
|
40
|
+
import { defineCustomElement as defineCustomElement$B, FinkStatus as FinkStatus$1 } from '@fink-ui/components/dist/components/fink-status.js';
|
|
41
|
+
import { defineCustomElement as defineCustomElement$C, FinkStepper as FinkStepper$1 } from '@fink-ui/components/dist/components/fink-stepper.js';
|
|
42
|
+
import { defineCustomElement as defineCustomElement$D, FinkSummaryList as FinkSummaryList$1 } from '@fink-ui/components/dist/components/fink-summary-list.js';
|
|
43
|
+
import { defineCustomElement as defineCustomElement$E, FinkTagInput as FinkTagInput$1 } from '@fink-ui/components/dist/components/fink-tag-input.js';
|
|
44
|
+
import { defineCustomElement as defineCustomElement$F, FinkTaskList as FinkTaskList$1 } from '@fink-ui/components/dist/components/fink-task-list.js';
|
|
45
|
+
import { defineCustomElement as defineCustomElement$G, FinkTimeline as FinkTimeline$1 } from '@fink-ui/components/dist/components/fink-timeline.js';
|
|
46
|
+
import { defineCustomElement as defineCustomElement$H, FinkToc as FinkToc$1 } from '@fink-ui/components/dist/components/fink-toc.js';
|
|
47
|
+
import { defineCustomElement as defineCustomElement$I, FinkTour as FinkTour$1 } from '@fink-ui/components/dist/components/fink-tour.js';
|
|
48
|
+
import { defineCustomElement as defineCustomElement$J, FinkTransferList as FinkTransferList$1 } from '@fink-ui/components/dist/components/fink-transfer-list.js';
|
|
49
|
+
import { defineCustomElement as defineCustomElement$K, FinkVirtualList as FinkVirtualList$1 } from '@fink-ui/components/dist/components/fink-virtual-list.js';
|
|
50
|
+
import { defineCustomElements } from '@fink-ui/components/dist/loader/index.js';
|
|
51
|
+
export { defineCustomElements } from '@fink-ui/components/dist/loader/index.js';
|
|
52
|
+
import { ToasterService } from '@public-ui/components';
|
|
53
|
+
export { setCurrentLocation } from '@public-ui/components';
|
|
54
|
+
import { jsx } from 'react/jsx-runtime';
|
|
55
|
+
import { FINK_THEME_NAME, addFinkThemes, getFinkThemes, setFinkLanguage, isFinkThemeName } from '@fink-ui/components';
|
|
56
|
+
export { FINK_THEMES, FINK_THEME_NAME, INPUT_COMPONENTS, addFinkThemes, addFinkTranslations, brandThemes, controlHeights, cssVar, defineFinkTheme, focusColor, focusForm, forComponents, getFinkLanguage, getFinkThemes, isFinkThemeName, linkStyle, mergeOverrides, navStates, neutralTableHeader, setFinkLanguage, sharedOverrides, slimInputs, switchShape, tintedAlert, tokens } from '@fink-ui/components';
|
|
57
|
+
export { KolAbbr as FinkAbbr, KolAccordion as FinkAccordion, KolAlert as FinkAlert, KolAvatar as FinkAvatar, KolBadge as FinkBadge, KolBreadcrumb as FinkBreadcrumb, KolButton as FinkButton, KolButtonLink as FinkButtonLink, KolCard as FinkCard, KolCombobox as FinkCombobox, KolDetails as FinkDetails, KolDialog as FinkDialog, KolDrawer as FinkDrawer, KolForm as FinkForm, KolHeading as FinkHeading, KolIcon as FinkIcon, KolImage as FinkImage, KolInputCheckbox as FinkInputCheckbox, KolInputColor as FinkInputColor, KolInputDate as FinkInputDate, KolInputEmail as FinkInputEmail, KolInputFile as FinkInputFile, KolInputNumber as FinkInputNumber, KolInputPassword as FinkInputPassword, KolInputRadio as FinkInputRadio, KolInputRange as FinkInputRange, KolInputText as FinkInputText, KolKolibri as FinkKolibri, KolLink as FinkLink, KolLinkButton as FinkLinkButton, KolMeter as FinkMeter, KolModal as FinkModal, KolNav as FinkNav, KolPagination as FinkPagination, KolPopoverButton as FinkPopoverButton, KolProgress as FinkProgress, KolQuote as FinkQuote, KolSelect as FinkSelect, KolSingleSelect as FinkSingleSelect, KolSkipNav as FinkSkipNav, KolSpin as FinkSpin, KolSplitButton as FinkSplitButton, KolTableStateful as FinkTableStateful, KolTableStateless as FinkTableStateless, KolTabs as FinkTabs, KolTextarea as FinkTextarea, KolToolbar as FinkToolbar, KolTree as FinkTree, KolTreeItem as FinkTreeItem, KolVersion as FinkVersion, createReactRenderElement, getTagTransformer, setTagNameTransformer, setTagTransformer, transformTag } from '@public-ui/react-v19';
|
|
58
|
+
|
|
59
|
+
const FinkAppShell = /* @__PURE__ */ createComponent({
|
|
60
|
+
tagName: "fink-app-shell",
|
|
61
|
+
elementClass: FinkAppShell$1,
|
|
62
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
63
|
+
react: React,
|
|
64
|
+
events: {
|
|
65
|
+
onFinkNavToggle: "finkNavToggle",
|
|
66
|
+
onFinkNavCompactToggle: "finkNavCompactToggle"
|
|
67
|
+
},
|
|
68
|
+
defineCustomElement: defineCustomElement
|
|
69
|
+
});
|
|
70
|
+
const FinkAvatarGroup = /* @__PURE__ */ createComponent({
|
|
71
|
+
tagName: "fink-avatar-group",
|
|
72
|
+
elementClass: FinkAvatarGroup$1,
|
|
73
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
74
|
+
react: React,
|
|
75
|
+
events: {},
|
|
76
|
+
defineCustomElement: defineCustomElement$1
|
|
77
|
+
});
|
|
78
|
+
const FinkBackToTop = /* @__PURE__ */ createComponent({
|
|
79
|
+
tagName: "fink-back-to-top",
|
|
80
|
+
elementClass: FinkBackToTop$1,
|
|
81
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
82
|
+
react: React,
|
|
83
|
+
events: {},
|
|
84
|
+
defineCustomElement: defineCustomElement$2
|
|
85
|
+
});
|
|
86
|
+
const FinkBarChart = /* @__PURE__ */ createComponent({
|
|
87
|
+
tagName: "fink-bar-chart",
|
|
88
|
+
elementClass: FinkBarChart$1,
|
|
89
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
90
|
+
react: React,
|
|
91
|
+
events: {},
|
|
92
|
+
defineCustomElement: defineCustomElement$3
|
|
93
|
+
});
|
|
94
|
+
const FinkBottomNav = /* @__PURE__ */ createComponent({
|
|
95
|
+
tagName: "fink-bottom-nav",
|
|
96
|
+
elementClass: FinkBottomNav$1,
|
|
97
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
98
|
+
react: React,
|
|
99
|
+
events: {
|
|
100
|
+
onFinkChange: "finkChange"
|
|
101
|
+
},
|
|
102
|
+
defineCustomElement: defineCustomElement$4
|
|
103
|
+
});
|
|
104
|
+
const FinkCalendar = /* @__PURE__ */ createComponent({
|
|
105
|
+
tagName: "fink-calendar",
|
|
106
|
+
elementClass: FinkCalendar$1,
|
|
107
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
108
|
+
react: React,
|
|
109
|
+
events: {
|
|
110
|
+
onFinkChange: "finkChange"
|
|
111
|
+
},
|
|
112
|
+
defineCustomElement: defineCustomElement$5
|
|
113
|
+
});
|
|
114
|
+
const FinkCarousel = /* @__PURE__ */ createComponent({
|
|
115
|
+
tagName: "fink-carousel",
|
|
116
|
+
elementClass: FinkCarousel$1,
|
|
117
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
118
|
+
react: React,
|
|
119
|
+
events: {},
|
|
120
|
+
defineCustomElement: defineCustomElement$6
|
|
121
|
+
});
|
|
122
|
+
const FinkChip = /* @__PURE__ */ createComponent({
|
|
123
|
+
tagName: "fink-chip",
|
|
124
|
+
elementClass: FinkChip$1,
|
|
125
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
126
|
+
react: React,
|
|
127
|
+
events: {
|
|
128
|
+
onFinkToggle: "finkToggle",
|
|
129
|
+
onFinkRemove: "finkRemove"
|
|
130
|
+
},
|
|
131
|
+
defineCustomElement: defineCustomElement$7
|
|
132
|
+
});
|
|
133
|
+
const FinkCodeBlock = /* @__PURE__ */ createComponent({
|
|
134
|
+
tagName: "fink-code-block",
|
|
135
|
+
elementClass: FinkCodeBlock$1,
|
|
136
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
137
|
+
react: React,
|
|
138
|
+
events: {},
|
|
139
|
+
defineCustomElement: defineCustomElement$8
|
|
140
|
+
});
|
|
141
|
+
const FinkConsentBanner = /* @__PURE__ */ createComponent({
|
|
142
|
+
tagName: "fink-consent-banner",
|
|
143
|
+
elementClass: FinkConsentBanner$1,
|
|
144
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
145
|
+
react: React,
|
|
146
|
+
events: {
|
|
147
|
+
onFinkConsent: "finkConsent"
|
|
148
|
+
},
|
|
149
|
+
defineCustomElement: defineCustomElement$9
|
|
150
|
+
});
|
|
151
|
+
const FinkDivider = /* @__PURE__ */ createComponent({
|
|
152
|
+
tagName: "fink-divider",
|
|
153
|
+
elementClass: FinkDivider$1,
|
|
154
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
155
|
+
react: React,
|
|
156
|
+
events: {},
|
|
157
|
+
defineCustomElement: defineCustomElement$a
|
|
158
|
+
});
|
|
159
|
+
const FinkEmptyState = /* @__PURE__ */ createComponent({
|
|
160
|
+
tagName: "fink-empty-state",
|
|
161
|
+
elementClass: FinkEmptyState$1,
|
|
162
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
163
|
+
react: React,
|
|
164
|
+
events: {},
|
|
165
|
+
defineCustomElement: defineCustomElement$b
|
|
166
|
+
});
|
|
167
|
+
const FinkFab = /* @__PURE__ */ createComponent({
|
|
168
|
+
tagName: "fink-fab",
|
|
169
|
+
elementClass: FinkFab$1,
|
|
170
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
171
|
+
react: React,
|
|
172
|
+
events: {
|
|
173
|
+
onFinkClick: "finkClick",
|
|
174
|
+
onFinkSelect: "finkSelect"
|
|
175
|
+
},
|
|
176
|
+
defineCustomElement: defineCustomElement$c
|
|
177
|
+
});
|
|
178
|
+
const FinkFeedback = /* @__PURE__ */ createComponent({
|
|
179
|
+
tagName: "fink-feedback",
|
|
180
|
+
elementClass: FinkFeedback$1,
|
|
181
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
182
|
+
react: React,
|
|
183
|
+
events: {
|
|
184
|
+
onFinkFeedback: "finkFeedback"
|
|
185
|
+
},
|
|
186
|
+
defineCustomElement: defineCustomElement$d
|
|
187
|
+
});
|
|
188
|
+
const FinkFileUpload = /* @__PURE__ */ createComponent({
|
|
189
|
+
tagName: "fink-file-upload",
|
|
190
|
+
elementClass: FinkFileUpload$1,
|
|
191
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
192
|
+
react: React,
|
|
193
|
+
events: {
|
|
194
|
+
onFinkFilesChange: "finkFilesChange"
|
|
195
|
+
},
|
|
196
|
+
defineCustomElement: defineCustomElement$e
|
|
197
|
+
});
|
|
198
|
+
const FinkFooter = /* @__PURE__ */ createComponent({
|
|
199
|
+
tagName: "fink-footer",
|
|
200
|
+
elementClass: FinkFooter$1,
|
|
201
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
202
|
+
react: React,
|
|
203
|
+
events: {},
|
|
204
|
+
defineCustomElement: defineCustomElement$f
|
|
205
|
+
});
|
|
206
|
+
const FinkGrid = /* @__PURE__ */ createComponent({
|
|
207
|
+
tagName: "fink-grid",
|
|
208
|
+
elementClass: FinkGrid$1,
|
|
209
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
210
|
+
react: React,
|
|
211
|
+
events: {},
|
|
212
|
+
defineCustomElement: defineCustomElement$g
|
|
213
|
+
});
|
|
214
|
+
const FinkImageList = /* @__PURE__ */ createComponent({
|
|
215
|
+
tagName: "fink-image-list",
|
|
216
|
+
elementClass: FinkImageList$1,
|
|
217
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
218
|
+
react: React,
|
|
219
|
+
events: {},
|
|
220
|
+
defineCustomElement: defineCustomElement$h
|
|
221
|
+
});
|
|
222
|
+
const FinkInfiniteScroll = /* @__PURE__ */ createComponent({
|
|
223
|
+
tagName: "fink-infinite-scroll",
|
|
224
|
+
elementClass: FinkInfiniteScroll$1,
|
|
225
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
226
|
+
react: React,
|
|
227
|
+
events: {
|
|
228
|
+
onFinkLoad: "finkLoad"
|
|
229
|
+
},
|
|
230
|
+
defineCustomElement: defineCustomElement$i
|
|
231
|
+
});
|
|
232
|
+
const FinkKbd = /* @__PURE__ */ createComponent({
|
|
233
|
+
tagName: "fink-kbd",
|
|
234
|
+
elementClass: FinkKbd$1,
|
|
235
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
236
|
+
react: React,
|
|
237
|
+
events: {},
|
|
238
|
+
defineCustomElement: defineCustomElement$j
|
|
239
|
+
});
|
|
240
|
+
const FinkList = /* @__PURE__ */ createComponent({
|
|
241
|
+
tagName: "fink-list",
|
|
242
|
+
elementClass: FinkList$1,
|
|
243
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
244
|
+
react: React,
|
|
245
|
+
events: {
|
|
246
|
+
onFinkSelect: "finkSelect"
|
|
247
|
+
},
|
|
248
|
+
defineCustomElement: defineCustomElement$k
|
|
249
|
+
});
|
|
250
|
+
const FinkLogo = /* @__PURE__ */ createComponent({
|
|
251
|
+
tagName: "fink-logo",
|
|
252
|
+
elementClass: FinkLogo$1,
|
|
253
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
254
|
+
react: React,
|
|
255
|
+
events: {},
|
|
256
|
+
defineCustomElement: defineCustomElement$l
|
|
257
|
+
});
|
|
258
|
+
const FinkMenu = /* @__PURE__ */ createComponent({
|
|
259
|
+
tagName: "fink-menu",
|
|
260
|
+
elementClass: FinkMenu$1,
|
|
261
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
262
|
+
react: React,
|
|
263
|
+
events: {
|
|
264
|
+
onFinkSelect: "finkSelect",
|
|
265
|
+
onFinkCheck: "finkCheck"
|
|
266
|
+
},
|
|
267
|
+
defineCustomElement: defineCustomElement$m
|
|
268
|
+
});
|
|
269
|
+
const FinkOtpInput = /* @__PURE__ */ createComponent({
|
|
270
|
+
tagName: "fink-otp-input",
|
|
271
|
+
elementClass: FinkOtpInput$1,
|
|
272
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
273
|
+
react: React,
|
|
274
|
+
events: {
|
|
275
|
+
onFinkChange: "finkChange",
|
|
276
|
+
onFinkComplete: "finkComplete"
|
|
277
|
+
},
|
|
278
|
+
defineCustomElement: defineCustomElement$n
|
|
279
|
+
});
|
|
280
|
+
const FinkPageHeader = /* @__PURE__ */ createComponent({
|
|
281
|
+
tagName: "fink-page-header",
|
|
282
|
+
elementClass: FinkPageHeader$1,
|
|
283
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
284
|
+
react: React,
|
|
285
|
+
events: {},
|
|
286
|
+
defineCustomElement: defineCustomElement$o
|
|
287
|
+
});
|
|
288
|
+
const FinkPanel = /* @__PURE__ */ createComponent({
|
|
289
|
+
tagName: "fink-panel",
|
|
290
|
+
elementClass: FinkPanel$1,
|
|
291
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
292
|
+
react: React,
|
|
293
|
+
events: {},
|
|
294
|
+
defineCustomElement: defineCustomElement$p
|
|
295
|
+
});
|
|
296
|
+
const FinkPopconfirm = /* @__PURE__ */ createComponent({
|
|
297
|
+
tagName: "fink-popconfirm",
|
|
298
|
+
elementClass: FinkPopconfirm$1,
|
|
299
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
300
|
+
react: React,
|
|
301
|
+
events: {
|
|
302
|
+
onFinkConfirm: "finkConfirm",
|
|
303
|
+
onFinkCancel: "finkCancel"
|
|
304
|
+
},
|
|
305
|
+
defineCustomElement: defineCustomElement$q
|
|
306
|
+
});
|
|
307
|
+
const FinkRangeSlider = /* @__PURE__ */ createComponent({
|
|
308
|
+
tagName: "fink-range-slider",
|
|
309
|
+
elementClass: FinkRangeSlider$1,
|
|
310
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
311
|
+
react: React,
|
|
312
|
+
events: {
|
|
313
|
+
onFinkChange: "finkChange"
|
|
314
|
+
},
|
|
315
|
+
defineCustomElement: defineCustomElement$r
|
|
316
|
+
});
|
|
317
|
+
const FinkRating = /* @__PURE__ */ createComponent({
|
|
318
|
+
tagName: "fink-rating",
|
|
319
|
+
elementClass: FinkRating$1,
|
|
320
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
321
|
+
react: React,
|
|
322
|
+
events: {
|
|
323
|
+
onFinkChange: "finkChange"
|
|
324
|
+
},
|
|
325
|
+
defineCustomElement: defineCustomElement$s
|
|
326
|
+
});
|
|
327
|
+
const FinkResult = /* @__PURE__ */ createComponent({
|
|
328
|
+
tagName: "fink-result",
|
|
329
|
+
elementClass: FinkResult$1,
|
|
330
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
331
|
+
react: React,
|
|
332
|
+
events: {},
|
|
333
|
+
defineCustomElement: defineCustomElement$t
|
|
334
|
+
});
|
|
335
|
+
const FinkSegmented = /* @__PURE__ */ createComponent({
|
|
336
|
+
tagName: "fink-segmented",
|
|
337
|
+
elementClass: FinkSegmented$1,
|
|
338
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
339
|
+
react: React,
|
|
340
|
+
events: {
|
|
341
|
+
onFinkChange: "finkChange"
|
|
342
|
+
},
|
|
343
|
+
defineCustomElement: defineCustomElement$u
|
|
344
|
+
});
|
|
345
|
+
const FinkSelectionBar = /* @__PURE__ */ createComponent({
|
|
346
|
+
tagName: "fink-selection-bar",
|
|
347
|
+
elementClass: FinkSelectionBar$1,
|
|
348
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
349
|
+
react: React,
|
|
350
|
+
events: {
|
|
351
|
+
onFinkClear: "finkClear"
|
|
352
|
+
},
|
|
353
|
+
defineCustomElement: defineCustomElement$v
|
|
354
|
+
});
|
|
355
|
+
const FinkSkeleton = /* @__PURE__ */ createComponent({
|
|
356
|
+
tagName: "fink-skeleton",
|
|
357
|
+
elementClass: FinkSkeleton$1,
|
|
358
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
359
|
+
react: React,
|
|
360
|
+
events: {},
|
|
361
|
+
defineCustomElement: defineCustomElement$w
|
|
362
|
+
});
|
|
363
|
+
const FinkSparkline = /* @__PURE__ */ createComponent({
|
|
364
|
+
tagName: "fink-sparkline",
|
|
365
|
+
elementClass: FinkSparkline$1,
|
|
366
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
367
|
+
react: React,
|
|
368
|
+
events: {},
|
|
369
|
+
defineCustomElement: defineCustomElement$x
|
|
370
|
+
});
|
|
371
|
+
const FinkSplitter = /* @__PURE__ */ createComponent({
|
|
372
|
+
tagName: "fink-splitter",
|
|
373
|
+
elementClass: FinkSplitter$1,
|
|
374
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
375
|
+
react: React,
|
|
376
|
+
events: {
|
|
377
|
+
onFinkResize: "finkResize"
|
|
378
|
+
},
|
|
379
|
+
defineCustomElement: defineCustomElement$y
|
|
380
|
+
});
|
|
381
|
+
const FinkStack = /* @__PURE__ */ createComponent({
|
|
382
|
+
tagName: "fink-stack",
|
|
383
|
+
elementClass: FinkStack$1,
|
|
384
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
385
|
+
react: React,
|
|
386
|
+
events: {},
|
|
387
|
+
defineCustomElement: defineCustomElement$z
|
|
388
|
+
});
|
|
389
|
+
const FinkStatCard = /* @__PURE__ */ createComponent({
|
|
390
|
+
tagName: "fink-stat-card",
|
|
391
|
+
elementClass: FinkStatCard$1,
|
|
392
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
393
|
+
react: React,
|
|
394
|
+
events: {},
|
|
395
|
+
defineCustomElement: defineCustomElement$A
|
|
396
|
+
});
|
|
397
|
+
const FinkStatus = /* @__PURE__ */ createComponent({
|
|
398
|
+
tagName: "fink-status",
|
|
399
|
+
elementClass: FinkStatus$1,
|
|
400
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
401
|
+
react: React,
|
|
402
|
+
events: {},
|
|
403
|
+
defineCustomElement: defineCustomElement$B
|
|
404
|
+
});
|
|
405
|
+
const FinkStepper = /* @__PURE__ */ createComponent({
|
|
406
|
+
tagName: "fink-stepper",
|
|
407
|
+
elementClass: FinkStepper$1,
|
|
408
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
409
|
+
react: React,
|
|
410
|
+
events: {
|
|
411
|
+
onFinkStepChange: "finkStepChange"
|
|
412
|
+
},
|
|
413
|
+
defineCustomElement: defineCustomElement$C
|
|
414
|
+
});
|
|
415
|
+
const FinkSummaryList = /* @__PURE__ */ createComponent({
|
|
416
|
+
tagName: "fink-summary-list",
|
|
417
|
+
elementClass: FinkSummaryList$1,
|
|
418
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
419
|
+
react: React,
|
|
420
|
+
events: {
|
|
421
|
+
onFinkAction: "finkAction"
|
|
422
|
+
},
|
|
423
|
+
defineCustomElement: defineCustomElement$D
|
|
424
|
+
});
|
|
425
|
+
const FinkTagInput = /* @__PURE__ */ createComponent({
|
|
426
|
+
tagName: "fink-tag-input",
|
|
427
|
+
elementClass: FinkTagInput$1,
|
|
428
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
429
|
+
react: React,
|
|
430
|
+
events: {
|
|
431
|
+
onFinkChange: "finkChange"
|
|
432
|
+
},
|
|
433
|
+
defineCustomElement: defineCustomElement$E
|
|
434
|
+
});
|
|
435
|
+
const FinkTaskList = /* @__PURE__ */ createComponent({
|
|
436
|
+
tagName: "fink-task-list",
|
|
437
|
+
elementClass: FinkTaskList$1,
|
|
438
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
439
|
+
react: React,
|
|
440
|
+
events: {
|
|
441
|
+
onFinkTaskSelect: "finkTaskSelect"
|
|
442
|
+
},
|
|
443
|
+
defineCustomElement: defineCustomElement$F
|
|
444
|
+
});
|
|
445
|
+
const FinkTimeline = /* @__PURE__ */ createComponent({
|
|
446
|
+
tagName: "fink-timeline",
|
|
447
|
+
elementClass: FinkTimeline$1,
|
|
448
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
449
|
+
react: React,
|
|
450
|
+
events: {},
|
|
451
|
+
defineCustomElement: defineCustomElement$G
|
|
452
|
+
});
|
|
453
|
+
const FinkToc = /* @__PURE__ */ createComponent({
|
|
454
|
+
tagName: "fink-toc",
|
|
455
|
+
elementClass: FinkToc$1,
|
|
456
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
457
|
+
react: React,
|
|
458
|
+
events: {},
|
|
459
|
+
defineCustomElement: defineCustomElement$H
|
|
460
|
+
});
|
|
461
|
+
const FinkTour = /* @__PURE__ */ createComponent({
|
|
462
|
+
tagName: "fink-tour",
|
|
463
|
+
elementClass: FinkTour$1,
|
|
464
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
465
|
+
react: React,
|
|
466
|
+
events: {
|
|
467
|
+
onFinkFinish: "finkFinish",
|
|
468
|
+
onFinkClose: "finkClose"
|
|
469
|
+
},
|
|
470
|
+
defineCustomElement: defineCustomElement$I
|
|
471
|
+
});
|
|
472
|
+
const FinkTransferList = /* @__PURE__ */ createComponent({
|
|
473
|
+
tagName: "fink-transfer-list",
|
|
474
|
+
elementClass: FinkTransferList$1,
|
|
475
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
476
|
+
react: React,
|
|
477
|
+
events: {
|
|
478
|
+
onFinkChange: "finkChange"
|
|
479
|
+
},
|
|
480
|
+
defineCustomElement: defineCustomElement$J
|
|
481
|
+
});
|
|
482
|
+
const FinkVirtualList = /* @__PURE__ */ createComponent({
|
|
483
|
+
tagName: "fink-virtual-list",
|
|
484
|
+
elementClass: FinkVirtualList$1,
|
|
485
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
486
|
+
react: React,
|
|
487
|
+
events: {
|
|
488
|
+
onFinkSelect: "finkSelect"
|
|
489
|
+
},
|
|
490
|
+
defineCustomElement: defineCustomElement$K
|
|
491
|
+
});
|
|
492
|
+
|
|
493
|
+
const FinkContext = createContext(null);
|
|
494
|
+
const LANGUAGE_KEY = "fink-language";
|
|
495
|
+
const THEME_KEY = "fink-theme";
|
|
496
|
+
const COLOR_SCHEME_KEY = "fink-color-scheme";
|
|
497
|
+
const readStorage = (key) => {
|
|
498
|
+
try {
|
|
499
|
+
return localStorage.getItem(key);
|
|
500
|
+
} catch {
|
|
501
|
+
return null;
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
const writeStorage = (key, value) => {
|
|
505
|
+
try {
|
|
506
|
+
localStorage.setItem(key, value);
|
|
507
|
+
} catch {
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
const detectFinkTheme = (fallback = FINK_THEME_NAME) => {
|
|
511
|
+
const stored = readStorage(THEME_KEY);
|
|
512
|
+
return isFinkThemeName(stored) ? stored : fallback;
|
|
513
|
+
};
|
|
514
|
+
const detectFinkLanguage = (fallback = "en") => {
|
|
515
|
+
const match = (value) => {
|
|
516
|
+
const v = value?.toLowerCase() ?? "";
|
|
517
|
+
return v.startsWith("en") ? "en" : v.startsWith("de") ? "de" : void 0;
|
|
518
|
+
};
|
|
519
|
+
const stored = readStorage(LANGUAGE_KEY);
|
|
520
|
+
const browser = typeof navigator !== "undefined" ? [...navigator.languages ?? [], navigator.language] : [];
|
|
521
|
+
return match(stored) ?? match(typeof document !== "undefined" ? document.documentElement.lang : "") ?? browser.map(match).find(Boolean) ?? fallback;
|
|
522
|
+
};
|
|
523
|
+
function FinkProvider({
|
|
524
|
+
children,
|
|
525
|
+
defaultColorScheme = "system",
|
|
526
|
+
defaultTheme = FINK_THEME_NAME,
|
|
527
|
+
defaultLanguage,
|
|
528
|
+
onLanguageChange,
|
|
529
|
+
reloadOnLanguageChange = true,
|
|
530
|
+
fallback = null,
|
|
531
|
+
themes: customThemes
|
|
532
|
+
}) {
|
|
533
|
+
const [themes] = useState(() => {
|
|
534
|
+
addFinkThemes(customThemes);
|
|
535
|
+
return getFinkThemes();
|
|
536
|
+
});
|
|
537
|
+
const [ready, setReady] = useState(false);
|
|
538
|
+
const [colorScheme, setColorScheme] = useState(() => {
|
|
539
|
+
try {
|
|
540
|
+
const stored = localStorage.getItem(COLOR_SCHEME_KEY);
|
|
541
|
+
if (stored === "light" || stored === "dark" || stored === "system") return stored;
|
|
542
|
+
} catch {
|
|
543
|
+
}
|
|
544
|
+
return defaultColorScheme;
|
|
545
|
+
});
|
|
546
|
+
const [theme, setThemeState] = useState(() => detectFinkTheme(defaultTheme));
|
|
547
|
+
const [language, setLanguageState] = useState(() => defaultLanguage ?? detectFinkLanguage());
|
|
548
|
+
useEffect(() => {
|
|
549
|
+
document.documentElement.dataset.theme = theme;
|
|
550
|
+
}, [theme]);
|
|
551
|
+
useEffect(() => {
|
|
552
|
+
document.documentElement.lang = language;
|
|
553
|
+
void setFinkLanguage(language);
|
|
554
|
+
onLanguageChange?.(language);
|
|
555
|
+
}, [language]);
|
|
556
|
+
useEffect(() => {
|
|
557
|
+
let active = true;
|
|
558
|
+
document.documentElement.lang = language;
|
|
559
|
+
defineCustomElements().catch((error) => console.error("[Fink] Registrierung fehlgeschlagen", error)).finally(() => active && setReady(true));
|
|
560
|
+
return () => {
|
|
561
|
+
active = false;
|
|
562
|
+
};
|
|
563
|
+
}, []);
|
|
564
|
+
useEffect(() => {
|
|
565
|
+
document.documentElement.style.colorScheme = colorScheme === "system" ? "light dark" : colorScheme;
|
|
566
|
+
try {
|
|
567
|
+
localStorage.setItem(COLOR_SCHEME_KEY, colorScheme);
|
|
568
|
+
} catch {
|
|
569
|
+
}
|
|
570
|
+
}, [colorScheme]);
|
|
571
|
+
const setTheme = useCallback((next) => {
|
|
572
|
+
writeStorage(THEME_KEY, next);
|
|
573
|
+
document.documentElement.dataset.theme = next;
|
|
574
|
+
setThemeState(next);
|
|
575
|
+
}, []);
|
|
576
|
+
const setLanguage = useCallback(
|
|
577
|
+
(next) => {
|
|
578
|
+
writeStorage(LANGUAGE_KEY, next);
|
|
579
|
+
setLanguageState(next);
|
|
580
|
+
if (reloadOnLanguageChange && ready) {
|
|
581
|
+
document.documentElement.lang = next;
|
|
582
|
+
window.setTimeout(() => window.location.reload(), 0);
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
[reloadOnLanguageChange, ready]
|
|
586
|
+
);
|
|
587
|
+
const value = useMemo(
|
|
588
|
+
() => ({ colorScheme, setColorScheme, theme, setTheme, themes, language, setLanguage, ready }),
|
|
589
|
+
[colorScheme, theme, setTheme, themes, language, setLanguage, ready]
|
|
590
|
+
);
|
|
591
|
+
return /* @__PURE__ */ jsx(FinkContext.Provider, { value, children: ready ? /* @__PURE__ */ jsx(Fragment, { children }, theme) : fallback });
|
|
592
|
+
}
|
|
593
|
+
function useFink() {
|
|
594
|
+
const context = useContext(FinkContext);
|
|
595
|
+
if (!context) throw new Error("useFink muss innerhalb von <FinkProvider> verwendet werden.");
|
|
596
|
+
return context;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
function useToast() {
|
|
600
|
+
return useMemo(
|
|
601
|
+
() => ({
|
|
602
|
+
show: (toast) => ToasterService.getInstance(document).enqueue(toast),
|
|
603
|
+
closeAll: () => ToasterService.getInstance(document).closeAll()
|
|
604
|
+
}),
|
|
605
|
+
[]
|
|
606
|
+
);
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export { FinkAppShell, FinkAvatarGroup, FinkBackToTop, FinkBarChart, FinkBottomNav, FinkCalendar, FinkCarousel, FinkChip, FinkCodeBlock, FinkConsentBanner, FinkDivider, FinkEmptyState, FinkFab, FinkFeedback, FinkFileUpload, FinkFooter, FinkGrid, FinkImageList, FinkInfiniteScroll, FinkKbd, FinkList, FinkLogo, FinkMenu, FinkOtpInput, FinkPageHeader, FinkPanel, FinkPopconfirm, FinkProvider, FinkRangeSlider, FinkRating, FinkResult, FinkSegmented, FinkSelectionBar, FinkSkeleton, FinkSparkline, FinkSplitter, FinkStack, FinkStatCard, FinkStatus, FinkStepper, FinkSummaryList, FinkTagInput, FinkTaskList, FinkTimeline, FinkToc, FinkTour, FinkTransferList, FinkVirtualList, detectFinkLanguage, detectFinkTheme, useFink, useToast };
|
package/fink.css
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fink-ui/react",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "React-Adapter des Fink Design Systems: eigene Komponenten und alle KoliBri-Komponenten als Fink*, dazu FinkProvider und fink.css.",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@public-ui/components": "5.0.0-beta.3",
|
|
7
|
+
"@public-ui/react-v19": "5.0.0-beta.3",
|
|
8
|
+
"@stencil/react-output-target": "1.8.1",
|
|
9
|
+
"@fink-ui/components": "0.1.1"
|
|
10
|
+
},
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@types/node": "26.6.10",
|
|
13
|
+
"@types/react": "19.3.3",
|
|
14
|
+
"@types/react-dom": "19.3.0",
|
|
15
|
+
"prettier": "3.10.1",
|
|
16
|
+
"react": "19.3.1",
|
|
17
|
+
"react-dom": "19.3.1",
|
|
18
|
+
"typescript": "5.9.3",
|
|
19
|
+
"unbuild": "3.6.1"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^19.0.0",
|
|
23
|
+
"react-dom": "^19.0.0"
|
|
24
|
+
},
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"type": "module",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.mjs",
|
|
31
|
+
"require": "./dist/index.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./fink.css": "./fink.css"
|
|
34
|
+
},
|
|
35
|
+
"main": "./dist/index.cjs",
|
|
36
|
+
"module": "./dist/index.mjs",
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"files": [
|
|
39
|
+
"dist",
|
|
40
|
+
"fink.css"
|
|
41
|
+
],
|
|
42
|
+
"license": "EUPL-1.2",
|
|
43
|
+
"author": "Martin Oppitz (https://github.com/deleonio)",
|
|
44
|
+
"homepage": "https://fink-design-system.github.io",
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/fink-design-system/fink-design-system.github.io/issues"
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public",
|
|
50
|
+
"provenance": false
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "node ../components/scripts/rename-exports.mjs --source @public-ui/react-v19 --types @public-ui/components --from Kol --to Fink --own src/components.ts --out src/kolibri.ts && unbuild",
|
|
54
|
+
"format": "prettier --check src/index.ts src/provider.tsx src/toast.ts fink.css",
|
|
55
|
+
"lint": "tsc --noemit"
|
|
56
|
+
}
|
|
6
57
|
}
|