@rio-cloud/rio-uikit 1.2.2 → 1.4.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.
Files changed (207) hide show
  1. package/.DS_Store +0 -0
  2. package/ChartLabel.d.ts +2 -0
  3. package/ChartLabel.js +2 -0
  4. package/ComposedChart.d.ts +2 -0
  5. package/ComposedChart.js +2 -0
  6. package/DateRangePicker.d.ts +6 -7
  7. package/DateRangePicker.js +7 -3
  8. package/GroupedItemList.d.ts +2 -0
  9. package/GroupedItemList.js +2 -0
  10. package/LicensePlate.d.ts +2 -0
  11. package/LicensePlate.js +2 -0
  12. package/README.md +3 -3
  13. package/ReferenceLine.d.ts +2 -0
  14. package/ReferenceLine.js +2 -0
  15. package/components/actionBarItem/ActionBarItem.js +5 -1
  16. package/components/actionBarItem/ActionBarItemIcon.d.ts +6 -8
  17. package/components/actionBarItem/ActionBarItemIcon.js +4 -4
  18. package/components/actionBarItem/ActionBarOverlay.d.ts +3 -2
  19. package/components/actionBarItem/ActionBarOverlay.js +7 -7
  20. package/components/applicationLayout/ApplicationLayout.js +1 -0
  21. package/components/applicationLayout/ApplicationLayoutHeader.js +0 -4
  22. package/components/assetTree/TreeOptions.js +8 -4
  23. package/components/assetTree/treeUtils.js +1 -1
  24. package/components/calendarStripe/CalendarStripe.d.ts +8 -0
  25. package/components/calendarStripe/CalendarStripe.js +7 -4
  26. package/components/charts/Area.d.ts +5 -0
  27. package/components/charts/Area.js +1 -9
  28. package/components/charts/AreaChart.d.ts +2 -0
  29. package/components/charts/AreaChart.js +9 -6
  30. package/components/charts/BarChart.js +4 -4
  31. package/components/charts/ChartLabel.d.ts +5 -0
  32. package/components/charts/ChartLabel.js +2 -0
  33. package/components/charts/ComposedChart.d.ts +34 -0
  34. package/components/charts/ComposedChart.js +30 -0
  35. package/components/charts/Legend.d.ts +8 -10
  36. package/components/charts/Legend.js +3 -12
  37. package/components/charts/Line.d.ts +5 -0
  38. package/components/charts/Line.js +1 -9
  39. package/components/charts/LineChart.d.ts +2 -0
  40. package/components/charts/LineChart.js +8 -5
  41. package/components/charts/PieChart.js +5 -5
  42. package/components/charts/RadialBarChart.js +5 -5
  43. package/components/charts/ReferenceLine.d.ts +7 -0
  44. package/components/charts/ReferenceLine.js +2 -0
  45. package/components/dataTabs/DataTab.js +2 -1
  46. package/components/dialog/Dialog.d.ts +12 -4
  47. package/components/dialog/SimpleDialog.d.ts +2 -2
  48. package/components/dialog/SplitDialog.d.ts +6 -0
  49. package/components/expander/ExpanderList.js +2 -1
  50. package/components/groupedItemList/GroupedItemList.d.ts +79 -0
  51. package/components/groupedItemList/GroupedItemList.js +77 -0
  52. package/components/licensePlate/LicensePlate.d.ts +19 -0
  53. package/components/licensePlate/LicensePlate.js +14 -0
  54. package/components/listMenu/ListMenu.js +1 -1
  55. package/components/onboarding/OnboardingTip.d.ts +2 -2
  56. package/components/onboarding/OnboardingTip.js +2 -0
  57. package/components/overlay/OverlayTrigger.d.ts +92 -3
  58. package/components/overlay/OverlayTrigger.js +140 -8
  59. package/components/popover/Popover.d.ts +27 -9
  60. package/components/popover/Popover.js +18 -5
  61. package/components/selects/BaseSelectDropdown.d.ts +1 -0
  62. package/components/selects/BaseSelectDropdown.js +16 -14
  63. package/components/selects/Multiselect.d.ts +5 -0
  64. package/components/selects/Multiselect.js +2 -2
  65. package/components/selects/Select.d.ts +5 -0
  66. package/components/selects/Select.js +2 -2
  67. package/components/slider/RangeSlider.d.ts +7 -0
  68. package/components/slider/RangeSlider.js +10 -4
  69. package/components/slider/Slider.d.ts +7 -0
  70. package/components/slider/Slider.js +5 -3
  71. package/components/states/CustomState.js +4 -5
  72. package/components/switch/Switch.d.ts +7 -0
  73. package/components/switch/Switch.js +4 -3
  74. package/components/tooltip/SimpleTooltip.d.ts +2 -2
  75. package/components/tooltip/Tooltip.d.ts +2 -2
  76. package/components/tooltip/Tooltip.js +6 -2
  77. package/hooks/useClickOutside.d.ts +1 -0
  78. package/hooks/useClickOutside.js +9 -3
  79. package/hooks/useElapsedTime.d.ts +26 -0
  80. package/hooks/useElapsedTime.js +36 -0
  81. package/hooks/useEvent.d.ts +1 -1
  82. package/hooks/useKey.d.ts +7 -4
  83. package/hooks/useKey.js +36 -8
  84. package/hooks/useTimeout.d.ts +5 -0
  85. package/hooks/useTimeout.js +39 -1
  86. package/hooks/useUncontrollable.d.ts +13 -0
  87. package/hooks/useUncontrollable.js +41 -0
  88. package/lib/es/ChartLabel.d.ts +2 -0
  89. package/lib/es/ChartLabel.js +7 -0
  90. package/lib/es/ComposedChart.d.ts +2 -0
  91. package/lib/es/ComposedChart.js +7 -0
  92. package/lib/es/DateRangePicker.d.ts +6 -7
  93. package/lib/es/DateRangePicker.js +5 -1
  94. package/lib/es/GroupedItemList.d.ts +2 -0
  95. package/lib/es/GroupedItemList.js +7 -0
  96. package/lib/es/LicensePlate.d.ts +2 -0
  97. package/lib/es/LicensePlate.js +7 -0
  98. package/lib/es/ReferenceLine.d.ts +2 -0
  99. package/lib/es/ReferenceLine.js +7 -0
  100. package/lib/es/components/actionBarItem/ActionBarItem.js +5 -1
  101. package/lib/es/components/actionBarItem/ActionBarItemIcon.d.ts +6 -8
  102. package/lib/es/components/actionBarItem/ActionBarItemIcon.js +4 -4
  103. package/lib/es/components/actionBarItem/ActionBarOverlay.d.ts +3 -2
  104. package/lib/es/components/actionBarItem/ActionBarOverlay.js +7 -7
  105. package/lib/es/components/applicationLayout/ApplicationLayout.js +1 -0
  106. package/lib/es/components/applicationLayout/ApplicationLayoutHeader.js +0 -4
  107. package/lib/es/components/assetTree/TreeOptions.js +8 -4
  108. package/lib/es/components/assetTree/treeUtils.js +1 -1
  109. package/lib/es/components/calendarStripe/CalendarStripe.d.ts +8 -0
  110. package/lib/es/components/calendarStripe/CalendarStripe.js +7 -4
  111. package/lib/es/components/charts/Area.d.ts +5 -0
  112. package/lib/es/components/charts/Area.js +1 -9
  113. package/lib/es/components/charts/AreaChart.d.ts +2 -0
  114. package/lib/es/components/charts/AreaChart.js +7 -4
  115. package/lib/es/components/charts/BarChart.js +3 -3
  116. package/lib/es/components/charts/ChartLabel.d.ts +5 -0
  117. package/lib/es/components/charts/ChartLabel.js +4 -0
  118. package/lib/es/components/charts/ComposedChart.d.ts +34 -0
  119. package/lib/es/components/charts/ComposedChart.js +32 -0
  120. package/lib/es/components/charts/Legend.d.ts +8 -10
  121. package/lib/es/components/charts/Legend.js +5 -12
  122. package/lib/es/components/charts/Line.d.ts +5 -0
  123. package/lib/es/components/charts/Line.js +1 -9
  124. package/lib/es/components/charts/LineChart.d.ts +2 -0
  125. package/lib/es/components/charts/LineChart.js +7 -4
  126. package/lib/es/components/charts/PieChart.js +4 -4
  127. package/lib/es/components/charts/RadialBarChart.js +4 -4
  128. package/lib/es/components/charts/ReferenceLine.d.ts +7 -0
  129. package/lib/es/components/charts/ReferenceLine.js +4 -0
  130. package/lib/es/components/dataTabs/DataTab.js +2 -1
  131. package/lib/es/components/dialog/Dialog.d.ts +12 -4
  132. package/lib/es/components/dialog/SimpleDialog.d.ts +2 -2
  133. package/lib/es/components/dialog/SplitDialog.d.ts +6 -0
  134. package/lib/es/components/expander/ExpanderList.js +2 -1
  135. package/lib/es/components/groupedItemList/GroupedItemList.d.ts +79 -0
  136. package/lib/es/components/groupedItemList/GroupedItemList.js +80 -0
  137. package/lib/es/components/licensePlate/LicensePlate.d.ts +19 -0
  138. package/lib/es/components/licensePlate/LicensePlate.js +16 -0
  139. package/lib/es/components/listMenu/ListMenu.js +1 -1
  140. package/lib/es/components/onboarding/OnboardingTip.d.ts +2 -2
  141. package/lib/es/components/onboarding/OnboardingTip.js +2 -0
  142. package/lib/es/components/overlay/OverlayTrigger.d.ts +92 -3
  143. package/lib/es/components/overlay/OverlayTrigger.js +139 -7
  144. package/lib/es/components/popover/Popover.d.ts +27 -9
  145. package/lib/es/components/popover/Popover.js +20 -6
  146. package/lib/es/components/selects/BaseSelectDropdown.d.ts +1 -0
  147. package/lib/es/components/selects/BaseSelectDropdown.js +16 -14
  148. package/lib/es/components/selects/Multiselect.d.ts +5 -0
  149. package/lib/es/components/selects/Multiselect.js +2 -2
  150. package/lib/es/components/selects/Select.d.ts +5 -0
  151. package/lib/es/components/selects/Select.js +2 -2
  152. package/lib/es/components/slider/RangeSlider.d.ts +7 -0
  153. package/lib/es/components/slider/RangeSlider.js +10 -4
  154. package/lib/es/components/slider/Slider.d.ts +7 -0
  155. package/lib/es/components/slider/Slider.js +5 -3
  156. package/lib/es/components/states/CustomState.js +4 -5
  157. package/lib/es/components/switch/Switch.d.ts +7 -0
  158. package/lib/es/components/switch/Switch.js +4 -3
  159. package/lib/es/components/tooltip/SimpleTooltip.d.ts +2 -2
  160. package/lib/es/components/tooltip/Tooltip.d.ts +2 -2
  161. package/lib/es/components/tooltip/Tooltip.js +5 -1
  162. package/lib/es/hooks/useClickOutside.d.ts +1 -0
  163. package/lib/es/hooks/useClickOutside.js +11 -3
  164. package/lib/es/hooks/useElapsedTime.d.ts +26 -0
  165. package/lib/es/hooks/useElapsedTime.js +38 -0
  166. package/lib/es/hooks/useEvent.d.ts +1 -1
  167. package/lib/es/hooks/useKey.d.ts +7 -4
  168. package/lib/es/hooks/useKey.js +35 -7
  169. package/lib/es/hooks/useTimeout.d.ts +5 -0
  170. package/lib/es/hooks/useTimeout.js +40 -0
  171. package/lib/es/hooks/useUncontrollable.d.ts +13 -0
  172. package/lib/es/hooks/useUncontrollable.js +46 -0
  173. package/lib/es/styles/variables/colors/colors.json +3 -3
  174. package/lib/es/useElapsedTime.d.ts +2 -0
  175. package/lib/es/useElapsedTime.js +7 -0
  176. package/lib/es/utils/colorScheme.js +10 -8
  177. package/lib/es/utils/currentColors.d.ts +3 -0
  178. package/lib/es/utils/currentColors.js +14 -0
  179. package/lib/es/utils/hasUtilityClass.d.ts +30 -0
  180. package/lib/es/utils/hasUtilityClass.js +71 -0
  181. package/lib/es/utils/init/initCSS.js +12 -0
  182. package/lib/es/utils/mergeRefs.d.ts +1 -1
  183. package/lib/es/values/Trigger.d.ts +1 -2
  184. package/lib/es/version.json +1 -1
  185. package/package.json +26 -20
  186. package/styles/variables/colors/colors.json +3 -3
  187. package/useElapsedTime.d.ts +2 -0
  188. package/useElapsedTime.js +2 -0
  189. package/utils/colorScheme.js +10 -8
  190. package/utils/currentColors.d.ts +3 -0
  191. package/utils/currentColors.js +10 -0
  192. package/utils/hasUtilityClass.d.ts +30 -0
  193. package/utils/hasUtilityClass.js +40 -0
  194. package/utils/init/initCSS.js +12 -0
  195. package/utils/mergeRefs.d.ts +1 -1
  196. package/values/Trigger.d.ts +1 -2
  197. package/version.json +1 -1
  198. package/components/.DS_Store +0 -0
  199. package/components/feedback/Feedback.d.ts +0 -2
  200. package/components/feedback/Feedback.js +0 -5
  201. package/components/map/.DS_Store +0 -0
  202. package/components/map/components/.DS_Store +0 -0
  203. package/lib/.DS_Store +0 -0
  204. package/lib/es/.DS_Store +0 -0
  205. package/lib/es/components/.DS_Store +0 -0
  206. package/lib/es/components/feedback/Feedback.d.ts +0 -2
  207. package/lib/es/components/feedback/Feedback.js +0 -7
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useChainedTimeout = void 0;
3
4
  const react_1 = require("react");
