@pdf-viewer/react 1.9.0-beta.3 → 1.9.0-beta.4

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.
Files changed (94) hide show
  1. package/dist/RPLayout-5892502c.js +3494 -0
  2. package/dist/{SearchCloseButton-ddb9877e.js → SearchCloseButton-cbf182aa.js} +7 -6
  3. package/dist/assets/Checkbox.css +1 -1
  4. package/dist/assets/RPLayout.css +1 -1
  5. package/dist/components/RPConfig.js +691 -673
  6. package/dist/components/RPController.js +1 -1
  7. package/dist/components/RPPages.js +4 -5
  8. package/dist/components/layout/LayoutContainer.js +5 -5
  9. package/dist/components/layout/RPDefaultLayout.js +1 -1
  10. package/dist/components/layout/RPLayout.js +4 -5
  11. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  12. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  13. package/dist/components/layout/sidebar/Thumbnails.js +3 -2
  14. package/dist/components/layout/toolbar/DocumentDialog.js +4 -5
  15. package/dist/components/layout/toolbar/DocumentProperties.js +23 -19
  16. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  17. package/dist/components/layout/toolbar/MenuItem.js +1 -1
  18. package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
  19. package/dist/components/layout/toolbar/MostPageTool.js +5 -6
  20. package/dist/components/layout/toolbar/OtherTool.js +2 -2
  21. package/dist/components/layout/toolbar/Paginate.js +1 -1
  22. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  23. package/dist/components/layout/toolbar/RPToolbar.js +2 -2
  24. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  25. package/dist/components/layout/toolbar/RotateTool.js +1 -1
  26. package/dist/components/layout/toolbar/ScrollModeTool.js +35 -37
  27. package/dist/components/layout/toolbar/SearchCloseButton.js +1 -1
  28. package/dist/components/layout/toolbar/SearchResultNavigator.js +2 -2
  29. package/dist/components/layout/toolbar/SearchTool.js +3 -4
  30. package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
  31. package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
  32. package/dist/components/layout/toolbar/ToolbarCustom.js +4 -5
  33. package/dist/components/layout/toolbar/ViewModeTool.js +1 -1
  34. package/dist/components/layout/toolbar/ZoomTool.js +4 -3
  35. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
  36. package/dist/components/layout/toolbar/tools/InputPageTool.js +1 -1
  37. package/dist/components/layout/toolbar/tools/NextPageTool.js +5 -6
  38. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
  39. package/dist/components/layout/toolbar/tools/PrintTool.js +1 -1
  40. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
  41. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +2 -2
  42. package/dist/components/layout/toolbar/tools/defaults/TopbarDefaultTools.js +1 -1
  43. package/dist/components/page/AnnotationLayer.js +4 -5
  44. package/dist/components/page/CanvasLayer.js +4 -5
  45. package/dist/components/page/DualPage.js +1 -1
  46. package/dist/components/page/RPPage.js +4 -4
  47. package/dist/components/page/SinglePage.js +1 -1
  48. package/dist/components/page/TextHighlightLayer.js +4 -5
  49. package/dist/components/page/TextLayer.js +4 -5
  50. package/dist/components/ui/Button.js +8 -8
  51. package/dist/components/ui/Checkbox.js +243 -120
  52. package/dist/components/ui/DropDown.js +16 -16
  53. package/dist/components/ui/Input.js +11 -11
  54. package/dist/components/ui/LoadingIndicator.js +1 -1
  55. package/dist/components/ui/RPTooltip.js +211 -426
  56. package/dist/contexts/PaginationContext.js +1 -1
  57. package/dist/contexts/PrintContext.js +1 -1
  58. package/dist/contexts/SearchContext.js +1 -1
  59. package/dist/contexts/ThumbnailsContext.js +1 -1
  60. package/dist/index-00f8683a.js +1672 -0
  61. package/dist/index-5f66a29f.js +1681 -0
  62. package/dist/index-6b37f504.js +332 -0
  63. package/dist/main.js +1 -1
  64. package/dist/types/components/layout/LayoutContainer.d.ts +5 -1
  65. package/dist/types/components/layout/sidebar/Thumbnails.d.ts +3 -1
  66. package/dist/types/components/layout/toolbar/RPToolbar.d.ts +3 -1
  67. package/dist/types/components/page/RPPage.d.ts +3 -1
  68. package/dist/types/components/ui/Button.d.ts +3 -1
  69. package/dist/types/components/ui/Checkbox.d.ts +1 -0
  70. package/dist/types/components/ui/DropDown.d.ts +2 -1
  71. package/dist/types/components/ui/Input.d.ts +3 -1
  72. package/dist/types/components/ui/RPTooltip.d.ts +3 -1
  73. package/dist/types/utils/withRef.d.ts +4 -0
  74. package/dist/utils/hooks/useFileDownload.js +4 -5
  75. package/dist/utils/hooks/useLicense.js +1 -1
  76. package/dist/utils/hooks/usePaginate.js +4 -5
  77. package/dist/utils/hooks/usePresentPage.js +4 -5
  78. package/dist/utils/hooks/usePrint.js +4 -5
  79. package/dist/utils/hooks/useScrollToPage.js +4 -5
  80. package/dist/utils/hooks/useSearch.js +4 -5
  81. package/dist/utils/hooks/useThumbnail.js +4 -5
  82. package/dist/utils/hooks/useVirtualReactWindow.js +4 -5
  83. package/dist/utils/withRef.js +8 -0
  84. package/package.json +1 -1
  85. package/dist/Popover-1faa77f6.js +0 -1445
  86. package/dist/RPLayout-897cb09d.js +0 -3393
  87. package/dist/assets/Popover.css +0 -1
  88. package/dist/component-1da194e8.js +0 -337
  89. package/dist/components/ui/Popover.js +0 -6
  90. package/dist/floating-ui.react-dom-15b9b819.js +0 -1310
  91. package/dist/index-1cb41342.js +0 -307
  92. package/dist/index-7279fb4e.js +0 -1557
  93. package/dist/index-aa2d3884.js +0 -140
  94. package/dist/types/components/ui/Popover.d.ts +0 -9
