@itiseeron/component-lib 1.0.0 → 1.1.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/dist/index.mjs CHANGED
@@ -1,11 +1,5 @@
1
- // src/components/HelloWorld/HelloWorld.jsx
2
- import React from "react";
3
- var HelloWorld = () => {
4
- return /* @__PURE__ */ React.createElement(React.Fragment, null, "HelloWorld");
5
- };
6
-
7
1
  // src/components/Button/ThinButton.tsx
8
- import React2 from "react";
2
+ import React from "react";
9
3
  import PropTypes from "prop-types";
10
4
  var container = {
11
5
  //flex: 1,
@@ -32,7 +26,12 @@ var buttonText = {
32
26
  color: "#B3C0C2",
33
27
  fontSize: "16px",
34
28
  alignSelf: "center",
35
- font: ""
29
+ fontFamily: "nunito-regular"
30
+ };
31
+ var buttonReset = {
32
+ appearance: "none",
33
+ border: "none",
34
+ backgroundColor: "transparent"
36
35
  };
37
36
  function ThinButton({
38
37
  testID = "thin-button",
@@ -44,17 +43,17 @@ function ThinButton({
44
43
  },
45
44
  children
46
45
  }) {
47
- const [touched, touchedSet] = React2.useState(false);
48
- return /* @__PURE__ */ React2.createElement(
46
+ const [touched, touchedSet] = React.useState(false);
47
+ return /* @__PURE__ */ React.createElement(
49
48
  "button",
50
49
  {
51
50
  id: testID,
52
- style: { ...buttonStyle, opacity: touched ? 0.5 : 1, transition: "opacity 300ms ease" },
51
+ style: { ...buttonReset, ...buttonStyle, opacity: touched ? 0.5 : 1, transition: "opacity 300ms ease" },
53
52
  onClick: onclick,
54
53
  onMouseDown: () => touchedSet(true),
55
54
  onMouseUp: () => touchedSet(false)
56
55
  },
57
- children == void 0 || children == null ? /* @__PURE__ */ React2.createElement("span", { style: buttonTextStyle }, text) : children
56
+ children == void 0 || children == null ? /* @__PURE__ */ React.createElement("span", { style: buttonTextStyle }, text) : children
58
57
  );
59
58
  }
60
59
  ThinButton.propTypes = {
@@ -69,7 +68,7 @@ ThinButton.propTypes = {
69
68
  };
70
69
 
71
70
  // src/components/Card/Card.tsx
72
- import React3 from "react";
71
+ import React2 from "react";
73
72
  import PropTypes2 from "prop-types";
74
73
  var container2 = {
75
74
  backgroundColor: "white",
@@ -122,6 +121,11 @@ var closeButtonContainer = {
122
121
  border: "none",
123
122
  background: "none"
124
123
  };
124
+ var buttonReset2 = {
125
+ appearance: "none",
126
+ border: "none",
127
+ backgroundColor: "transparent"
128
+ };
125
129
  function Card({
126
130
  containerStyle = container2,
127
131
  wrapperStyle = wrapper,
@@ -131,58 +135,59 @@ function Card({
131
135
  subtitleStyle = subtitle,
132
136
  titleContainerStyle = titleBoxContainer,
133
137
  closeButtonStyle = closeButton,
138
+ closeButtonContainerStyle = closeButtonContainer,
134
139
  showCloseButton = false,
135
140
  onClickCloseButton: closeButtonPressedCallBack = () => {
136
141
  },
137
142
  children
138
143
  }) {
139
- const [touched, touchedSet] = React3.useState(false);
144
+ const [touched, touchedSet] = React2.useState(false);
140
145
  function renderCloseButton() {
141
146
  if (showCloseButton) {
142
- return /* @__PURE__ */ React3.createElement(
147
+ return /* @__PURE__ */ React2.createElement(
143
148
  "button",
144
149
  {
145
150
  id: "click-card-close-button",
146
- style: { ...closeButtonContainer, opacity: touched ? 0.5 : 1, transition: "opacity 300ms ease" },
151
+ style: { ...buttonReset2, ...closeButtonContainerStyle, opacity: touched ? 0.5 : 1, transition: "opacity 300ms ease" },
147
152
  onClick: closeButtonPressedCallBack,
148
153
  onMouseDown: () => touchedSet(true),
149
154
  onMouseUp: () => touchedSet(false)
150
155
  },
151
- /* @__PURE__ */ React3.createElement("span", { style: closeButtonStyle }, "X")
156
+ /* @__PURE__ */ React2.createElement("span", { style: closeButtonStyle }, "X")
152
157
  );
153
158
  }
154
- return /* @__PURE__ */ React3.createElement(React3.Fragment, null);
159
+ return /* @__PURE__ */ React2.createElement(React2.Fragment, null);
155
160
  }
156
161
  function renderSubtitle() {
157
162
  if (subtitleText == null || subtitleText == void 0) {
158
- return /* @__PURE__ */ React3.createElement(React3.Fragment, null);
163
+ return /* @__PURE__ */ React2.createElement(React2.Fragment, null);
159
164
  }
160
- return /* @__PURE__ */ React3.createElement("span", { style: subtitleStyle }, subtitleText);
165
+ return /* @__PURE__ */ React2.createElement("span", { style: subtitleStyle }, subtitleText);
161
166
  }
162
167
  function renderTitle() {
163
- if (titleText2 == null || titleText2 == void 0) return /* @__PURE__ */ React3.createElement(React3.Fragment, null);
164
- return /* @__PURE__ */ React3.createElement("div", { style: titleContainerStyle }, /* @__PURE__ */ React3.createElement("div", null, /* @__PURE__ */ React3.createElement("span", { style: titleStyle }, titleText2)), /* @__PURE__ */ React3.createElement("div", null, renderSubtitle()));
168
+ if (titleText2 == null || titleText2 == void 0) return /* @__PURE__ */ React2.createElement(React2.Fragment, null);
169
+ return /* @__PURE__ */ React2.createElement("div", { style: titleContainerStyle }, /* @__PURE__ */ React2.createElement("div", null, /* @__PURE__ */ React2.createElement("span", { style: titleStyle }, titleText2)), /* @__PURE__ */ React2.createElement("div", null, renderSubtitle()));
165
170
  }
166
- return /* @__PURE__ */ React3.createElement("div", { style: containerStyle }, renderCloseButton(), renderTitle(), /* @__PURE__ */ React3.createElement("div", { style: wrapperStyle }, children));
171
+ return /* @__PURE__ */ React2.createElement("div", { style: containerStyle }, renderCloseButton(), renderTitle(), /* @__PURE__ */ React2.createElement("div", { style: wrapperStyle }, children));
167
172
  }
168
173
  Card.propTypes = {
169
174
  key: PropTypes2.string,
170
175
  children: PropTypes2.any,
171
176
  containerStyle: PropTypes2.object,
172
177
  wrapperStyle: PropTypes2.object,
173
- title: PropTypes2.string,
178
+ titleText: PropTypes2.string,
174
179
  titleStyle: PropTypes2.object,
175
- subtitle: PropTypes2.string,
176
- subtitleStyle: PropTypes2.string,
180
+ subtitleText: PropTypes2.string,
181
+ subtitleStyle: PropTypes2.object,
177
182
  titleContainerStyle: PropTypes2.object,
178
183
  closeButtonStyle: PropTypes2.object,
179
184
  closeButtonContainerStyle: PropTypes2.object,
180
- showCloseButton: PropTypes2.object,
181
- closeButtonPressedCallBack: PropTypes2.func
185
+ showCloseButton: PropTypes2.bool,
186
+ onClickCloseButton: PropTypes2.func
182
187
  };
183
188
 
184
189
  // src/components/InputForm/InputForm.tsx
185
- import React4 from "react";
190
+ import React3 from "react";
186
191
  import PropTypes3 from "prop-types";
187
192
  var container3 = {
188
193
  flex: 1,
@@ -190,7 +195,7 @@ var container3 = {
190
195
  };
191
196
  var formTitle = {
192
197
  flex: 1,
193
- fontFamily: "nunito_regular",
198
+ fontFamily: "nunito-regular",
194
199
  color: "#AFB3B5",
195
200
  fontSize: "15px"
196
201
  };
@@ -218,7 +223,7 @@ var inputForm = {
218
223
  paddingLeft: 10
219
224
  };
220
225
  var errorText = {
221
- fontFamily: "nunito_regular",
226
+ fontFamily: "nunito-regular",
222
227
  fontSize: 14,
223
228
  color: "#C70000"
224
229
  };
@@ -241,7 +246,7 @@ function InputForm({
241
246
  trim = false,
242
247
  maxLength = 200
243
248
  }) {
244
- const [internalValue, setInternalValue] = React4.useState(defaultValue);
249
+ const [internalValue, setInternalValue] = React3.useState(defaultValue);
245
250
  const isControlled = controlledValue != null;
246
251
  const value = isControlled ? controlledValue : internalValue;
247
252
  function onChange(rawValue) {
@@ -249,14 +254,14 @@ function InputForm({
249
254
  onInput(trim ? rawValue.trim() : rawValue);
250
255
  }
251
256
  function renderLabel() {
252
- if (name == null) return /* @__PURE__ */ React4.createElement(React4.Fragment, null);
253
- return /* @__PURE__ */ React4.createElement("div", { style: formTitleWrapper }, /* @__PURE__ */ React4.createElement("label", { style: formTitleStyle }, name));
257
+ if (name == null) return /* @__PURE__ */ React3.createElement(React3.Fragment, null);
258
+ return /* @__PURE__ */ React3.createElement("div", { style: formTitleWrapper }, /* @__PURE__ */ React3.createElement("label", { style: formTitleStyle }, name));
254
259
  }
255
260
  function renderError() {
256
- if (errorMessage == null) return /* @__PURE__ */ React4.createElement(React4.Fragment, null);
257
- return /* @__PURE__ */ React4.createElement("span", { style: errorStyle }, errorMessage);
261
+ if (errorMessage == null) return /* @__PURE__ */ React3.createElement(React3.Fragment, null);
262
+ return /* @__PURE__ */ React3.createElement("span", { style: errorStyle }, errorMessage);
258
263
  }
259
- return /* @__PURE__ */ React4.createElement("div", { id: testID, style: containerStyle }, renderLabel(), /* @__PURE__ */ React4.createElement("div", { style: inputWrapper }, multiline ? /* @__PURE__ */ React4.createElement(
264
+ return /* @__PURE__ */ React3.createElement("div", { id: testID, style: containerStyle }, renderLabel(), /* @__PURE__ */ React3.createElement("div", { style: inputWrapper }, multiline ? /* @__PURE__ */ React3.createElement(
260
265
  "textarea",
261
266
  {
262
267
  value,
@@ -266,7 +271,7 @@ function InputForm({
266
271
  maxLength,
267
272
  onChange: (input) => onChange(input.currentTarget.value)
268
273
  }
269
- ) : /* @__PURE__ */ React4.createElement(
274
+ ) : /* @__PURE__ */ React3.createElement(
270
275
  "input",
271
276
  {
272
277
  value,
@@ -299,11 +304,11 @@ InputForm.propTypes = {
299
304
  };
300
305
 
301
306
  // src/components/NavigationBar/NavigationBar.tsx
302
- import React6 from "react";
307
+ import React5 from "react";
303
308
  import PropTypes5 from "prop-types";
304
309
 
305
310
  // src/components/NavigationBar/NavigationBarView.tsx
306
- import React5 from "react";
311
+ import React4 from "react";
307
312
  import PropTypes4 from "prop-types";
308
313
  var container4 = {
309
314
  display: "flex",
@@ -337,6 +342,11 @@ var itemText = {
337
342
  var activeItemText = {
338
343
  color: "#00ADE9"
339
344
  };
345
+ var itemReset = {
346
+ appearance: "none",
347
+ border: "none",
348
+ backgroundColor: "transparent"
349
+ };
340
350
  function NavigationBarView({
341
351
  testID = "navigation-bar",
342
352
  items,
@@ -350,20 +360,20 @@ function NavigationBarView({
350
360
  }) {
351
361
  function renderItem(navItem) {
352
362
  const active = navItem.key === selectedKey;
353
- return /* @__PURE__ */ React5.createElement(
363
+ return /* @__PURE__ */ React4.createElement(
354
364
  "button",
355
365
  {
356
366
  id: `${testID}-item-${navItem.key}`,
357
367
  key: navItem.key,
358
368
  disabled: navItem.disabled,
359
- style: { ...itemStyle, ...active ? activeItemStyle : {}, opacity: navItem.disabled ? 0.4 : 1 },
369
+ style: { ...itemReset, ...itemStyle, ...active ? activeItemStyle : {}, opacity: navItem.disabled ? 0.4 : 1 },
360
370
  onClick: () => onItemSelect(navItem)
361
371
  },
362
372
  navItem.icon,
363
- /* @__PURE__ */ React5.createElement("span", { style: { ...itemTextStyle, ...active ? activeItemTextStyle : {} } }, navItem.label)
373
+ /* @__PURE__ */ React4.createElement("span", { style: { ...itemTextStyle, ...active ? activeItemTextStyle : {} } }, navItem.label)
364
374
  );
365
375
  }
366
- return /* @__PURE__ */ React5.createElement("nav", { id: testID, style: containerStyle }, items.map(renderItem));
376
+ return /* @__PURE__ */ React4.createElement("nav", { id: testID, style: containerStyle }, items.map(renderItem));
367
377
  }
368
378
  NavigationBarView.propTypes = {
369
379
  testID: PropTypes4.string,
@@ -390,7 +400,7 @@ function NavigationBar({
390
400
  selectedKey: controlledSelectedKey,
391
401
  onSelect: onSelectCallback = () => {
392
402
  },
393
- render = (viewProps) => /* @__PURE__ */ React6.createElement(NavigationBarView, { ...viewProps }),
403
+ render = (viewProps) => /* @__PURE__ */ React5.createElement(NavigationBarView, { ...viewProps }),
394
404
  containerStyle,
395
405
  itemStyle,
396
406
  activeItemStyle,
@@ -398,7 +408,7 @@ function NavigationBar({
398
408
  activeItemTextStyle
399
409
  }) {
400
410
  var _a;
401
- const [internalSelectedKey, setInternalSelectedKey] = React6.useState(defaultSelectedKey != null ? defaultSelectedKey : (_a = items[0]) == null ? void 0 : _a.key);
411
+ const [internalSelectedKey, setInternalSelectedKey] = React5.useState(defaultSelectedKey != null ? defaultSelectedKey : (_a = items[0]) == null ? void 0 : _a.key);
402
412
  const isControlled = controlledSelectedKey != null;
403
413
  const selectedKey = isControlled ? controlledSelectedKey : internalSelectedKey;
404
414
  function selectItem(navItem) {
@@ -439,11 +449,11 @@ NavigationBar.propTypes = {
439
449
  };
440
450
 
441
451
  // src/components/HamburgerMenu/HamburgerMenu.tsx
442
- import React8 from "react";
452
+ import React7 from "react";
443
453
  import PropTypes7 from "prop-types";
444
454
 
445
455
  // src/components/HamburgerMenu/HamburgerMenuView.tsx
446
- import React7 from "react";
456
+ import React6 from "react";
447
457
  import PropTypes6 from "prop-types";
448
458
  var container5 = {
449
459
  position: "relative",
@@ -467,6 +477,11 @@ var iconText = {
467
477
  color: "#B3C0C2",
468
478
  fontSize: "24px"
469
479
  };
480
+ var buttonReset3 = {
481
+ appearance: "none",
482
+ border: "none",
483
+ backgroundColor: "transparent"
484
+ };
470
485
  var panel = {
471
486
  position: "absolute",
472
487
  top: "100%",
@@ -497,22 +512,22 @@ function HamburgerMenuView({
497
512
  itemTextStyle,
498
513
  activeItemTextStyle
499
514
  }) {
500
- const [isOpen, setIsOpen] = React7.useState(false);
515
+ const [isOpen, setIsOpen] = React6.useState(false);
501
516
  function selectAndClose(navItem) {
502
517
  onItemSelect(navItem);
503
518
  setIsOpen(false);
504
519
  }
505
- return /* @__PURE__ */ React7.createElement("div", { id: testID, style: containerStyle }, /* @__PURE__ */ React7.createElement(
520
+ return /* @__PURE__ */ React6.createElement("div", { id: testID, style: containerStyle }, /* @__PURE__ */ React6.createElement(
506
521
  "button",
507
522
  {
508
523
  id: `${testID}-toggle`,
509
524
  type: "button",
510
525
  "aria-expanded": isOpen,
511
- style: buttonStyle,
526
+ style: { ...buttonReset3, ...buttonStyle },
512
527
  onClick: () => setIsOpen((open) => !open)
513
528
  },
514
- icon != null ? icon : /* @__PURE__ */ React7.createElement("span", { style: iconStyle }, "\u2630")
515
- ), isOpen && /* @__PURE__ */ React7.createElement(
529
+ icon != null ? icon : /* @__PURE__ */ React6.createElement("span", { style: iconStyle }, "\u2630")
530
+ ), isOpen && /* @__PURE__ */ React6.createElement(
516
531
  NavigationBarView,
517
532
  {
518
533
  testID: `${testID}-panel`,
@@ -565,7 +580,7 @@ function HamburgerMenu({
565
580
  itemTextStyle,
566
581
  activeItemTextStyle
567
582
  }) {
568
- return /* @__PURE__ */ React8.createElement(
583
+ return /* @__PURE__ */ React7.createElement(
569
584
  NavigationBar,
570
585
  {
571
586
  testID,
@@ -573,7 +588,7 @@ function HamburgerMenu({
573
588
  defaultSelectedKey,
574
589
  selectedKey,
575
590
  onSelect,
576
- render: (viewProps) => /* @__PURE__ */ React8.createElement(
591
+ render: (viewProps) => /* @__PURE__ */ React7.createElement(
577
592
  HamburgerMenuView,
578
593
  {
579
594
  testID: viewProps.testID,
@@ -618,11 +633,11 @@ HamburgerMenu.propTypes = {
618
633
  };
619
634
 
620
635
  // src/components/RadioButtonGroup/RadioButtonGroup.tsx
621
- import React10 from "react";
636
+ import React9 from "react";
622
637
  import PropTypes9 from "prop-types";
623
638
 
624
639
  // src/components/RadioButtonGroup/RadioButtonGroupView.tsx
625
- import React9 from "react";
640
+ import React8 from "react";
626
641
  import PropTypes8 from "prop-types";
627
642
  var titleContainer = {
628
643
  width: "100%"
@@ -650,7 +665,9 @@ var item2 = {
650
665
  height: "40px",
651
666
  padding: "10px",
652
667
  backgroundColor: "transparent",
653
- border: "1px solid rgba(55,66,69,.5)",
668
+ borderWidth: "1px",
669
+ borderStyle: "solid",
670
+ borderColor: "rgba(55,66,69,.5)",
654
671
  cursor: "pointer",
655
672
  transition: "opacity 300ms ease"
656
673
  };
@@ -666,6 +683,11 @@ var itemText2 = {
666
683
  var activeItemText2 = {
667
684
  color: "white"
668
685
  };
686
+ var itemReset2 = {
687
+ appearance: "none",
688
+ border: "none",
689
+ backgroundColor: "transparent"
690
+ };
669
691
  function RadioButtonGroupView({
670
692
  testID = "radio-button-group",
671
693
  items,
@@ -681,8 +703,8 @@ function RadioButtonGroupView({
681
703
  activeItemTextStyle = activeItemText2
682
704
  }) {
683
705
  function renderTitle() {
684
- if (title2 == null) return /* @__PURE__ */ React9.createElement(React9.Fragment, null);
685
- return /* @__PURE__ */ React9.createElement("div", { style: titleContainerStyle }, /* @__PURE__ */ React9.createElement("span", { style: titleStyle }, title2));
706
+ if (title2 == null) return /* @__PURE__ */ React8.createElement(React8.Fragment, null);
707
+ return /* @__PURE__ */ React8.createElement("div", { style: titleContainerStyle }, /* @__PURE__ */ React8.createElement("span", { style: titleStyle }, title2));
686
708
  }
687
709
  function renderItem(navItem, index) {
688
710
  const active = navItem.key === selectedKey;
@@ -690,20 +712,20 @@ function RadioButtonGroupView({
690
712
  ...index === 0 ? { borderTopLeftRadius: 4, borderBottomLeftRadius: 4 } : {},
691
713
  ...index === items.length - 1 ? { borderTopRightRadius: 4, borderBottomRightRadius: 4 } : {}
692
714
  };
693
- return /* @__PURE__ */ React9.createElement(
715
+ return /* @__PURE__ */ React8.createElement(
694
716
  "button",
695
717
  {
696
718
  id: `${testID}-item-${navItem.key}`,
697
719
  key: navItem.key,
698
720
  disabled: navItem.disabled,
699
- style: { ...positionStyle, ...itemStyle, ...active ? activeItemStyle : {}, opacity: navItem.disabled ? 0.4 : 1 },
721
+ style: { ...itemReset2, ...positionStyle, ...itemStyle, ...active ? activeItemStyle : {}, opacity: navItem.disabled ? 0.4 : 1 },
700
722
  onClick: () => onItemSelect(navItem)
701
723
  },
702
724
  navItem.icon,
703
- /* @__PURE__ */ React9.createElement("span", { style: { ...itemTextStyle, ...active ? activeItemTextStyle : {} } }, navItem.label)
725
+ /* @__PURE__ */ React8.createElement("span", { style: { ...itemTextStyle, ...active ? activeItemTextStyle : {} } }, navItem.label)
704
726
  );
705
727
  }
706
- return /* @__PURE__ */ React9.createElement("div", { id: testID }, renderTitle(), /* @__PURE__ */ React9.createElement("div", { style: containerStyle }, items.map(renderItem)));
728
+ return /* @__PURE__ */ React8.createElement("div", { id: testID }, renderTitle(), /* @__PURE__ */ React8.createElement("div", { style: containerStyle }, items.map(renderItem)));
707
729
  }
708
730
  RadioButtonGroupView.propTypes = {
709
731
  testID: PropTypes8.string,
@@ -741,7 +763,7 @@ function RadioButtonGroup({
741
763
  itemTextStyle,
742
764
  activeItemTextStyle
743
765
  }) {
744
- return /* @__PURE__ */ React10.createElement(
766
+ return /* @__PURE__ */ React9.createElement(
745
767
  NavigationBar,
746
768
  {
747
769
  testID,
@@ -749,7 +771,7 @@ function RadioButtonGroup({
749
771
  defaultSelectedKey,
750
772
  selectedKey,
751
773
  onSelect,
752
- render: (viewProps) => /* @__PURE__ */ React10.createElement(
774
+ render: (viewProps) => /* @__PURE__ */ React9.createElement(
753
775
  RadioButtonGroupView,
754
776
  {
755
777
  testID: viewProps.testID,
@@ -792,7 +814,7 @@ RadioButtonGroup.propTypes = {
792
814
  };
793
815
 
794
816
  // src/components/Loading/Loading.tsx
795
- import React11 from "react";
817
+ import React10 from "react";
796
818
  import PropTypes10 from "prop-types";
797
819
  var spinnerKeyframes = `
798
820
  @keyframes component-lib-loading-spin {
@@ -832,7 +854,7 @@ function Loading({
832
854
  wrapperStyle = wrapper2,
833
855
  spinnerStyle = spinner
834
856
  }) {
835
- return /* @__PURE__ */ React11.createElement("div", { id: testID }, /* @__PURE__ */ React11.createElement("style", null, spinnerKeyframes), /* @__PURE__ */ React11.createElement(Card, { containerStyle, wrapperStyle }, /* @__PURE__ */ React11.createElement("div", { style: spinnerStyle }), children));
857
+ return /* @__PURE__ */ React10.createElement("div", { id: testID }, /* @__PURE__ */ React10.createElement("style", null, spinnerKeyframes), /* @__PURE__ */ React10.createElement(Card, { containerStyle, wrapperStyle }, /* @__PURE__ */ React10.createElement("div", { style: spinnerStyle }), children));
836
858
  }
837
859
  Loading.propTypes = {
838
860
  key: PropTypes10.any,
@@ -844,11 +866,11 @@ Loading.propTypes = {
844
866
  };
845
867
 
846
868
  // src/components/ScrollMenu/ScrollMenu.tsx
847
- import React13 from "react";
869
+ import React12 from "react";
848
870
  import PropTypes12 from "prop-types";
849
871
 
850
872
  // src/components/ScrollMenu/ScrollMenuView.tsx
851
- import React12 from "react";
873
+ import React11 from "react";
852
874
  import PropTypes11 from "prop-types";
853
875
  var container8 = {
854
876
  display: "flex",
@@ -886,6 +908,11 @@ var tileText = {
886
908
  fontSize: "14px",
887
909
  textAlign: "center"
888
910
  };
911
+ var tileReset = {
912
+ appearance: "none",
913
+ border: "none",
914
+ backgroundColor: "transparent"
915
+ };
889
916
  function ScrollMenuView({
890
917
  testID = "scroll-menu",
891
918
  items,
@@ -899,19 +926,19 @@ function ScrollMenuView({
899
926
  function renderItem(navItem) {
900
927
  var _a;
901
928
  const active = navItem.key === selectedKey;
902
- return /* @__PURE__ */ React12.createElement(
929
+ return /* @__PURE__ */ React11.createElement(
903
930
  "button",
904
931
  {
905
932
  id: `${testID}-item-${navItem.key}`,
906
933
  key: navItem.key,
907
934
  disabled: navItem.disabled,
908
- style: { ...tileStyle, ...active ? activeTileStyle : {}, opacity: navItem.disabled ? 0.4 : 1 },
935
+ style: { ...tileReset, ...tileStyle, ...active ? activeTileStyle : {}, opacity: navItem.disabled ? 0.4 : 1 },
909
936
  onClick: () => onItemSelect(navItem)
910
937
  },
911
- (_a = navItem.icon) != null ? _a : /* @__PURE__ */ React12.createElement("span", { style: tileTextStyle }, navItem.label)
938
+ (_a = navItem.icon) != null ? _a : /* @__PURE__ */ React11.createElement("span", { style: tileTextStyle }, navItem.label)
912
939
  );
913
940
  }
914
- return /* @__PURE__ */ React12.createElement("div", { id: testID, style: containerStyle }, items.map(renderItem));
941
+ return /* @__PURE__ */ React11.createElement("div", { id: testID, style: containerStyle }, items.map(renderItem));
915
942
  }
916
943
  ScrollMenuView.propTypes = {
917
944
  testID: PropTypes11.string,
@@ -941,7 +968,7 @@ function ScrollMenu({
941
968
  activeTileStyle,
942
969
  tileTextStyle
943
970
  }) {
944
- return /* @__PURE__ */ React13.createElement(
971
+ return /* @__PURE__ */ React12.createElement(
945
972
  NavigationBar,
946
973
  {
947
974
  testID,
@@ -949,7 +976,7 @@ function ScrollMenu({
949
976
  defaultSelectedKey,
950
977
  selectedKey,
951
978
  onSelect,
952
- render: (viewProps) => /* @__PURE__ */ React13.createElement(
979
+ render: (viewProps) => /* @__PURE__ */ React12.createElement(
953
980
  ScrollMenuView,
954
981
  {
955
982
  testID: viewProps.testID,
@@ -984,7 +1011,7 @@ ScrollMenu.propTypes = {
984
1011
  };
985
1012
 
986
1013
  // src/components/Tile/Tile.tsx
987
- import React14 from "react";
1014
+ import React13 from "react";
988
1015
  import PropTypes13 from "prop-types";
989
1016
  var imageTileContainer = {
990
1017
  display: "flex",
@@ -1030,16 +1057,18 @@ var tileText2 = {
1030
1057
  function ImageTile({
1031
1058
  testID = "image-tile",
1032
1059
  image,
1060
+ alt = "",
1033
1061
  enlarge = false,
1034
1062
  containerStyle = enlarge ? imageTileContainerLarge : imageTileContainer,
1035
1063
  imageStyle = tileImage
1036
1064
  }) {
1037
- return /* @__PURE__ */ React14.createElement("div", { id: testID, style: containerStyle }, /* @__PURE__ */ React14.createElement("img", { src: image, style: imageStyle }));
1065
+ return /* @__PURE__ */ React13.createElement("div", { id: testID, style: containerStyle }, /* @__PURE__ */ React13.createElement("img", { src: image, alt, style: imageStyle }));
1038
1066
  }
1039
1067
  ImageTile.propTypes = {
1040
1068
  key: PropTypes13.any,
1041
1069
  testID: PropTypes13.string,
1042
1070
  image: PropTypes13.string.isRequired,
1071
+ alt: PropTypes13.string,
1043
1072
  enlarge: PropTypes13.bool,
1044
1073
  containerStyle: PropTypes13.object,
1045
1074
  imageStyle: PropTypes13.object
@@ -1051,7 +1080,7 @@ function TextTile({
1051
1080
  containerStyle = textTileContainer,
1052
1081
  textStyle = tileText2
1053
1082
  }) {
1054
- return /* @__PURE__ */ React14.createElement("div", { id: testID, style: containerStyle }, /* @__PURE__ */ React14.createElement("span", { style: { ...textStyle, fontSize } }, text));
1083
+ return /* @__PURE__ */ React13.createElement("div", { id: testID, style: containerStyle }, /* @__PURE__ */ React13.createElement("span", { style: { ...textStyle, fontSize } }, text));
1055
1084
  }
1056
1085
  TextTile.propTypes = {
1057
1086
  key: PropTypes13.any,
@@ -1063,7 +1092,7 @@ TextTile.propTypes = {
1063
1092
  };
1064
1093
 
1065
1094
  // src/components/SearchBar/SearchBar.tsx
1066
- import React15 from "react";
1095
+ import React14 from "react";
1067
1096
  import PropTypes14 from "prop-types";
1068
1097
 
1069
1098
  // src/components/SearchBar/matching.ts
@@ -1144,9 +1173,9 @@ function SearchBar({
1144
1173
  debounceMs = 0,
1145
1174
  ...inputFormProps
1146
1175
  }) {
1147
- const [text, setText] = React15.useState(defaultValue);
1148
- const isFirstRender = React15.useRef(true);
1149
- const debounceRef = React15.useRef();
1176
+ const [text, setText] = React14.useState(defaultValue);
1177
+ const isFirstRender = React14.useRef(true);
1178
+ const debounceRef = React14.useRef();
1150
1179
  const matchOptions = { matchStrategy, caseSensitive, ignoreAccents, rank };
1151
1180
  function emitResults(searchText) {
1152
1181
  onResults(filterObjects(searchText, objects, keys, matchOptions));
@@ -1160,19 +1189,19 @@ function SearchBar({
1160
1189
  emitResults(searchText);
1161
1190
  }
1162
1191
  }
1163
- React15.useEffect(() => {
1192
+ React14.useEffect(() => {
1164
1193
  return () => {
1165
1194
  if (debounceRef.current) clearTimeout(debounceRef.current);
1166
1195
  };
1167
1196
  }, []);
1168
- React15.useEffect(() => {
1197
+ React14.useEffect(() => {
1169
1198
  if (isFirstRender.current) {
1170
1199
  isFirstRender.current = false;
1171
1200
  return;
1172
1201
  }
1173
1202
  emitResults(text);
1174
1203
  }, [objects]);
1175
- return /* @__PURE__ */ React15.createElement(InputForm, { ...inputFormProps, value: text, onInput: runFilter });
1204
+ return /* @__PURE__ */ React14.createElement(InputForm, { ...inputFormProps, value: text, onInput: runFilter });
1176
1205
  }
1177
1206
  SearchBar.propTypes = {
1178
1207
  objects: PropTypes14.array,
@@ -1192,7 +1221,6 @@ export {
1192
1221
  Card,
1193
1222
  HamburgerMenu,
1194
1223
  HamburgerMenuView,
1195
- HelloWorld,
1196
1224
  ImageTile,
1197
1225
  InputForm,
1198
1226
  Loading,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itiseeron/component-lib",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Eeron Grant's personal React component library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",