pollination-react-io 0.0.37 → 0.0.41-beta

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.
@@ -1,3 +1,5 @@
1
+ @import "@radix-ui/colors/slate.css";
2
+
1
3
  $font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
2
4
 
3
5
  @mixin font-defaults {
@@ -15,12 +17,12 @@ span.label {
15
17
  @include font-defaults();
16
18
 
17
19
  font-size: clamp(0.75rem, 8vw - 0.85rem, 0.95rem);
18
- color: #11181C
20
+ color: var(--slate12)
19
21
  }
20
22
 
21
23
  span.label-secondary {
22
24
  @include font-defaults();
23
25
 
24
26
  font-size: clamp(0.65rem, 8vw - 0.75rem, 0.85rem);
25
- color: #687075;
27
+ color: var(--slate10);
26
28
  }
@@ -1,3 +1,5 @@
1
+ @import "@radix-ui/colors/slate.css";
2
+
1
3
  // Variables
2
4
 
3
5
  :root {
@@ -5,16 +7,16 @@
5
7
  --primary: #1890ff;
6
8
  --primary2: #40a9ff;
7
9
  --primary0: #e6f7ff;
8
- --grey5: #8c8c8c;
9
- --grey3: #d0d7de;
10
10
  --secondary: #fff566;
11
- --font-color: #494949;
11
+ --font-color: var(--slate12);
12
+ --grey5: var(--slate9);
13
+ --grey3: var(--slate6);
12
14
  }
13
15
 
14
16
  @media (prefers-color-scheme: dark) {
15
17
  :root {
16
- --background: #3c3c3c;
17
- --font-color: #fafafa;
18
+ --background: var(--slate11);
19
+ --font-color: var(--slate3);
18
20
  }
19
21
  }
20
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pollination-react-io",
3
- "version": "0.0.37",
3
+ "version": "0.0.41-beta",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "files": [
@@ -73,7 +73,6 @@
73
73
  "html-webpack-plugin": "^5.5.0",
74
74
  "identity-obj-proxy": "^3.0.0",
75
75
  "jest": "^26.6.3",
76
- "node-sass": "^7.0.1",
77
76
  "react": "^16.14.0",
78
77
  "react-dom": "^16.14.0",
79
78
  "rollup": "^2.56.3",
@@ -90,6 +89,9 @@
90
89
  "webpack": "^5.73.0"
91
90
  },
92
91
  "dependencies": {
92
+ "@pollination-solutions/pollination-sdk": "^0.28.1",
93
+ "@radix-ui/colors": "^0.1.8",
94
+ "@radix-ui/react-avatar": "^0.1.4",
93
95
  "@radix-ui/react-dropdown-menu": "^0.1.6",
94
96
  "@radix-ui/react-separator": "^0.1.4",
95
97
  "@radix-ui/react-tooltip": "^0.1.7",
@@ -97,4 +99,4 @@
97
99
  "react-bootstrap-icons": "^1.8.4",
98
100
  "react-dropzone": "^14.2.1"
99
101
  }
100
- }
102
+ }
@@ -1,5 +0,0 @@
1
- export declare const ConditionalWrapper: ({ condition, wrapper, children }: {
2
- condition: any;
3
- wrapper: any;
4
- children: any;
5
- }) => any;
@@ -1,27 +0,0 @@
1
- import React, { FC } from 'react';
2
- import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
3
- import "./Dropdown.scss";
4
- export declare type Option = {
5
- type: 'checkbox' | 'radio' | 'button' | 'label' | 'link';
6
- id: string;
7
- label: string;
8
- checked?: boolean;
9
- disabled?: boolean;
10
- onSelect?: (option: Option) => void;
11
- to?: string;
12
- };
13
- export declare type OptionGroup = {
14
- options: Option[];
15
- type?: 'radio' | 'default';
16
- value?: string;
17
- };
18
- interface DropdownProps {
19
- optionGroups: OptionGroup[];
20
- trigger: React.ReactNode;
21
- contentProps?: DropdownMenu.DropdownMenuContentProps;
22
- itemProps?: DropdownMenu.DropdownMenuItemProps;
23
- arrow?: boolean;
24
- disabled?: boolean;
25
- }
26
- export declare const Dropdown: FC<DropdownProps>;
27
- export {};
@@ -1,3 +0,0 @@
1
- export interface DropdownProps {
2
- foo: string;
3
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import "./FileInput.scss";
3
- declare const FileInput: React.FC<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>;
4
- export default FileInput;
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { GetHbjsonProps } from './GetHbjson.types';
3
- export declare const GetHbjson: FC<GetHbjsonProps>;
@@ -1,3 +0,0 @@
1
- export interface GetHbjsonProps {
2
- setParentState: (data: any) => any;
3
- }
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function Logo(): JSX.Element;
@@ -1,2 +0,0 @@
1
- import { FC } from 'react';
2
- export declare const ManageSettings: FC;
@@ -1,3 +0,0 @@
1
- export interface ManageSettingsProps {
2
- foo: string;
3
- }
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { SendHbjsonProps } from './SendHbjson.types';
3
- export declare const SendHbjson: FC<SendHbjsonProps>;
@@ -1,3 +0,0 @@
1
- export interface SendHbjsonProps {
2
- hbjson?: object;
3
- }
@@ -1,282 +0,0 @@
1
- export declare const hbjson: {
2
- type: string;
3
- identifier: string;
4
- display_name: string;
5
- units: string;
6
- properties: {
7
- type: string;
8
- energy: {
9
- type: string;
10
- construction_sets: any[];
11
- constructions: any[];
12
- materials: any[];
13
- hvacs: {
14
- type: string;
15
- identifier: string;
16
- economizer_type: string;
17
- demand_controlled_ventilation: boolean;
18
- sensible_heat_recovery: number;
19
- latent_heat_recovery: number;
20
- heating_air_temperature: number;
21
- cooling_air_temperature: number;
22
- heating_limit: {
23
- type: string;
24
- };
25
- cooling_limit: {
26
- type: string;
27
- };
28
- }[];
29
- program_types: {
30
- type: string;
31
- identifier: string;
32
- people: {
33
- type: string;
34
- identifier: string;
35
- people_per_area: number;
36
- radiant_fraction: number;
37
- latent_fraction: {
38
- type: string;
39
- };
40
- occupancy_schedule: string;
41
- activity_schedule: string;
42
- };
43
- lighting: {
44
- type: string;
45
- identifier: string;
46
- watts_per_area: number;
47
- return_air_fraction: number;
48
- radiant_fraction: number;
49
- visible_fraction: number;
50
- schedule: string;
51
- };
52
- electric_equipment: {
53
- type: string;
54
- identifier: string;
55
- watts_per_area: number;
56
- radiant_fraction: number;
57
- latent_fraction: number;
58
- lost_fraction: number;
59
- schedule: string;
60
- };
61
- infiltration: {
62
- type: string;
63
- identifier: string;
64
- flow_per_exterior_area: number;
65
- schedule: string;
66
- };
67
- ventilation: {
68
- type: string;
69
- identifier: string;
70
- air_changes_per_hour: number;
71
- };
72
- setpoint: {
73
- type: string;
74
- identifier: string;
75
- heating_schedule: string;
76
- cooling_schedule: string;
77
- };
78
- }[];
79
- schedules: ({
80
- type: string;
81
- identifier: string;
82
- day_schedules: {
83
- type: string;
84
- identifier: string;
85
- values: number[];
86
- times: number[][];
87
- interpolate: boolean;
88
- }[];
89
- default_day_schedule: string;
90
- schedule_type_limit: string;
91
- summer_designday_schedule?: undefined;
92
- winter_designday_schedule?: undefined;
93
- schedule_rules?: undefined;
94
- } | {
95
- type: string;
96
- identifier: string;
97
- day_schedules: {
98
- type: string;
99
- identifier: string;
100
- values: number[];
101
- times: number[][];
102
- interpolate: boolean;
103
- }[];
104
- default_day_schedule: string;
105
- summer_designday_schedule: string;
106
- winter_designday_schedule: string;
107
- schedule_type_limit: string;
108
- schedule_rules?: undefined;
109
- } | {
110
- type: string;
111
- identifier: string;
112
- day_schedules: {
113
- type: string;
114
- identifier: string;
115
- values: number[];
116
- times: number[][];
117
- interpolate: boolean;
118
- }[];
119
- default_day_schedule: string;
120
- schedule_rules: {
121
- type: string;
122
- schedule_day: string;
123
- apply_sunday: boolean;
124
- apply_monday: boolean;
125
- apply_tuesday: boolean;
126
- apply_wednesday: boolean;
127
- apply_thursday: boolean;
128
- apply_friday: boolean;
129
- apply_saturday: boolean;
130
- start_date: number[];
131
- end_date: number[];
132
- }[];
133
- summer_designday_schedule: string;
134
- winter_designday_schedule: string;
135
- schedule_type_limit: string;
136
- })[];
137
- schedule_type_limits: ({
138
- type: string;
139
- identifier: string;
140
- lower_limit: number;
141
- upper_limit: number;
142
- numeric_type: string;
143
- unit_type: string;
144
- } | {
145
- type: string;
146
- identifier: string;
147
- lower_limit: number;
148
- upper_limit: {
149
- type: string;
150
- };
151
- numeric_type: string;
152
- unit_type: string;
153
- })[];
154
- };
155
- radiance: {
156
- type: string;
157
- modifier_sets: any[];
158
- modifiers: any[];
159
- };
160
- };
161
- rooms: {
162
- type: string;
163
- identifier: string;
164
- display_name: string;
165
- properties: {
166
- type: string;
167
- energy: {
168
- type: string;
169
- program_type: string;
170
- hvac: string;
171
- setpoint: {
172
- type: string;
173
- identifier: string;
174
- heating_schedule: string;
175
- cooling_schedule: string;
176
- humidifying_schedule: string;
177
- dehumidifying_schedule: string;
178
- };
179
- };
180
- radiance: {
181
- type: string;
182
- };
183
- };
184
- faces: ({
185
- type: string;
186
- identifier: string;
187
- display_name: string;
188
- properties: {
189
- type: string;
190
- energy: {
191
- type: string;
192
- };
193
- radiance: {
194
- type: string;
195
- };
196
- };
197
- geometry: {
198
- type: string;
199
- boundary: number[][];
200
- };
201
- face_type: string;
202
- boundary_condition: {
203
- type: string;
204
- sun_exposure?: undefined;
205
- wind_exposure?: undefined;
206
- view_factor?: undefined;
207
- };
208
- apertures?: undefined;
209
- } | {
210
- type: string;
211
- identifier: string;
212
- display_name: string;
213
- properties: {
214
- type: string;
215
- energy: {
216
- type: string;
217
- };
218
- radiance: {
219
- type: string;
220
- };
221
- };
222
- geometry: {
223
- type: string;
224
- boundary: number[][];
225
- };
226
- face_type: string;
227
- boundary_condition: {
228
- type: string;
229
- sun_exposure: boolean;
230
- wind_exposure: boolean;
231
- view_factor: {
232
- type: string;
233
- };
234
- };
235
- apertures: {
236
- type: string;
237
- identifier: string;
238
- display_name: string;
239
- properties: {
240
- type: string;
241
- energy: {
242
- type: string;
243
- };
244
- radiance: {
245
- type: string;
246
- };
247
- };
248
- geometry: {
249
- type: string;
250
- boundary: number[][];
251
- };
252
- is_operable: boolean;
253
- boundary_condition: {
254
- type: string;
255
- sun_exposure: boolean;
256
- wind_exposure: boolean;
257
- view_factor: {
258
- type: string;
259
- };
260
- };
261
- outdoor_shades: {
262
- type: string;
263
- identifier: string;
264
- display_name: string;
265
- properties: {
266
- type: string;
267
- energy: {
268
- type: string;
269
- };
270
- radiance: {
271
- type: string;
272
- };
273
- };
274
- geometry: {
275
- type: string;
276
- boundary: number[][];
277
- };
278
- }[];
279
- }[];
280
- })[];
281
- }[];
282
- };
@@ -1,11 +0,0 @@
1
- import React, { FC, ReactNode } from 'react';
2
- import { OptionGroup } from '../Dropdown/Dropdown';
3
- import '../buttons.scss';
4
- export interface SettingsButtonProps {
5
- onClick: () => void;
6
- label: string | ReactNode;
7
- options?: OptionGroup[];
8
- disabled?: boolean;
9
- triggerIcon?: React.ReactNode;
10
- }
11
- export declare const SettingsButton: FC<SettingsButtonProps>;
@@ -1,10 +0,0 @@
1
- import React, { CSSProperties, FC } from "react";
2
- import './Tooltip.scss';
3
- interface TooltipProps {
4
- content: React.ReactNode | string;
5
- side?: "top" | "right" | "bottom" | "left";
6
- children?: React.ReactNode;
7
- style?: CSSProperties;
8
- }
9
- export declare const Tooltip: FC<TooltipProps>;
10
- export {};