4
5
  // See www.joshwcomeau.com/snippets/react-hooks/use-timeout/
5
6
  /**
@@ -33,4 +34,43 @@ const useTimeout = (callback, delay) => {
33
34
  }, [delay]);
34
35
  return timeoutRef;
35
36
  };
37
+ const useChainedTimeout = () => {
38
+ const MAX_DELAY_MS = Math.pow(2, 31) - 1;
39
+ const setChainedTimeout = (ref, fn, timeoutAtMs) => {
40
+ const delayMs = timeoutAtMs - Date.now();
41
+ ref.current =
42
+ delayMs <= MAX_DELAY_MS
43
+ ? setTimeout(fn, delayMs)
44
+ : setTimeout(() => setChainedTimeout(ref, fn, timeoutAtMs), MAX_DELAY_MS);
45
+ };
46
+ const handleRef = (0, react_1.useRef)();
47
+ const { set, clear } = (0, react_1.useMemo)(() => {
48
+ const clear = () => clearTimeout(handleRef.current);
49
+ const set = (fn, delayMs = 0) => {
50
+ clear();
51
+ if (delayMs <= MAX_DELAY_MS) {
52
+ // For simplicity, if the timeout is short, just set a normal timeout.
53
+ handleRef.current = setTimeout(fn, delayMs);
54
+ }
55
+ else {
56
+ setChainedTimeout(handleRef, fn, Date.now() + delayMs);
57
+ }
58
+ };
59
+ return {
60
+ set,
61
+ clear,
62
+ };
63
+ }, []);
64
+ (0, react_1.useEffect)(() => {
65
+ return () => {
66
+ clear();
67
+ };
68
+ }, [clear]);
69
+ return {
70
+ set,
71
+ clear,
72
+ handleRef,
73
+ };
74
+ };
75
+ exports.useChainedTimeout = useChainedTimeout;
36
76
  exports.default = useTimeout;
@@ -0,0 +1,13 @@
1
+ export type Handler = (value: any, ...args: any[]) => any;
2
+ export declare function defaultKey(key: string): string;
3
+ declare function useUncontrolledProp<TProp, THandler extends Handler = Handler>(propValue: TProp | undefined, defaultValue: TProp, handler?: THandler): readonly [TProp, THandler];
4
+ declare function useUncontrolledProp<TProp, THandler extends Handler = Handler>(propValue: TProp | undefined, defaultValue?: TProp | undefined, handler?: THandler): readonly [TProp | undefined, (...args: Parameters<THandler>) => ReturnType<THandler> | void];
5
+ export { useUncontrolledProp };
6
+ type FilterFlags<Base, Condition> = {
7
+ [Key in keyof Base]: NonNullable<Base[Key]> extends Condition ? Key : never;
8
+ };
9
+ type AllowedNames<Base, Condition> = FilterFlags<Base, Condition>[keyof Base];
10
+ type ConfigMap<TProps extends object> = {
11
+ [p in keyof TProps]?: AllowedNames<TProps, Function>;
12
+ };
13
+ export declare function useUncontrolled<TProps extends object, TDefaults extends string = never>(props: TProps, config: ConfigMap<TProps>): Omit<TProps, TDefaults>;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useUncontrolled = exports.useUncontrolledProp = exports.defaultKey = void 0;
4
+ const tslib_1 = require("tslib");
5
+ /* eslint-disable prefer-arrow/prefer-arrow-functions */
6
+ // forked from https://github.com/jquense/uncontrollable/blob/master/src/index.ts
7
+ const react_1 = require("react");
8
+ function defaultKey(key) {
9
+ return 'default' + key.charAt(0).toUpperCase() + key.substr(1);
10
+ }
11
+ exports.defaultKey = defaultKey;
12
+ function useUncontrolledProp(propValue, defaultValue, handler) {
13
+ const wasPropRef = (0, react_1.useRef)(propValue !== undefined);
14
+ const [stateValue, setState] = (0, react_1.useState)(defaultValue);
15
+ const isProp = propValue !== undefined;
16
+ const wasProp = wasPropRef.current;
17
+ wasPropRef.current = isProp;
18
+ /**
19
+ * If a prop switches from controlled to Uncontrolled
20
+ * reset its value to the defaultValue
21
+ */
22
+ if (!isProp && wasProp && stateValue !== defaultValue) {
23
+ setState(defaultValue);
24
+ }
25
+ return [
26
+ isProp ? propValue : stateValue,
27
+ (0, react_1.useCallback)((...args) => {
28
+ const [value, ...rest] = args;
29
+ const returnValue = handler === null || handler === void 0 ? void 0 : handler(value, ...rest);
30
+ setState(value);
31
+ return returnValue;
32
+ }, [handler]),
33
+ ];
34
+ }
35
+ exports.useUncontrolledProp = useUncontrolledProp;
36
+ function useUncontrolled(props, config) {
37
+ return Object.keys(config).reduce((result, fieldName) => {
38
+ const _a = result, _b = defaultKey(fieldName), defaultValue = _a[_b], _c = fieldName, propsValue = _a[_c], rest = tslib_1.__rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + ""]);
39
+ // @ts-ignore-next-line
40
+ const handlerName = config[fieldName];
41
+ // @ts-ignore-next-line
42
+ const [value, handler] = useUncontrolledProp(propsValue, defaultValue, props[handlerName]);
43
+ return Object.assign(Object.assign({}, rest), { [fieldName]: value, [handlerName]: handler });
44
+ }, props);
45
+ }
46
+ exports.useUncontrolled = useUncontrolled;
@@ -18,7 +18,7 @@
18
18
  "brand-info": "#4B80A6",
