@esri/calcite-components-react 5.0.0-next.7 → 5.0.0-next.71

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/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Licensing
2
2
 
3
- COPYRIGHT © 2025 Esri
3
+ COPYRIGHT © Esri
4
4
 
5
5
  All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
6
6
 
package/README.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  This package provides React wrappers for [Calcite components](https://developers.arcgis.com/calcite-design-system/components/). Refer to the [React example](https://github.com/Esri/calcite-design-system/tree/dev/examples/components/react) for a minimal application using this package.
4
4
 
5
+ ## Deprecation Notice
6
+
7
+ > [!WARNING]
8
+ > Calcite Components React is deprecated in v5.0.0 and will be removed in v6.0.0.
9
+
10
+ The `@esri/calcite-components-react` package was originally developed for use with React 18 where wrappers were necessary to use custom elements. With React 19's custom element support, these wrappers are no longer needed.
11
+
12
+ Consider upgrading to React 19+ and using <code>@esri/calcite-components</code> directly.
13
+
5
14
  ## Installation
6
15
 
7
16
  ```sh
@@ -49,25 +58,19 @@ Since you manually defined the custom elements on the window, you only need to i
49
58
  import { CalciteButton, CalciteIcon, CalciteSlider } from "@esri/calcite-components-react";
50
59
  ```
51
60
 
52
- ## Import stylesheet
53
-
54
- Import the global stylesheet into your app (only do this once):
55
-
56
- ```js
57
- import "@esri/calcite-components/dist/calcite/calcite.css";
58
- ```
59
-
60
61
  ## Copy Assets
61
62
 
62
63
  Some components (icon, date-picker) rely on assets being available at a particular path. If using assets locally, you'll need to copy these over to your public folder. Something like:
63
64
 
64
65
  ```sh
65
- cp -r node_modules/@esri/calcite-components/dist/calcite/assets/* ./public/assets/
66
+ cp -r node_modules/@esri/calcite-components/dist/cdn/assets/* ./public/assets/
66
67
  ```
67
68
 
68
69
  ## Why not just use the web components directly?
69
70
 
70
- Because React uses a synthetic event system, the custom events emitted from Calcite components won't work with JSX in React. For example, say you want to update some value when the `calcite-slider` component changes. When using the standard web components, you need to save a ref to the element, and add a listener:
71
+ With React 19+'s native support for custom elements, you can now use <code>@esri/calcite-components</code> directly. See the [Calcite Components React Deprecation Notice](#deprecation-notice) for additional information.
72
+
73
+ Because React 18 and earlier versions use a synthetic event system, the custom events emitted from Calcite Components won't work with JSX in React. For example, if you are using standard web components to update a value when the `calcite-slider` component changes, you need to save a ref to the element and add a listener:
71
74
 
72
75
  ```jsx
73
76
  const sliderEl = useRef(null);
@@ -102,7 +105,7 @@ We welcome contributions to this project. See the [CONTRIBUTING.md](https://gith
102
105
 
103
106
  ## License
104
107
 
105
- COPYRIGHT © 2021 Esri
108
+ COPYRIGHT © Esri
106
109
 
107
110
  All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
108
111
 
@@ -353,11 +353,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
353
353
 
354
354
  ---
355
355
 
356
- sortablejs
356
+ scheduler
357
357
 
358
358
  MIT License
359
359
 
360
- Copyright (c) 2019 All contributors to Sortable
360
+ Copyright (c) Meta Platforms, Inc. and affiliates.
361
361
 
362
362
  Permission is hereby granted, free of charge, to any person obtaining a copy
363
363
  of this software and associated documentation files (the "Software"), to deal
@@ -379,6 +379,32 @@ SOFTWARE.
379
379
 
380
380
  ---
381
381
 
382
+ sortablejs
383
+
384
+ MIT License
385
+
386
+ Copyright (c) 2019 All contributors to Sortable
387
+
388
+ Permission is hereby granted, free of charge, to any person obtaining a copy
389
+ of this software and associated documentation files (the "Software"), to deal
390
+ in the Software without restriction, including without limitation the rights
391
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
392
+ copies of the Software, and to permit persons to whom the Software is
393
+ furnished to do so, subject to the following conditions:
394
+
395
+ The above copyright notice and this permission notice shall be included in all
396
+ copies or substantial portions of the Software.
397
+
398
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
399
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
400
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
401
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
402
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
403
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
404
+ SOFTWARE.
405
+
406
+ ---
407
+
382
408
  tabbable
383
409
 
384
410
  The MIT License (MIT)
@@ -435,17 +461,17 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
435
461
 
436
462
  tslib
437
463
 
438
- Copyright (c) Microsoft Corporation.
439
-
440
- Permission to use, copy, modify, and/or distribute this software for any
441
- purpose with or without fee is hereby granted.
442
-
443
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
444
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
445
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
446
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
447
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
448
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
464
+ Copyright (c) Microsoft Corporation.
465
+
466
+ Permission to use, copy, modify, and/or distribute this software for any
467
+ purpose with or without fee is hereby granted.
468
+
469
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
470
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
471
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
472
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
473
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
474
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
449
475
  PERFORMANCE OF THIS SOFTWARE.
450
476
 
451
477
  ---
@@ -11,7 +11,9 @@ export declare const CalciteAccordionItem: import("@lit/react").ReactWebComponen
11
11
  }>;
12
12
  export declare const CalciteAction: import("@lit/react").ReactWebComponent<HTMLCalciteActionElement & {
13
13
  class?: string;
14
- }, {}>;
14
+ }, {
15
+ onCalciteInternalActionMouseDown: EventName<HTMLCalciteActionElement["calciteInternalActionMouseDown"]>;
16
+ }>;
15
17
  export declare const CalciteActionBar: import("@lit/react").ReactWebComponent<HTMLCalciteActionBarElement & {
16
18
  class?: string;
17
19
  }, {
@@ -185,9 +187,6 @@ export declare const CalciteDatePickerDay: import("@lit/react").ReactWebComponen
185
187
  export declare const CalciteDatePickerMonth: import("@lit/react").ReactWebComponent<HTMLCalciteDatePickerMonthElement & {
186
188
  class?: string;
187
189
  }, {}>;
188
- export declare const CalciteDatePickerMonthHeader: import("@lit/react").ReactWebComponent<HTMLCalciteDatePickerMonthHeaderElement & {
189
- class?: string;
190
- }, {}>;
191
190
  export declare const CalciteDialog: import("@lit/react").ReactWebComponent<HTMLCalciteDialogElement & {
192
191
  class?: string;
193
192
  }, {
@@ -8,7 +8,9 @@ export const CalciteAccordionItem = /*@__PURE__*/ createWrapper(getReactWrapperO
8
8
  onCalciteAccordionItemCollapse: "calciteAccordionItemCollapse",
9
9
  onCalciteAccordionItemExpand: "calciteAccordionItemExpand",
10
10
  }));
11
- export const CalciteAction = /*@__PURE__*/ createWrapper(getReactWrapperOptions("calcite-action", {}));
11
+ export const CalciteAction = /*@__PURE__*/ createWrapper(getReactWrapperOptions("calcite-action", {
12
+ onCalciteInternalActionMouseDown: "calciteInternalActionMouseDown",
13
+ }));
12
14
  export const CalciteActionBar = /*@__PURE__*/ createWrapper(getReactWrapperOptions("calcite-action-bar", {
13
15
  onCalciteActionBarCollapse: "calciteActionBarCollapse",
14
16
  onCalciteActionBarExpand: "calciteActionBarExpand",
@@ -124,7 +126,6 @@ export const CalciteDatePicker = /*@__PURE__*/ createWrapper(getReactWrapperOpti
124
126
  }));
125
127
  export const CalciteDatePickerDay = /*@__PURE__*/ createWrapper(getReactWrapperOptions("calcite-date-picker-day", {}));
126
128
  export const CalciteDatePickerMonth = /*@__PURE__*/ createWrapper(getReactWrapperOptions("calcite-date-picker-month", {}));
127
- export const CalciteDatePickerMonthHeader = /*@__PURE__*/ createWrapper(getReactWrapperOptions("calcite-date-picker-month-header", {}));
128
129
  export const CalciteDialog = /*@__PURE__*/ createWrapper(getReactWrapperOptions("calcite-dialog", {
129
130
  onCalciteDialogBeforeClose: "calciteDialogBeforeClose",
130
131
  onCalciteDialogBeforeOpen: "calciteDialogBeforeOpen",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/calcite-components-react",
3
- "version": "5.0.0-next.7",
3
+ "version": "5.0.0-next.71",
4
4
  "description": "A set of React components that wrap calcite components",
5
5
  "homepage": "https://developers.arcgis.com/calcite-design-system/",
6
6
  "repository": {
@@ -28,8 +28,8 @@
28
28
  "util:update-3rd-party-licenses": "node ../../support/createThirdPartyLicenses.mts"
29
29
  },
30
30
  "dependencies": {
31
- "@arcgis/lumina": ">=5.0.0-next.24 <6.0.0",
32
- "@esri/calcite-components": "5.0.0-next.7",
31
+ "@arcgis/lumina": ">=5.0.0-next.75 <6.0.0",
32
+ "@esri/calcite-components": "5.0.0-next.71",
33
33
  "@lit/react": "^1.0.8",
34
34
  "lit": "^3.3.0"
35
35
  },
@@ -40,5 +40,5 @@
40
40
  "volta": {
41
41
  "extends": "../../package.json"
42
42
  },
43
- "gitHead": "230aed5e43c614d6ea25d27e45bb8d45ef36e9ee"
43
+ "gitHead": "2728a3e89e63ec4bd85076f7f17f3513c9e0b51e"
44
44
  }