@mintplayer/react-bootstrap 19.11.0 → 19.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/input-group/index.mjs +12 -0
- package/input-group/src/BsInputGroup.d.ts +10 -0
- package/input-group/src/index.d.ts +1 -0
- package/package.json +1 -1
- package/phone-input/index.mjs +15 -0
- package/phone-input/src/BsPhoneInput.d.ts +22 -0
- package/phone-input/src/index.d.ts +1 -0
- package/scheduler/src/BsScheduler.d.ts +4 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { createComponent as o } from "@lit/react";
|
|
3
|
+
import { MpInputGroup as p } from "@mintplayer/web-components/input-group";
|
|
4
|
+
const m = o({
|
|
5
|
+
react: t,
|
|
6
|
+
tagName: "mp-input-group",
|
|
7
|
+
elementClass: p,
|
|
8
|
+
events: {}
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
m as BsInputGroup
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MpInputGroup } from '@mintplayer/web-components/input-group';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for `<mp-input-group>` — joins its children into one visually
|
|
4
|
+
* continuous control. No events to surface; children pass through as light DOM,
|
|
5
|
+
* which is exactly what the group styles.
|
|
6
|
+
*
|
|
7
|
+
* Consumers slot native controls, `<BsSelect>`, `<BsPhoneInput>` or anything
|
|
8
|
+
* else; the group is authoritative about the corners and the 1px overlap.
|
|
9
|
+
*/
|
|
10
|
+
export declare const BsInputGroup: import('@lit/react').ReactWebComponent<MpInputGroup, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsInputGroup } from './BsInputGroup';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/react-bootstrap",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.14.0",
|
|
4
4
|
"description": "React 19 wrappers around @mintplayer/web-components. Each sub-entry maps one-to-one with a WC sub-entry and exposes typed React components via @lit/react's createComponent.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as n } from "@lit/react";
|
|
3
|
+
import { MpPhoneInput as o } from "@mintplayer/web-components/phone-input";
|
|
4
|
+
const p = n({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-phone-input",
|
|
7
|
+
elementClass: o,
|
|
8
|
+
events: {
|
|
9
|
+
onValueChange: "value-change",
|
|
10
|
+
onCountryChange: "country-change"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
p as BsPhoneInput
|
|
15
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpPhoneInput, CountryChangeEventDetail, PhoneChangeEventDetail } from '@mintplayer/web-components/phone-input';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-phone-input>`: country picker with flags, a dial code
|
|
5
|
+
* that cannot be edited away, and as-you-type formatting. `value` is E.164.
|
|
6
|
+
*
|
|
7
|
+
* Controlled usage is `value` + `onValueChange`, whose detail carries the
|
|
8
|
+
* decomposed parts — `valid` is `undefined` until the selected country's rules
|
|
9
|
+
* have loaded, which is deliberate rather than optimistic.
|
|
10
|
+
*
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <BsPhoneInput
|
|
13
|
+
* value={phone}
|
|
14
|
+
* defaultCountry="be"
|
|
15
|
+
* onValueChange={(e) => setPhone(e.detail.value)}
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare const BsPhoneInput: import('@lit/react').ReactWebComponent<MpPhoneInput, {
|
|
20
|
+
onValueChange: EventName<CustomEvent<PhoneChangeEventDetail>>;
|
|
21
|
+
onCountryChange: EventName<CustomEvent<CountryChangeEventDetail>>;
|
|
22
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsPhoneInput } from './BsPhoneInput';
|
|
@@ -14,8 +14,10 @@ import { SchedulerEventMap } from '@mintplayer/web-components/scheduler-core';
|
|
|
14
14
|
*
|
|
15
15
|
* Note: `events` and `resources` props are JS-shaped (arrays of
|
|
16
16
|
* SchedulerEvent / Resource); @lit/react forwards them as element
|
|
17
|
-
* properties. `readonly`
|
|
18
|
-
* the
|
|
17
|
+
* properties. `readonly` and `eventEditor` (the built-in editor's on/off
|
|
18
|
+
* switch, default on) are real properties on the element, so they forward
|
|
19
|
+
* the same way — `eventEditor={false}` disables the editor while
|
|
20
|
+
* `onEventDblClick` keeps firing for an app-owned one.
|
|
19
21
|
*/
|
|
20
22
|
export declare const BsScheduler: import('@lit/react').ReactWebComponent<MpScheduler, {
|
|
21
23
|
onEventSelected: EventName<SchedulerEventMap["event-selected"]>;
|