@mintplayer/react-bootstrap 19.23.0 → 19.24.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 +38 -58
- package/calendar/index.mjs +9 -9
- package/card/index.mjs +102 -67
- package/card/src/BsCardBody.d.ts +2 -2
- package/card/src/BsCardFooter.d.ts +2 -2
- package/card/src/BsCardGroup.d.ts +4 -3
- package/card/src/BsCardHeader.d.ts +2 -2
- package/card/src/BsCardImg.d.ts +1 -1
- package/card/src/BsCardLink.d.ts +2 -2
- package/card/src/BsCardSubtitle.d.ts +2 -2
- package/card/src/BsCardText.d.ts +2 -2
- package/card/src/BsCardTitle.d.ts +2 -2
- package/carousel/index.mjs +27 -30
- package/charts/hierarchy/index.mjs +16 -16
- package/charts/sparkline/index.mjs +9 -9
- package/charts/trend/index.mjs +12 -12
- package/checkbox/index.mjs +10 -12
- package/code-snippet/index.mjs +12 -12
- package/datatable/index.mjs +35 -34
- package/datepicker/index.mjs +13 -13
- package/datetime-picker/index.mjs +13 -13
- package/dock/index.mjs +10 -12
- package/dropdown-menu/index.mjs +53 -46
- package/file-manager/index.mjs +17 -17
- package/index.mjs +0 -1
- package/input-group/index.mjs +11 -11
- package/multi-range/index.mjs +12 -12
- package/navbar/index.mjs +37 -48
- package/otp-input/index.mjs +12 -12
- package/package.json +2 -2
- package/pagination/index.mjs +11 -13
- package/phone-input/index.mjs +13 -13
- package/query-builder/index.mjs +18 -18
- package/radio/index.mjs +10 -12
- package/radio-group/index.mjs +11 -13
- package/react-bootstrap.css +2 -1
- package/ribbon/index.mjs +90 -129
- package/scheduler/index.mjs +21 -27
- package/select/index.mjs +9 -11
- package/shell/index.mjs +18 -23
- package/signature-pad/index.mjs +9 -11
- package/splitter/index.mjs +13 -13
- package/tab-control/index.mjs +15 -18
- package/theming/index.mjs +39 -46
- package/tile-manager/index.mjs +13 -13
- package/timeline/index.mjs +82 -97
- package/timepicker/index.mjs +14 -19
- package/toggle-button/index.mjs +11 -13
- package/tree-select/index.mjs +17 -19
- package/treeview/index.mjs +14 -14
package/radio-group/index.mjs
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { createComponent as
|
|
3
|
-
import { MpRadioGroup as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MpRadioGroup as n } from "@mintplayer/web-components/radio-group";
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/radio-group/src/BsRadioGroup.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-radio-group",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: { onGroupChange: "group-change" }
|
|
11
10
|
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { r as BsRadioGroup };
|
package/react-bootstrap.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.dropdown-item>a,.dropdown-item>button{
|
|
1
|
+
.dropdown-item>a,.dropdown-item>button{width:auto;margin:calc(-1 * var(--bs-dropdown-item-padding-y,.25rem)) calc(-1 * var(--bs-dropdown-item-padding-x,1rem));padding:var(--bs-dropdown-item-padding-y,.25rem) var(--bs-dropdown-item-padding-x,1rem);color:inherit;text-align:inherit;font:inherit;background:0 0;border:0;text-decoration:none;display:block}.dropdown-item>a.active,.dropdown-item>button.active{color:var(--bs-dropdown-link-active-color,#fff);background-color:var(--bs-dropdown-link-active-bg,var(--bs-primary))}
|
|
2
|
+
/*$vite$:1*/
|
package/ribbon/index.mjs
CHANGED
|
@@ -1,138 +1,99 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { createComponent as t } from "@lit/react";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
react: e,
|
|
14
|
-
tagName: "mp-quick-access-toolbar",
|
|
15
|
-
elementClass: n
|
|
3
|
+
import { MpQuickAccessToolbar as n, MpRibbon as r, MpRibbonButton as i, MpRibbonCheckBox as a, MpRibbonColorPicker as o, MpRibbonComboBox as s, MpRibbonContextualTabSet as c, MpRibbonDropdownButton as l, MpRibbonGallery as u, MpRibbonGalleryItem as d, MpRibbonGroup as f, MpRibbonGroupButton as p, MpRibbonMenuItem as m, MpRibbonMenuSeparator as h, MpRibbonSplitButton as g, MpRibbonTab as _, MpRibbonTemplateItem as v, MpRibbonToggleButton as y } from "@mintplayer/web-components/ribbon";
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/ribbon/src/BsRibbon.tsx
|
|
5
|
+
var b = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-ribbon",
|
|
8
|
+
elementClass: r,
|
|
9
|
+
events: {
|
|
10
|
+
onTabChange: "tab-change",
|
|
11
|
+
onMinimizeToggle: "minimize-toggle"
|
|
12
|
+
}
|
|
16
13
|
}), x = t({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}), y = t({
|
|
21
|
-
react: e,
|
|
22
|
-
tagName: "mp-ribbon-contextual-tab-set",
|
|
23
|
-
elementClass: b,
|
|
24
|
-
events: {
|
|
25
|
-
onContextualVisibilityChange: "contextual-visibility-change"
|
|
26
|
-
}
|
|
27
|
-
}), G = t({
|
|
28
|
-
react: e,
|
|
29
|
-
tagName: "mp-ribbon-group",
|
|
30
|
-
elementClass: l,
|
|
31
|
-
events: {
|
|
32
|
-
onDialogLauncherClick: "dialog-launcher-click"
|
|
33
|
-
}
|
|
14
|
+
react: e,
|
|
15
|
+
tagName: "mp-quick-access-toolbar",
|
|
16
|
+
elementClass: n
|
|
34
17
|
}), S = t({
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
tagName: "mp-ribbon-split-button",
|
|
44
|
-
elementClass: i,
|
|
45
|
-
events: {
|
|
46
|
-
onMainAction: "main-action",
|
|
47
|
-
onItemClick: "item-click",
|
|
48
|
-
onMenuToggle: "menu-toggle"
|
|
49
|
-
}
|
|
50
|
-
}), d = t({
|
|
51
|
-
react: e,
|
|
52
|
-
tagName: "mp-ribbon-dropdown-button",
|
|
53
|
-
elementClass: m,
|
|
54
|
-
events: {
|
|
55
|
-
onMenuToggle: "menu-toggle"
|
|
56
|
-
}
|
|
57
|
-
}), f = t({
|
|
58
|
-
react: e,
|
|
59
|
-
tagName: "mp-ribbon-menu-item",
|
|
60
|
-
elementClass: c,
|
|
61
|
-
events: {
|
|
62
|
-
onMenuSelect: "menu-select"
|
|
63
|
-
}
|
|
18
|
+
react: e,
|
|
19
|
+
tagName: "mp-ribbon-tab",
|
|
20
|
+
elementClass: _
|
|
21
|
+
}), C = t({
|
|
22
|
+
react: e,
|
|
23
|
+
tagName: "mp-ribbon-contextual-tab-set",
|
|
24
|
+
elementClass: c,
|
|
25
|
+
events: { onContextualVisibilityChange: "contextual-visibility-change" }
|
|
64
26
|
}), w = t({
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
27
|
+
react: e,
|
|
28
|
+
tagName: "mp-ribbon-group",
|
|
29
|
+
elementClass: f,
|
|
30
|
+
events: { onDialogLauncherClick: "dialog-launcher-click" }
|
|
31
|
+
}), T = t({
|
|
32
|
+
react: e,
|
|
33
|
+
tagName: "mp-ribbon-button",
|
|
34
|
+
elementClass: i,
|
|
35
|
+
events: { onItemClick: "item-click" }
|
|
36
|
+
}), E = t({
|
|
37
|
+
react: e,
|
|
38
|
+
tagName: "mp-ribbon-split-button",
|
|
39
|
+
elementClass: g,
|
|
40
|
+
events: {
|
|
41
|
+
onMainAction: "main-action",
|
|
42
|
+
onItemClick: "item-click",
|
|
43
|
+
onMenuToggle: "menu-toggle"
|
|
44
|
+
}
|
|
75
45
|
}), D = t({
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
46
|
+
react: e,
|
|
47
|
+
tagName: "mp-ribbon-dropdown-button",
|
|
48
|
+
elementClass: l,
|
|
49
|
+
events: { onMenuToggle: "menu-toggle" }
|
|
50
|
+
}), O = t({
|
|
51
|
+
react: e,
|
|
52
|
+
tagName: "mp-ribbon-menu-item",
|
|
53
|
+
elementClass: m,
|
|
54
|
+
events: { onMenuSelect: "menu-select" }
|
|
55
|
+
}), k = t({
|
|
56
|
+
react: e,
|
|
57
|
+
tagName: "mp-ribbon-menu-separator",
|
|
58
|
+
elementClass: h
|
|
59
|
+
}), A = t({
|
|
60
|
+
react: e,
|
|
61
|
+
tagName: "mp-ribbon-toggle-button",
|
|
62
|
+
elementClass: y,
|
|
63
|
+
events: { onToggle: "toggle" }
|
|
64
|
+
}), j = t({
|
|
65
|
+
react: e,
|
|
66
|
+
tagName: "mp-ribbon-checkbox",
|
|
67
|
+
elementClass: a,
|
|
68
|
+
events: { onCheckChange: "check-change" }
|
|
69
|
+
}), M = t({
|
|
70
|
+
react: e,
|
|
71
|
+
tagName: "mp-ribbon-combobox",
|
|
72
|
+
elementClass: s,
|
|
73
|
+
events: { onValueChange: "value-change" }
|
|
74
|
+
}), N = t({
|
|
75
|
+
react: e,
|
|
76
|
+
tagName: "mp-ribbon-color-picker",
|
|
77
|
+
elementClass: o,
|
|
78
|
+
events: { onColorChange: "color-change" }
|
|
89
79
|
}), P = t({
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}), V = t({
|
|
104
|
-
react: e,
|
|
105
|
-
tagName: "mp-ribbon-gallery",
|
|
106
|
-
elementClass: B
|
|
107
|
-
}), q = t({
|
|
108
|
-
react: e,
|
|
109
|
-
tagName: "mp-ribbon-gallery-item",
|
|
110
|
-
elementClass: M,
|
|
111
|
-
events: {
|
|
112
|
-
onGallerySelect: "gallery-select"
|
|
113
|
-
}
|
|
80
|
+
react: e,
|
|
81
|
+
tagName: "mp-ribbon-group-button",
|
|
82
|
+
elementClass: p,
|
|
83
|
+
events: { onGroupSelect: "group-select" }
|
|
84
|
+
}), F = t({
|
|
85
|
+
react: e,
|
|
86
|
+
tagName: "mp-ribbon-gallery",
|
|
87
|
+
elementClass: u
|
|
88
|
+
}), I = t({
|
|
89
|
+
react: e,
|
|
90
|
+
tagName: "mp-ribbon-gallery-item",
|
|
91
|
+
elementClass: d,
|
|
92
|
+
events: { onGallerySelect: "gallery-select" }
|
|
114
93
|
}), L = t({
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
94
|
+
react: e,
|
|
95
|
+
tagName: "mp-ribbon-template-item",
|
|
96
|
+
elementClass: v
|
|
118
97
|
});
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
v as BsRibbon,
|
|
122
|
-
S as BsRibbonButton,
|
|
123
|
-
D as BsRibbonCheckBox,
|
|
124
|
-
P as BsRibbonColorPicker,
|
|
125
|
-
z as BsRibbonComboBox,
|
|
126
|
-
y as BsRibbonContextualTabSet,
|
|
127
|
-
d as BsRibbonDropdownButton,
|
|
128
|
-
V as BsRibbonGallery,
|
|
129
|
-
q as BsRibbonGalleryItem,
|
|
130
|
-
G as BsRibbonGroup,
|
|
131
|
-
Q as BsRibbonGroupButton,
|
|
132
|
-
f as BsRibbonMenuItem,
|
|
133
|
-
w as BsRibbonMenuSeparator,
|
|
134
|
-
I as BsRibbonSplitButton,
|
|
135
|
-
x as BsRibbonTab,
|
|
136
|
-
L as BsRibbonTemplateItem,
|
|
137
|
-
A as BsRibbonToggleButton
|
|
138
|
-
};
|
|
98
|
+
//#endregion
|
|
99
|
+
export { x as BsQuickAccessToolbar, b as BsRibbon, T as BsRibbonButton, j as BsRibbonCheckBox, N as BsRibbonColorPicker, M as BsRibbonComboBox, C as BsRibbonContextualTabSet, D as BsRibbonDropdownButton, F as BsRibbonGallery, I as BsRibbonGalleryItem, w as BsRibbonGroup, P as BsRibbonGroupButton, O as BsRibbonMenuItem, k as BsRibbonMenuSeparator, E as BsRibbonSplitButton, S as BsRibbonTab, L as BsRibbonTemplateItem, A as BsRibbonToggleButton };
|
package/scheduler/index.mjs
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { createComponent as t } from "@lit/react";
|
|
3
3
|
import { MpScheduler as n } from "@mintplayer/web-components/scheduler";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
onResourceCreate: "resource-create",
|
|
24
|
-
onGroupCreate: "group-create",
|
|
25
|
-
onResourceUpdate: "resource-update",
|
|
26
|
-
onResourceDelete: "resource-delete"
|
|
27
|
-
}
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/scheduler/src/BsScheduler.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-scheduler",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: {
|
|
10
|
+
onEventSelected: "event-selected",
|
|
11
|
+
onEventDblClick: "event-dblclick",
|
|
12
|
+
onEventCreate: "event-create",
|
|
13
|
+
onEventUpdate: "event-update",
|
|
14
|
+
onEventDelete: "event-delete",
|
|
15
|
+
onDateClick: "date-click",
|
|
16
|
+
onViewChange: "view-change",
|
|
17
|
+
onSelectionChange: "selection-change",
|
|
18
|
+
onResourceCreate: "resource-create",
|
|
19
|
+
onGroupCreate: "group-create",
|
|
20
|
+
onResourceUpdate: "resource-update",
|
|
21
|
+
onResourceDelete: "resource-delete"
|
|
22
|
+
}
|
|
28
23
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { r as BsScheduler };
|
package/select/index.mjs
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { createComponent as t } from "@lit/react";
|
|
3
|
-
import { MpSelect as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
3
|
+
import { MpSelect as n } from "@mintplayer/web-components/select";
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/select/src/BsSelect.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-select",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: { onValueChange: "value-change" }
|
|
11
10
|
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { r as BsSelect };
|
package/shell/index.mjs
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
1
|
import * as e from "react";
|
|
3
|
-
import { createComponent as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}),
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
...n
|
|
20
|
-
}
|
|
21
|
-
);
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { MpShell as r } from "@mintplayer/web-components/shell";
|
|
5
|
+
//#region libs/mintplayer-react-bootstrap/shell/src/BsShell.tsx
|
|
6
|
+
var i = t({
|
|
7
|
+
react: e,
|
|
8
|
+
tagName: "mp-shell",
|
|
9
|
+
elementClass: r,
|
|
10
|
+
events: { onStatechange: "statechange" }
|
|
11
|
+
}), a = e.forwardRef(function({ externalToggle: e, dismissOnNavigate: t, ...r }, a) {
|
|
12
|
+
return /* @__PURE__ */ n(i, {
|
|
13
|
+
ref: a,
|
|
14
|
+
...e ? { "external-toggle": "" } : {},
|
|
15
|
+
...t ? { "dismiss-on-navigate": "" } : {},
|
|
16
|
+
...r
|
|
17
|
+
});
|
|
22
18
|
});
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { a as BsShell };
|
package/signature-pad/index.mjs
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { createComponent as t } from "@lit/react";
|
|
3
|
-
import { MpSignaturePadElement as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
3
|
+
import { MpSignaturePadElement as n } from "@mintplayer/web-components/signature-pad";
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/signature-pad/src/BsSignaturePad.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-signature-pad",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: { onSignatureChange: "signature-change" }
|
|
11
10
|
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { r as BsSignaturePad };
|
package/splitter/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { createComponent as t } from "@lit/react";
|
|
3
|
-
import { MpSplitter as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
import { MpSplitter as n } from "@mintplayer/web-components/splitter";
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/splitter/src/BsSplitter.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-splitter",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: {
|
|
10
|
+
onResizeStart: "resize-start",
|
|
11
|
+
onResizing: "resizing",
|
|
12
|
+
onResizeEnd: "resize-end"
|
|
13
|
+
}
|
|
13
14
|
});
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { r as BsSplitter };
|
package/tab-control/index.mjs
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { createComponent as
|
|
3
|
-
import { MpTabControl as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
elementClass: o
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MpTabControl as n, MpTabPage as r } from "@mintplayer/web-components/tab-control";
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/tab-control/src/BsTabControl.tsx
|
|
5
|
+
var i = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-tab-control",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: { onTabActivate: "tab-activate" }
|
|
10
|
+
}), a = t({
|
|
11
|
+
react: e,
|
|
12
|
+
tagName: "mp-tab-page",
|
|
13
|
+
elementClass: r
|
|
15
14
|
});
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
p as BsTabPage
|
|
19
|
-
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { i as BsTabControl, a as BsTabPage };
|
package/theming/index.mjs
CHANGED
|
@@ -1,49 +1,42 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}),
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { useMemo as t, useSyncExternalStore as n } from "react";
|
|
3
|
+
import { createComponent as r } from "@lit/react";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
import { BS_THEME_COOKIE_NAME as a, BS_THEME_DEFAULT_MODES as o, BS_THEME_DEFAULT_MODES as s, BS_THEME_DEFAULT_MODE_META as c, MpThemeToggle as l, configureBsTheme as u, getBsThemeStore as d, getBsThemeStore as f, injectThemeAttribute as p, isValidThemeMode as m, readDefaultModeMeta as h, readThemeCookie as g, resolveMode as _, resolveMode as v, resolveServerTheme as y, writeThemeCookie as b } from "@mintplayer/web-components/theming";
|
|
6
|
+
//#region libs/mintplayer-react-bootstrap/theming/src/useBsTheme.ts
|
|
7
|
+
var x = Object.freeze({
|
|
8
|
+
mode: "auto",
|
|
9
|
+
effectiveMode: v("auto", !1)
|
|
10
|
+
}), S = () => typeof window < "u", C = (e) => S() ? f().subscribe(e) : () => void 0, w = x, T = () => {
|
|
11
|
+
if (!S()) return x;
|
|
12
|
+
let e = f(), t = e.getMode(), n = e.effectiveMode();
|
|
13
|
+
return (w.mode !== t || w.effectiveMode !== n) && (w = {
|
|
14
|
+
mode: t,
|
|
15
|
+
effectiveMode: n
|
|
16
|
+
}), w;
|
|
17
|
+
}, E = () => x, D = (e) => {
|
|
18
|
+
S() && f().setMode(e);
|
|
11
19
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
function D() {
|
|
21
|
-
const e = c(u, S, g);
|
|
22
|
-
return d(
|
|
23
|
-
() => ({ mode: e.mode, effectiveMode: e.effectiveMode, setMode: p }),
|
|
24
|
-
[e]
|
|
25
|
-
);
|
|
20
|
+
function O() {
|
|
21
|
+
let e = n(C, T, E);
|
|
22
|
+
return t(() => ({
|
|
23
|
+
mode: e.mode,
|
|
24
|
+
effectiveMode: e.effectiveMode,
|
|
25
|
+
setMode: D
|
|
26
|
+
}), [e]);
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region libs/mintplayer-react-bootstrap/theming/src/BsThemeToggle.tsx
|
|
30
|
+
var k = r({
|
|
31
|
+
react: e,
|
|
32
|
+
tagName: "mp-theme-toggle",
|
|
33
|
+
elementClass: l
|
|
34
|
+
}), A = e.forwardRef(function({ modes: e, ...t }, n) {
|
|
35
|
+
return /* @__PURE__ */ i(k, {
|
|
36
|
+
ref: n,
|
|
37
|
+
modes: e ?? s,
|
|
38
|
+
...t
|
|
39
|
+
});
|
|
33
40
|
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
H as BS_THEME_DEFAULT_MODES,
|
|
37
|
-
x as BS_THEME_DEFAULT_MODE_META,
|
|
38
|
-
O as BsThemeToggle,
|
|
39
|
-
R as configureBsTheme,
|
|
40
|
-
j as getBsThemeStore,
|
|
41
|
-
F as injectThemeAttribute,
|
|
42
|
-
L as isValidThemeMode,
|
|
43
|
-
N as readDefaultModeMeta,
|
|
44
|
-
U as readThemeCookie,
|
|
45
|
-
k as resolveMode,
|
|
46
|
-
y as resolveServerTheme,
|
|
47
|
-
D as useBsTheme,
|
|
48
|
-
V as writeThemeCookie
|
|
49
|
-
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { a as BS_THEME_COOKIE_NAME, o as BS_THEME_DEFAULT_MODES, c as BS_THEME_DEFAULT_MODE_META, A as BsThemeToggle, u as configureBsTheme, d as getBsThemeStore, p as injectThemeAttribute, m as isValidThemeMode, h as readDefaultModeMeta, g as readThemeCookie, _ as resolveMode, y as resolveServerTheme, O as useBsTheme, b as writeThemeCookie };
|
package/tile-manager/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { createComponent as t } from "@lit/react";
|
|
3
|
-
import { MintTileManagerElement as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
import { MintTileManagerElement as n } from "@mintplayer/web-components/tile-manager";
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/tile-manager/src/BsTileManager.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-tile-manager",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: {
|
|
10
|
+
onTilelayoutchange: "tilelayoutchange",
|
|
11
|
+
onTilepositionchange: "tilepositionchange",
|
|
12
|
+
onTilegestureblocked: "tilegestureblocked"
|
|
13
|
+
}
|
|
13
14
|
});
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { r as BsTileManager };
|