@lmb-it/kitsconcerto-native 0.1.276 → 0.1.284
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/components/Avatar/index.cjs +1 -0
- package/components/Avatar/index.cjs.map +1 -1
- package/components/Avatar/index.js +1 -0
- package/components/Avatar/index.js.map +1 -1
- package/components/Banner/banner.cjs +1 -0
- package/components/Banner/banner.cjs.map +1 -1
- package/components/Banner/banner.js +1 -0
- package/components/Banner/banner.js.map +1 -1
- package/components/BottomTabBar/index.cjs +1 -0
- package/components/BottomTabBar/index.cjs.map +1 -1
- package/components/BottomTabBar/index.js +1 -0
- package/components/BottomTabBar/index.js.map +1 -1
- package/components/BreadCrumb/index.cjs.map +1 -1
- package/components/BreadCrumb/index.js.map +1 -1
- package/components/Button/Button.cjs +1 -0
- package/components/Button/Button.cjs.map +1 -1
- package/components/Button/Button.js +1 -0
- package/components/Button/Button.js.map +1 -1
- package/components/Carousel/index.cjs +1 -0
- package/components/Carousel/index.cjs.map +1 -1
- package/components/Carousel/index.js +1 -0
- package/components/Carousel/index.js.map +1 -1
- package/components/ChatBubble/index.cjs +1 -0
- package/components/ChatBubble/index.cjs.map +1 -1
- package/components/ChatBubble/index.js +1 -0
- package/components/ChatBubble/index.js.map +1 -1
- package/components/Chip/index.cjs +1 -0
- package/components/Chip/index.cjs.map +1 -1
- package/components/Chip/index.js +1 -0
- package/components/Chip/index.js.map +1 -1
- package/components/DateSeparator/index.cjs +1 -0
- package/components/DateSeparator/index.cjs.map +1 -1
- package/components/DateSeparator/index.js +1 -0
- package/components/DateSeparator/index.js.map +1 -1
- package/components/DetailsList/index.cjs +1 -0
- package/components/DetailsList/index.cjs.map +1 -1
- package/components/DetailsList/index.js +1 -0
- package/components/DetailsList/index.js.map +1 -1
- package/components/EmptyState/index.cjs +1 -0
- package/components/EmptyState/index.cjs.map +1 -1
- package/components/EmptyState/index.js +1 -0
- package/components/EmptyState/index.js.map +1 -1
- package/components/Gallery/index.cjs +1 -0
- package/components/Gallery/index.cjs.map +1 -1
- package/components/Gallery/index.js +1 -0
- package/components/Gallery/index.js.map +1 -1
- package/components/MessageComposer/index.cjs +1 -0
- package/components/MessageComposer/index.cjs.map +1 -1
- package/components/MessageComposer/index.js +1 -0
- package/components/MessageComposer/index.js.map +1 -1
- package/components/MessageReceipt/index.cjs +1 -0
- package/components/MessageReceipt/index.cjs.map +1 -1
- package/components/MessageReceipt/index.js +1 -0
- package/components/MessageReceipt/index.js.map +1 -1
- package/components/ProgressBar/index.cjs +1 -0
- package/components/ProgressBar/index.cjs.map +1 -1
- package/components/ProgressBar/index.js +1 -0
- package/components/ProgressBar/index.js.map +1 -1
- package/components/SegmentedControl/index.cjs +1 -0
- package/components/SegmentedControl/index.cjs.map +1 -1
- package/components/SegmentedControl/index.js +1 -0
- package/components/SegmentedControl/index.js.map +1 -1
- package/components/StatCard/index.cjs +1 -0
- package/components/StatCard/index.cjs.map +1 -1
- package/components/StatCard/index.js +1 -0
- package/components/StatCard/index.js.map +1 -1
- package/components/Stepper/index.cjs +1 -0
- package/components/Stepper/index.cjs.map +1 -1
- package/components/Stepper/index.js +1 -0
- package/components/Stepper/index.js.map +1 -1
- package/components/Tabs/index.cjs +1 -0
- package/components/Tabs/index.cjs.map +1 -1
- package/components/Tabs/index.js +1 -0
- package/components/Tabs/index.js.map +1 -1
- package/components/Timeline/index.cjs +1 -0
- package/components/Timeline/index.cjs.map +1 -1
- package/components/Timeline/index.js +1 -0
- package/components/Timeline/index.js.map +1 -1
- package/components/Translate/index.cjs +1 -0
- package/components/Translate/index.cjs.map +1 -1
- package/components/Translate/index.js +1 -0
- package/components/Translate/index.js.map +1 -1
- package/components/TypingIndicator/index.cjs +1 -0
- package/components/TypingIndicator/index.cjs.map +1 -1
- package/components/TypingIndicator/index.js +1 -0
- package/components/TypingIndicator/index.js.map +1 -1
- package/components/overlay/ConfirmDialog/index.cjs +1 -0
- package/components/overlay/ConfirmDialog/index.cjs.map +1 -1
- package/components/overlay/ConfirmDialog/index.js +1 -0
- package/components/overlay/ConfirmDialog/index.js.map +1 -1
- package/components/overlay/Dialog/index.cjs +1 -0
- package/components/overlay/Dialog/index.cjs.map +1 -1
- package/components/overlay/Dialog/index.js +1 -0
- package/components/overlay/Dialog/index.js.map +1 -1
- package/contexts/BreadcrumbContext.cjs +33 -0
- package/contexts/BreadcrumbContext.cjs.map +1 -0
- package/contexts/BreadcrumbContext.js +28 -0
- package/contexts/BreadcrumbContext.js.map +1 -0
- package/form/controls/Checkbox/index.cjs +1 -0
- package/form/controls/Checkbox/index.cjs.map +1 -1
- package/form/controls/Checkbox/index.js +1 -0
- package/form/controls/Checkbox/index.js.map +1 -1
- package/form/controls/RadioButton/radio.cjs +1 -0
- package/form/controls/RadioButton/radio.cjs.map +1 -1
- package/form/controls/RadioButton/radio.js +1 -0
- package/form/controls/RadioButton/radio.js.map +1 -1
- package/form/controls/TriStateCheckbox/index.cjs +1 -0
- package/form/controls/TriStateCheckbox/index.cjs.map +1 -1
- package/form/controls/TriStateCheckbox/index.js +1 -0
- package/form/controls/TriStateCheckbox/index.js.map +1 -1
- package/form/file-pickers/index.cjs +1 -0
- package/form/file-pickers/index.cjs.map +1 -1
- package/form/file-pickers/index.js +1 -0
- package/form/file-pickers/index.js.map +1 -1
- package/form/helpers/FormContainer/index.cjs +1 -0
- package/form/helpers/FormContainer/index.cjs.map +1 -1
- package/form/helpers/FormContainer/index.js +1 -0
- package/form/helpers/FormContainer/index.js.map +1 -1
- package/form/inputs/ColorPicker/index.cjs +1 -0
- package/form/inputs/ColorPicker/index.cjs.map +1 -1
- package/form/inputs/ColorPicker/index.js +1 -0
- package/form/inputs/ColorPicker/index.js.map +1 -1
- package/form/inputs/Datepicker/index.cjs +1 -0
- package/form/inputs/Datepicker/index.cjs.map +1 -1
- package/form/inputs/Datepicker/index.js +1 -0
- package/form/inputs/Datepicker/index.js.map +1 -1
- package/form/inputs/InputLocation/index.cjs +1 -0
- package/form/inputs/InputLocation/index.cjs.map +1 -1
- package/form/inputs/InputLocation/index.js +1 -0
- package/form/inputs/InputLocation/index.js.map +1 -1
- package/form/inputs/InputMask/index.cjs +1 -0
- package/form/inputs/InputMask/index.cjs.map +1 -1
- package/form/inputs/InputMask/index.js +1 -0
- package/form/inputs/InputMask/index.js.map +1 -1
- package/form/inputs/InputNumber/index.cjs +1 -0
- package/form/inputs/InputNumber/index.cjs.map +1 -1
- package/form/inputs/InputNumber/index.js +1 -0
- package/form/inputs/InputNumber/index.js.map +1 -1
- package/form/inputs/InputPassword/index.cjs +1 -0
- package/form/inputs/InputPassword/index.cjs.map +1 -1
- package/form/inputs/InputPassword/index.js +1 -0
- package/form/inputs/InputPassword/index.js.map +1 -1
- package/form/inputs/InputSwitch/index.cjs +1 -0
- package/form/inputs/InputSwitch/index.cjs.map +1 -1
- package/form/inputs/InputSwitch/index.js +1 -0
- package/form/inputs/InputSwitch/index.js.map +1 -1
- package/form/inputs/InputText/index.cjs +1 -0
- package/form/inputs/InputText/index.cjs.map +1 -1
- package/form/inputs/InputText/index.js +1 -0
- package/form/inputs/InputText/index.js.map +1 -1
- package/form/inputs/InputTextarea/index.cjs +1 -0
- package/form/inputs/InputTextarea/index.cjs.map +1 -1
- package/form/inputs/InputTextarea/index.js +1 -0
- package/form/inputs/InputTextarea/index.js.map +1 -1
- package/form/inputs/PhoneInput/index.cjs +1 -0
- package/form/inputs/PhoneInput/index.cjs.map +1 -1
- package/form/inputs/PhoneInput/index.js +1 -0
- package/form/inputs/PhoneInput/index.js.map +1 -1
- package/form/selects/AutoComplete/index.cjs +1 -0
- package/form/selects/AutoComplete/index.cjs.map +1 -1
- package/form/selects/AutoComplete/index.js +1 -0
- package/form/selects/AutoComplete/index.js.map +1 -1
- package/form/selects/CascadeSelect/index.cjs +1 -0
- package/form/selects/CascadeSelect/index.cjs.map +1 -1
- package/form/selects/CascadeSelect/index.js +1 -0
- package/form/selects/CascadeSelect/index.js.map +1 -1
- package/form/selects/Dropdown/index.cjs +1 -0
- package/form/selects/Dropdown/index.cjs.map +1 -1
- package/form/selects/Dropdown/index.js +1 -0
- package/form/selects/Dropdown/index.js.map +1 -1
- package/form/selects/ListBox/index.cjs +1 -0
- package/form/selects/ListBox/index.cjs.map +1 -1
- package/form/selects/ListBox/index.js +1 -0
- package/form/selects/ListBox/index.js.map +1 -1
- package/form/selects/MultiSelect/index.cjs +1 -0
- package/form/selects/MultiSelect/index.cjs.map +1 -1
- package/form/selects/MultiSelect/index.js +1 -0
- package/form/selects/MultiSelect/index.js.map +1 -1
- package/form/selects/TreeSelect/index.cjs +1 -0
- package/form/selects/TreeSelect/index.cjs.map +1 -1
- package/form/selects/TreeSelect/index.js +1 -0
- package/form/selects/TreeSelect/index.js.map +1 -1
- package/form/selects/helpers/SelectPopupOverlay.cjs +1 -0
- package/form/selects/helpers/SelectPopupOverlay.cjs.map +1 -1
- package/form/selects/helpers/SelectPopupOverlay.js +1 -0
- package/form/selects/helpers/SelectPopupOverlay.js.map +1 -1
- package/form-renderer/components/fields/FileUploader/index.cjs +1 -0
- package/form-renderer/components/fields/FileUploader/index.cjs.map +1 -1
- package/form-renderer/components/fields/FileUploader/index.js +1 -0
- package/form-renderer/components/fields/FileUploader/index.js.map +1 -1
- package/form-renderer/components/fields/Group/index.cjs +1 -0
- package/form-renderer/components/fields/Group/index.cjs.map +1 -1
- package/form-renderer/components/fields/Group/index.js +1 -0
- package/form-renderer/components/fields/Group/index.js.map +1 -1
- package/form-renderer/components/fields/Radios/index.cjs +1 -0
- package/form-renderer/components/fields/Radios/index.cjs.map +1 -1
- package/form-renderer/components/fields/Radios/index.js +1 -0
- package/form-renderer/components/fields/Radios/index.js.map +1 -1
- package/form-renderer/components/fields/Select/index.cjs +1 -0
- package/form-renderer/components/fields/Select/index.cjs.map +1 -1
- package/form-renderer/components/fields/Select/index.js +1 -0
- package/form-renderer/components/fields/Select/index.js.map +1 -1
- package/hooks/main.cjs +1 -0
- package/hooks/main.cjs.map +1 -1
- package/hooks/main.js +1 -0
- package/hooks/main.js.map +1 -1
- package/hooks/useBreadcrumbTrail.cjs +21 -0
- package/hooks/useBreadcrumbTrail.cjs.map +1 -0
- package/hooks/useBreadcrumbTrail.js +16 -0
- package/hooks/useBreadcrumbTrail.js.map +1 -0
- package/index.cjs +5 -0
- package/index.cjs.map +1 -1
- package/index.d.ts +144 -5
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/primitives/Card/index.cjs +1 -0
- package/primitives/Card/index.cjs.map +1 -1
- package/primitives/Card/index.js +1 -0
- package/primitives/Card/index.js.map +1 -1
package/index.d.ts
CHANGED
|
@@ -56,6 +56,56 @@ export interface IMenuItem<T = string, L extends ILinkOverrides = ILinkOverrides
|
|
|
56
56
|
content?: ReactElement;
|
|
57
57
|
links?: IMenuItem<T, L>[];
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* ONE CRUMB IN THE APP BREADCRUMB.
|
|
61
|
+
*
|
|
62
|
+
* ⚠️ `url` ABSENT MEANS PLAIN TEXT, NOT "NO DESTINATION YET". A crumb for the
|
|
63
|
+
* record a person is already looking at must not be a link to the page they
|
|
64
|
+
* are already on, and the last crumb of a trail is always that record.
|
|
65
|
+
*/
|
|
66
|
+
export interface IBreadcrumbCrumb {
|
|
67
|
+
label: string;
|
|
68
|
+
url?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* How the app breadcrumb builds its trail.
|
|
72
|
+
*
|
|
73
|
+
* ⛔ EVERY FIELD IS OPTIONAL AND AN ABSENT BAG RENDERS EXACTLY WHAT THE
|
|
74
|
+
* COMPONENT RENDERED BEFORE THIS BAG EXISTED — one crumb per URL segment,
|
|
75
|
+
* labelled by the capitalised segment, every one of them a link. That is the
|
|
76
|
+
* backward-compatibility test for growing an existing API
|
|
77
|
+
* (UML/Claude/04_kitsconcerto.md §7), and the app shell is what opts in.
|
|
78
|
+
*/
|
|
79
|
+
export interface IBreadcrumbProps<T = string, L extends ILinkOverrides = ILinkOverrides> {
|
|
80
|
+
/**
|
|
81
|
+
* The navigation tree. Given, a URL segment is labelled by the `title` of
|
|
82
|
+
* the route that owns it instead of by the raw segment — "Document Types",
|
|
83
|
+
* never "Document-types".
|
|
84
|
+
*/
|
|
85
|
+
routes?: IMenuItem<T, L>[];
|
|
86
|
+
/**
|
|
87
|
+
* Given, a URL segment that no route claims with an `element` is dropped
|
|
88
|
+
* from the trail.
|
|
89
|
+
*
|
|
90
|
+
* ⛔ THIS IS A RULE ABOUT ROUTABILITY, NOT A LIST OF WORDS. A grouping
|
|
91
|
+
* prefix is a path several nav sections share to sit under one URL while
|
|
92
|
+
* none of them is itself a page; it has no `element`, so navigating to it
|
|
93
|
+
* renders nothing. A crumb that leads nowhere is worse than no crumb,
|
|
94
|
+
* which is why this exists — and keeping it a structural test is what
|
|
95
|
+
* keeps the library agnostic (§7).
|
|
96
|
+
*/
|
|
97
|
+
skipNonRoutable?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Crumbs the PAGE supplies for what the URL cannot say: the name of the
|
|
100
|
+
* record being viewed, where the URL carries only its reference.
|
|
101
|
+
*
|
|
102
|
+
* They fill the trail's dynamic segment when it has one, and are appended
|
|
103
|
+
* when it does not — so a page reached by a state swap, whose URL never
|
|
104
|
+
* changed, still names what is open. Pages normally set these through
|
|
105
|
+
* `useBreadcrumb()` rather than passing them here.
|
|
106
|
+
*/
|
|
107
|
+
trailingCrumbs?: IBreadcrumbCrumb[];
|
|
108
|
+
}
|
|
59
109
|
|
|
60
110
|
export type ILabelElement = string | ReactElement;
|
|
61
111
|
export type IFormGrid = IStyleClasses;
|
|
@@ -8117,6 +8167,22 @@ export interface IMainContextProps<TMenuItem = any, TTheme = any, TComponent = J
|
|
|
8117
8167
|
onChangeLanguage?: (language: string) => void;
|
|
8118
8168
|
/** Avatar config for the header user menu trigger */
|
|
8119
8169
|
userAvatar?: IUserAvatar;
|
|
8170
|
+
/**
|
|
8171
|
+
* Build the header breadcrumb from the ROUTES instead of from the URL text:
|
|
8172
|
+
* a segment is labelled by its route's `title`, a segment that no route
|
|
8173
|
+
* claims with an `element` is dropped, and the last crumb is plain text
|
|
8174
|
+
* rather than a link to the page already open. A page can name the record
|
|
8175
|
+
* it has open with `useBreadcrumbTrail()`.
|
|
8176
|
+
*
|
|
8177
|
+
* ⛔ OFF BY DEFAULT, AND THAT IS NOT TIMIDITY. Turning it on changes what
|
|
8178
|
+
* every page of a consuming app shows in its header, and no consumer that
|
|
8179
|
+
* predates this flag asked for that — the rule for growing an API here is
|
|
8180
|
+
* that an absent option renders what it rendered before
|
|
8181
|
+
* (UML/Claude/04_kitsconcerto.md §7). The first draft had `AdminLayout`
|
|
8182
|
+
* enable it unconditionally, which quietly rewrote a SECOND product's
|
|
8183
|
+
* breadcrumbs the moment the package was pushed (Codex, on review).
|
|
8184
|
+
*/
|
|
8185
|
+
routeAwareBreadcrumb?: boolean;
|
|
8120
8186
|
ref?: Ref<any>;
|
|
8121
8187
|
}
|
|
8122
8188
|
export interface IMainContextValues<TMenuItem = any, TComponent = JSX.Element> {
|
|
@@ -8499,9 +8565,18 @@ declare const Alert: ({ status, variant, className, withIcon, children, title, d
|
|
|
8499
8565
|
|
|
8500
8566
|
declare const Banner: React__default.FC<IBannerProps>;
|
|
8501
8567
|
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8568
|
+
/**
|
|
8569
|
+
* NATIVE DRAWS NO BREADCRUMB, AND THAT IS NOT AN OVERSIGHT. A phone has a back
|
|
8570
|
+
* gesture and a header title; a trail of links across a 390pt screen is a web
|
|
8571
|
+
* affordance. The file exists so the import resolves on both platforms.
|
|
8572
|
+
*
|
|
8573
|
+
* ⚠️ IT TAKES THE SAME PROPS ANYWAY. The web component grew an options bag, and
|
|
8574
|
+
* a no-op whose signature does not grow with it is how the two platforms start
|
|
8575
|
+
* disagreeing about an API: shared code passing the bag would compile on web
|
|
8576
|
+
* and fail to type-check on native (§7 — add it to BOTH platforms in the same
|
|
8577
|
+
* unit, or the platforms drift).
|
|
8578
|
+
*/
|
|
8579
|
+
declare const BreadCrumb: FunctionComponent<IBreadcrumbProps>;
|
|
8505
8580
|
|
|
8506
8581
|
declare function KitsDialogControlled({ state, onHide }: IKitsDialogControlled): React__default.JSX.Element;
|
|
8507
8582
|
|
|
@@ -9101,6 +9176,39 @@ declare const PermissionsProvider: FC<PropsWithChildren<{
|
|
|
9101
9176
|
|
|
9102
9177
|
declare const usePermissions: () => IPermissionsContextValues;
|
|
9103
9178
|
|
|
9179
|
+
/**
|
|
9180
|
+
* WHAT THE URL CANNOT SAY.
|
|
9181
|
+
*
|
|
9182
|
+
* The app breadcrumb builds its trail from the URL, which is the right default
|
|
9183
|
+
* and is also blind to two things a person reading the screen needs:
|
|
9184
|
+
*
|
|
9185
|
+
* 1. The NAME of the record that is open. A URL carries its reference —
|
|
9186
|
+
* `/config/document-types/DOC-ELEC-VIC` — and nobody recognises a
|
|
9187
|
+
* reference. Only the page that fetched the record knows it is the
|
|
9188
|
+
* "Electrical Licence (VIC)".
|
|
9189
|
+
* 2. That a record is open AT ALL, on a page that swaps views in local state
|
|
9190
|
+
* without navigating. The URL is identical before and after, so a trail
|
|
9191
|
+
* derived from it cannot show the person they have gone one level in.
|
|
9192
|
+
*
|
|
9193
|
+
* So the page tells the breadcrumb, through this context, and the breadcrumb
|
|
9194
|
+
* keeps deciding everything it can decide by itself.
|
|
9195
|
+
*
|
|
9196
|
+
* ⛔ A PAGE MUST CLEAR WHAT IT SET. The provider lives above the routed
|
|
9197
|
+
* content, so a label left behind outlives the page that set it and then
|
|
9198
|
+
* describes the wrong screen — the one failure this context can cause that
|
|
9199
|
+
* nothing else would catch. `useBreadcrumbTrail` does the clearing for you and
|
|
9200
|
+
* is what a page should reach for.
|
|
9201
|
+
*/
|
|
9202
|
+
export type IBreadcrumbContextValues = {
|
|
9203
|
+
/** Crumbs the current page has contributed. Empty when none has. */
|
|
9204
|
+
trailingCrumbs: IBreadcrumbCrumb[];
|
|
9205
|
+
/** Replace them. An empty array or null clears. */
|
|
9206
|
+
setTrailingCrumbs: (crumbs: IBreadcrumbCrumb[] | null) => void;
|
|
9207
|
+
};
|
|
9208
|
+
declare const BreadcrumbProvider: FC<PropsWithChildren>;
|
|
9209
|
+
|
|
9210
|
+
declare const useBreadcrumb: () => IBreadcrumbContextValues;
|
|
9211
|
+
|
|
9104
9212
|
export type BooleanParams = {
|
|
9105
9213
|
mode: "boolean";
|
|
9106
9214
|
value?: boolean;
|
|
@@ -9457,6 +9565,37 @@ declare function useCountUp(target: number, { duration, delay, run, decimals, }?
|
|
|
9457
9565
|
*/
|
|
9458
9566
|
declare function useMeasuredWidth<T = unknown>(): [RefObject<T | null>, number];
|
|
9459
9567
|
|
|
9568
|
+
/**
|
|
9569
|
+
* Names, in the app breadcrumb, the record this page has open — and takes the
|
|
9570
|
+
* name back down when the page goes away.
|
|
9571
|
+
*
|
|
9572
|
+
* ```tsx
|
|
9573
|
+
* useBreadcrumbTrail(doc ? [{label: doc.label}] : null);
|
|
9574
|
+
* ```
|
|
9575
|
+
*
|
|
9576
|
+
* A crumb with no `url` renders as plain text, which is what the record a
|
|
9577
|
+
* person is already looking at should be.
|
|
9578
|
+
*
|
|
9579
|
+
* ⛔ THE CLEANUP IS THE POINT OF THE HOOK. Setting the trail is one line and a
|
|
9580
|
+
* page could do it inline; forgetting to clear it is invisible, because the
|
|
9581
|
+
* stale label keeps rendering on the NEXT screen and reads as a correct
|
|
9582
|
+
* breadcrumb for the wrong page. The provider sits above the routed content,
|
|
9583
|
+
* so nothing else unmounts it.
|
|
9584
|
+
*
|
|
9585
|
+
* ⚠️ THE ARGUMENT IS COMPARED BY ITS CONTENT, NOT BY IDENTITY. A page that
|
|
9586
|
+
* builds the array inline — which is the obvious way to call this — produces a
|
|
9587
|
+
* new array every render, and depending on the reference would set state on
|
|
9588
|
+
* every one of them and spin. The serialisation below is the dependency, so an
|
|
9589
|
+
* unchanged label is an unchanged dependency.
|
|
9590
|
+
*
|
|
9591
|
+
* ⚠️ AND IT IS `JSON.stringify`, NOT A JOIN ON SEPARATORS. A draft joined on
|
|
9592
|
+
* `\u0000`/`\u0001`, which two different arrays can collide on if a label ever
|
|
9593
|
+
* contains one of them (Codex, on review) — a collision means the breadcrumb
|
|
9594
|
+
* silently keeps the previous name. Unlikely in a UI label is not the same as
|
|
9595
|
+
* impossible, and the sound version costs nothing.
|
|
9596
|
+
*/
|
|
9597
|
+
declare function useBreadcrumbTrail(crumbs: IBreadcrumbCrumb[] | null | undefined): void;
|
|
9598
|
+
|
|
9460
9599
|
/**
|
|
9461
9600
|
* Motion tokens for the widget/dashboard component family.
|
|
9462
9601
|
*
|
|
@@ -15043,5 +15182,5 @@ declare const localeFiles: {
|
|
|
15043
15182
|
};
|
|
15044
15183
|
};
|
|
15045
15184
|
|
|
15046
|
-
export { ALPHA_COLOR_VARS, ALPHA_STEPS, ALPHA_TOKEN_NAMES, AccentEdge, CustomAccordion as Accordion, ActionCard, Alert, AlertDescription, AlertIcon, AlertTitle, KitsAnimatePresence as AnimatePresence, AnyFile, Avatar, AvatarStack, Badge, Banner, BottomTabBar, Box, BreadCrumb, Button, Card, Carousel, Center, ChatBubble, Chip, CircularProgress, Collapse, CommandPalette, Container, CustomPopover, DEFAULT_NATIVE_SHADOWS, DataView, DataViewContext, DateSeparator, Delta, DetailList as DetailsList, Divider, Donut, DotGrid, EDateFormat, EKeyFilter, Editable, EmptyState, FIELD_LABEL_MARGIN, FIELD_MARGIN, Flex, Form, FormSelect, GUTTER, Gallery, Gauge, Form as GoForm, Datatable as GoTable, KitsGrid as Grid, KitsGridItem as GridItem, GroupedBars, HELPER_TEXT_MARGIN, HStack, Heading, Icon, IconMap, Image, KitsInputSwitch as InputSwitch, KeyboardNavContext, KitsAutoComplete, KitsBarChart, KitsCascadeSelect, KitsCheckbox as KitsCheckboxes, KitsConfirm, KitsConfirmPopup, KitsContainer, KitsInputCalendar as KitsDatepicker, KitsDialogControlled as KitsDialog, KitsDropdown, FilePicker as KitsFilePicker, KitsInputColorPicker, KitsInputLocation, KitsInputMask, KitsInputNumber, KitsInputPassword, KitsInputText, KitsInputTextarea, KitsLineChart, KitsListBox, KitsMultiSelect, KitsPhoneComponent, KitsRadar, KitsRadio as KitsRadios, RadiusPicker as KitsRadiusPicker, KitsSliders, KitsThemeProvider, KitsToast, KitsTreeSelect, Label, Legend, Link, List, ListItem, Loader, LocaleContext, LocaleContextProvider, MainContext, MainContextProvider, MapTile, MessageComposer, MessageReceipt, MetricCard, KitsMultiSelect as MultiSelect, PermissionsProvider, PersonCard, ProgressBar, RadiusPicker, RankedList, ReducedMotionProvider, Rise, SHADOW_PRESET_KEYS, SPACER, KitsScrollView as ScrollView, SegmentedControl, FormSelect as Select, SelectButton, Skeleton$1 as Skeleton, SkeletonRows, Skeleton as SkeletonText, Sparkline, StackedBars, StatCard, StatGroup, StatePill, StatusCard, Stepper, Striped, Svg, TableContext, Tabs, Text, ThemeContextProvider, Timeline, Tip, Tooltip, Translate, KitsTreeSelect as TreeSelect, TreeView, TriStateCheckbox, TypingIndicator, VStack, Wash, WidgetPanel, borderProperties, breakpoints, capitalizeFirstLetter, checkExtAgainstAccepted, checkNameDuplication, colorWithAlpha, dateTimeFormat, deepMerge, defaultSeverityTheme, defaultTheme, downloadCanvas, dynamicList, expandShadowNative, extendTheme, fileTypeIcon, fileValidation, filesExt, filesMemes, filesTypes, flattenSlotStyles, fontSizeMapping, formFileValidation, formatNumber, getActiveNativeShadows, getCombinedChildIds, getCustomDateTime, getDateElements, getDefaultValues, getMeme, getParams, getPropertyByPath, getType, getTypes, getURLParams, imagesExt, imagesMemes, imagesTypes, isAlphaToken, isNumber, isSemanticToken, isShadowPreset, isThemeToken, isToday, isValidURL, kitsMotion, listingProperties, localeFiles, allProperties as mapCssProperties, mergeRefs, nonPxProperties, propertiesWithoutCssEquivalent, pxProperties, resolveStyleRecord, resolveTokenValue, schemaBuilder, setActiveNativeShadows, shadowNative, shadowWeb, sizeMapping, sizingProperties, timeAgo, timeSince, toMemes, useAllSeverityColors, useComponentDefaults, useCountUp, useDataView, useDialog, useDisclosure, useEnter, useFieldLogic, useFocusStyles, useFormFieldKeyboardNav, useFormManager, useKeyboardNav, useKeyboardNavProvider, useKitsColorScheme, useKitsConcerto, useKitsTheme, useLanguage, useMeasuredWidth, useNativeColorMap, usePermissions, usePopup, useReducedMotion, useResolvedElementStyles, useResolvedStyle, useRtlLineHeight, useScrollState, useSelectionController, useSeverityColors, useTable, useTheme, useThemedFont, useToast };
|
|
15047
|
-
export type { AlignmentsValues, AllSlotKeys, AnimationsValues, AvatarShape, AvatarSize, AvatarStatus, BannerAction, BannerStatus, BaseFieldProps, Booleanish, Breakpoint, CallbackProps, ChatBubbleTone, ChatBubbleVariant, ChipSeverity, ChipSize, ColorMode, ColorScale, ColorValue, Colors, ColorsType, ComponentSize, CustomSubmitButtonProps, DataTableFilterMeta, DataTableFilterMetaData, DataTableOperatorFilterMetaData, DataTableSelectionSingleChangeEvent, DataTableSortMeta, DeepPartial, DetailItemInputType, DynamicValue, ElementProps, EnteringAnimation, ExitingAnimation, ExpandedKeys, FetchError, FetchSuccess, FetchTableDataRes, FetchTablePaginationData, FieldWrapperProps, File$1 as File, FileUploaderTemplate, FileUploaderTemplateParams, FlexAlignmentsValues, FlexValues, FormBooleanEvent, FormBooleanTarget, FormEvent, FormTarget, GroupFieldConfigs, HighSizingValue, IAccentEdgeProps, IAccordionElementSlots, IAccordionProps, IActionCardProps, IAddressComponentValue, IAddressExperianFormat, IAddressFormat, IAddressFormatResults, IAddressSearchResults, IAlertComponent, IAlertProps, IAlignment, IAnimation, IAutoCompleteCore, IAutoCompleteElement, IAvatarElementSlots, IAvatarProps, IAvatarStackElementSlots, IAvatarStackProps, IBadgeProps, IBannerProps, IBarChartProps, IBaseValidation, IBasicSectionProps, IBg, IBodyTemplate, IBodyTemplateIcon, IBorder, IBottomTabBarElementSlots, IBottomTabBarProps, IBoxComponent, IBuilderAddressField, IBuilderCheckboxField, IBuilderContainerField, IBuilderDateField, IBuilderField, IBuilderFieldBase, IBuilderFieldExport, IBuilderFileField, IBuilderGroupField, IBuilderMultiselectField, IBuilderNumberField, IBuilderPhoneField, IBuilderRadiosField, IBuilderRadiusPickerField, IBuilderSectionField, IBuilderSelectField, IBuilderSwitchField, IBuilderTagsField, IBuilderTextField, IBuilderTextareaField, IButton, IButtonElementSlots, IButtonParams, IButtonProps, IButtonState, IButtonsFilter, ICanvasProps, ICardComponent, ICardElementSlots, ICarouselElementSlots, ICarouselProps, ICascadeSelect, ICascadeSelectCore, IChatBubbleElementSlots, IChatBubbleProps, ICheckbox, ICheckboxFilter, ICheckboxSlots, IChildren, IChildrenParams, IChipProps, ICircularProgressProps, ICollapseProps, IColorPicker, IColumn, IColumnBase, ICombined, ICommandPaletteGroup, ICommandPaletteItem, ICommandPaletteProps, IComponentThemeConfig, IConditionGroupProps, IConditionRowProps, IConditionRule, IConditionsSectionProps, IConfirmDialogProps, IConfirmPopupProps, IContainer, IContainerCardProps, IContainerProps, IContextValues, ICountrySearchResults, ICssStyling, IDVButtonsFilter, IDVCheckboxFilter, IDVDateFilter, IDVDropdownFilter, IDVFilters, IDVMessages, IDVMultiselectFilter, IDVNumberFilter, IDVPaginationRequest, IDVPaginationResponse, IDVPaginationState, IDVPhoneFilter, IDVRangeFilter, IDVTextFilter, IDVTriStateFilter, IDataTableContextValues, IDataTableProps, IDataViewContextValues, IDataViewProps, IDataViewRefValues, IDatatableRefValues, IDate, IDateFilter, IDateProps, IDateSeparatorElementSlots, IDateSeparatorProps, IDateValidation, IDatepickerSlots, IDeltaProps, IDetailItem, IDetailListProps, IDialogButton, IDialogProps, IDialogRef, IDialogState, IDisplay, IDividerComponent, IDonutProps, IDonutSegment, IDotGridProps, IDoughnutChartProps, IDropdownCore, IDropdownFilter, IDropdownSelect, IEditableProps, IEditors, IEffects, IElementBase, IElementSlotConfig, IElementStyle, IEmail, IEmailSearchResults, IEmptyStateElementSlots, IEmptyStateProps, IFieldCardProps, IFieldCondition, IFieldPreviewProps, IFile, IFileUploader, IFileUploaderElement, IFileUploaderTypes, IFileValidation, IFilesExtTypeKeys, IFilters, IFlexAlignment, IFlexComponent, IFormAddon, IFormBuilderInternalState, IFormBuilderMeta, IFormBuilderPayload, IFormBuilderProps, IFormComponent, IFormElement, IFormElementBaseSlots, IFormElementSlots, IFormGrid, IFormListsElements, IFormSelect, IFormSelectElements, IFormSingleElement, IGalleryElementSlots, IGalleryItem, IGalleryProps, IGaugeProps, IGrid, IGridCellStyle, IGridComponent, IGridItem, IGridItemComponent, IGroup, IGroupCardProps, IGroupElementSlots, IGroupSettings, IGroupedBarsDatum, IGroupedBarsProps, IHeaderElementSlots, IHeadingComponent, IIconProps, IImageComponent, IImagesExtTypeKeys, IInteractivity, IKeyedColumn, IKitsAnimation, IKitsBarChartDatum, IKitsBarChartProps, IKitsCheckboxProps, IKitsComponentDefaults, IKitsContainer, IKitsDialogControlled, IKitsInputCalendar, IKitsInputColorPicker, IKitsInputLocation, IKitsInputMask, IKitsInputNumber, IKitsInputPassword, IKitsInputRating, IKitsInputSwitch, IKitsInputText, IKitsInputTextarea, IKitsLineChartProps, IKitsLineChartSeries, IKitsPhoneInput, IKitsRadioProps, IKitsTheme, IKitsThemeColors, IKitsThemeConfig, IKitsThemeContextValues, IKitsThemeFontSizes, IKitsThemeFontWeights, IKitsThemeFonts, IKitsThemeLineHeights, IKitsThemeRadii, IKitsThemeShadows, IKitsThemeSpacing, IKitsToastRef, ILabelElement, ILabelProps, ILanguage, ILayout, ILegendItem, ILegendProps, ILineChartProps, ILinkComponent, ILinkOverrides, IList, IListBoxCore, IListBoxElement, IListBoxSelect, IListItem, IListing, ILoaderProps, ILoadingIndicatorContext, ILocaleContextProps, ILocaleContextValues, ILocation, ILocationDetailsResponse, ILocationResponse, IMainContextProps, IMainContextValues, IMapTilePoint, IMapTileProps, IMemes, IMenuItem, IMessageComposerElementSlots, IMessageComposerProps, IMessageReceiptElementSlots, IMessageReceiptProps, IMessages, IMetricCardProps, IMinusButton, IModalComponent, IModalFormProps, IMultiSelect, IMultiSelectCore, IMultiSelectSlots, IMultiselect, IMultiselectFilter, INativeShadow, INonCrossPlatformTypes, INumberFilter, INumberInput, INumberProps, INumberValidation, IObjectGroup, IOneOfTypes, IOptionItem, IOptionsEditorProps, IOptionsSource, IPageISection, IPaginationRequest, IPaginationResponse, IPaginatorLabels, IPaletteItemProps, IPaletteProps, IPanelCustomSlot, IPassword, IPasswordProps, IPersonCardProps, IPhone, IPhoneFilter, IPhoneObjectValue, IPhoneValidationResults, IPhoneValue, IPieChartProps, IPlusButton, IPolarAreaChartProps, IPopoverProps, IProgressBarElementSlots, IProgressBarProps, IPropertiesPanelProps, IRTLDetection, IRadarChartProps, IRadarProps, IRadarSeries, IRadioCheckboxListItem, IRadioGroup, IRadioSlots, IRadiusPickerEvents, IRadiusPickerField, IRadiusPickerI18n, IRadiusPickerProps, IRangeFilter, IRankedListProps, IRankedListRow, IRef, IRepeatableSettings, IResponsiveElement, IRiseProps, ISVGComponent, IScrollViewComponent, ISegmentedControlOption, ISegmentedControlProps, ISelect, ISelectBase, ISelectCore, ISelectElement, ISelectSlots, ISelectType, ISelectedFile, ISelectedFileType, ISelectionValidation, ISeverityColorSlots, ISeverityThemeMap, IShadowDefinition, IShadowValue, ISidebarElementSlots, ISizing, ISkeleton, ISkeletonRowsProps, ISkeletonText, ISliderProps, ISpacing, ISparklineProps, IStackProps, IStackedBarsDatum, IStackedBarsProps, IStatCardElementSlots, IStatCardProps, IStatGroupElementSlots, IStatGroupProps, IStatePillProps, IStatisticsProps, IStats, IStatusCardProps, IStepperElementSlots, IStepperProps, IStripedProps, IStyleClasses, ISwitch, ISwitchSlots, ITabBarItem, ITabItem, ITableElementSlots, ITableFlatConfig, ITabsElementSlots, ITabsProps, ITags, IText, ITextComponent, ITextFieldProps, ITextFilter, ITextInput, ITextInputProps, ITextInputSlots, ITextValidation, ITextarea, IThemeContextProps, IThemeContextValues, ITimelineElementSlots, ITimelineItem, ITimelineProps, ITipProps, IToastAction, IToastFunction, IToastOptions, IToastParams, IToolbarProps, ITransforms, ITransition, ITranslatableInputProps, ITranslatableText, ITranslateComponent, ITreeItem, ITreeSelect, ITreeSelectCore, ITreeSelectElement, ITreeSelectNode, ITreeViewProps, ITriStateFilter, ITypingIndicatorElementSlots, ITypingIndicatorProps, IUnkeyedColumn, IUseCountUpOptions, IUseFormReturn, IUserAvatar, IValidationSectionProps, IWashProps, IWidgetBarIncomingProp, IWidgetChartContextProps, IWidgetChartProp, IWidgetData, IWidgetDoughnutIncomingProp, IWidgetLineIncomingProp, IWidgetPanelProps, IWidgetPieIncomingProp, IWidgetPolarAreaIncomingProp, IWidgetRadarIncomingProp, IconName, IconType, InputTextFieldProps, KitsBreakpoint, KitsConditionalObject, KitsDevice, KitsMotion, KitsOrientation, KitsPlatform, KitsResponsiveObject, KitsResponsiveValue, KitsThemeOverride, LabelVariant, LatLng, LoadMode, LoadingIndicatorRenderer, LogicFunction, MapInteraction, MeasurementValues, MessageReceiptState, Nullable, Numbering0_12, Numbering0_32, Numberish, OnCenterChange, OnLocationError, OnLocationFound, OnRadiusChange, OnRadiusValueChange, OnSubmitHandler, OnUnitChange, Orientation, PaginationState, PaginatorPageChangeEvent$1 as PaginatorPageChangeEvent, Permissions, PlatformKey, RadiusPickerDisplay, RadiusPickerLayout, RadiusPickerSize, RadiusUnit, RadiusValue, RenderLocationButtonProps, RenderMapProps, RenderSearchBoxProps, SelectFieldProps, SemanticColorTokens, ServerMethod, ServerResponse, ServerSideProps, SetManyOpts, Severity, Shades, ShadowPreset, Shapes, SidesValues, SizingNumbering, SizingValue, StatePillState, StepperVariant, TAcceptedFileType, TBuilderFieldType, TCheckboxRadioMode, TCheckboxRadioSize, TConditionAction, TConditionMatch, TConditionOperator, TDateBoundary, TDynamicFlag, TExternalFilterLabelMode, TFiltersLayout, TIsoFormat, TItemsPerRow, TKeyFilter, TLocationProvider, TPaginatorAlign, TextLabels, TextProps, ThemedFontKind, TimelineItemStatus, Timeout, TimingNumbering, ToastPosition, ToastSeverity, ToastSize, TooltipDataAttributes, TooltipProps, TreeChangeProps, TreeCheckboxSelectionKeyType, TreeCheckboxSelectionKeys, TreeNode, TreeNodeClickEvent, TreeNodeTemplateOptions, TreeProps, TreeRef, TreeSelectionEvent, Types, UseComponentDefaultsResult, UseDisclosureReturnType, UseFieldLogicElementProps, UseFieldLogicProps, UseFieldLogicReturn, UseFormManagerEvents, UseFormManagerReturn, UseToastApi, ValidationProps, children, clearFunction, downloadableFileResponse, settings1, settings2 };
|
|
15185
|
+
export { ALPHA_COLOR_VARS, ALPHA_STEPS, ALPHA_TOKEN_NAMES, AccentEdge, CustomAccordion as Accordion, ActionCard, Alert, AlertDescription, AlertIcon, AlertTitle, KitsAnimatePresence as AnimatePresence, AnyFile, Avatar, AvatarStack, Badge, Banner, BottomTabBar, Box, BreadCrumb, BreadcrumbProvider, Button, Card, Carousel, Center, ChatBubble, Chip, CircularProgress, Collapse, CommandPalette, Container, CustomPopover, DEFAULT_NATIVE_SHADOWS, DataView, DataViewContext, DateSeparator, Delta, DetailList as DetailsList, Divider, Donut, DotGrid, EDateFormat, EKeyFilter, Editable, EmptyState, FIELD_LABEL_MARGIN, FIELD_MARGIN, Flex, Form, FormSelect, GUTTER, Gallery, Gauge, Form as GoForm, Datatable as GoTable, KitsGrid as Grid, KitsGridItem as GridItem, GroupedBars, HELPER_TEXT_MARGIN, HStack, Heading, Icon, IconMap, Image, KitsInputSwitch as InputSwitch, KeyboardNavContext, KitsAutoComplete, KitsBarChart, KitsCascadeSelect, KitsCheckbox as KitsCheckboxes, KitsConfirm, KitsConfirmPopup, KitsContainer, KitsInputCalendar as KitsDatepicker, KitsDialogControlled as KitsDialog, KitsDropdown, FilePicker as KitsFilePicker, KitsInputColorPicker, KitsInputLocation, KitsInputMask, KitsInputNumber, KitsInputPassword, KitsInputText, KitsInputTextarea, KitsLineChart, KitsListBox, KitsMultiSelect, KitsPhoneComponent, KitsRadar, KitsRadio as KitsRadios, RadiusPicker as KitsRadiusPicker, KitsSliders, KitsThemeProvider, KitsToast, KitsTreeSelect, Label, Legend, Link, List, ListItem, Loader, LocaleContext, LocaleContextProvider, MainContext, MainContextProvider, MapTile, MessageComposer, MessageReceipt, MetricCard, KitsMultiSelect as MultiSelect, PermissionsProvider, PersonCard, ProgressBar, RadiusPicker, RankedList, ReducedMotionProvider, Rise, SHADOW_PRESET_KEYS, SPACER, KitsScrollView as ScrollView, SegmentedControl, FormSelect as Select, SelectButton, Skeleton$1 as Skeleton, SkeletonRows, Skeleton as SkeletonText, Sparkline, StackedBars, StatCard, StatGroup, StatePill, StatusCard, Stepper, Striped, Svg, TableContext, Tabs, Text, ThemeContextProvider, Timeline, Tip, Tooltip, Translate, KitsTreeSelect as TreeSelect, TreeView, TriStateCheckbox, TypingIndicator, VStack, Wash, WidgetPanel, borderProperties, breakpoints, capitalizeFirstLetter, checkExtAgainstAccepted, checkNameDuplication, colorWithAlpha, dateTimeFormat, deepMerge, defaultSeverityTheme, defaultTheme, downloadCanvas, dynamicList, expandShadowNative, extendTheme, fileTypeIcon, fileValidation, filesExt, filesMemes, filesTypes, flattenSlotStyles, fontSizeMapping, formFileValidation, formatNumber, getActiveNativeShadows, getCombinedChildIds, getCustomDateTime, getDateElements, getDefaultValues, getMeme, getParams, getPropertyByPath, getType, getTypes, getURLParams, imagesExt, imagesMemes, imagesTypes, isAlphaToken, isNumber, isSemanticToken, isShadowPreset, isThemeToken, isToday, isValidURL, kitsMotion, listingProperties, localeFiles, allProperties as mapCssProperties, mergeRefs, nonPxProperties, propertiesWithoutCssEquivalent, pxProperties, resolveStyleRecord, resolveTokenValue, schemaBuilder, setActiveNativeShadows, shadowNative, shadowWeb, sizeMapping, sizingProperties, timeAgo, timeSince, toMemes, useAllSeverityColors, useBreadcrumb, useBreadcrumbTrail, useComponentDefaults, useCountUp, useDataView, useDialog, useDisclosure, useEnter, useFieldLogic, useFocusStyles, useFormFieldKeyboardNav, useFormManager, useKeyboardNav, useKeyboardNavProvider, useKitsColorScheme, useKitsConcerto, useKitsTheme, useLanguage, useMeasuredWidth, useNativeColorMap, usePermissions, usePopup, useReducedMotion, useResolvedElementStyles, useResolvedStyle, useRtlLineHeight, useScrollState, useSelectionController, useSeverityColors, useTable, useTheme, useThemedFont, useToast };
|
|
15186
|
+
export type { AlignmentsValues, AllSlotKeys, AnimationsValues, AvatarShape, AvatarSize, AvatarStatus, BannerAction, BannerStatus, BaseFieldProps, Booleanish, Breakpoint, CallbackProps, ChatBubbleTone, ChatBubbleVariant, ChipSeverity, ChipSize, ColorMode, ColorScale, ColorValue, Colors, ColorsType, ComponentSize, CustomSubmitButtonProps, DataTableFilterMeta, DataTableFilterMetaData, DataTableOperatorFilterMetaData, DataTableSelectionSingleChangeEvent, DataTableSortMeta, DeepPartial, DetailItemInputType, DynamicValue, ElementProps, EnteringAnimation, ExitingAnimation, ExpandedKeys, FetchError, FetchSuccess, FetchTableDataRes, FetchTablePaginationData, FieldWrapperProps, File$1 as File, FileUploaderTemplate, FileUploaderTemplateParams, FlexAlignmentsValues, FlexValues, FormBooleanEvent, FormBooleanTarget, FormEvent, FormTarget, GroupFieldConfigs, HighSizingValue, IAccentEdgeProps, IAccordionElementSlots, IAccordionProps, IActionCardProps, IAddressComponentValue, IAddressExperianFormat, IAddressFormat, IAddressFormatResults, IAddressSearchResults, IAlertComponent, IAlertProps, IAlignment, IAnimation, IAutoCompleteCore, IAutoCompleteElement, IAvatarElementSlots, IAvatarProps, IAvatarStackElementSlots, IAvatarStackProps, IBadgeProps, IBannerProps, IBarChartProps, IBaseValidation, IBasicSectionProps, IBg, IBodyTemplate, IBodyTemplateIcon, IBorder, IBottomTabBarElementSlots, IBottomTabBarProps, IBoxComponent, IBreadcrumbCrumb, IBreadcrumbProps, IBuilderAddressField, IBuilderCheckboxField, IBuilderContainerField, IBuilderDateField, IBuilderField, IBuilderFieldBase, IBuilderFieldExport, IBuilderFileField, IBuilderGroupField, IBuilderMultiselectField, IBuilderNumberField, IBuilderPhoneField, IBuilderRadiosField, IBuilderRadiusPickerField, IBuilderSectionField, IBuilderSelectField, IBuilderSwitchField, IBuilderTagsField, IBuilderTextField, IBuilderTextareaField, IButton, IButtonElementSlots, IButtonParams, IButtonProps, IButtonState, IButtonsFilter, ICanvasProps, ICardComponent, ICardElementSlots, ICarouselElementSlots, ICarouselProps, ICascadeSelect, ICascadeSelectCore, IChatBubbleElementSlots, IChatBubbleProps, ICheckbox, ICheckboxFilter, ICheckboxSlots, IChildren, IChildrenParams, IChipProps, ICircularProgressProps, ICollapseProps, IColorPicker, IColumn, IColumnBase, ICombined, ICommandPaletteGroup, ICommandPaletteItem, ICommandPaletteProps, IComponentThemeConfig, IConditionGroupProps, IConditionRowProps, IConditionRule, IConditionsSectionProps, IConfirmDialogProps, IConfirmPopupProps, IContainer, IContainerCardProps, IContainerProps, IContextValues, ICountrySearchResults, ICssStyling, IDVButtonsFilter, IDVCheckboxFilter, IDVDateFilter, IDVDropdownFilter, IDVFilters, IDVMessages, IDVMultiselectFilter, IDVNumberFilter, IDVPaginationRequest, IDVPaginationResponse, IDVPaginationState, IDVPhoneFilter, IDVRangeFilter, IDVTextFilter, IDVTriStateFilter, IDataTableContextValues, IDataTableProps, IDataViewContextValues, IDataViewProps, IDataViewRefValues, IDatatableRefValues, IDate, IDateFilter, IDateProps, IDateSeparatorElementSlots, IDateSeparatorProps, IDateValidation, IDatepickerSlots, IDeltaProps, IDetailItem, IDetailListProps, IDialogButton, IDialogProps, IDialogRef, IDialogState, IDisplay, IDividerComponent, IDonutProps, IDonutSegment, IDotGridProps, IDoughnutChartProps, IDropdownCore, IDropdownFilter, IDropdownSelect, IEditableProps, IEditors, IEffects, IElementBase, IElementSlotConfig, IElementStyle, IEmail, IEmailSearchResults, IEmptyStateElementSlots, IEmptyStateProps, IFieldCardProps, IFieldCondition, IFieldPreviewProps, IFile, IFileUploader, IFileUploaderElement, IFileUploaderTypes, IFileValidation, IFilesExtTypeKeys, IFilters, IFlexAlignment, IFlexComponent, IFormAddon, IFormBuilderInternalState, IFormBuilderMeta, IFormBuilderPayload, IFormBuilderProps, IFormComponent, IFormElement, IFormElementBaseSlots, IFormElementSlots, IFormGrid, IFormListsElements, IFormSelect, IFormSelectElements, IFormSingleElement, IGalleryElementSlots, IGalleryItem, IGalleryProps, IGaugeProps, IGrid, IGridCellStyle, IGridComponent, IGridItem, IGridItemComponent, IGroup, IGroupCardProps, IGroupElementSlots, IGroupSettings, IGroupedBarsDatum, IGroupedBarsProps, IHeaderElementSlots, IHeadingComponent, IIconProps, IImageComponent, IImagesExtTypeKeys, IInteractivity, IKeyedColumn, IKitsAnimation, IKitsBarChartDatum, IKitsBarChartProps, IKitsCheckboxProps, IKitsComponentDefaults, IKitsContainer, IKitsDialogControlled, IKitsInputCalendar, IKitsInputColorPicker, IKitsInputLocation, IKitsInputMask, IKitsInputNumber, IKitsInputPassword, IKitsInputRating, IKitsInputSwitch, IKitsInputText, IKitsInputTextarea, IKitsLineChartProps, IKitsLineChartSeries, IKitsPhoneInput, IKitsRadioProps, IKitsTheme, IKitsThemeColors, IKitsThemeConfig, IKitsThemeContextValues, IKitsThemeFontSizes, IKitsThemeFontWeights, IKitsThemeFonts, IKitsThemeLineHeights, IKitsThemeRadii, IKitsThemeShadows, IKitsThemeSpacing, IKitsToastRef, ILabelElement, ILabelProps, ILanguage, ILayout, ILegendItem, ILegendProps, ILineChartProps, ILinkComponent, ILinkOverrides, IList, IListBoxCore, IListBoxElement, IListBoxSelect, IListItem, IListing, ILoaderProps, ILoadingIndicatorContext, ILocaleContextProps, ILocaleContextValues, ILocation, ILocationDetailsResponse, ILocationResponse, IMainContextProps, IMainContextValues, IMapTilePoint, IMapTileProps, IMemes, IMenuItem, IMessageComposerElementSlots, IMessageComposerProps, IMessageReceiptElementSlots, IMessageReceiptProps, IMessages, IMetricCardProps, IMinusButton, IModalComponent, IModalFormProps, IMultiSelect, IMultiSelectCore, IMultiSelectSlots, IMultiselect, IMultiselectFilter, INativeShadow, INonCrossPlatformTypes, INumberFilter, INumberInput, INumberProps, INumberValidation, IObjectGroup, IOneOfTypes, IOptionItem, IOptionsEditorProps, IOptionsSource, IPageISection, IPaginationRequest, IPaginationResponse, IPaginatorLabels, IPaletteItemProps, IPaletteProps, IPanelCustomSlot, IPassword, IPasswordProps, IPersonCardProps, IPhone, IPhoneFilter, IPhoneObjectValue, IPhoneValidationResults, IPhoneValue, IPieChartProps, IPlusButton, IPolarAreaChartProps, IPopoverProps, IProgressBarElementSlots, IProgressBarProps, IPropertiesPanelProps, IRTLDetection, IRadarChartProps, IRadarProps, IRadarSeries, IRadioCheckboxListItem, IRadioGroup, IRadioSlots, IRadiusPickerEvents, IRadiusPickerField, IRadiusPickerI18n, IRadiusPickerProps, IRangeFilter, IRankedListProps, IRankedListRow, IRef, IRepeatableSettings, IResponsiveElement, IRiseProps, ISVGComponent, IScrollViewComponent, ISegmentedControlOption, ISegmentedControlProps, ISelect, ISelectBase, ISelectCore, ISelectElement, ISelectSlots, ISelectType, ISelectedFile, ISelectedFileType, ISelectionValidation, ISeverityColorSlots, ISeverityThemeMap, IShadowDefinition, IShadowValue, ISidebarElementSlots, ISizing, ISkeleton, ISkeletonRowsProps, ISkeletonText, ISliderProps, ISpacing, ISparklineProps, IStackProps, IStackedBarsDatum, IStackedBarsProps, IStatCardElementSlots, IStatCardProps, IStatGroupElementSlots, IStatGroupProps, IStatePillProps, IStatisticsProps, IStats, IStatusCardProps, IStepperElementSlots, IStepperProps, IStripedProps, IStyleClasses, ISwitch, ISwitchSlots, ITabBarItem, ITabItem, ITableElementSlots, ITableFlatConfig, ITabsElementSlots, ITabsProps, ITags, IText, ITextComponent, ITextFieldProps, ITextFilter, ITextInput, ITextInputProps, ITextInputSlots, ITextValidation, ITextarea, IThemeContextProps, IThemeContextValues, ITimelineElementSlots, ITimelineItem, ITimelineProps, ITipProps, IToastAction, IToastFunction, IToastOptions, IToastParams, IToolbarProps, ITransforms, ITransition, ITranslatableInputProps, ITranslatableText, ITranslateComponent, ITreeItem, ITreeSelect, ITreeSelectCore, ITreeSelectElement, ITreeSelectNode, ITreeViewProps, ITriStateFilter, ITypingIndicatorElementSlots, ITypingIndicatorProps, IUnkeyedColumn, IUseCountUpOptions, IUseFormReturn, IUserAvatar, IValidationSectionProps, IWashProps, IWidgetBarIncomingProp, IWidgetChartContextProps, IWidgetChartProp, IWidgetData, IWidgetDoughnutIncomingProp, IWidgetLineIncomingProp, IWidgetPanelProps, IWidgetPieIncomingProp, IWidgetPolarAreaIncomingProp, IWidgetRadarIncomingProp, IconName, IconType, InputTextFieldProps, KitsBreakpoint, KitsConditionalObject, KitsDevice, KitsMotion, KitsOrientation, KitsPlatform, KitsResponsiveObject, KitsResponsiveValue, KitsThemeOverride, LabelVariant, LatLng, LoadMode, LoadingIndicatorRenderer, LogicFunction, MapInteraction, MeasurementValues, MessageReceiptState, Nullable, Numbering0_12, Numbering0_32, Numberish, OnCenterChange, OnLocationError, OnLocationFound, OnRadiusChange, OnRadiusValueChange, OnSubmitHandler, OnUnitChange, Orientation, PaginationState, PaginatorPageChangeEvent$1 as PaginatorPageChangeEvent, Permissions, PlatformKey, RadiusPickerDisplay, RadiusPickerLayout, RadiusPickerSize, RadiusUnit, RadiusValue, RenderLocationButtonProps, RenderMapProps, RenderSearchBoxProps, SelectFieldProps, SemanticColorTokens, ServerMethod, ServerResponse, ServerSideProps, SetManyOpts, Severity, Shades, ShadowPreset, Shapes, SidesValues, SizingNumbering, SizingValue, StatePillState, StepperVariant, TAcceptedFileType, TBuilderFieldType, TCheckboxRadioMode, TCheckboxRadioSize, TConditionAction, TConditionMatch, TConditionOperator, TDateBoundary, TDynamicFlag, TExternalFilterLabelMode, TFiltersLayout, TIsoFormat, TItemsPerRow, TKeyFilter, TLocationProvider, TPaginatorAlign, TextLabels, TextProps, ThemedFontKind, TimelineItemStatus, Timeout, TimingNumbering, ToastPosition, ToastSeverity, ToastSize, TooltipDataAttributes, TooltipProps, TreeChangeProps, TreeCheckboxSelectionKeyType, TreeCheckboxSelectionKeys, TreeNode, TreeNodeClickEvent, TreeNodeTemplateOptions, TreeProps, TreeRef, TreeSelectionEvent, Types, UseComponentDefaultsResult, UseDisclosureReturnType, UseFieldLogicElementProps, UseFieldLogicProps, UseFieldLogicReturn, UseFormManagerEvents, UseFormManagerReturn, UseToastApi, ValidationProps, children, clearFunction, downloadableFileResponse, settings1, settings2 };
|
package/index.js
CHANGED
|
@@ -97,6 +97,7 @@ export { MainContext, default as MainContextProvider } from './contexts/Main/ind
|
|
|
97
97
|
export { default as ThemeContextProvider, useTheme } from './contexts/Theme/index.js';
|
|
98
98
|
export { useDialog, usePopup } from './contexts/DialogContext.js';
|
|
99
99
|
export { default as PermissionsProvider, usePermissions } from './contexts/PermissionsContext.js';
|
|
100
|
+
export { default as BreadcrumbProvider, useBreadcrumb } from './contexts/BreadcrumbContext.js';
|
|
100
101
|
export { default as useSelectionController } from './hooks/useSelectionController.js';
|
|
101
102
|
export { default as useDisclosure } from './hooks/useDisclosure.js';
|
|
102
103
|
export { default as useScrollState } from './hooks/useScrollState/index.js';
|
|
@@ -117,6 +118,7 @@ export { useReducedMotion } from './hooks/useReducedMotion/index.js';
|
|
|
117
118
|
export { default as useEnter } from './hooks/useEnter.js';
|
|
118
119
|
export { default as useCountUp } from './hooks/useCountUp.js';
|
|
119
120
|
export { default as useMeasuredWidth } from './hooks/useMeasuredWidth.js';
|
|
121
|
+
export { default as useBreadcrumbTrail } from './hooks/useBreadcrumbTrail.js';
|
|
120
122
|
export { kitsMotion } from './motion/index.js';
|
|
121
123
|
export { IconMap } from './assets/Icons/index.js';
|
|
122
124
|
export { default as localeFiles } from './locale/index.js';
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -87,6 +87,7 @@ require('../../apps/mobile/src/Core/Input/Field.cjs');
|
|
|
87
87
|
require('../../apps/mobile/src/Core/Input/Slot.cjs');
|
|
88
88
|
require('../../contexts/DialogContext.cjs');
|
|
89
89
|
require('../../contexts/PermissionsContext.cjs');
|
|
90
|
+
require('../../contexts/BreadcrumbContext.cjs');
|
|
90
91
|
var useComponentDefaults = require('../../hooks/useComponentDefaults.cjs');
|
|
91
92
|
|
|
92
93
|
const Card = (rawProps) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../src/primitives/Card/index.native.tsx"],"sourcesContent":["import React, {useMemo} from \"react\";\nimport {Pressable} from \"react-native\";\nimport {Heading, Text, type ICardProps} from \"@lmb-it/kitsconcertomobile\";\nimport {ResponsiveElement, useSeparator} from \"../../factory\";\nimport type {ICardComponent} from \"@lmb-it/kitsconcerto-types\";\nimport {useComponentDefaults} from \"@lmb-it/kitsconcerto/hooks\";\n\nconst Card = (rawProps: ICardComponent<Omit<ICardProps, 'title'>>) => {\n const {mergedProps: cardProps, themeStyle, elementStyles} = useComponentDefaults('Card', rawProps);\n const {\n title,\n subTitle,\n header,\n footer,\n className,\n variant = 'elevated',\n size = 'md',\n ref,\n children: CardChildren,\n localProps,\n onPress,\n ...props\n } = cardProps;\n const {cssProps, nativeProps} = useSeparator<any>({\n variant,\n size,\n ...props\n });\n\n const children = useMemo(() => {\n const ret:any[] = [];\n\n if (header) {\n ret.push(React.isValidElement(header)\n ? React.cloneElement(header, { key: 'header' })\n : <React.Fragment key=\"header\">\n {typeof header == 'function' ? localProps ? header(localProps) : \"\" : header}\n </React.Fragment>);\n }\n\n if (title) {\n ret.push(\n <Heading key=\"title\" size=\"md\" className=\"mb-1\">\n {typeof title == 'function' ? localProps ? title(localProps) : \"\" : title}\n </Heading>\n );\n }\n\n if (subTitle) {\n ret.push(<Text key=\"subTitle\">\n {typeof subTitle == 'function' ? localProps ? subTitle(localProps) : \"\" : subTitle}\n </Text>);\n }\n\n if (CardChildren) {\n ret.push(React.isValidElement(CardChildren)\n ? React.cloneElement(CardChildren, { key: 'CardChildren' })\n : <React.Fragment key=\"CardChildren\">{CardChildren}</React.Fragment>);\n }\n\n if (footer) {\n ret.push(React.isValidElement(footer)\n ? React.cloneElement(footer, { key: 'footer' })\n : <React.Fragment key=\"footer\">\n {typeof footer == 'function' ? localProps ? footer(localProps) : \"\" : footer}\n </React.Fragment>);\n }\n return <>{ret}</>;\n }, [header, title, subTitle, CardChildren]);\n\n\n const classes = useMemo(() => {\n const classes: string[] = [];\n classes.push('shadow-hard-1')\n\n if(className){\n classes.push(className)\n }\n\n return classes.join(\" \");\n }, [className]);\n\n const { entering, exiting, ...restNativeProps } = nativeProps;\n\n const cardElement = (\n <ResponsiveElement\n ref={ref}\n entering={entering}\n exiting={exiting}\n additionalStyles={{\n display: \"flex\",\n width:'auto'\n }}\n additionalClasses={classes}\n cssProps={{...themeStyle, ...(elementStyles.root || {}), ...cssProps}}\n nativeProps={restNativeProps}\n as={'Card'}\n children={children}\n />\n );\n\n if (onPress) {\n return (\n <Pressable onPress={onPress} accessibilityRole=\"button\">\n {cardElement}\n </Pressable>\n );\n }\n\n return cardElement;\n}\n\nexport default Card;\n"],"names":["useComponentDefaults","useSeparator","useMemo","jsx","Heading","Text","classes","ResponsiveElement","Pressable"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/primitives/Card/index.native.tsx"],"sourcesContent":["import React, {useMemo} from \"react\";\nimport {Pressable} from \"react-native\";\nimport {Heading, Text, type ICardProps} from \"@lmb-it/kitsconcertomobile\";\nimport {ResponsiveElement, useSeparator} from \"../../factory\";\nimport type {ICardComponent} from \"@lmb-it/kitsconcerto-types\";\nimport {useComponentDefaults} from \"@lmb-it/kitsconcerto/hooks\";\n\nconst Card = (rawProps: ICardComponent<Omit<ICardProps, 'title'>>) => {\n const {mergedProps: cardProps, themeStyle, elementStyles} = useComponentDefaults('Card', rawProps);\n const {\n title,\n subTitle,\n header,\n footer,\n className,\n variant = 'elevated',\n size = 'md',\n ref,\n children: CardChildren,\n localProps,\n onPress,\n ...props\n } = cardProps;\n const {cssProps, nativeProps} = useSeparator<any>({\n variant,\n size,\n ...props\n });\n\n const children = useMemo(() => {\n const ret:any[] = [];\n\n if (header) {\n ret.push(React.isValidElement(header)\n ? React.cloneElement(header, { key: 'header' })\n : <React.Fragment key=\"header\">\n {typeof header == 'function' ? localProps ? header(localProps) : \"\" : header}\n </React.Fragment>);\n }\n\n if (title) {\n ret.push(\n <Heading key=\"title\" size=\"md\" className=\"mb-1\">\n {typeof title == 'function' ? localProps ? title(localProps) : \"\" : title}\n </Heading>\n );\n }\n\n if (subTitle) {\n ret.push(<Text key=\"subTitle\">\n {typeof subTitle == 'function' ? localProps ? subTitle(localProps) : \"\" : subTitle}\n </Text>);\n }\n\n if (CardChildren) {\n ret.push(React.isValidElement(CardChildren)\n ? React.cloneElement(CardChildren, { key: 'CardChildren' })\n : <React.Fragment key=\"CardChildren\">{CardChildren}</React.Fragment>);\n }\n\n if (footer) {\n ret.push(React.isValidElement(footer)\n ? React.cloneElement(footer, { key: 'footer' })\n : <React.Fragment key=\"footer\">\n {typeof footer == 'function' ? localProps ? footer(localProps) : \"\" : footer}\n </React.Fragment>);\n }\n return <>{ret}</>;\n }, [header, title, subTitle, CardChildren]);\n\n\n const classes = useMemo(() => {\n const classes: string[] = [];\n classes.push('shadow-hard-1')\n\n if(className){\n classes.push(className)\n }\n\n return classes.join(\" \");\n }, [className]);\n\n const { entering, exiting, ...restNativeProps } = nativeProps;\n\n const cardElement = (\n <ResponsiveElement\n ref={ref}\n entering={entering}\n exiting={exiting}\n additionalStyles={{\n display: \"flex\",\n width:'auto'\n }}\n additionalClasses={classes}\n cssProps={{...themeStyle, ...(elementStyles.root || {}), ...cssProps}}\n nativeProps={restNativeProps}\n as={'Card'}\n children={children}\n />\n );\n\n if (onPress) {\n return (\n <Pressable onPress={onPress} accessibilityRole=\"button\">\n {cardElement}\n </Pressable>\n );\n }\n\n return cardElement;\n}\n\nexport default Card;\n"],"names":["useComponentDefaults","useSeparator","useMemo","jsx","Heading","Text","classes","ResponsiveElement","Pressable"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAM,IAAA,GAAO,CAAC,QAAA,KAAwD;AAClE,EAAA,MAAM,EAAC,aAAa,SAAA,EAAW,UAAA,EAAY,eAAa,GAAIA,4BAAA,CAAqB,QAAQ,QAAQ,CAAA;AACjG,EAAA,MAAM;AAAA,IACF,KAAA;AAAA,IACA,QAAA;AAAA,IACA,MAAA;AAAA,IACA,MAAA;AAAA,IACA,SAAA;AAAA,IACA,OAAA,GAAU,UAAA;AAAA,IACV,IAAA,GAAO,IAAA;AAAA,IACP,GAAA;AAAA,IACA,QAAA,EAAU,YAAA;AAAA,IACV,UAAA;AAAA,IACA,OAAA;AAAA,IACA,GAAG;AAAA,GACP,GAAI,SAAA;AACJ,EAAA,MAAM,EAAC,QAAA,EAAU,WAAA,EAAW,GAAIC,oBAAA,CAAkB;AAAA,IAC9C,OAAA;AAAA,IACA,IAAA;AAAA,IACA,GAAG;AAAA,GACN,CAAA;AAED,EAAA,MAAM,QAAA,GAAWC,cAAQ,MAAM;AAC3B,IAAA,MAAM,MAAY,EAAC;AAEnB,IAAA,IAAI,MAAA,EAAQ;AACR,MAAA,GAAA,CAAI,IAAA,CAAK,KAAA,CAAM,cAAA,CAAe,MAAM,CAAA,GAC9B,KAAA,CAAM,YAAA,CAAa,MAAA,EAAQ,EAAE,GAAA,EAAK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EACL,CAAA;AAAA,EAER;AAEA,EAAA,OAAO,WAAA;AACX;;;;"}
|
package/primitives/Card/index.js
CHANGED
|
@@ -83,6 +83,7 @@ import '../../apps/mobile/src/Core/Input/Field.js';
|
|
|
83
83
|
import '../../apps/mobile/src/Core/Input/Slot.js';
|
|
84
84
|
import '../../contexts/DialogContext.js';
|
|
85
85
|
import '../../contexts/PermissionsContext.js';
|
|
86
|
+
import '../../contexts/BreadcrumbContext.js';
|
|
86
87
|
import useComponentDefaults from '../../hooks/useComponentDefaults.js';
|
|
87
88
|
|
|
88
89
|
const Card = (rawProps) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/primitives/Card/index.native.tsx"],"sourcesContent":["import React, {useMemo} from \"react\";\nimport {Pressable} from \"react-native\";\nimport {Heading, Text, type ICardProps} from \"@lmb-it/kitsconcertomobile\";\nimport {ResponsiveElement, useSeparator} from \"../../factory\";\nimport type {ICardComponent} from \"@lmb-it/kitsconcerto-types\";\nimport {useComponentDefaults} from \"@lmb-it/kitsconcerto/hooks\";\n\nconst Card = (rawProps: ICardComponent<Omit<ICardProps, 'title'>>) => {\n const {mergedProps: cardProps, themeStyle, elementStyles} = useComponentDefaults('Card', rawProps);\n const {\n title,\n subTitle,\n header,\n footer,\n className,\n variant = 'elevated',\n size = 'md',\n ref,\n children: CardChildren,\n localProps,\n onPress,\n ...props\n } = cardProps;\n const {cssProps, nativeProps} = useSeparator<any>({\n variant,\n size,\n ...props\n });\n\n const children = useMemo(() => {\n const ret:any[] = [];\n\n if (header) {\n ret.push(React.isValidElement(header)\n ? React.cloneElement(header, { key: 'header' })\n : <React.Fragment key=\"header\">\n {typeof header == 'function' ? localProps ? header(localProps) : \"\" : header}\n </React.Fragment>);\n }\n\n if (title) {\n ret.push(\n <Heading key=\"title\" size=\"md\" className=\"mb-1\">\n {typeof title == 'function' ? localProps ? title(localProps) : \"\" : title}\n </Heading>\n );\n }\n\n if (subTitle) {\n ret.push(<Text key=\"subTitle\">\n {typeof subTitle == 'function' ? localProps ? subTitle(localProps) : \"\" : subTitle}\n </Text>);\n }\n\n if (CardChildren) {\n ret.push(React.isValidElement(CardChildren)\n ? React.cloneElement(CardChildren, { key: 'CardChildren' })\n : <React.Fragment key=\"CardChildren\">{CardChildren}</React.Fragment>);\n }\n\n if (footer) {\n ret.push(React.isValidElement(footer)\n ? React.cloneElement(footer, { key: 'footer' })\n : <React.Fragment key=\"footer\">\n {typeof footer == 'function' ? localProps ? footer(localProps) : \"\" : footer}\n </React.Fragment>);\n }\n return <>{ret}</>;\n }, [header, title, subTitle, CardChildren]);\n\n\n const classes = useMemo(() => {\n const classes: string[] = [];\n classes.push('shadow-hard-1')\n\n if(className){\n classes.push(className)\n }\n\n return classes.join(\" \");\n }, [className]);\n\n const { entering, exiting, ...restNativeProps } = nativeProps;\n\n const cardElement = (\n <ResponsiveElement\n ref={ref}\n entering={entering}\n exiting={exiting}\n additionalStyles={{\n display: \"flex\",\n width:'auto'\n }}\n additionalClasses={classes}\n cssProps={{...themeStyle, ...(elementStyles.root || {}), ...cssProps}}\n nativeProps={restNativeProps}\n as={'Card'}\n children={children}\n />\n );\n\n if (onPress) {\n return (\n <Pressable onPress={onPress} accessibilityRole=\"button\">\n {cardElement}\n </Pressable>\n );\n }\n\n return cardElement;\n}\n\nexport default Card;\n"],"names":["classes"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/primitives/Card/index.native.tsx"],"sourcesContent":["import React, {useMemo} from \"react\";\nimport {Pressable} from \"react-native\";\nimport {Heading, Text, type ICardProps} from \"@lmb-it/kitsconcertomobile\";\nimport {ResponsiveElement, useSeparator} from \"../../factory\";\nimport type {ICardComponent} from \"@lmb-it/kitsconcerto-types\";\nimport {useComponentDefaults} from \"@lmb-it/kitsconcerto/hooks\";\n\nconst Card = (rawProps: ICardComponent<Omit<ICardProps, 'title'>>) => {\n const {mergedProps: cardProps, themeStyle, elementStyles} = useComponentDefaults('Card', rawProps);\n const {\n title,\n subTitle,\n header,\n footer,\n className,\n variant = 'elevated',\n size = 'md',\n ref,\n children: CardChildren,\n localProps,\n onPress,\n ...props\n } = cardProps;\n const {cssProps, nativeProps} = useSeparator<any>({\n variant,\n size,\n ...props\n });\n\n const children = useMemo(() => {\n const ret:any[] = [];\n\n if (header) {\n ret.push(React.isValidElement(header)\n ? React.cloneElement(header, { key: 'header' })\n : <React.Fragment key=\"header\">\n {typeof header == 'function' ? localProps ? header(localProps) : \"\" : header}\n </React.Fragment>);\n }\n\n if (title) {\n ret.push(\n <Heading key=\"title\" size=\"md\" className=\"mb-1\">\n {typeof title == 'function' ? localProps ? title(localProps) : \"\" : title}\n </Heading>\n );\n }\n\n if (subTitle) {\n ret.push(<Text key=\"subTitle\">\n {typeof subTitle == 'function' ? localProps ? subTitle(localProps) : \"\" : subTitle}\n </Text>);\n }\n\n if (CardChildren) {\n ret.push(React.isValidElement(CardChildren)\n ? React.cloneElement(CardChildren, { key: 'CardChildren' })\n : <React.Fragment key=\"CardChildren\">{CardChildren}</React.Fragment>);\n }\n\n if (footer) {\n ret.push(React.isValidElement(footer)\n ? React.cloneElement(footer, { key: 'footer' })\n : <React.Fragment key=\"footer\">\n {typeof footer == 'function' ? localProps ? footer(localProps) : \"\" : footer}\n </React.Fragment>);\n }\n return <>{ret}</>;\n }, [header, title, subTitle, CardChildren]);\n\n\n const classes = useMemo(() => {\n const classes: string[] = [];\n classes.push('shadow-hard-1')\n\n if(className){\n classes.push(className)\n }\n\n return classes.join(\" \");\n }, [className]);\n\n const { entering, exiting, ...restNativeProps } = nativeProps;\n\n const cardElement = (\n <ResponsiveElement\n ref={ref}\n entering={entering}\n exiting={exiting}\n additionalStyles={{\n display: \"flex\",\n width:'auto'\n }}\n additionalClasses={classes}\n cssProps={{...themeStyle, ...(elementStyles.root || {}), ...cssProps}}\n nativeProps={restNativeProps}\n as={'Card'}\n children={children}\n />\n );\n\n if (onPress) {\n return (\n <Pressable onPress={onPress} accessibil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