19
19
  "brand-success": "#5cb85c",
20
20
  "brand-warning": "#ff8e3c",
21
- "brand-danger": "#d90000",
21
+ "brand-danger": "#e22837",
22
22
  "brand-info-decent": "#f5f8fb",
23
23
  "brand-success-decent": "#f6fbf5",
24
24
  "brand-warning-decent": "#fdf5f0",
@@ -37,8 +37,8 @@
37
37
  "color-map-marker-info": "#3f759b",
38
38
  "color-map-marker-success": "#5cb85c",
39
39
  "color-map-marker-warning": "#ff8e3c",
40
- "color-map-marker-danger": "#d90000",
41
- "color-rating-1": "#d90000",
40
+ "color-map-marker-danger": "#e22837",
41
+ "color-rating-1": "#e22837",
42
42
  "color-rating-2": "#ff8e3c",
43
43
  "color-rating-3": "#f8c575",
44
44
  "color-rating-4": "#5cb85c",
@@ -0,0 +1,2 @@
1
+ export { default } from './hooks/useElapsedTime';
2
+ export * from './hooks/useElapsedTime';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = void 0;
4
+ const tslib_1 = require("tslib");
5
+ var useElapsedTime_1 = require("./hooks/useElapsedTime");
6
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(useElapsedTime_1).default; } });
7
+ tslib_1.__exportStar(require("./hooks/useElapsedTime"), exports);
@@ -12,12 +12,11 @@ exports.THEME_SYSTEM = 'system';
12
12
  exports.THEME_LIGHT = 'light';
