@esri/calcite-components-react 1.7.0-next.8 → 1.7.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.
@@ -7,12 +7,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- const isBrowser = () => ![typeof window, typeof document, typeof location].includes("undefined") &&
11
- [typeof process, typeof global].includes("undefined") &&
12
- window.location === location &&
13
- window.document === document;
10
+ // https://github.com/flexdinesh/browser-or-node/blob/master/src/index.js
11
+ const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
12
+ const isNode = typeof process !== "undefined" &&
13
+ process.versions != null &&
14
+ process.versions.node != null &&
15
+ (process === null || process === void 0 ? void 0 : process.platform) !== "browser";
14
16
  export function autoDefine(component) {
15
- if (isBrowser()) {
17
+ if (isBrowser && !isNode) {
16
18
  return () => __awaiter(this, void 0, void 0, function* () { return (yield import(`@esri/calcite-components/dist/components/${component}.js`)).defineCustomElement(); });
17
19
  }
18
20
  return undefined;
@@ -74,6 +74,7 @@ export declare const CalciteScrim: import("react").ForwardRefExoticComponent<JSX
74
74
  export declare const CalciteSegmentedControl: import("react").ForwardRefExoticComponent<JSX.CalciteSegmentedControl & Omit<import("react").HTMLAttributes<HTMLCalciteSegmentedControlElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteSegmentedControlElement>>;
75
75
  export declare const CalciteSegmentedControlItem: import("react").ForwardRefExoticComponent<JSX.CalciteSegmentedControlItem & Omit<import("react").HTMLAttributes<HTMLCalciteSegmentedControlItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteSegmentedControlItemElement>>;
76
76
  export declare const CalciteSelect: import("react").ForwardRefExoticComponent<JSX.CalciteSelect & Omit<import("react").HTMLAttributes<HTMLCalciteSelectElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteSelectElement>>;
77
+ export declare const CalciteSheet: import("react").ForwardRefExoticComponent<JSX.CalciteSheet & Omit<import("react").HTMLAttributes<HTMLCalciteSheetElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteSheetElement>>;
77
78
  export declare const CalciteShell: import("react").ForwardRefExoticComponent<JSX.CalciteShell & Omit<import("react").HTMLAttributes<HTMLCalciteShellElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteShellElement>>;
78
79
  export declare const CalciteShellCenterRow: import("react").ForwardRefExoticComponent<JSX.CalciteShellCenterRow & Omit<import("react").HTMLAttributes<HTMLCalciteShellCenterRowElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteShellCenterRowElement>>;
79
80
  export declare const CalciteShellPanel: import("react").ForwardRefExoticComponent<JSX.CalciteShellPanel & Omit<import("react").HTMLAttributes<HTMLCalciteShellPanelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteShellPanelElement>>;
@@ -87,6 +88,10 @@ export declare const CalciteSwitch: import("react").ForwardRefExoticComponent<JS
87
88
  export declare const CalciteTab: import("react").ForwardRefExoticComponent<JSX.CalciteTab & Omit<import("react").HTMLAttributes<HTMLCalciteTabElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteTabElement>>;
88
89
  export declare const CalciteTabNav: import("react").ForwardRefExoticComponent<JSX.CalciteTabNav & Omit<import("react").HTMLAttributes<HTMLCalciteTabNavElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteTabNavElement>>;
89
90
  export declare const CalciteTabTitle: import("react").ForwardRefExoticComponent<JSX.CalciteTabTitle & Omit<import("react").HTMLAttributes<HTMLCalciteTabTitleElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteTabTitleElement>>;
91
+ export declare const CalciteTable: import("react").ForwardRefExoticComponent<JSX.CalciteTable & Omit<import("react").HTMLAttributes<HTMLCalciteTableElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteTableElement>>;
92
+ export declare const CalciteTableCell: import("react").ForwardRefExoticComponent<JSX.CalciteTableCell & Omit<import("react").HTMLAttributes<HTMLCalciteTableCellElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteTableCellElement>>;
93
+ export declare const CalciteTableHeader: import("react").ForwardRefExoticComponent<JSX.CalciteTableHeader & Omit<import("react").HTMLAttributes<HTMLCalciteTableHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteTableHeaderElement>>;
94
+ export declare const CalciteTableRow: import("react").ForwardRefExoticComponent<JSX.CalciteTableRow & Omit<import("react").HTMLAttributes<HTMLCalciteTableRowElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteTableRowElement>>;
90
95
  export declare const CalciteTabs: import("react").ForwardRefExoticComponent<JSX.CalciteTabs & Omit<import("react").HTMLAttributes<HTMLCalciteTabsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteTabsElement>>;
91
96
  export declare const CalciteTextArea: import("react").ForwardRefExoticComponent<JSX.CalciteTextArea & Omit<import("react").HTMLAttributes<HTMLCalciteTextAreaElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteTextAreaElement>>;
92
97
  export declare const CalciteTile: import("react").ForwardRefExoticComponent<JSX.CalciteTile & Omit<import("react").HTMLAttributes<HTMLCalciteTileElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalciteTileElement>>;
@@ -77,6 +77,7 @@ export const CalciteScrim = /*@__PURE__*/ createReactComponent('calcite-scrim',
77
77
  export const CalciteSegmentedControl = /*@__PURE__*/ createReactComponent('calcite-segmented-control', undefined, undefined, autoDefine('calcite-segmented-control'));
78
78
  export const CalciteSegmentedControlItem = /*@__PURE__*/ createReactComponent('calcite-segmented-control-item', undefined, undefined, autoDefine('calcite-segmented-control-item'));
79
79
  export const CalciteSelect = /*@__PURE__*/ createReactComponent('calcite-select', undefined, undefined, autoDefine('calcite-select'));
80
+ export const CalciteSheet = /*@__PURE__*/ createReactComponent('calcite-sheet', undefined, undefined, autoDefine('calcite-sheet'));
80
81
  export const CalciteShell = /*@__PURE__*/ createReactComponent('calcite-shell', undefined, undefined, autoDefine('calcite-shell'));
81
82
  export const CalciteShellCenterRow = /*@__PURE__*/ createReactComponent('calcite-shell-center-row', undefined, undefined, autoDefine('calcite-shell-center-row'));
82
83
  export const CalciteShellPanel = /*@__PURE__*/ createReactComponent('calcite-shell-panel', undefined, undefined, autoDefine('calcite-shell-panel'));
@@ -90,6 +91,10 @@ export const CalciteSwitch = /*@__PURE__*/ createReactComponent('calcite-switch'
90
91
  export const CalciteTab = /*@__PURE__*/ createReactComponent('calcite-tab', undefined, undefined, autoDefine('calcite-tab'));
91
92
  export const CalciteTabNav = /*@__PURE__*/ createReactComponent('calcite-tab-nav', undefined, undefined, autoDefine('calcite-tab-nav'));
92
93
  export const CalciteTabTitle = /*@__PURE__*/ createReactComponent('calcite-tab-title', undefined, undefined, autoDefine('calcite-tab-title'));
94
+ export const CalciteTable = /*@__PURE__*/ createReactComponent('calcite-table', undefined, undefined, autoDefine('calcite-table'));
95
+ export const CalciteTableCell = /*@__PURE__*/ createReactComponent('calcite-table-cell', undefined, undefined, autoDefine('calcite-table-cell'));
96
+ export const CalciteTableHeader = /*@__PURE__*/ createReactComponent('calcite-table-header', undefined, undefined, autoDefine('calcite-table-header'));
97
+ export const CalciteTableRow = /*@__PURE__*/ createReactComponent('calcite-table-row', undefined, undefined, autoDefine('calcite-table-row'));
93
98
  export const CalciteTabs = /*@__PURE__*/ createReactComponent('calcite-tabs', undefined, undefined, autoDefine('calcite-tabs'));
94
99
  export const CalciteTextArea = /*@__PURE__*/ createReactComponent('calcite-text-area', undefined, undefined, autoDefine('calcite-text-area'));
95
100
  export const CalciteTile = /*@__PURE__*/ createReactComponent('calcite-tile', undefined, undefined, autoDefine('calcite-tile'));
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@esri/calcite-components-react",
3
3
  "sideEffects": false,
4
- "version": "1.7.0-next.8",
4
+ "version": "1.7.0",
5
+ "homepage": "https://developers.arcgis.com/calcite-design-system/",
5
6
  "description": "A set of React components that wrap calcite components",
6
7
  "license": "SEE LICENSE.md",
7
8
  "scripts": {
@@ -19,7 +20,7 @@
19
20
  "dist/"
20
21
  ],
21
22
  "dependencies": {
22
- "@esri/calcite-components": "^1.7.0-next.8"
23
+ "@esri/calcite-components": "^1.7.0"
23
24
  },
24
25
  "peerDependencies": {
25
26
  "react": ">=16.7",
@@ -28,5 +29,5 @@
28
29
  "volta": {
29
30
  "extends": "../../package.json"
30
31
  },
31
- "gitHead": "44d26601d8f5324ad0efd689b0aaf1735d0473df"
32
+ "gitHead": "784cc259806a024b05524d39e81fe439936d8138"
32
33
  }