@entur-partner/common 11.1.3 → 11.2.3

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.
@@ -67,6 +67,10 @@ function _setPrototypeOf(t, e) {
67
67
  }
68
68
 
69
69
  var _excluded$e = ["date", "locale", "as", "hideTime"];
70
+ /**
71
+ *
72
+ * @deprecated Consider to use localeDate and localeDateTime functions from @entur-partner/util instead.
73
+ */
70
74
  var FormatDateTime = function FormatDateTime(_ref) {
71
75
  var date = _ref.date,
72
76
  locale = _ref.locale,
@@ -90,6 +94,10 @@ function responsiveProp(prefix, prop) {
90
94
  }
91
95
  return [prefix + prop];
92
96
  }
97
+ /**
98
+ *
99
+ * @deprecated Consider to use Tailwind or similar utility-first CSS framework instead.
100
+ */
93
101
  var Box = function Box(_ref) {
94
102
  var _ref$as = _ref.as,
95
103
  Component = _ref$as === void 0 ? "div" : _ref$as,
@@ -157,6 +165,9 @@ var Box = function Box(_ref) {
157
165
  }));
158
166
  };
159
167
 
168
+ /**
169
+ * @deprecated Consider to use Tailwind or CSS/SCSS directly.
170
+ */
160
171
  var Stack = function Stack(_ref) {
161
172
  var children = _ref.children,
162
173
  space = _ref.space,
@@ -181,6 +192,9 @@ var Stack = function Stack(_ref) {
181
192
  };
182
193
 
183
194
  var _excluded$c = ["items", "locale", "className"];
195
+ /**
196
+ * @deprecated Only Product Frontend uses this component. Consider to move it there.
197
+ */
184
198
  var AuditInfo = function AuditInfo(_ref) {
185
199
  var items = _ref.items,
186
200
  locale = _ref.locale,
@@ -452,6 +466,9 @@ function RefreshBannerInfo() {
452
466
  }
453
467
 
454
468
  var _excluded$9 = ["title", "inputComponent", "languages", "values", "onChange", "name", "variant", "feedback"];
469
+ /**
470
+ * @deprecated No longer in use by anyone.
471
+ */
455
472
  var ExpandableMultiLanguageInput = function ExpandableMultiLanguageInput(_ref) {
456
473
  var title = _ref.title,
457
474
  InputComponent = _ref.inputComponent,
@@ -519,6 +536,7 @@ function featureFlag(flag) {
519
536
  * Returns true if the provided flag exist in localStorage
520
537
  * or is set as an environment variable.
521
538
  *
539
+ * @deprecated use featureFlag instead.
522
540
  * @param flag case sensitive flag. If it is an environment variable
523
541
  * you can drop the VITE_APP_ prefix.
524
542
  */
@@ -528,7 +546,7 @@ function useFeatureToggle(flag) {
528
546
  var FeatureToggle = function FeatureToggle(_ref) {
529
547
  var children = _ref.children,
530
548
  flag = _ref.flag;
531
- var feature = useFeatureToggle(flag);
549
+ var feature = featureFlag(flag);
532
550
  if (feature) {
533
551
  return jsx(Fragment, {
534
552
  children: children
@@ -538,6 +556,10 @@ var FeatureToggle = function FeatureToggle(_ref) {
538
556
  };
539
557
 
540
558
  var _excluded$8 = ["amount", "as"];
559
+ /**
560
+ *
561
+ * @deprecated Moved to @entur-partner/util as a function instead.
562
+ */
541
563
  var FormatCurrencyAmount = function FormatCurrencyAmount(_ref) {
542
564
  var amount = _ref.amount,
543
565
  _ref$as = _ref.as,
@@ -554,6 +576,10 @@ var FormatCurrencyAmount = function FormatCurrencyAmount(_ref) {
554
576
  };
555
577
 
556
578
  var _excluded$7 = ["language", "options", "className", "onChange"];
579
+ /**
580
+ *
581
+ * @deprecated This component is no longer in use by anyone.
582
+ */
557
583
  var LanguageSelect = function LanguageSelect(_ref) {
558
584
  var language = _ref.language,
559
585
  options = _ref.options,
@@ -584,6 +610,10 @@ var LanguageSelect = function LanguageSelect(_ref) {
584
610
  }));
585
611
  };
586
612
 
613
+ /**
614
+ *
615
+ * @deprecated Use Link from react-router instead.
616
+ */
587
617
  var Link = function Link(props) {
588
618
  return jsx(Link$2, _extends({}, props, {
589
619
  as: Link$1,
@@ -592,6 +622,9 @@ var Link = function Link(props) {
592
622
  };
593
623
 
594
624
  var _excluded$6 = ["children", "className"];
625
+ /**
626
+ * @deprecated LinkButton is not UU compliant and should be replaced with a regular Link or Button component depending on the use case.
627
+ */
595
628
  var LinkButton = function LinkButton(_ref) {
596
629
  var children = _ref.children,
597
630
  className = _ref.className,
@@ -617,7 +650,7 @@ var Menu = function Menu(_ref) {
617
650
 
618
651
  var _excluded$5 = ["className", "inputComponent", "alertLabel", "alertLevel", "name", "languages", "values", "onChange", "defaultLanguage", "label", "onBlur"];
619
652
  /**
620
- * @deprecated use ExpandableMultiLanguageInput
653
+ * @deprecated No longer in use by anyone.
621
654
  */
622
655
  var MultiLanguageInput = function MultiLanguageInput(_ref) {
623
656
  var className = _ref.className,
@@ -835,6 +868,9 @@ var RouteLeavingGuard = function RouteLeavingGuard(_ref) {
835
868
  }));
836
869
  };
837
870
 
871
+ /**
872
+ * @deprecated Consider to copy component for own usage or use entur design system.
873
+ */
838
874
  var StatusLabel = function StatusLabel(_ref) {
839
875
  var _ref$active = _ref.active,
840
876
  active = _ref$active === void 0 ? false : _ref$active,
@@ -861,6 +897,10 @@ var StatusLabel = function StatusLabel(_ref) {
861
897
  };
862
898
 
863
899
  var _excluded$2 = ["as", "children", "fontSize", "color", "lineHeight", "fontWeight", "className"];
900
+ /**
901
+ *
902
+ * @deprecated Use Entur design system Text component.
903
+ */
864
904
  var Text = function Text(_ref) {
865
905
  var _ref$as = _ref.as,
866
906
  component = _ref$as === void 0 ? "span" : _ref$as,
@@ -886,6 +926,9 @@ var Text = function Text(_ref) {
886
926
  };
887
927
 
888
928
  var _excluded$1 = ["children", "className"];
929
+ /**
930
+ * @deprecated Consider to copy component for own usage.
931
+ */
889
932
  var Unbutton = function Unbutton(_ref) {
890
933
  var children = _ref.children,
891
934
  className = _ref.className,