@mintplayer/react-bootstrap 19.27.0 → 19.29.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/accordion/index.mjs +64 -35
- package/accordion/src/BsAccordion.d.ts +19 -19
- package/accordion/src/index.d.ts +1 -0
- package/calendar/index.mjs +107 -9
- package/calendar/src/generated/BsCalendar.generated.d.ts +24 -0
- package/calendar/src/generated/calendar.view.generated.d.ts +14 -0
- package/calendar/src/generated/index.d.ts +1 -0
- package/calendar/src/index.d.ts +2 -1
- package/card/index.mjs +69 -71
- package/card/src/BsCard.d.ts +15 -6
- package/card/src/BsCardBody.d.ts +1 -3
- package/card/src/BsCardFooter.d.ts +4 -5
- package/card/src/BsCardGroup.d.ts +1 -2
- package/card/src/BsCardHeader.d.ts +5 -9
- package/card/src/BsCardImg.d.ts +2 -3
- package/card/src/BsCardLink.d.ts +1 -3
- package/card/src/BsCardSubtitle.d.ts +2 -3
- package/card/src/BsCardText.d.ts +1 -3
- package/card/src/BsCardTitle.d.ts +1 -3
- package/carousel/index.mjs +150 -24
- package/carousel/src/carousel.react.d.ts +5 -0
- package/carousel/src/generated/BsCarousel.generated.d.ts +30 -0
- package/carousel/src/generated/BsCarouselItem.generated.d.ts +6 -0
- package/carousel/src/generated/carousel-item.view.generated.d.ts +14 -0
- package/carousel/src/generated/carousel.view.generated.d.ts +14 -0
- package/carousel/src/generated/index.d.ts +2 -0
- package/carousel/src/index.d.ts +2 -3
- package/charts/hierarchy/index.mjs +178 -15
- package/charts/hierarchy/src/generated/BsHierarchyChart.generated.d.ts +52 -0
- package/charts/hierarchy/src/generated/hierarchy-chart.view.generated.d.ts +14 -0
- package/charts/hierarchy/src/generated/index.d.ts +1 -0
- package/charts/hierarchy/src/index.d.ts +2 -2
- package/charts/sparkline/index.mjs +35 -8
- package/charts/sparkline/src/BsSparkline.d.ts +21 -3
- package/charts/trend/index.mjs +124 -13
- package/charts/trend/src/generated/BsTrendChart.generated.d.ts +28 -0
- package/charts/trend/src/generated/index.d.ts +1 -0
- package/charts/trend/src/generated/trend-chart.view.generated.d.ts +14 -0
- package/charts/trend/src/index.d.ts +2 -2
- package/checkbox/index.mjs +1 -12
- package/checkbox/src/BsCheckbox.d.ts +29 -9
- package/checkbox/src/index.d.ts +1 -0
- package/chunks/BsCheckbox-BWU2Hrhf.mjs +57 -0
- package/chunks/BsDatatable.generated-am6uNreO.mjs +459 -0
- package/chunks/BsDatetimePicker.generated-B4WBEiCo.mjs +206 -0
- package/chunks/BsRadio-D1C6Aqjv.mjs +48 -0
- package/chunks/BsSplitterPanel.generated-C7r4Nedd.mjs +87 -0
- package/chunks/BsTreeview.generated-djXBc8bl.mjs +100 -0
- package/chunks/react-props-C2O2_2V2.mjs +33 -0
- package/chunks/useMachine-CpK1VckL.mjs +12 -0
- package/code-snippet/index.mjs +118 -13
- package/code-snippet/src/generated/BsCodeSnippet.generated.d.ts +27 -0
- package/code-snippet/src/generated/code-snippet.view.generated.d.ts +14 -0
- package/code-snippet/src/generated/index.d.ts +1 -0
- package/code-snippet/src/index.d.ts +2 -1
- package/datatable/index.mjs +3 -35
- package/datatable/src/generated/BsDatatable.generated.d.ts +83 -0
- package/datatable/src/generated/datatable.view.generated.d.ts +32 -0
- package/datatable/src/generated/index.d.ts +1 -0
- package/datatable/src/index.d.ts +3 -1
- package/datepicker/index.mjs +148 -15
- package/datepicker/src/generated/BsDatepicker.generated.d.ts +35 -0
- package/datepicker/src/generated/datepicker.view.generated.d.ts +14 -0
- package/datepicker/src/generated/index.d.ts +1 -0
- package/datepicker/src/index.d.ts +3 -1
- package/datetime-picker/index.mjs +1 -16
- package/datetime-picker/src/generated/BsDatetimePicker.generated.d.ts +36 -0
- package/datetime-picker/src/generated/datetime-picker.view.generated.d.ts +14 -0
- package/datetime-picker/src/generated/index.d.ts +1 -0
- package/datetime-picker/src/index.d.ts +2 -1
- package/dock/index.mjs +171 -10
- package/dock/src/generated/BsDockManager.generated.d.ts +20 -0
- package/dock/src/generated/dock-manager.view.generated.d.ts +18 -0
- package/dock/src/generated/dock-node.view.generated.d.ts +13 -0
- package/dock/src/generated/index.d.ts +1 -0
- package/dock/src/index.d.ts +3 -1
- package/dropdown-menu/index.mjs +52 -38
- package/dropdown-menu/src/BsDropdownDivider.d.ts +1 -1
- package/dropdown-menu/src/BsDropdownHeader.d.ts +2 -2
- package/dropdown-menu/src/BsDropdownItem.d.ts +7 -10
- package/dropdown-menu/src/BsDropdownMenu.d.ts +15 -17
- package/dropdown-menu/src/index.d.ts +1 -1
- package/file-manager/index.mjs +238 -18
- package/file-manager/src/generated/BsFileManager.generated.d.ts +52 -0
- package/file-manager/src/generated/file-manager.view.generated.d.ts +14 -0
- package/file-manager/src/generated/index.d.ts +1 -0
- package/file-manager/src/index.d.ts +3 -1
- package/input-group/index.mjs +16 -9
- package/input-group/src/BsInputGroup.d.ts +15 -8
- package/machine/index.mjs +94 -1
- package/machine/src/content.d.ts +14 -0
- package/machine/src/core.d.ts +24 -0
- package/machine/src/index.d.ts +3 -0
- package/machine/src/react-props.d.ts +16 -2
- package/machine/src/transfer-state.d.ts +31 -0
- package/multi-range/index.mjs +73 -13
- package/multi-range/src/generated/BsMultiRange.generated.d.ts +28 -0
- package/multi-range/src/generated/index.d.ts +1 -0
- package/multi-range/src/generated/multi-range.view.generated.d.ts +14 -0
- package/multi-range/src/index.d.ts +2 -1
- package/navbar/index.mjs +204 -36
- package/navbar/src/generated/BsNavbar.generated.d.ts +24 -0
- package/navbar/src/generated/BsNavbarDropdown.generated.d.ts +11 -0
- package/navbar/src/generated/BsNavbarItem.generated.d.ts +9 -0
- package/navbar/src/generated/BsNavbarNav.generated.d.ts +8 -0
- package/navbar/src/generated/index.d.ts +4 -0
- package/navbar/src/generated/navbar-dropdown.view.generated.d.ts +17 -0
- package/navbar/src/generated/navbar-item.view.generated.d.ts +14 -0
- package/navbar/src/generated/navbar-nav.view.generated.d.ts +14 -0
- package/navbar/src/generated/navbar.view.generated.d.ts +18 -0
- package/navbar/src/index.d.ts +2 -9
- package/otp-input/index.mjs +83 -13
- package/otp-input/src/generated/BsOtpInput.generated.d.ts +28 -0
- package/otp-input/src/generated/index.d.ts +1 -0
- package/otp-input/src/generated/otp-input.view.generated.d.ts +14 -0
- package/otp-input/src/index.d.ts +2 -1
- package/package.json +7 -6
- package/pagination/index.mjs +43 -9
- package/pagination/src/BsPagination.d.ts +23 -9
- package/phone-input/index.mjs +124 -13
- package/phone-input/src/generated/BsPhoneInput.generated.d.ts +34 -0
- package/phone-input/src/generated/index.d.ts +1 -0
- package/phone-input/src/generated/phone-input.view.generated.d.ts +14 -0
- package/phone-input/src/index.d.ts +2 -1
- package/query-builder/index.mjs +365 -18
- package/query-builder/src/generated/BsQueryBuilder.generated.d.ts +42 -0
- package/query-builder/src/generated/index.d.ts +1 -0
- package/query-builder/src/generated/query-builder-item.view.generated.d.ts +18 -0
- package/query-builder/src/generated/query-builder.view.generated.d.ts +18 -0
- package/query-builder/src/index.d.ts +3 -1
- package/radio/index.mjs +1 -12
- package/radio/src/BsRadio.d.ts +37 -8
- package/radio-group/index.mjs +36 -9
- package/radio-group/src/BsRadioGroup.d.ts +19 -11
- package/ribbon/index.mjs +1048 -99
- package/ribbon/src/generated/BsQuickAccessToolbar.generated.d.ts +8 -0
- package/ribbon/src/generated/BsRibbon.generated.d.ts +30 -0
- package/ribbon/src/generated/BsRibbonButton.generated.d.ts +21 -0
- package/ribbon/src/generated/BsRibbonCheckBox.generated.d.ts +20 -0
- package/ribbon/src/generated/BsRibbonColorPicker.generated.d.ts +20 -0
- package/ribbon/src/generated/BsRibbonComboBox.generated.d.ts +21 -0
- package/ribbon/src/generated/BsRibbonContextualTabSet.generated.d.ts +10 -0
- package/ribbon/src/generated/BsRibbonDropdownButton.generated.d.ts +21 -0
- package/ribbon/src/generated/BsRibbonGallery.generated.d.ts +18 -0
- package/ribbon/src/generated/BsRibbonGalleryItem.generated.d.ts +16 -0
- package/ribbon/src/generated/BsRibbonGroup.generated.d.ts +19 -0
- package/ribbon/src/generated/BsRibbonGroupButton.generated.d.ts +21 -0
- package/ribbon/src/generated/BsRibbonMenuItem.generated.d.ts +19 -0
- package/ribbon/src/generated/BsRibbonMenuSeparator.generated.d.ts +6 -0
- package/ribbon/src/generated/BsRibbonSplitButton.generated.d.ts +25 -0
- package/ribbon/src/generated/BsRibbonTab.generated.d.ts +14 -0
- package/ribbon/src/generated/BsRibbonTemplateItem.generated.d.ts +8 -0
- package/ribbon/src/generated/BsRibbonToggleButton.generated.d.ts +22 -0
- package/ribbon/src/generated/index.d.ts +18 -0
- package/ribbon/src/generated/quick-access-toolbar.view.generated.d.ts +14 -0
- package/ribbon/src/generated/ribbon-button.view.generated.d.ts +16 -0
- package/ribbon/src/generated/ribbon-check-box.view.generated.d.ts +14 -0
- package/ribbon/src/generated/ribbon-color-picker.view.generated.d.ts +14 -0
- package/ribbon/src/generated/ribbon-combo-box.view.generated.d.ts +15 -0
- package/ribbon/src/generated/ribbon-contextual-tab-set.view.generated.d.ts +14 -0
- package/ribbon/src/generated/ribbon-dropdown-button.view.generated.d.ts +16 -0
- package/ribbon/src/generated/ribbon-gallery-item.view.generated.d.ts +16 -0
- package/ribbon/src/generated/ribbon-gallery.view.generated.d.ts +15 -0
- package/ribbon/src/generated/ribbon-group-button.view.generated.d.ts +15 -0
- package/ribbon/src/generated/ribbon-group.view.generated.d.ts +14 -0
- package/ribbon/src/generated/ribbon-menu-item.view.generated.d.ts +16 -0
- package/ribbon/src/generated/ribbon-menu-separator.view.generated.d.ts +14 -0
- package/ribbon/src/generated/ribbon-split-button.view.generated.d.ts +16 -0
- package/ribbon/src/generated/ribbon-tab.view.generated.d.ts +14 -0
- package/ribbon/src/generated/ribbon-template-item.view.generated.d.ts +14 -0
- package/ribbon/src/generated/ribbon-toggle-button.view.generated.d.ts +16 -0
- package/ribbon/src/generated/ribbon.view.generated.d.ts +16 -0
- package/ribbon/src/index.d.ts +3 -1
- package/scheduler/index.mjs +751 -23
- package/scheduler/src/generated/BsScheduler.generated.d.ts +55 -0
- package/scheduler/src/generated/index.d.ts +1 -0
- package/scheduler/src/generated/sched-editor.view.generated.d.ts +13 -0
- package/scheduler/src/generated/sched-month.view.generated.d.ts +13 -0
- package/scheduler/src/generated/sched-popover-event.view.generated.d.ts +13 -0
- package/scheduler/src/generated/sched-popover.view.generated.d.ts +13 -0
- package/scheduler/src/generated/sched-row-panel.view.generated.d.ts +13 -0
- package/scheduler/src/generated/sched-time-grid.view.generated.d.ts +13 -0
- package/scheduler/src/generated/sched-timeline.view.generated.d.ts +13 -0
- package/scheduler/src/generated/sched-year.view.generated.d.ts +13 -0
- package/scheduler/src/generated/scheduler.view.generated.d.ts +14 -0
- package/scheduler/src/index.d.ts +4 -1
- package/select/index.mjs +83 -10
- package/select/src/generated/BsSelect.generated.d.ts +29 -0
- package/select/src/generated/index.d.ts +1 -0
- package/select/src/generated/select.view.generated.d.ts +18 -0
- package/select/src/index.d.ts +2 -1
- package/shell/index.mjs +75 -16
- package/shell/src/BsShell.d.ts +30 -20
- package/shell/src/index.d.ts +2 -2
- package/signature-pad/index.mjs +81 -10
- package/signature-pad/src/generated/BsSignaturePad.generated.d.ts +25 -0
- package/signature-pad/src/generated/index.d.ts +1 -0
- package/signature-pad/src/generated/signature-pad.view.generated.d.ts +14 -0
- package/signature-pad/src/index.d.ts +2 -2
- package/splitter/index.mjs +1 -16
- package/splitter/src/generated/BsSplitter.generated.d.ts +21 -0
- package/splitter/src/generated/BsSplitterPanel.generated.d.ts +6 -0
- package/splitter/src/generated/index.d.ts +2 -0
- package/splitter/src/generated/splitter-panel.view.generated.d.ts +14 -0
- package/splitter/src/generated/splitter.view.generated.d.ts +14 -0
- package/splitter/src/index.d.ts +2 -1
- package/src/index.d.ts +4 -5
- package/tab-control/index.mjs +88 -13
- package/tab-control/src/BsTabControl.d.ts +40 -11
- package/theming/index.mjs +73 -29
- package/theming/src/generated/BsThemeToggle.generated.d.ts +14 -0
- package/theming/src/generated/index.d.ts +1 -0
- package/theming/src/generated/theme-toggle.view.generated.d.ts +14 -0
- package/theming/src/index.d.ts +2 -2
- package/theming/src/useBsTheme.d.ts +2 -2
- package/tile-manager/index.mjs +42 -41
- package/timeline/index.mjs +209 -80
- package/timeline/src/generated/BsTimeline.generated.d.ts +36 -0
- package/timeline/src/generated/BsTimelineItem.generated.d.ts +23 -0
- package/timeline/src/generated/index.d.ts +2 -0
- package/timeline/src/generated/timeline-item.view.generated.d.ts +19 -0
- package/timeline/src/generated/timeline.view.generated.d.ts +39 -0
- package/timeline/src/index.d.ts +3 -4
- package/timepicker/index.mjs +156 -15
- package/timepicker/src/generated/BsTimeList.generated.d.ts +20 -0
- package/timepicker/src/generated/BsTimepicker.generated.d.ts +31 -0
- package/timepicker/src/generated/index.d.ts +2 -0
- package/timepicker/src/generated/time-list.view.generated.d.ts +14 -0
- package/timepicker/src/generated/timepicker.view.generated.d.ts +14 -0
- package/timepicker/src/index.d.ts +2 -2
- package/toggle-button/index.mjs +9 -8
- package/toggle-button/src/BsToggleButton.d.ts +6 -8
- package/toggle-button/src/index.d.ts +1 -1
- package/tree-select/index.mjs +253 -17
- package/tree-select/src/generated/BsTreeSelect.generated.d.ts +46 -0
- package/tree-select/src/generated/index.d.ts +1 -0
- package/tree-select/src/generated/tree-select.view.generated.d.ts +31 -0
- package/tree-select/src/index.d.ts +3 -3
- package/treeview/index.mjs +1 -16
- package/treeview/src/generated/BsTreeview.generated.d.ts +36 -0
- package/treeview/src/generated/index.d.ts +1 -0
- package/treeview/src/generated/treeview.view.generated.d.ts +20 -0
- package/treeview/src/index.d.ts +2 -1
- package/typeahead/index.mjs +87 -76
- package/calendar/src/BsCalendar.d.ts +0 -8
- package/carousel/src/BsCarousel.d.ts +0 -25
- package/charts/hierarchy/src/BsHierarchyChart.d.ts +0 -13
- package/charts/trend/src/BsTrendChart.d.ts +0 -7
- package/chunks/react-props-iXE6Az5D.mjs +0 -27
- package/code-snippet/src/BsCodeSnippet.d.ts +0 -21
- package/datatable/src/BsDatatable.d.ts +0 -85
- package/datepicker/src/BsDatepicker.d.ts +0 -17
- package/datetime-picker/src/BsDatetimePicker.d.ts +0 -13
- package/dock/src/BsDockManager.d.ts +0 -17
- package/file-manager/src/BsFileManager.d.ts +0 -20
- package/multi-range/src/BsMultiRange.d.ts +0 -12
- package/navbar/src/BsNavbar.d.ts +0 -33
- package/navbar/src/BsNavbarBrand.d.ts +0 -17
- package/navbar/src/BsNavbarDropdown.d.ts +0 -23
- package/navbar/src/BsNavbarItem.d.ts +0 -21
- package/otp-input/src/BsOtpInput.d.ts +0 -11
- package/phone-input/src/BsPhoneInput.d.ts +0 -22
- package/query-builder/src/BsQueryBuilder.d.ts +0 -29
- package/react-bootstrap.css +0 -2
- package/ribbon/src/BsRibbon.d.ts +0 -82
- package/scheduler/src/BsScheduler.d.ts +0 -35
- package/select/src/BsSelect.d.ts +0 -15
- package/signature-pad/src/BsSignaturePad.d.ts +0 -11
- package/splitter/src/BsSplitter.d.ts +0 -18
- package/theming/src/BsThemeToggle.d.ts +0 -22
- package/timeline/src/BsTimeline.d.ts +0 -33
- package/timeline/src/BsTimelineItem.d.ts +0 -11
- package/timepicker/src/BsTimeList.d.ts +0 -11
- package/timepicker/src/BsTimepicker.d.ts +0 -11
- package/tree-select/src/BsTreeSelect.d.ts +0 -24
- package/treeview/src/BsTreeview.d.ts +0 -14
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NavbarDropdownView } from '@mintplayer/ui-core/navbar';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type NavbarDropdownTemplateProps = {
|
|
4
|
+
view: NavbarDropdownView;
|
|
5
|
+
label?: string;
|
|
6
|
+
} & {
|
|
7
|
+
slots?: {
|
|
8
|
+
labelTemplate?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
/** Merged onto the root element after the bag. */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
14
|
+
attrs?: Record<string, unknown>;
|
|
15
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['details']>;
|
|
16
|
+
};
|
|
17
|
+
export declare function NavbarDropdownTemplate({ view, label, slots, children, className, attrs, rootRef }: NavbarDropdownTemplateProps): React.ReactElement;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NavbarBag } from '@mintplayer/ui-core/navbar';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type NavbarItemTemplateProps = {
|
|
4
|
+
bag: NavbarBag;
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {};
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Merged onto the root element after the bag. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
11
|
+
attrs?: Record<string, unknown>;
|
|
12
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['div']>;
|
|
13
|
+
};
|
|
14
|
+
export declare function NavbarItemTemplate({ bag, slots, children, className, attrs, rootRef }: NavbarItemTemplateProps): React.ReactElement;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NavbarBag } from '@mintplayer/ui-core/navbar';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type NavbarNavTemplateProps = {
|
|
4
|
+
bag: NavbarBag;
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {};
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Merged onto the root element after the bag. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
11
|
+
attrs?: Record<string, unknown>;
|
|
12
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['div']>;
|
|
13
|
+
};
|
|
14
|
+
export declare function NavbarNavTemplate({ bag, slots, children, className, attrs, rootRef }: NavbarNavTemplateProps): React.ReactElement;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NavbarBag, NavbarView } from '@mintplayer/ui-core/navbar';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type NavbarTemplateProps = {
|
|
4
|
+
view: NavbarView;
|
|
5
|
+
brand: NavbarBag;
|
|
6
|
+
} & {
|
|
7
|
+
slots?: {
|
|
8
|
+
brand?: React.ReactNode;
|
|
9
|
+
toggler?: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
/** Merged onto the root element after the bag. */
|
|
13
|
+
className?: string;
|
|
14
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
15
|
+
attrs?: Record<string, unknown>;
|
|
16
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['nav']>;
|
|
17
|
+
};
|
|
18
|
+
export declare function NavbarTemplate({ view, brand, slots, children, className, attrs, rootRef }: NavbarTemplateProps): React.ReactElement;
|
package/navbar/src/index.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type {
|
|
3
|
-
export { BsNavbarItem } from './BsNavbarItem';
|
|
4
|
-
export type { BsNavbarItemProps } from './BsNavbarItem';
|
|
5
|
-
export { BsNavbarBrand } from './BsNavbarBrand';
|
|
6
|
-
export type { BsNavbarBrandProps } from './BsNavbarBrand';
|
|
7
|
-
export { BsNavbarDropdown } from './BsNavbarDropdown';
|
|
8
|
-
export type { BsNavbarDropdownProps } from './BsNavbarDropdown';
|
|
9
|
-
export type { NavbarBreakpoint, NavbarExpandedChangeEventDetail } from '@mintplayer/web-components/navbar';
|
|
1
|
+
export * from './generated';
|
|
2
|
+
export type { NavbarBreakpoint, NavbarExpandedChangeEventDetail, NavbarLabels } from '@mintplayer/ui-core/navbar';
|
package/otp-input/index.mjs
CHANGED
|
@@ -1,15 +1,85 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { r as e, t } from "../chunks/react-props-C2O2_2V2.mjs";
|
|
2
|
+
import { useCore as n } from "../machine/index.mjs";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import { forwardRef as i, useImperativeHandle as a, useRef as o } from "react";
|
|
5
|
+
import { installLightStyles as s } from "@mintplayer/ui-core/scoped-styles";
|
|
6
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
+
import { otpInputCore as d, otpInputScopedStyles as f } from "@mintplayer/ui-core/otp-input";
|
|
8
|
+
//#region libs/mintplayer-react-bootstrap/otp-input/src/generated/otp-input.view.generated.tsx
|
|
9
|
+
function p({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRef: d }) {
|
|
10
|
+
return /* @__PURE__ */ l(c, { children: /* @__PURE__ */ u("div", {
|
|
11
|
+
"data-mps": "otp-input",
|
|
12
|
+
...e(n.root),
|
|
13
|
+
ref: d,
|
|
14
|
+
className: [n.root.class, o].filter(Boolean).join(" ") || void 0,
|
|
15
|
+
children: [/* @__PURE__ */ u("div", {
|
|
16
|
+
"data-mps": "otp-input",
|
|
17
|
+
...e(n.container),
|
|
18
|
+
children: [/* @__PURE__ */ l("input", {
|
|
19
|
+
"data-mps": "otp-input",
|
|
20
|
+
...t(n.input),
|
|
21
|
+
...s,
|
|
22
|
+
role: n.input.role ?? s?.role
|
|
23
|
+
}), n.boxes.map((t, i) => /* @__PURE__ */ l(r.Fragment, { children: /* @__PURE__ */ u("span", {
|
|
24
|
+
"data-mps": "otp-input",
|
|
25
|
+
...e(t.bag),
|
|
26
|
+
children: [/* @__PURE__ */ l("span", {
|
|
27
|
+
"data-mps": "otp-input",
|
|
28
|
+
...e(n.spacer),
|
|
29
|
+
children: t.spacer
|
|
30
|
+
}), /* @__PURE__ */ l("span", {
|
|
31
|
+
"data-mps": "otp-input",
|
|
32
|
+
...e(n.content),
|
|
33
|
+
children: t.content
|
|
34
|
+
})]
|
|
35
|
+
}) }, t.key))]
|
|
36
|
+
}), n.showFeedback ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("div", {
|
|
37
|
+
"data-mps": "otp-input",
|
|
38
|
+
...e(n.feedback.attrs),
|
|
39
|
+
children: n.feedback.text
|
|
40
|
+
}) }) : null]
|
|
41
|
+
}) });
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region libs/mintplayer-react-bootstrap/otp-input/src/generated/BsOtpInput.generated.tsx
|
|
45
|
+
var m = [
|
|
46
|
+
1,
|
|
47
|
+
1,
|
|
48
|
+
1,
|
|
49
|
+
1,
|
|
50
|
+
1,
|
|
51
|
+
1
|
|
52
|
+
], h = i(function({ groups: e = m, type: t = "numeric", letterCase: r = "upper", size: i = "md", disabled: c = !1, required: u = !1, invalid: h = !1, errorText: g, name: _, inputLabel: v, value: y = "", onValueChange: b, onComplete: x, className: S, children: C, ...w }, T) {
|
|
53
|
+
s("otp-input", f);
|
|
54
|
+
let E = o(null);
|
|
55
|
+
a(T, () => E.current);
|
|
56
|
+
let D = n(d, {
|
|
57
|
+
groups: e,
|
|
58
|
+
type: t,
|
|
59
|
+
letterCase: r,
|
|
60
|
+
size: i,
|
|
61
|
+
disabled: c,
|
|
62
|
+
required: u,
|
|
63
|
+
invalid: h,
|
|
64
|
+
errorText: g,
|
|
65
|
+
name: _,
|
|
66
|
+
inputLabel: v,
|
|
67
|
+
value: y
|
|
68
|
+
}, {
|
|
69
|
+
idPrefix: "bs-otp-input",
|
|
70
|
+
label: w["aria-label"],
|
|
71
|
+
rootRef: E,
|
|
72
|
+
emit: (e, t) => {
|
|
73
|
+
e === "valueChange" && b?.(t), e === "complete" && x?.(t);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
return /* @__PURE__ */ l(p, {
|
|
77
|
+
...D.props,
|
|
78
|
+
className: S,
|
|
79
|
+
attrs: w,
|
|
80
|
+
rootRef: E,
|
|
81
|
+
children: C
|
|
82
|
+
});
|
|
13
83
|
});
|
|
14
84
|
//#endregion
|
|
15
|
-
export {
|
|
85
|
+
export { h as BsOtpInput };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OtpInputInputs } from '@mintplayer/ui-core/otp-input';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface BsOtpInputProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['input']>, 'groups' | 'type' | 'letterCase' | 'size' | 'disabled' | 'required' | 'invalid' | 'errorText' | 'name' | 'inputLabel' | 'value' | 'onValueChange' | 'onComplete'> {
|
|
4
|
+
groups?: OtpInputInputs['groups'];
|
|
5
|
+
type?: OtpInputInputs['type'];
|
|
6
|
+
letterCase?: OtpInputInputs['letterCase'];
|
|
7
|
+
size?: OtpInputInputs['size'];
|
|
8
|
+
disabled?: OtpInputInputs['disabled'];
|
|
9
|
+
required?: OtpInputInputs['required'];
|
|
10
|
+
invalid?: OtpInputInputs['invalid'];
|
|
11
|
+
errorText?: OtpInputInputs['errorText'];
|
|
12
|
+
name?: OtpInputInputs['name'];
|
|
13
|
+
inputLabel?: OtpInputInputs['inputLabel'];
|
|
14
|
+
value?: OtpInputInputs['value'];
|
|
15
|
+
/** Every keystroke, paste and clear: the current, possibly partial, code. */
|
|
16
|
+
onValueChange?: (detail: string) => void;
|
|
17
|
+
/** The user filled the last box. */
|
|
18
|
+
onComplete?: (detail: string) => void;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A segmented one-time-code input (#437): one real `<input>` behind decorative boxes.
|
|
23
|
+
*
|
|
24
|
+
* With JavaScript off it is a plain `.form-control` that takes the code and submits under `name`.
|
|
25
|
+
* `groups` sets the boxes (`[1,1,1,1,1,1]`, or `[5,5,5,5,5]` for a product key). `value` is two-way;
|
|
26
|
+
* `complete` fires when the user fills the last box. An `aria-label` on the component names the input.
|
|
27
|
+
*/
|
|
28
|
+
export declare const BsOtpInput: React.ForwardRefExoticComponent<BsOtpInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsOtpInput, type BsOtpInputProps } from './BsOtpInput.generated';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OtpInputView } from '@mintplayer/ui-core/otp-input';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type OtpInputTemplateProps = {
|
|
4
|
+
view: OtpInputView;
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {};
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Merged onto the root element after the bag. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
11
|
+
attrs?: Record<string, unknown>;
|
|
12
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['div']>;
|
|
13
|
+
};
|
|
14
|
+
export declare function OtpInputTemplate({ view, slots, children, className, attrs, rootRef }: OtpInputTemplateProps): React.ReactElement;
|
package/otp-input/src/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './generated';
|
|
2
|
+
export type { OtpInputCase, OtpInputSize, OtpInputType } from '@mintplayer/ui-core/otp-input';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/react-bootstrap",
|
|
3
|
-
"version": "19.
|
|
4
|
-
"description": "React 19
|
|
3
|
+
"version": "19.29.0",
|
|
4
|
+
"description": "React 19 Bootstrap components. Each sub-entry renders its own JSX over a framework-neutral core from @mintplayer/ui-core, so it server-renders real HTML and defines no custom elements.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -188,13 +188,14 @@
|
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
190
|
"peerDependencies": {
|
|
191
|
-
"@mintplayer/ui-core": "^1.
|
|
191
|
+
"@mintplayer/ui-core": "^1.3.0",
|
|
192
192
|
"react": "^19.0.0",
|
|
193
|
-
"react-dom": "^19.0.0"
|
|
194
|
-
"@lit/react": "^1.0.0",
|
|
195
|
-
"@mintplayer/web-components": "^3.1.0"
|
|
193
|
+
"react-dom": "^19.0.0"
|
|
196
194
|
},
|
|
197
195
|
"dependencies": {
|
|
198
196
|
"tslib": "^2.3.0"
|
|
197
|
+
},
|
|
198
|
+
"publishConfig": {
|
|
199
|
+
"tag": "latest"
|
|
199
200
|
}
|
|
200
201
|
}
|
package/pagination/index.mjs
CHANGED
|
@@ -1,12 +1,46 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { r as e } from "../chunks/react-props-C2O2_2V2.mjs";
|
|
2
|
+
import { forwardRef as t, useState as n } from "react";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
import { connectPagination as i, isPlainClick as a } from "@mintplayer/ui-core/pagination";
|
|
4
5
|
//#region libs/mintplayer-react-bootstrap/pagination/src/BsPagination.tsx
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
var o = t(function(t, o) {
|
|
7
|
+
let { pageNumbers: s = [], selectedPageNumber: c, defaultSelectedPageNumber: l = 1, numberOfBoxes: u = 0, showArrows: d = !0, size: f = "medium", labels: p = null, hrefFor: m = null, onPageChange: h, ...g } = t, [_, v] = n(l), y = c ?? _, b = i({
|
|
8
|
+
pageNumbers: s,
|
|
9
|
+
selectedPageNumber: y,
|
|
10
|
+
numberOfBoxes: u,
|
|
11
|
+
showArrows: d,
|
|
12
|
+
size: f,
|
|
13
|
+
labels: p,
|
|
14
|
+
hrefFor: m
|
|
15
|
+
}), x = (e) => {
|
|
16
|
+
e !== null && e !== y && (v(e), h?.(e));
|
|
17
|
+
};
|
|
18
|
+
return /* @__PURE__ */ r("nav", {
|
|
19
|
+
...e(b.nav),
|
|
20
|
+
...g,
|
|
21
|
+
ref: o,
|
|
22
|
+
children: /* @__PURE__ */ r("ul", {
|
|
23
|
+
className: b.listClass,
|
|
24
|
+
children: b.entries.map((t) => /* @__PURE__ */ r("li", {
|
|
25
|
+
className: t.itemClass,
|
|
26
|
+
children: t.kind === "gap" ? /* @__PURE__ */ r("span", {
|
|
27
|
+
...e(t.attrs),
|
|
28
|
+
children: t.text
|
|
29
|
+
}) : b.tag === "a" ? /* @__PURE__ */ r("a", {
|
|
30
|
+
...e(t.attrs),
|
|
31
|
+
href: t.href ?? void 0,
|
|
32
|
+
onClick: (e) => {
|
|
33
|
+
a(e.nativeEvent) && (e.preventDefault(), x(t.target));
|
|
34
|
+
},
|
|
35
|
+
children: t.text
|
|
36
|
+
}) : /* @__PURE__ */ r("button", {
|
|
37
|
+
...e(t.attrs),
|
|
38
|
+
onClick: () => x(t.target),
|
|
39
|
+
children: t.text
|
|
40
|
+
})
|
|
41
|
+
}, t.key))
|
|
42
|
+
})
|
|
43
|
+
});
|
|
10
44
|
});
|
|
11
45
|
//#endregion
|
|
12
|
-
export {
|
|
46
|
+
export { o as BsPagination };
|
|
@@ -1,11 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { PaginationLabels, PaginationSize } from '@mintplayer/ui-core/pagination';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface BsPaginationProps extends Omit<React.HTMLAttributes<HTMLElement>, 'children'> {
|
|
4
|
+
pageNumbers?: number[];
|
|
5
|
+
/** Controlled selected page. Pair with `onPageChange`. */
|
|
6
|
+
selectedPageNumber?: number;
|
|
7
|
+
/** Uncontrolled initial page. */
|
|
8
|
+
defaultSelectedPageNumber?: number;
|
|
9
|
+
/** Cap on visible boxes, arrows included (0 = uncapped). */
|
|
10
|
+
numberOfBoxes?: number;
|
|
11
|
+
showArrows?: boolean;
|
|
12
|
+
size?: PaginationSize;
|
|
13
|
+
/** Localized accessible names; missing keys fall back to English. */
|
|
14
|
+
labels?: Partial<PaginationLabels> | null;
|
|
15
|
+
/** Renders every page as a link to this URL, so it works without JavaScript. */
|
|
16
|
+
hrefFor?: ((page: number) => string) | null;
|
|
17
|
+
onPageChange?: (page: number) => void;
|
|
18
|
+
}
|
|
3
19
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* (`
|
|
7
|
-
*
|
|
20
|
+
* Bootstrap's `.pagination` markup (#437) from `@mintplayer/ui-core/pagination`.
|
|
21
|
+
* Pages are buttons; with `hrefFor` they are links and a plain click selects
|
|
22
|
+
* in place. Consumer props (`aria-*`, `id`, handlers) land on the `<nav>`,
|
|
23
|
+
* which is also the ref.
|
|
8
24
|
*/
|
|
9
|
-
export declare const BsPagination:
|
|
10
|
-
onMpPaginationPageChange: EventName<CustomEvent<PageChangeEventDetail>>;
|
|
11
|
-
}>;
|
|
25
|
+
export declare const BsPagination: React.ForwardRefExoticComponent<BsPaginationProps & React.RefAttributes<HTMLElement>>;
|
package/phone-input/index.mjs
CHANGED
|
@@ -1,15 +1,126 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { n as e, r as t, t as n } from "../chunks/react-props-C2O2_2V2.mjs";
|
|
2
|
+
import { useCore as r } from "../machine/index.mjs";
|
|
3
|
+
import * as i from "react";
|
|
4
|
+
import { forwardRef as a, useImperativeHandle as o, useRef as s } from "react";
|
|
5
|
+
import { installLightStyles as c } from "@mintplayer/ui-core/scoped-styles";
|
|
6
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
+
import { phoneInputCore as f, phoneInputScopedStyles as p } from "@mintplayer/ui-core/phone-input";
|
|
8
|
+
//#region libs/mintplayer-react-bootstrap/phone-input/src/generated/phone-input.view.generated.tsx
|
|
9
|
+
function m({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
|
|
10
|
+
return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
|
|
11
|
+
"data-mps": "phone-input",
|
|
12
|
+
...t(r.root),
|
|
13
|
+
ref: f,
|
|
14
|
+
className: [r.root.class, s].filter(Boolean).join(" ") || void 0,
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ d("div", {
|
|
17
|
+
"data-mps": "phone-input",
|
|
18
|
+
...t(r.group),
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ d("select", {
|
|
21
|
+
"data-mps": "phone-input",
|
|
22
|
+
...n(r.select),
|
|
23
|
+
children: [r.rich ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("button", {
|
|
24
|
+
"data-mps": "phone-input",
|
|
25
|
+
type: "button",
|
|
26
|
+
children: i.createElement("selectedcontent")
|
|
27
|
+
}) }) : null, r.options.map((n, a) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u("option", {
|
|
28
|
+
"data-mps": "phone-input",
|
|
29
|
+
...e(n.bag),
|
|
30
|
+
children: r.rich ? /* @__PURE__ */ d(l, { children: [
|
|
31
|
+
/* @__PURE__ */ u("span", {
|
|
32
|
+
"data-mps": "phone-input",
|
|
33
|
+
...t(r.flagBox),
|
|
34
|
+
dangerouslySetInnerHTML: { __html: n.flag }
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ u("span", {
|
|
37
|
+
"data-mps": "phone-input",
|
|
38
|
+
...t(r.richLabel),
|
|
39
|
+
children: n.name
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ u("span", {
|
|
42
|
+
"data-mps": "phone-input",
|
|
43
|
+
...t(r.listOnly),
|
|
44
|
+
children: n.dial
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ u("span", {
|
|
47
|
+
"data-mps": "phone-input",
|
|
48
|
+
...t(r.closedOnly),
|
|
49
|
+
children: n.iso
|
|
50
|
+
})
|
|
51
|
+
] }) : /* @__PURE__ */ u(l, { children: n.label })
|
|
52
|
+
}) }, n.key))]
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ d("span", {
|
|
55
|
+
"data-mps": "phone-input",
|
|
56
|
+
...t(r.addon),
|
|
57
|
+
children: [/* @__PURE__ */ u("span", {
|
|
58
|
+
"data-mps": "phone-input",
|
|
59
|
+
...t(r.flag),
|
|
60
|
+
dangerouslySetInnerHTML: { __html: r.flagHtml }
|
|
61
|
+
}), /* @__PURE__ */ u("span", {
|
|
62
|
+
"data-mps": "phone-input",
|
|
63
|
+
...t(r.dial),
|
|
64
|
+
children: r.dialText
|
|
65
|
+
})]
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ u("input", {
|
|
68
|
+
"data-mps": "phone-input",
|
|
69
|
+
...n(r.input),
|
|
70
|
+
...c,
|
|
71
|
+
role: r.input.role ?? c?.role
|
|
72
|
+
})
|
|
73
|
+
]
|
|
74
|
+
}),
|
|
75
|
+
r.hidden ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("input", {
|
|
76
|
+
"data-mps": "phone-input",
|
|
77
|
+
...n(r.hidden)
|
|
78
|
+
}) }) : null,
|
|
79
|
+
r.showFeedback ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("div", {
|
|
80
|
+
"data-mps": "phone-input",
|
|
81
|
+
...t(r.feedback.attrs),
|
|
82
|
+
children: r.feedback.text
|
|
83
|
+
}) }) : null
|
|
84
|
+
]
|
|
85
|
+
}) });
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region libs/mintplayer-react-bootstrap/phone-input/src/generated/BsPhoneInput.generated.tsx
|
|
89
|
+
var h = a(function({ value: e = null, country: t = null, defaultCountry: n, locale: i, preferredCountries: a = null, allowedCountries: l = null, disabled: d = !1, required: h = !1, invalid: g = !1, errorText: _, placeholder: v, autocomplete: y = "tel-national", name: b, inputLabel: x, countryLabel: S, onValueChange: C, onCountryChange: w, onPhoneChange: T, className: E, children: D, ...O }, k) {
|
|
90
|
+
c("phone-input", p);
|
|
91
|
+
let A = s(null);
|
|
92
|
+
o(k, () => A.current);
|
|
93
|
+
let j = r(f, {
|
|
94
|
+
value: e,
|
|
95
|
+
country: t,
|
|
96
|
+
defaultCountry: n,
|
|
97
|
+
locale: i,
|
|
98
|
+
preferredCountries: a,
|
|
99
|
+
allowedCountries: l,
|
|
100
|
+
disabled: d,
|
|
101
|
+
required: h,
|
|
102
|
+
invalid: g,
|
|
103
|
+
errorText: _,
|
|
104
|
+
placeholder: v,
|
|
105
|
+
autocomplete: y,
|
|
106
|
+
name: b,
|
|
107
|
+
inputLabel: x,
|
|
108
|
+
countryLabel: S
|
|
109
|
+
}, {
|
|
110
|
+
idPrefix: "bs-phone-input",
|
|
111
|
+
label: O["aria-label"],
|
|
112
|
+
rootRef: A,
|
|
113
|
+
emit: (e, t) => {
|
|
114
|
+
e === "valueChange" && C?.(t), e === "countryChange" && w?.(t), e === "phoneChange" && T?.(t);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
return /* @__PURE__ */ u(m, {
|
|
118
|
+
...j.props,
|
|
119
|
+
className: E,
|
|
120
|
+
attrs: O,
|
|
121
|
+
rootRef: A,
|
|
122
|
+
children: D
|
|
123
|
+
});
|
|
13
124
|
});
|
|
14
125
|
//#endregion
|
|
15
|
-
export {
|
|
126
|
+
export { h as BsPhoneInput };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PhoneChangeEventDetail, PhoneInputInputs } from '@mintplayer/ui-core/phone-input';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface BsPhoneInputProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['input']>, 'value' | 'country' | 'defaultCountry' | 'locale' | 'preferredCountries' | 'allowedCountries' | 'disabled' | 'required' | 'invalid' | 'errorText' | 'placeholder' | 'autocomplete' | 'name' | 'inputLabel' | 'countryLabel' | 'onValueChange' | 'onCountryChange' | 'onPhoneChange'> {
|
|
4
|
+
value?: PhoneInputInputs['value'];
|
|
5
|
+
country?: PhoneInputInputs['country'];
|
|
6
|
+
defaultCountry?: PhoneInputInputs['defaultCountry'];
|
|
7
|
+
locale?: PhoneInputInputs['locale'];
|
|
8
|
+
preferredCountries?: PhoneInputInputs['preferredCountries'];
|
|
9
|
+
allowedCountries?: PhoneInputInputs['allowedCountries'];
|
|
10
|
+
disabled?: PhoneInputInputs['disabled'];
|
|
11
|
+
required?: PhoneInputInputs['required'];
|
|
12
|
+
invalid?: PhoneInputInputs['invalid'];
|
|
13
|
+
errorText?: PhoneInputInputs['errorText'];
|
|
14
|
+
placeholder?: PhoneInputInputs['placeholder'];
|
|
15
|
+
autocomplete?: PhoneInputInputs['autocomplete'];
|
|
16
|
+
name?: PhoneInputInputs['name'];
|
|
17
|
+
inputLabel?: PhoneInputInputs['inputLabel'];
|
|
18
|
+
countryLabel?: PhoneInputInputs['countryLabel'];
|
|
19
|
+
/** The E.164 value changed (null while empty). */
|
|
20
|
+
onValueChange?: (detail: string | null) => void;
|
|
21
|
+
/** The user picked a country, or typed a `+XX` that switched it. */
|
|
22
|
+
onCountryChange?: (detail: string) => void;
|
|
23
|
+
/** Every edit, pick and rules load: the value with its parts and validity. */
|
|
24
|
+
onPhoneChange?: (detail: PhoneChangeEventDetail) => void;
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A phone-number field (#437): country picker with flags, dial code, and a number input that formats as
|
|
29
|
+
* the user types. `value` is two-way E.164 (`+32470123456`); `country` is two-way too.
|
|
30
|
+
*
|
|
31
|
+
* With JavaScript off it is a plain country select and tel input; the typed text submits under `name`.
|
|
32
|
+
* An `aria-label` on the component names the number input; `countryLabel` names the picker.
|
|
33
|
+
*/
|
|
34
|
+
export declare const BsPhoneInput: React.ForwardRefExoticComponent<BsPhoneInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsPhoneInput, type BsPhoneInputProps } from './BsPhoneInput.generated';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PhoneInputView } from '@mintplayer/ui-core/phone-input';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type PhoneInputTemplateProps = {
|
|
4
|
+
view: PhoneInputView;
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {};
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Merged onto the root element after the bag. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
11
|
+
attrs?: Record<string, unknown>;
|
|
12
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['div']>;
|
|
13
|
+
};
|
|
14
|
+
export declare function PhoneInputTemplate({ view, slots, children, className, attrs, rootRef }: PhoneInputTemplateProps): React.ReactElement;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './generated';
|
|
2
|
+
export type { PhoneChangeEventDetail } from '@mintplayer/ui-core/phone-input';
|