13
13
  exports.THEME_DARK = 'dark';
14
14
  const updateHtmlScheme = (scheme) => {
15
- const html = document.documentElement;
16
15
  if (scheme) {
17
- html.setAttribute(exports.THEME_DATA_ATTRIBUTE, scheme);
16
+ document.documentElement.setAttribute(exports.THEME_DATA_ATTRIBUTE, scheme);
18
17
  }
19
18
  else {
20
- html.removeAttribute(exports.THEME_DATA_ATTRIBUTE);
19
+ document.documentElement.removeAttribute(exports.THEME_DATA_ATTRIBUTE);
21
20
  }
22
21
  };
23
22
  const getSchemeFromCookie = () => {
@@ -61,7 +60,7 @@ exports.getColorScheme = getColorScheme;
61
60
  * @param scheme The color scheme to save.
62
61
  */
63
62
  const setColorScheme = (scheme) => {
64
- const isDevEnv = (window === null || window === void 0 ? void 0 : window.location.host.startsWith('localhost')) || (window === null || window === void 0 ? void 0 : window.location.host.startsWith('127.0.0.1'));
63
+ const isDevEnv = window.location.host.startsWith('localhost') || window.location.host.startsWith('127.0.0.1');
65
64
  const newCookieValues = encodeURIComponent(scheme);
66
65
  const domain = isDevEnv ? 'localhost' : DOMAIN;
67
66
  document.cookie = `${COOKIE_NAME}=${newCookieValues};domain=${domain};expires=${EXPIRATION_DATE};path=${PATH}`;
@@ -71,11 +70,14 @@ exports.setColorScheme = setColorScheme;
71
70
  * Initiates listening for theme change events.
72
71
  */
73
72
  const listenForSchemeChange = () => {
74
- window === null || window === void 0 ? void 0 : window.addEventListener('message', event => {
75
- if (event.data === exports.THEME_CHANGE_EVENT) {
76
- readColorSchemeFromCookie();
73
+ window.addEventListener('message', ({ data }) => {
74
+ var _a;
75
+ if (data === exports.THEME_CHANGE_EVENT) {
76
+ (0, exports.getColorScheme)();
77
77
  // Re-send the event to all iframes that might not be notified yet
78
- [...document === null || document === void 0 ? void 0 : document.getElementsByTagName('iframe')].map(frame => { var _a; return (_a = frame.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(exports.THEME_CHANGE_EVENT, '*'); });
78
+ for (const iframe of document.getElementsByTagName('iframe')) {
79
+ (_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(exports.THEME_CHANGE_EVENT, '*');
80
+ }
79
81
  }
80
82
  }, false);
81
83
  };
@@ -0,0 +1,3 @@
1
+ export declare const currentColorOptions: readonly ["primary", "secondary", "info", "success", "warning", "danger"];
2
+ export type CurrentColor = (typeof currentColorOptions)[number];
3
+ export declare const getCurrentBackgroundColor: (color: CurrentColor) => string;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCurrentBackgroundColor = exports.currentColorOptions = void 0;
4
+ exports.currentColorOptions = ['primary', 'secondary', 'info', 'success', 'warning', 'danger'];
5
+ const currentColorMapping = {
6
+ primary: '--brand-primary',
7
+ secondary: '--brand-secondary',
8
+ info: '--brand-info',
9
+ success: '--brand-success',
10
+ warning: '--brand-warning',
11
+ danger: '--brand-danger',
12
+ };
13
+ const getCurrentBackgroundColor = (color) => `var(${currentColorMapping[`${color}`]})`;
14
+ exports.getCurrentBackgroundColor = getCurrentBackgroundColor;
@@ -0,0 +1,30 @@
1
+ declare const hasAlignContentClass: (classes: string) => boolean;
2
+ declare const hasAlignItemsClass: (classes: string) => boolean;
3
+ declare const hasAlignSelfClass: (classes: string) => boolean;
4
+ declare const hasBgClass: (classes: string) => boolean;
5
+ declare const hasBorderClass: (classes: string) => boolean;
6
+ declare const hasBorderStyleClass: (classes: string) => boolean;
7
+ declare const hasBorderWidthClass: (classes: string) => boolean;
8
+ declare const hasCursorClass: (classes: string) => boolean;
9
+ declare const hasDisplayClass: (classes: string) => boolean;
10
+ declare const hasFlexClass: (classes: string) => boolean;
11
+ declare const hasGapClass: (classes: string) => boolean;
12
+ declare const hasHeightClass: (classes: string) => boolean;
13
+ declare const hasHoverBgClass: (classes: string) => boolean;
14
+ declare const hasHoverOpacityClass: (classes: string) => boolean;
15
+ declare const hasHoverScaleClass: (classes: string) => boolean;
16
+ declare const hasHoverTextColorClass: (classes: string) => boolean;
17
+ declare const hasMarginClass: (classes: string) => boolean;
18
+ declare const hasMaxHeightClass: (classes: string) => boolean;
19
+ declare const hasMinHeightClass: (classes: string) => boolean;
20
+ declare const hasOpacityClass: (classes: string) => boolean;
21
+ declare const hasOverflowClass: (classes: string) => boolean;
22
+ declare const hasPaddingClass: (classes: string) => boolean;
23
+ declare const hasRioglyphClass: (classes: string) => boolean;
24
+ declare const hasRoundedClass: (classes: string) => boolean;
25
+ declare const hasScaleClass: (classes: string) => boolean;
26
+ declare const hasSpaceClass: (classes: string) => boolean;
27
+ declare const hasTextColorClass: (classes: string) => boolean;
28
+ declare const hasTextSizeClass: (classes: string) => boolean;
29
+ declare const hasUserSelectClass: (classes: string) => boolean;
30
+ export { hasAlignContentClass, hasAlignItemsClass, hasAlignSelfClass, hasBgClass, hasBorderClass, hasBorderStyleClass, hasBorderWidthClass, hasCursorClass, hasDisplayClass, hasFlexClass, hasGapClass, hasHeightClass, hasHoverBgClass, hasHoverOpacityClass, hasHoverScaleClass, hasHoverTextColorClass, hasMarginClass, hasMaxHeightClass, hasMinHeightClass, hasOpacityClass, hasOverflowClass, hasPaddingClass, hasRioglyphClass, hasRoundedClass, hasScaleClass, hasSpaceClass, hasTextColorClass, hasTextSizeClass, hasUserSelectClass, };
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hasUserSelectClass = exports.hasTextSizeClass = exports.hasTextColorClass = exports.hasSpaceClass = exports.hasScaleClass = exports.hasRoundedClass = exports.hasRioglyphClass = exports.hasPaddingClass = exports.hasOverflowClass = exports.hasOpacityClass = exports.hasMinHeightClass = exports.hasMaxHeightClass = exports.hasMarginClass = exports.hasHoverTextColorClass = exports.hasHoverScaleClass = exports.hasHoverOpacityClass = exports.hasHoverBgClass = exports.hasHeightClass = exports.hasGapClass = exports.hasFlexClass = exports.hasDisplayClass = exports.hasCursorClass = exports.hasBorderWidthClass = exports.hasBorderStyleClass = exports.hasBorderClass = exports.hasBgClass = exports.hasAlignSelfClass = exports.hasAlignItemsClass = exports.hasAlignContentClass = void 0;
4
+ const hasClass = (utilityClass) => {
5
+ return (classes) => {
6
+ if (classes.includes(utilityClass)) {
7
+ return true;
8
+ }
9
+ else {
10
+ return false;
11
+ }
12
+ };
13
+ };
14
+ const hasAlignContentClass = hasClass('align-content-');
15
+ exports.hasAlignContentClass = hasAlignContentClass;
16
+ const hasAlignItemsClass = hasClass('align-items-');
17
+ exports.hasAlignItemsClass = hasAlignItemsClass;
18
+ const hasAlignSelfClass = hasClass('align-self');
19
+ exports.hasAlignSelfClass = hasAlignSelfClass;
20
+ const hasBgClass = hasClass('bg-');
21
+ exports.hasBgClass = hasBgClass;
22
+ const hasBorderClass = hasClass('border-');
23
+ exports.hasBorderClass = hasBorderClass;
24
+ const hasBorderStyleClass = hasClass('border-style-');
25
+ exports.hasBorderStyleClass = hasBorderStyleClass;
26
+ const hasBorderWidthClass = hasClass('border-width');
27
+ exports.hasBorderWidthClass = hasBorderWidthClass;
28
+ const hasCursorClass = hasClass('cursor-');
29
+ exports.hasCursorClass = hasCursorClass;
30
+ const hasDisplayClass = hasClass('display-');
31
+ exports.hasDisplayClass = hasDisplayClass;
32
+ const hasFlexClass = hasClass('flex-');
33
+ exports.hasFlexClass = hasFlexClass;
34
+ const hasGapClass = hasClass('gap-');
35
+ exports.hasGapClass = hasGapClass;
36
+ const hasHeightClass = hasClass('height-');
37
+ exports.hasHeightClass = hasHeightClass;
38
+ const hasHoverBgClass = hasClass('hover-bg-');
39
+ exports.hasHoverBgClass = hasHoverBgClass;
40
+ const hasHoverOpacityClass = hasClass('hover-opacity-');
41
+ exports.hasHoverOpacityClass = hasHoverOpacityClass;
42
+ const hasHoverScaleClass = hasClass('hover-scale-');
43
+ exports.hasHoverScaleClass = hasHoverScaleClass;
44
+ const hasHoverTextColorClass = hasClass('hover-text-color-');
45
+ exports.hasHoverTextColorClass = hasHoverTextColorClass;
46
+ const hasMarginClass = hasClass('margin-');
47
+ exports.hasMarginClass = hasMarginClass;
48
+ const hasMaxHeightClass = hasClass('max-height-');
49
+ exports.hasMaxHeightClass = hasMaxHeightClass;
50
+ const hasMinHeightClass = hasClass('min-height-');
51
+ exports.hasMinHeightClass = hasMinHeightClass;
52
+ const hasOpacityClass = hasClass('opacity-');
53
+ exports.hasOpacityClass = hasOpacityClass;
54
+ const hasOverflowClass = hasClass('overflow-');
55
+ exports.hasOverflowClass = hasOverflowClass;
56
+ const hasPaddingClass = hasClass('padding-');
57
+ exports.hasPaddingClass = hasPaddingClass;
58
+ const hasRioglyphClass = hasClass('rioglyph-');
59
+ exports.hasRioglyphClass = hasRioglyphClass;
60
+ const hasRoundedClass = hasClass('rounded-');
61
+ exports.hasRoundedClass = hasRoundedClass;
62
+ const hasScaleClass = hasClass('scale-');
63
+ exports.hasScaleClass = hasScaleClass;
64
+ const hasSpaceClass = hasClass('space-');
65
+ exports.hasSpaceClass = hasSpaceClass;
66
+ const hasTextColorClass = hasClass('text-color-');
67
+ exports.hasTextColorClass = hasTextColorClass;
68
+ const hasTextSizeClass = hasClass('text-size');
69
+ exports.hasTextSizeClass = hasTextSizeClass;
70
+ const hasUserSelectClass = hasClass('user-select-');
71
+ exports.hasUserSelectClass = hasUserSelectClass;
@@ -66,3 +66,15 @@ const checkCSSVersion = () => {
66
66
  });
67
67
  };
68
68
  exports.checkCSSVersion = checkCSSVersion;
69
+ // remote URL is not supported by most browsers yet
70
+ // export const addTabsClippingSVG = () => {
71
+ // const clippingSVG = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
72
+ // clippingSVG.setAttribute('width', '0');
73
+ // clippingSVG.setAttribute('height', '0');
74
+ // clippingSVG.setAttribute('id', 'tabs-rounded-clipping-mask');
75
+ // clippingSVG.innerHTML = `
76
+ // <clipPath id='tabs-rounded-clip-mask'>
77
+ // <path fill-rule='evenodd' d='M0 4a4 4 0 0 0 4-4v4z' />
78
+ // </clipPath>`;
79
+ // document.body.appendChild(clippingSVG);
80
+ // };
@@ -1,3 +1,3 @@
1
- import React, { Ref } from 'react';
1
+ import React, { type Ref } from 'react';
2
2
  declare const mergeRefs: <T>(refs: React.Ref<T>[]) => React.Ref<T>;
3
3
  export default mergeRefs;
@@ -4,6 +4,5 @@ export declare const TRIGGER: {
4
4
  readonly CLICK: "click";
5
5
  readonly FOCUS: "focus";
6
6
  };
7
- type TriggerType = ObjectValues<typeof TRIGGER>;
7
+ export type TriggerType = ObjectValues<typeof TRIGGER>;
8
8
  export type Trigger = TriggerType | TriggerType[];
9
- export {};
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "1.2.2"
2
+ "version": "1.4.0"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rio-cloud/rio-uikit",
3
- "version": "1.2.2",
3
+ "version": "1.4.0",
4
4
  "description": "The RIO UIKIT component library",
5
5
  "repository": "https://bitbucket.collaboration-man.com/projects/RIOFRONT/repos/uikit-web/browse",
6
6
  "scripts": {
@@ -43,15 +43,17 @@
43
43
  "module": "index.js",
44
44
  "types": "index.d.ts",
45
45
  "less": "./styles/css/rio-uikit.less",
46
- "files": ["**/*.*"],
46
+ "files": [
47
+ "**/*.*"
48
+ ],
47
49
  "devDependencies": {
48
50
  "@testing-library/dom": "9.3.3",
49
51
  "@testing-library/jest-dom": "5.17.0",
50
52
  "@testing-library/react": "12.1.5",
51
53
  "@testing-library/user-event": "14.5.2",
52
54
  "@types/heremaps": "3.1.14",
53
- "@types/lodash": "4.17.5",
54
- "@types/react": "18.3.3",
55
+ "@types/lodash": "4.17.7",
56
+ "@types/react": "18.3.5",
55
57
  "@types/react-dom": "18.3.0",
56
58
  "@types/react-input-mask": "3.0.5",
57
59
  "@types/react-redux": "7.1.33",
@@ -60,7 +62,7 @@
60
62
  "@typescript-eslint/parser": "6.13.2",
61
63
  "@vitejs/plugin-react": "4.3.1",
62
64
  "@vitest/coverage-c8": "0.33.0",
63
- "autoprefixer": "10.4.19",
65
+ "autoprefixer": "10.4.20",
64
66
  "backstopjs": "6.3.23",
65
67
  "copyfiles": "2.4.1",
66
68
  "dotenv": "16.4.5",
@@ -68,21 +70,20 @@
68
70
  "eslint-config-prettier": "9.1.0",
69
71
  "eslint-plugin-compat": "4.2.0",
70
72
  "eslint-plugin-getsentry": "2.0.0",
71
- "eslint-plugin-import": "2.29.1",
73
+ "eslint-plugin-import": "2.30.0",
72
74
  "eslint-plugin-prefer-arrow": "1.2.3",
73
- "eslint-plugin-prettier": "5.1.3",
74
- "eslint-plugin-react": "7.34.2",
75
+ "eslint-plugin-prettier": "5.2.1",
76
+ "eslint-plugin-react": "7.35.2",
75
77
  "eslint-plugin-react-hooks": "4.6.2",
76
- "jsdom": "22.1.0",
78
+ "jsdom": "25.0.0",
77
79
  "jsdom-global": "3.0.2",
78
80
  "less": "4.2.0",
79
81
  "license-checker": "25.0.1",
80
- "postcss": "8.4.38",
82
+ "postcss": "8.4.45",
81
83
  "postcss-preset-env": "8.5.1",
82
84
  "postcss-short": "5.0.0",
83
- "postcss-variable-compress": "2.1.0",
84
85
  "pre-commit": "1.2.2",
85
- "prettier": "3.3.2",
86
+ "prettier": "3.3.3",
86
87
  "react": "17.0.2",
87
88
  "react-dom": "17.0.2",
88
89
  "react-intl": "6.6.8",
@@ -92,8 +93,8 @@
92
93
  "tiny-invariant": "1.3.3",
93
94
  "typescript": "4.9.5",
94
95
  "vite": "4.5.0",
95
- "vite-plugin-zip-pack": "1.2.3",
96
- "vitest": "1.6.0",
96
+ "vite-plugin-zip-pack": "1.2.4",
97
+ "vitest": "2.0.5",
97
98
  "webfonts-generator": "github:rio-cloud/webfonts-generator#f666e60803da9155175a7f1775e09671d47a383b"
98
99
  },
99
100
  "peerDependencies": {
@@ -104,7 +105,7 @@
104
105
  "@dnd-kit/core": "6.1.0",
105
106
  "@dnd-kit/modifiers": "6.0.1",
106
107
  "@dnd-kit/sortable": "7.0.2",
107
- "@formkit/auto-animate": "0.8.1",
108
+ "@formkit/auto-animate": "0.8.2",
108
109
  "@popperjs/core": "2.11.8",
109
110
  "classnames": "2.5.1",
110
111
  "events": "3.3.0",
@@ -112,7 +113,7 @@
112
113
  "iframe-resizer-react": "1.1.0",
113
114
  "lodash": "4.17.21",
114
115
  "moment": "2.30.1",
115
- "natural-orderby": "2.0.3",
116
+ "natural-orderby": "3.0.2",
116
117
  "process": "0.11.10",
117
118
  "prop-types": "15.8.1",
118
119
  "react-bootstrap": "1.6.4",
@@ -124,14 +125,19 @@
124
125
  "react-notifications": "1.7.4",
125
126
  "react-onclickoutside": "6.13.1",
126
127
  "react-popper": "2.3.0",
127
- "react-responsive": "9.0.2",
128
128
  "react-shadow-root": "6.2.0",
129
129
  "recharts": "2.12.7",
130
- "tslib": "2.6.3"
130
+ "tslib": "2.7.0"
131
131
  },
132
132
  "overrides": {
133
133
  "iframe-resizer": "4.3.11"
134
134
  },
135
- "pre-commit": ["format-code"],
136
- "browserslist": ["> 0.5%", "Firefox ESR", "not dead"]
135
+ "pre-commit": [
136
+ "format-code"
137
+ ],
138
+ "browserslist": [
139
+ "> 0.5%",
140
+ "Firefox ESR",
141
+ "not dead"
142
+ ]
137
143
  }
@@ -18,7 +18,7 @@
18
18
  "brand-info": "#4B80A6",
19
19
  "brand-success": "#5cb85c",
20
20
  "brand-warning": "#ff8e3c",
21
- "brand-danger": "#d90000",
21
+ "brand-danger": "#e22837",
22
22
  "brand-info-decent": "#f5f8fb",
23
23
  "brand-success-decent": "#f6fbf5",
24
24
  "brand-warning-decent": "#fdf5f0",
@@ -37,8 +37,8 @@
37
37
  "color-map-marker-info": "#3f759b",
38
38
  "color-map-marker-success": "#5cb85c",
39
39
  "color-map-marker-warning": "#ff8e3c",
40
- "color-map-marker-danger": "#d90000",
41
- "color-rating-1": "#d90000",
40
+ "color-map-marker-danger": "#e22837",
41
+ "color-rating-1": "#e22837",
42
42
  "color-rating-2": "#ff8e3c",
43
43
  "color-rating-3": "#f8c575",
44
44
  "color-rating-4": "#5cb85c",
@@ -0,0 +1,2 @@
1
+ export { default } from './hooks/useElapsedTime';
2
+ export * from './hooks/useElapsedTime';
@@ -0,0 +1,2 @@
1
+ export { default } from './hooks/useElapsedTime';
2
+ export * from './hooks/useElapsedTime';
@@ -9,12 +9,11 @@ export const THEME_SYSTEM = 'system';
9
9
  export const THEME_LIGHT = 'light';
10
10
  export const THEME_DARK = 'dark';
11
11
  const updateHtmlScheme = (scheme) => {
12
- const html = document.documentElement;
13
12
  if (scheme) {
14
- html.setAttribute(THEME_DATA_ATTRIBUTE, scheme);
13
+ document.documentElement.setAttribute(THEME_DATA_ATTRIBUTE, scheme);
15
14
  }
16
15
  else {
17
- html.removeAttribute(THEME_DATA_ATTRIBUTE);
16
+ document.documentElement.removeAttribute(THEME_DATA_ATTRIBUTE);
18
17
  }
19
18
  };
20
19
  const getSchemeFromCookie = () => {
@@ -57,7 +56,7 @@ export const getColorScheme = () => {
57
56
  * @param scheme The color scheme to save.
58
57
  */
59
58
  export const setColorScheme = (scheme) => {
60
- const isDevEnv = (window === null || window === void 0 ? void 0 : window.location.host.startsWith('localhost')) || (window === null || window === void 0 ? void 0 : window.location.host.startsWith('127.0.0.1'));
59
+ const isDevEnv = window.location.host.startsWith('localhost') || window.location.host.startsWith('127.0.0.1');
61
60
  const newCookieValues = encodeURIComponent(scheme);
62
61
  const domain = isDevEnv ? 'localhost' : DOMAIN;
63
62
  document.cookie = `${COOKIE_NAME}=${newCookieValues};domain=${domain};expires=${EXPIRATION_DATE};path=${PATH}`;
@@ -66,11 +65,14 @@ export const setColorScheme = (scheme) => {
66
65
  * Initiates listening for theme change events.
67
66
  */
68
67
  export const listenForSchemeChange = () => {
69
- window === null || window === void 0 ? void 0 : window.addEventListener('message', event => {
70
- if (event.data === THEME_CHANGE_EVENT) {
71
- readColorSchemeFromCookie();
68
+ window.addEventListener('message', ({ data }) => {
69
+ var _a;
70
+ if (data === THEME_CHANGE_EVENT) {
71
+ getColorScheme();
72
72
  // Re-send the event to all iframes that might not be notified yet
73
- [...document === null || document === void 0 ? void 0 : document.getElementsByTagName('iframe')].map(frame => { var _a; return (_a = frame.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(THEME_CHANGE_EVENT, '*'); });
73
+ for (const iframe of document.getElementsByTagName('iframe')) {
74
+ (_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(THEME_CHANGE_EVENT, '*');
75
+ }
74
76
  }
75
77
  }, false);
76
78
  };
@@ -0,0 +1,3 @@
1
+ export declare const currentColorOptions: readonly ["primary", "secondary", "info", "success", "warning", "danger"];
2
+ export type CurrentColor = (typeof currentColorOptions)[number];
3
+ export declare const getCurrentBackgroundColor: (color: CurrentColor) => string;
@@ -0,0 +1,10 @@
1
+ export const currentColorOptions = ['primary', 'secondary', 'info', 'success', 'warning', 'danger'];
2
+ const currentColorMapping = {
3
+ primary: '--brand-primary',
4
+ secondary: '--brand-secondary',
5
+ info: '--brand-info',
6
+ success: '--brand-success',
7
+ warning: '--brand-warning',
8
+ danger: '--brand-danger',
9
+ };
10
+ export const getCurrentBackgroundColor = (color) => `var(${currentColorMapping[`${color}`]})`;
@@ -0,0 +1,30 @@
1
+ declare const hasAlignContentClass: (classes: string) => boolean;
2
+ declare const hasAlignItemsClass: (classes: string) => boolean;
3
+ declare const hasAlignSelfClass: (classes: string) => boolean;
4
+ declare const hasBgClass: (classes: string) => boolean;
5
+ declare const hasBorderClass: (classes: string) => boolean;
6
+ declare const hasBorderStyleClass: (classes: string) => boolean;
7
+ declare const hasBorderWidthClass: (classes: string) => boolean;
8
+ declare const hasCursorClass: (classes: string) => boolean;
9
+ declare const hasDisplayClass: (classes: string) => boolean;
10
+ declare const hasFlexClass: (classes: string) => boolean;
11
+ declare const hasGapClass: (classes: string) => boolean;
12
+ declare const hasHeightClass: (classes: string) => boolean;
13
+ declare const hasHoverBgClass: (classes: string) => boolean;
14
+ declare const hasHoverOpacityClass: (classes: string) => boolean;
15
+ declare const hasHoverScaleClass: (classes: string) => boolean;
16
+ declare const hasHoverTextColorClass: (classes: string) => boolean;
17
+ declare const hasMarginClass: (classes: string) => boolean;
18
+ declare const hasMaxHeightClass: (classes: string) => boolean;
19
+ declare const hasMinHeightClass: (classes: string) => boolean;
20
+ declare const hasOpacityClass: (classes: string) => boolean;
21
+ declare const hasOverflowClass: (classes: string) => boolean;
22
+ declare const hasPaddingClass: (classes: string) => boolean;
23
+ declare const hasRioglyphClass: (classes: string) => boolean;
24
+ declare const hasRoundedClass: (classes: string) => boolean;
25
+ declare const hasScaleClass: (classes: string) => boolean;
26
+ declare const hasSpaceClass: (classes: string) => boolean;
27
+ declare const hasTextColorClass: (classes: string) => boolean;
28
+ declare const hasTextSizeClass: (classes: string) => boolean;
29
+ declare const hasUserSelectClass: (classes: string) => boolean;
30
+ export { hasAlignContentClass, hasAlignItemsClass, hasAlignSelfClass, hasBgClass, hasBorderClass, hasBorderStyleClass, hasBorderWidthClass, hasCursorClass, hasDisplayClass, hasFlexClass, hasGapClass, hasHeightClass, hasHoverBgClass, hasHoverOpacityClass, hasHoverScaleClass, hasHoverTextColorClass, hasMarginClass, hasMaxHeightClass, hasMinHeightClass, hasOpacityClass, hasOverflowClass, hasPaddingClass, hasRioglyphClass, hasRoundedClass, hasScaleClass, hasSpaceClass, hasTextColorClass, hasTextSizeClass, hasUserSelectClass, };
@@ -0,0 +1,40 @@
1
+ const hasClass = (utilityClass) => {
2
+ return (classes) => {
3
+ if (classes.includes(utilityClass)) {
4
+ return true;
5
+ }
6
+ else {
7
+ return false;
8
+ }
9
+ };
10
+ };
11
+ const hasAlignContentClass = hasClass('align-content-');
12
+ const hasAlignItemsClass = hasClass('align-items-');
13
+ const hasAlignSelfClass = hasClass('align-self');
14
+ const hasBgClass = hasClass('bg-');
15
+ const hasBorderClass = hasClass('border-');
16
+ const hasBorderStyleClass = hasClass('border-style-');
17
+ const hasBorderWidthClass = hasClass('border-width');
18
+ const hasCursorClass = hasClass('cursor-');
19
+ const hasDisplayClass = hasClass('display-');
20
+ const hasFlexClass = hasClass('flex-');
21
+ const hasGapClass = hasClass('gap-');
22
+ const hasHeightClass = hasClass('height-');
23
+ const hasHoverBgClass = hasClass('hover-bg-');
24
+ const hasHoverOpacityClass = hasClass('hover-opacity-');
25
+ const hasHoverScaleClass = hasClass('hover-scale-');
26
+ const hasHoverTextColorClass = hasClass('hover-text-color-');
27
+ const hasMarginClass = hasClass('margin-');
28
+ const hasMaxHeightClass = hasClass('max-height-');
29
+ const hasMinHeightClass = hasClass('min-height-');
30
+ const hasOpacityClass = hasClass('opacity-');
31
+ const hasOverflowClass = hasClass('overflow-');
32
+ const hasPaddingClass = hasClass('padding-');
33
+ const hasRioglyphClass = hasClass('rioglyph-');
34
+ const hasRoundedClass = hasClass('rounded-');
35
+ const hasScaleClass = hasClass('scale-');
36
+ const hasSpaceClass = hasClass('space-');
37
+ const hasTextColorClass = hasClass('text-color-');
38
+ const hasTextSizeClass = hasClass('text-size');
39
+ const hasUserSelectClass = hasClass('user-select-');
40
+ export { hasAlignContentClass, hasAlignItemsClass, hasAlignSelfClass, hasBgClass, hasBorderClass, hasBorderStyleClass, hasBorderWidthClass, hasCursorClass, hasDisplayClass, hasFlexClass, hasGapClass, hasHeightClass, hasHoverBgClass, hasHoverOpacityClass, hasHoverScaleClass, hasHoverTextColorClass, hasMarginClass, hasMaxHeightClass, hasMinHeightClass, hasOpacityClass, hasOverflowClass, hasPaddingClass, hasRioglyphClass, hasRoundedClass, hasScaleClass, hasSpaceClass, hasTextColorClass, hasTextSizeClass, hasUserSelectClass, };