@@ -1,141 +1,264 @@
1
- import { jsxs as g, jsx as s } from "react/jsx-runtime";
2
- import * as c from "react";
3
- import { e as j, a as A, f as B, P as S, c as _, g as H, h as K } from "../../index-1cb41342.js";
4
- import { CheckIcon as L } from "../icons/CheckIcon.js";
5
- import '../../assets/Checkbox.css';function q(e) {
6
- const r = c.useRef({ value: e, previous: e });
7
- return c.useMemo(() => (r.current.value !== e && (r.current.previous = r.current.value, r.current.value = e), r.current.previous), [e]);
1
+ import { jsx as i, jsxs as w, Fragment as U } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { c as z, u as B, P as E, a as S, b as G, d as K, e as X } from "../../index-6b37f504.js";
4
+ import { CheckIcon as J } from "../icons/CheckIcon.js";
5
+ import '../../assets/Checkbox.css';function Q(e) {
6
+ const r = s.useRef({ value: e, previous: e });
7
+ return s.useMemo(() => (r.current.value !== e && (r.current.previous = r.current.value, r.current.value = e), r.current.previous), [e]);
8
8
  }
9
- var E = "Checkbox", [z, W] = j(E), [F, T] = z(E), w = c.forwardRef(
9
+ var g = "Checkbox", [V, re] = z(g), [W, P] = V(g);
10
+ function Y(e) {
11
+ const {
12
+ __scopeCheckbox: r,
13
+ checked: o,
14
+ children: d,
15
+ defaultChecked: n,
16
+ disabled: t,
17
+ form: h,
18
+ name: f,
19
+ onCheckedChange: u,
20
+ required: k,
21
+ value: C = "on",
22
+ // @ts-expect-error
23
+ internal_do_not_use_render: l
24
+ } = e, [p, v] = X({
25
+ prop: o,
26
+ defaultProp: n ?? !1,
27
+ onChange: u,
28
+ caller: g
29
+ }), [m, x] = s.useState(null), [_, c] = s.useState(null), a = s.useRef(!1), I = m ? !!h || !!m.closest("form") : (
30
+ // We set this to true by default so that events bubble to forms without JS (SSR)
31
+ !0
32
+ ), R = {
33
+ checked: p,
34
+ disabled: t,
35
+ setChecked: v,
36
+ control: m,
37
+ setControl: x,
38
+ name: f,
39
+ form: h,
40
+ value: C,
41
+ hasConsumerStoppedPropagationRef: a,
42
+ required: k,
43
+ defaultChecked: b(n) ? !1 : n,
44
+ isFormControl: I,
45
+ bubbleInput: _,
46
+ setBubbleInput: c
47
+ };
48
+ return /* @__PURE__ */ i(
49
+ W,
50
+ {
51
+ scope: r,
52
+ ...R,
53
+ children: Z(l) ? l(R) : d
54
+ }
55
+ );
56
+ }
57
+ var M = "CheckboxTrigger", T = s.forwardRef(
58
+ ({ __scopeCheckbox: e, onKeyDown: r, onClick: o, ...d }, n) => {
59
+ const {
60
+ control: t,
61
+ value: h,
62
+ disabled: f,
63
+ checked: u,
64
+ required: k,
65
+ setControl: C,
66
+ setChecked: l,
67
+ hasConsumerStoppedPropagationRef: p,
68
+ isFormControl: v,
69
+ bubbleInput: m
70
+ } = P(M, e), x = B(n, C), _ = s.useRef(u);
71
+ return s.useEffect(() => {
72
+ const c = t == null ? void 0 : t.form;
73
+ if (c) {
74
+ const a = () => l(_.current);
75
+ return c.addEventListener("reset", a), () => c.removeEventListener("reset", a);
76
+ }
77
+ }, [t, l]), /* @__PURE__ */ i(
78
+ E.button,
79
+ {
80
+ type: "button",
81
+ role: "checkbox",
82
+ "aria-checked": b(u) ? "mixed" : u,
83
+ "aria-required": k,
84
+ "data-state": O(u),
85
+ "data-disabled": f ? "" : void 0,
86
+ disabled: f,
87
+ value: h,
88
+ ...d,
89
+ ref: x,
90
+ onKeyDown: S(r, (c) => {
91
+ c.key === "Enter" && c.preventDefault();
92
+ }),
93
+ onClick: S(o, (c) => {
94
+ l((a) => b(a) ? !0 : !a), m && v && (p.current = c.isPropagationStopped(), p.current || c.stopPropagation());
95
+ })
96
+ }
97
+ );
98
+ }
99
+ );
100
+ T.displayName = M;
101
+ var q = s.forwardRef(
10
102
  (e, r) => {
11
103
  const {
12
- __scopeCheckbox: t,
13
- name: a,
14
- checked: p,
15
- defaultChecked: n,
104
+ __scopeCheckbox: o,
105
+ name: d,
106
+ checked: n,
107
+ defaultChecked: t,
16
108
  required: h,
17
- disabled: u,
18
- value: b = "on",
19
- onCheckedChange: m,
20
- form: l,
21
- ...x
22
- } = e, [i, C] = c.useState(null), v = A(r, (o) => C(o)), y = c.useRef(!1), I = i ? l || !!i.closest("form") : !0, [f = !1, P] = B({
23
- prop: p,
24
- defaultProp: n,
25
- onChange: m
26
- }), O = c.useRef(f);
27
- return c.useEffect(() => {
28
- const o = i == null ? void 0 : i.form;
29
- if (o) {
30
- const k = () => P(O.current);
31
- return o.addEventListener("reset", k), () => o.removeEventListener("reset", k);
109
+ disabled: f,
110
+ value: u,
111
+ onCheckedChange: k,
112
+ form: C,
113
+ ...l
114
+ } = e;
115
+ return /* @__PURE__ */ i(
116
+ Y,
117
+ {
118
+ __scopeCheckbox: o,
119
+ checked: n,
120
+ defaultChecked: t,
121
+ disabled: f,
122
+ required: h,
123
+ onCheckedChange: k,
124
+ name: d,
125
+ form: C,
126
+ value: u,
127
+ internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */ w(U, { children: [
128
+ /* @__PURE__ */ i(
129
+ T,
130
+ {
131
+ ...l,
132
+ ref: r,
133
+ __scopeCheckbox: o
134
+ }
135
+ ),
136
+ p && /* @__PURE__ */ i(
137
+ L,
138
+ {
139
+ __scopeCheckbox: o
140
+ }
141
+ )
142
+ ] })
32
143
  }
33
- }, [i, P]), /* @__PURE__ */ g(F, { scope: t, state: f, disabled: u, children: [
34
- /* @__PURE__ */ s(
35
- S.button,
36
- {
37
- type: "button",
38
- role: "checkbox",
39
- "aria-checked": d(f) ? "mixed" : f,
40
- "aria-required": h,
41
- "data-state": M(f),
42
- "data-disabled": u ? "" : void 0,
43
- disabled: u,
44
- value: b,
45
- ...x,
46
- ref: v,
47
- onKeyDown: _(e.onKeyDown, (o) => {
48
- o.key === "Enter" && o.preventDefault();
49
- }),
50
- onClick: _(e.onClick, (o) => {
51
- P((k) => d(k) ? !0 : !k), I && (y.current = o.isPropagationStopped(), y.current || o.stopPropagation());
52
- })
53
- }
54
- ),
55
- I && /* @__PURE__ */ s(
56
- X,
57
- {
58
- control: i,
59
- bubbles: !y.current,
60
- name: a,
61
- value: b,
62
- checked: f,
63
- required: h,
64
- disabled: u,
65
- form: l,
66
- style: { transform: "translateX(-100%)" },
67
- defaultChecked: d(n) ? !1 : n
68
- }
69
- )
70
- ] });
144
+ );
71
145
  }
72
146
  );
73
- w.displayName = E;
74
- var N = "CheckboxIndicator", D = c.forwardRef(
147
+ q.displayName = g;
148
+ var A = "CheckboxIndicator", F = s.forwardRef(
75
149
  (e, r) => {
76
- const { __scopeCheckbox: t, forceMount: a, ...p } = e, n = T(N, t);
77
- return /* @__PURE__ */ s(H, { present: a || d(n.state) || n.state === !0, children: /* @__PURE__ */ s(
78
- S.span,
150
+ const { __scopeCheckbox: o, forceMount: d, ...n } = e, t = P(A, o);
151
+ return /* @__PURE__ */ i(
152
+ G,
79
153
  {
80
- "data-state": M(n.state),
81
- "data-disabled": n.disabled ? "" : void 0,
82
- ...p,
83
- ref: r,
84
- style: { pointerEvents: "none", ...e.style }
154
+ present: d || b(t.checked) || t.checked === !0,
155
+ children: /* @__PURE__ */ i(
156
+ E.span,
157
+ {
158
+ "data-state": O(t.checked),
159
+ "data-disabled": t.disabled ? "" : void 0,
160
+ ...n,
161
+ ref: r,
162
+ style: { pointerEvents: "none", ...e.style }
163
+ }
164
+ )
85
165
  }
86
- ) });
166
+ );
87
167
  }
88
168
  );
89
- D.displayName = N;
90
- var X = (e) => {
91
- const { control: r, checked: t, bubbles: a = !0, defaultChecked: p, ...n } = e, h = c.useRef(null), u = q(t), b = K(r);
92
- c.useEffect(() => {
93
- const l = h.current, x = window.HTMLInputElement.prototype, C = Object.getOwnPropertyDescriptor(x, "checked").set;
94
- if (u !== t && C) {
95
- const v = new Event("click", { bubbles: a });
96
- l.indeterminate = d(t), C.call(l, d(t) ? !1 : t), l.dispatchEvent(v);
97
- }
98
- }, [u, t, a]);
99
- const m = c.useRef(d(t) ? !1 : t);
100
- return /* @__PURE__ */ s(
101
- "input",
102
- {
103
- type: "checkbox",
104
- "aria-hidden": !0,
105
- defaultChecked: p ?? m.current,
106
- ...n,
107
- tabIndex: -1,
108
- ref: h,
109
- style: {
110
- ...e.style,
111
- ...b,
112
- position: "absolute",
113
- pointerEvents: "none",
114
- opacity: 0,
115
- margin: 0
169
+ F.displayName = A;
170
+ var D = "CheckboxBubbleInput", L = s.forwardRef(
171
+ ({ __scopeCheckbox: e, ...r }, o) => {
172
+ const {
173
+ control: d,
174
+ hasConsumerStoppedPropagationRef: n,
175
+ checked: t,
176
+ defaultChecked: h,
177
+ required: f,
178
+ disabled: u,
179
+ name: k,
180
+ value: C,
181
+ form: l,
182
+ bubbleInput: p,
183
+ setBubbleInput: v
184
+ } = P(D, e), m = B(o, v), x = Q(t), _ = K(d);
185
+ s.useEffect(() => {
186
+ const a = p;
187
+ if (!a)
188
+ return;
189
+ const I = window.HTMLInputElement.prototype, N = Object.getOwnPropertyDescriptor(
190
+ I,
191
+ "checked"
192
+ ).set, j = !n.current;
193
+ if (x !== t && N) {
194
+ const H = new Event("click", { bubbles: j });
195
+ a.indeterminate = b(t), N.call(a, b(t) ? !1 : t), a.dispatchEvent(H);
116
196
  }
117
- }
118
- );
119
- };
120
- function d(e) {
197
+ }, [p, x, t, n]);
198
+ const c = s.useRef(b(t) ? !1 : t);
199
+ return /* @__PURE__ */ i(
200
+ E.input,
201
+ {
202
+ type: "checkbox",
203
+ "aria-hidden": !0,
204
+ defaultChecked: h ?? c.current,
205
+ required: f,
206
+ disabled: u,
207
+ name: k,
208
+ value: C,
209
+ form: l,
210
+ ...r,
211
+ tabIndex: -1,
212
+ ref: m,
213
+ style: {
214
+ ...r.style,
215
+ ..._,
216
+ position: "absolute",
217
+ pointerEvents: "none",
218
+ opacity: 0,
219
+ margin: 0,
220
+ // We transform because the input is absolutely positioned but we have
221
+ // rendered it **after** the button. This pulls it back to sit on top
222
+ // of the button.
223
+ transform: "translateX(-100%)"
224
+ }
225
+ }
226
+ );
227
+ }
228
+ );
229
+ L.displayName = D;
230
+ function Z(e) {
231
+ return typeof e == "function";
232
+ }
233
+ function b(e) {
121
234
  return e === "indeterminate";
122
235
  }
123
- function M(e) {
124
- return d(e) ? "indeterminate" : e ? "checked" : "unchecked";
236
+ function O(e) {
237
+ return b(e) ? "indeterminate" : e ? "checked" : "unchecked";
125
238
  }
126
- var U = w, G = D;
127
- const R = {
128
- "rp-checkbox": "_rp-checkbox_3f10x_1",
129
- "rp-checkbox-indicator": "_rp-checkbox-indicator_3f10x_21"
130
- }, Y = ({
239
+ const y = {
240
+ "rp-checkbox": "_rp-checkbox_1vwg8_1",
241
+ "rp-checkbox-indicator": "_rp-checkbox-indicator_1vwg8_25"
242
+ }, oe = ({
131
243
  children: e,
132
244
  value: r,
133
- name: t,
134
- onChange: a
135
- }) => /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", position: "relative" }, children: [
136
- /* @__PURE__ */ s(U, { className: R["rp-checkbox"], checked: r, id: t, onCheckedChange: a, children: /* @__PURE__ */ s(G, { className: R["rp-checkbox-indicator"], children: /* @__PURE__ */ s(L, {}) }) }),
137
- /* @__PURE__ */ s("label", { className: R["rp-checkbox-label"], htmlFor: t, children: e })
245
+ name: o,
246
+ onChange: d,
247
+ tabIndex: n
248
+ }) => /* @__PURE__ */ w("div", { style: { display: "flex", alignItems: "center", position: "relative" }, children: [
249
+ /* @__PURE__ */ i(
250
+ q,
251
+ {
252
+ tabIndex: n,
253
+ className: y["rp-checkbox"],
254
+ checked: r,
255
+ id: o,
256
+ onCheckedChange: d,
257
+ children: /* @__PURE__ */ i(F, { className: y["rp-checkbox-indicator"], children: /* @__PURE__ */ i(J, {}) })
258
+ }
259
+ ),
260
+ /* @__PURE__ */ i("label", { className: y["rp-checkbox-label"], htmlFor: o, children: e })
138
261
  ] });
139
262
  export {
140
- Y as UICheckbox
263
+ oe as UICheckbox
141
264
  };
@@ -1,29 +1,29 @@
1
- import { jsxs as i, jsx as d } from "react/jsx-runtime";
2
- import { R as l, T as c, P as p, C as _ } from "../../index-7279fb4e.js";
3
- import { c as A } from "../../clsx-0c6e471a.js";
4
- import '../../assets/DropDown.css';const F = "_slideDownAndFade_1vzkq_1", w = "_slideLeftAndFade_1vzkq_1", m = "_slideUpAndFade_1vzkq_1", f = "_slideRightAndFade_1vzkq_1", g = {
1
+ import { jsxs as l, jsx as d } from "react/jsx-runtime";
2
+ import { R as p, T as c, P as _, C as A } from "../../index-00f8683a.js";
3
+ import { c as F } from "../../clsx-0c6e471a.js";
4
+ import '../../assets/DropDown.css';const w = "_slideDownAndFade_1vzkq_1", m = "_slideLeftAndFade_1vzkq_1", f = "_slideUpAndFade_1vzkq_1", g = "_slideRightAndFade_1vzkq_1", h = {
5
5
  "rp-dropdown-content": "_rp-dropdown-content_1vzkq_1",
6
- slideDownAndFade: F,
7
- slideLeftAndFade: w,
8
- slideUpAndFade: m,
9
- slideRightAndFade: f,
6
+ slideDownAndFade: w,
7
+ slideLeftAndFade: m,
8
+ slideUpAndFade: f,
9
+ slideRightAndFade: g,
10
10
  "rp-dropdown-arrow": "_rp-dropdown-arrow_1vzkq_30"
11
- }, v = (e) => {
12
- const { triggerComponent: n, children: o, container: s, className: r, open: t, ...a } = e;
13
- return /* @__PURE__ */ i(l, { modal: !1, open: t, children: [
11
+ }, z = (e) => {
12
+ const { triggerComponent: n, children: o, container: s, className: r, open: t, onOpenChange: a, ...i } = e;
13
+ return /* @__PURE__ */ l(p, { modal: !1, open: t, onOpenChange: a, children: [
14
14
  /* @__PURE__ */ d(c, { asChild: !0, children: n }),
15
- /* @__PURE__ */ d(p, { container: s, children: /* @__PURE__ */ d(
16
- _,
15
+ /* @__PURE__ */ d(_, { container: s, children: /* @__PURE__ */ d(
16
+ A,
17
17
  {
18
18
  sideOffset: 8,
19
19
  align: "end",
20
- ...a,
21
- className: A(g["rp-dropdown-content"], r),
20
+ ...i,
21
+ className: F(h["rp-dropdown-content"], r),
22
22
  children: o
23
23
  }
24
24
  ) })
25
25
  ] });
26
26
  };
27
27
  export {
28
- v as UIDropDown
28
+ z as UIDropDown
29
29
  };
@@ -1,24 +1,24 @@
1
1
  import { jsxs as a, jsx as n } from "react/jsx-runtime";
2
2
  import { c as e } from "../../clsx-0c6e471a.js";
3
- import { forwardRef as u } from "react";
4
- import '../../assets/Input.css';const p = {
3
+ import { withRef as u } from "../../utils/withRef.js";
4
+ import '../../assets/Input.css';const r = {
5
5
  "rp-input": "_rp-input_3rj4v_1",
6
6
  "rp-input-wrapper": "_rp-input-wrapper_3rj4v_22",
7
7
  "rp-input-icon": "_rp-input-icon_3rj4v_26"
8
- }, d = u((i, s) => {
9
- const { className: t, icon: r, children: o, ...c } = i;
10
- return /* @__PURE__ */ a("div", { className: p["rp-input-wrapper"], children: [
8
+ }, d = u((i, t) => {
9
+ const { className: s, icon: p, children: c, ...o } = i;
10
+ return /* @__PURE__ */ a("div", { className: r["rp-input-wrapper"], children: [
11
11
  /* @__PURE__ */ n(
12
12
  "input",
13
13
  {
14
- ...c,
15
- "data-icon": !!r,
16
- ref: s,
17
- className: e(t, p["rp-input"], "ignore-hover")
14
+ ...o,
15
+ "data-icon": !!p,
16
+ ref: t,
17
+ className: e(s, r["rp-input"], "ignore-hover")
18
18
  }
19
19
  ),
20
- r && /* @__PURE__ */ n("span", { className: p["rp-input-icon"], children: r }),
21
- o
20
+ p && /* @__PURE__ */ n("span", { className: r["rp-input-icon"], children: p }),
21
+ c
22
22
  ] });
23
23
  });
24
24
  export {
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { K as i } from "../../RPLayout-897cb09d.js";
2
+ import { K as i } from "../../RPLayout-5892502c.js";
3
3
  import "../../clsx-0c6e471a.js";
4
4
  import "../../contexts/LocalizationContext.js";
5
5
  export {