@helpdice/ui 1.6.8 → 1.6.9

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 (54) hide show
  1. package/dist/Placeholder/index.js +10 -10
  2. package/dist/auto-complete/auto-complete.d.ts +35 -3
  3. package/dist/auto-complete/index.js +8 -7
  4. package/dist/breadcrumbs/index.js +1 -1
  5. package/dist/button/index.js +2 -2
  6. package/dist/button-dropdown/index.js +1 -1
  7. package/dist/card/index.js +1 -1
  8. package/dist/checkbox/index.js +1 -1
  9. package/dist/code-block/index.d.ts +10 -0
  10. package/dist/image/index.js +1 -1
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.js +59 -30
  13. package/dist/input/index.js +2 -2
  14. package/dist/link/index.js +1 -1
  15. package/dist/modal/index.js +3 -3
  16. package/dist/rating/index.js +1 -1
  17. package/dist/select/index.js +3 -3
  18. package/dist/snippet/index.js +1 -1
  19. package/dist/table/index.js +17 -17
  20. package/dist/tabs/index.js +2 -2
  21. package/dist/text/child.d.ts +1 -1
  22. package/dist/text/index.js +10 -10
  23. package/dist/text/text.d.ts +1 -1
  24. package/dist/ui-provider/index.js +2 -2
  25. package/dist/user/index.js +1 -1
  26. package/dist/utils/collections.d.ts +1 -1
  27. package/esm/auto-complete/auto-complete.d.ts +35 -3
  28. package/esm/auto-complete/auto-complete.js +3 -4
  29. package/esm/button/button-loading.js +1 -1
  30. package/esm/button/styles.js +1 -1
  31. package/esm/button-dropdown/icon.js +1 -1
  32. package/esm/checkbox/checkbox.icon.js +1 -1
  33. package/esm/code-block/index.d.ts +10 -0
  34. package/esm/code-block/index.js +27 -28
  35. package/esm/index.d.ts +1 -0
  36. package/esm/index.js +1 -1
  37. package/esm/input/input-block-label.js +1 -1
  38. package/esm/input/input-icon.js +1 -1
  39. package/esm/link/icon.js +1 -1
  40. package/esm/modal/modal-actions.js +1 -1
  41. package/esm/rating/rating-icon.js +1 -1
  42. package/esm/select/select-icon.js +1 -1
  43. package/esm/select/select-input.js +1 -1
  44. package/esm/select/select-multiple-value.js +1 -1
  45. package/esm/snippet/snippet-icon.js +1 -1
  46. package/esm/tabs/tabs.js +2 -2
  47. package/esm/text/child.d.ts +1 -1
  48. package/esm/text/child.js +10 -10
  49. package/esm/text/text.d.ts +1 -1
  50. package/esm/tooltip/__test__/index.test.js +2 -2
  51. package/esm/utils/collections.d.ts +1 -1
  52. package/esm/utils/collections.js +1 -1
  53. package/package.json +6 -3
  54. /package/esm/utils/use-context-state/{create-geist-context.js → create-ui-context.js} +0 -0
@@ -1012,7 +1012,7 @@ var InputBlockLabelComponent = function InputBlockLabelComponent(_ref) {
1012
1012
  dynamic: [theme.palette.accents_6]
1013
1013
  }, "label.__jsx-style-dynamic-selector{display:block;font-weight:normal;color:".concat(theme.palette.accents_6, ";padding:0 0 0 1px;margin-bottom:0.5em;font-size:1em;line-height:1.5;}label.__jsx-style-dynamic-selector>*:first-child{margin-top:0;}label.__jsx-style-dynamic-selector>*:last-child{margin-bottom:0;}")));
1014
1014
  };
1015
- InputBlockLabelComponent.displayName = 'GeistInputBlockLabel';
1015
+ InputBlockLabelComponent.displayName = 'InputBlockLabel';
1016
1016
  var InputBlockLabel = /*#__PURE__*/React.memo(InputBlockLabelComponent);
1017
1017
 
1018
1018
  var InputIconComponent = function InputIconComponent(_ref) {
@@ -1028,7 +1028,7 @@ var InputIconComponent = function InputIconComponent(_ref) {
1028
1028
  dynamic: [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none']
1029
1029
  }, ".input-icon.__jsx-style-dynamic-selector{box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:calc(var(--input-height) - 2px);-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;line-height:1;position:relative;cursor:".concat(clickable ? 'pointer' : 'default', ";pointer-events:").concat(clickable ? 'auto' : 'none', ";}.input-icon.__jsx-style-dynamic-selector svg{width:calc(var(--input-height) - 2px);height:calc(var(--input-height) - 2px);-webkit-transform:scale(0.44);-ms-transform:scale(0.44);transform:scale(0.44);}")));
1030
1030
  };
1031
- InputIconComponent.displayName = 'GeistInputIcon';
1031
+ InputIconComponent.displayName = 'InputIcon';
1032
1032
  var InputIcon = /*#__PURE__*/React.memo(InputIconComponent);
1033
1033
 
1034
1034
  /* "use client" */
@@ -1749,7 +1749,7 @@ var SelectIconComponent = function SelectIconComponent() {
1749
1749
  id: "2742933678"
1750
1750
  }, "svg.jsx-2742933678{color:inherit;stroke:currentColor;-webkit-transition:all 200ms ease;transition:all 200ms ease;width:1.214em;height:1.214em;}"));
1751
1751
  };
1752
- SelectIconComponent.displayName = 'GeistSelectIcon';
1752
+ SelectIconComponent.displayName = 'SelectIcon';
1753
1753
  var SelectIcon = /*#__PURE__*/React.memo(SelectIconComponent);
1754
1754
 
1755
1755
  /* "use client" */
@@ -2280,7 +2280,7 @@ var SelectMultipleValue = function SelectMultipleValue(_ref) {
2280
2280
  dynamic: [theme.layout.radius, theme.palette.accents_2, disabled ? theme.palette.accents_4 : theme.palette.accents_6]
2281
2281
  }, ".item.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;justify-items:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1;padding:0 0.5em;font-size:var(--select-font-size);height:calc(var(--select-font-size) * 2);border-radius:".concat(theme.layout.radius, ";background-color:").concat(theme.palette.accents_2, ";color:").concat(disabled ? theme.palette.accents_4 : theme.palette.accents_6, ";}.item.__jsx-style-dynamic-selector>div:not(.clear-icon),.item.__jsx-style-dynamic-selector>div:not(.clear-icon):hover{border-radius:0;background-color:transparent;padding:0;margin:0;color:inherit;}")));
2282
2282
  };
2283
- SelectMultipleValue.displayName = 'GeistSelectMultipleValue';
2283
+ SelectMultipleValue.displayName = 'SelectMultipleValue';
2284
2284
 
2285
2285
  var getColors$1 = function getColors(palette, status) {
2286
2286
  var colors = {
@@ -2360,7 +2360,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function (_ref, inputRef) {
2360
2360
  id: "2813108835"
2361
2361
  }, "input.jsx-2813108835{position:fixed;top:-10000px;left:-10000px;opacity:0;z-index:-1;width:0;height:0;padding:0;font-size:0;border:none;}"));
2362
2362
  });
2363
- SelectInput.displayName = 'GeistSelectInput';
2363
+ SelectInput.displayName = 'SelectInput';
2364
2364
 
2365
2365
  var _excluded$e = ["children", "label", "type", "disabled", "initialValue", "value", "icon", "onChange", "pure", "multiple", "clearable", "placeholder", "className", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "getPopupContainer", "onDropdownVisibleChange"];
2366
2366
  var SelectComponent = /*#__PURE__*/React.forwardRef(function (_ref, selectRef) {
@@ -20364,7 +20364,7 @@ function Empty() {
20364
20364
  }));
20365
20365
  }
20366
20366
 
20367
- var _excluded$c = ["children", "tag", "className", "type"];
20367
+ var _excluded$c = ["children", "tag", "className", "color"];
20368
20368
  var getTypeColor = function getTypeColor(type, palette) {
20369
20369
  var colors = {
20370
20370
  "default": 'inherit',
@@ -20380,8 +20380,8 @@ var TextChild = function TextChild(_ref) {
20380
20380
  tag = _ref.tag,
20381
20381
  _ref$className = _ref.className,
20382
20382
  className = _ref$className === void 0 ? '' : _ref$className,
20383
- _ref$type = _ref.type,
20384
- type = _ref$type === void 0 ? 'default' : _ref$type,
20383
+ _ref$color = _ref.color,
20384
+ color = _ref$color === void 0 ? 'default' : _ref$color,
20385
20385
  props = _objectWithoutProperties(_ref, _excluded$c);
20386
20386
  var Component = tag;
20387
20387
  var theme = useTheme();
@@ -20393,9 +20393,9 @@ var TextChild = function TextChild(_ref) {
20393
20393
  var my = getScaleProps(['margin', 'marginTop', 'marginBottom', 'my', 'mt', 'mb']);
20394
20394
  var px = getScaleProps(['padding', 'paddingLeft', 'paddingRight', 'pl', 'pr', 'px']);
20395
20395
  var py = getScaleProps(['padding', 'paddingTop', 'paddingBottom', 'pt', 'pb', 'py']);
20396
- var color = React.useMemo(function () {
20397
- return getTypeColor(type, theme.palette);
20398
- }, [type, theme.palette]);
20396
+ var _color = React.useMemo(function () {
20397
+ return getTypeColor(color, theme.palette);
20398
+ }, [color, theme.palette]);
20399
20399
  var classNames = React.useMemo(function () {
20400
20400
  var keys = [{
20401
20401
  value: mx,
@@ -20420,11 +20420,11 @@ var TextChild = function TextChild(_ref) {
20420
20420
  return "".concat(scaleClassNames, " ").concat(className).trim();
20421
20421
  }, [mx, my, px, py, font, className]);
20422
20422
  return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
20423
- className: _JSXStyle.dynamic([["3155699851", [tag, color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')]]]) + " " + (props && props.className != null && props.className || classNames || "")
20423
+ className: _JSXStyle.dynamic([["4133320328", [tag, _color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')]]]) + " " + (props && props.className != null && props.className || classNames || "")
20424
20424
  }), children, /*#__PURE__*/React.createElement(_JSXStyle, {
20425
- id: "3155699851",
20426
- dynamic: [tag, color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')]
20427
- }, "".concat(tag, ".__jsx-style-dynamic-selector{color:").concat(color, ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";}.font.__jsx-style-dynamic-selector{font-size:").concat(SCALES.font(1, 'inherit'), ";}.mx.__jsx-style-dynamic-selector{margin-left:").concat(SCALES.ml(0, 'revert'), ";margin-right:").concat(SCALES.mr(0, 'revert'), ";}.my.__jsx-style-dynamic-selector{margin-top:").concat(SCALES.mt(0, 'revert'), ";margin-bottom:").concat(SCALES.mb(0, 'revert'), ";}.px.__jsx-style-dynamic-selector{padding-left:").concat(SCALES.pl(0, 'revert'), ";padding-right:").concat(SCALES.pr(0, 'revert'), ";}.py.__jsx-style-dynamic-selector{padding-top:").concat(SCALES.pt(0, 'revert'), ";padding-bottom:").concat(SCALES.pb(0, 'revert'), ";}")));
20425
+ id: "4133320328",
20426
+ dynamic: [tag, _color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')]
20427
+ }, "".concat(tag, ".__jsx-style-dynamic-selector{color:").concat(_color, ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";}.font.__jsx-style-dynamic-selector{font-size:").concat(SCALES.font(1, 'inherit'), ";}.mx.__jsx-style-dynamic-selector{margin-left:").concat(SCALES.ml(0, 'revert'), ";margin-right:").concat(SCALES.mr(0, 'revert'), ";}.my.__jsx-style-dynamic-selector{margin-top:").concat(SCALES.mt(0, 'revert'), ";margin-bottom:").concat(SCALES.mb(0, 'revert'), ";}.px.__jsx-style-dynamic-selector{padding-left:").concat(SCALES.pl(0, 'revert'), ";padding-right:").concat(SCALES.pr(0, 'revert'), ";}.py.__jsx-style-dynamic-selector{padding-top:").concat(SCALES.pt(0, 'revert'), ";padding-bottom:").concat(SCALES.pb(0, 'revert'), ";}")));
20428
20428
  };
20429
20429
  TextChild.displayName = 'TextChild';
20430
20430
 
@@ -30603,7 +30603,7 @@ var ButtonLoading = function ButtonLoading(_ref) {
30603
30603
  id: "212623367"
30604
30604
  }, ".btn-loading.jsx-212623367{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;background-color:var(--helpdice-ui-button-bg);}"));
30605
30605
  };
30606
- ButtonLoading.displayName = 'GeistButtonLoading';
30606
+ ButtonLoading.displayName = 'ButtonLoading';
30607
30607
 
30608
30608
  var _excluded$9 = ["isRight", "isSingle", "children", "className"];
30609
30609
  var ButtonIcon = function ButtonIcon(_ref) {
@@ -30810,7 +30810,7 @@ var getButtonGhostHoverColors = function getButtonGhostHoverColors(palette, _col
30810
30810
  color: 'white'
30811
30811
  }
30812
30812
  };
30813
- var withoutLightType = _color.replace('-light', '');
30813
+ var withoutLightType = _color === null || _color === void 0 ? void 0 : _color.replace('-light', '');
30814
30814
  return colors[withoutLightType] || null;
30815
30815
  };
30816
30816
  var getButtonHoverColors = function getButtonHoverColors(palette, props) {
@@ -1013,7 +1013,7 @@ var useScale = function useScale() {
1013
1013
 
1014
1014
  /* "use client" */
1015
1015
 
1016
- var isGeistElement = function isGeistElement(el) {
1016
+ var isUiElement = function isUiElement(el) {
1017
1017
  if (!el) return false;
1018
1018
  if (el !== null && el !== void 0 && el.dataset && el !== null && el !== void 0 && el.dataset['helpdice']) return true;
1019
1019
  el.attributes.getNamedItem('data-helpdice');
@@ -1384,7 +1384,7 @@ var TabsComponent = function TabsComponent(_ref) {
1384
1384
  onChange && onChange(value);
1385
1385
  };
1386
1386
  var tabItemMouseOverHandler = function tabItemMouseOverHandler(event) {
1387
- if (!isGeistElement(event.target)) return;
1387
+ if (!isUiElement(event.target)) return;
1388
1388
  setRect(event, function () {
1389
1389
  return ref.current;
1390
1390
  });
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { NormalTypes } from '../utils/prop-types';
3
3
  export interface Props {
4
4
  tag: keyof JSX.IntrinsicElements;
5
- type?: NormalTypes;
5
+ color?: NormalTypes;
6
6
  className?: string;
7
7
  }
8
8
  type NativeAttrs = Omit<React.DetailsHTMLAttributes<any>, keyof Props>;
@@ -1101,7 +1101,7 @@ var withScale = function withScale(Render) {
1101
1101
  return ScaleFC;
1102
1102
  };
1103
1103
 
1104
- var _excluded$1 = ["children", "tag", "className", "type"];
1104
+ var _excluded$1 = ["children", "tag", "className", "color"];
1105
1105
  var getTypeColor = function getTypeColor(type, palette) {
1106
1106
  var colors = {
1107
1107
  "default": 'inherit',
@@ -1117,8 +1117,8 @@ var TextChild = function TextChild(_ref) {
1117
1117
  tag = _ref.tag,
1118
1118
  _ref$className = _ref.className,
1119
1119
  className = _ref$className === void 0 ? '' : _ref$className,
1120
- _ref$type = _ref.type,
1121
- type = _ref$type === void 0 ? 'default' : _ref$type,
1120
+ _ref$color = _ref.color,
1121
+ color = _ref$color === void 0 ? 'default' : _ref$color,
1122
1122
  props = _objectWithoutProperties(_ref, _excluded$1);
1123
1123
  var Component = tag;
1124
1124
  var theme = useTheme();
@@ -1130,9 +1130,9 @@ var TextChild = function TextChild(_ref) {
1130
1130
  var my = getScaleProps(['margin', 'marginTop', 'marginBottom', 'my', 'mt', 'mb']);
1131
1131
  var px = getScaleProps(['padding', 'paddingLeft', 'paddingRight', 'pl', 'pr', 'px']);
1132
1132
  var py = getScaleProps(['padding', 'paddingTop', 'paddingBottom', 'pt', 'pb', 'py']);
1133
- var color = React.useMemo(function () {
1134
- return getTypeColor(type, theme.palette);
1135
- }, [type, theme.palette]);
1133
+ var _color = React.useMemo(function () {
1134
+ return getTypeColor(color, theme.palette);
1135
+ }, [color, theme.palette]);
1136
1136
  var classNames = React.useMemo(function () {
1137
1137
  var keys = [{
1138
1138
  value: mx,
@@ -1157,11 +1157,11 @@ var TextChild = function TextChild(_ref) {
1157
1157
  return "".concat(scaleClassNames, " ").concat(className).trim();
1158
1158
  }, [mx, my, px, py, font, className]);
1159
1159
  return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
1160
- className: _JSXStyle.dynamic([["3155699851", [tag, color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')]]]) + " " + (props && props.className != null && props.className || classNames || "")
1160
+ className: _JSXStyle.dynamic([["4133320328", [tag, _color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')]]]) + " " + (props && props.className != null && props.className || classNames || "")
1161
1161
  }), children, /*#__PURE__*/React.createElement(_JSXStyle, {
1162
- id: "3155699851",
1163
- dynamic: [tag, color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')]
1164
- }, "".concat(tag, ".__jsx-style-dynamic-selector{color:").concat(color, ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";}.font.__jsx-style-dynamic-selector{font-size:").concat(SCALES.font(1, 'inherit'), ";}.mx.__jsx-style-dynamic-selector{margin-left:").concat(SCALES.ml(0, 'revert'), ";margin-right:").concat(SCALES.mr(0, 'revert'), ";}.my.__jsx-style-dynamic-selector{margin-top:").concat(SCALES.mt(0, 'revert'), ";margin-bottom:").concat(SCALES.mb(0, 'revert'), ";}.px.__jsx-style-dynamic-selector{padding-left:").concat(SCALES.pl(0, 'revert'), ";padding-right:").concat(SCALES.pr(0, 'revert'), ";}.py.__jsx-style-dynamic-selector{padding-top:").concat(SCALES.pt(0, 'revert'), ";padding-bottom:").concat(SCALES.pb(0, 'revert'), ";}")));
1162
+ id: "4133320328",
1163
+ dynamic: [tag, _color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')]
1164
+ }, "".concat(tag, ".__jsx-style-dynamic-selector{color:").concat(_color, ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";}.font.__jsx-style-dynamic-selector{font-size:").concat(SCALES.font(1, 'inherit'), ";}.mx.__jsx-style-dynamic-selector{margin-left:").concat(SCALES.ml(0, 'revert'), ";margin-right:").concat(SCALES.mr(0, 'revert'), ";}.my.__jsx-style-dynamic-selector{margin-top:").concat(SCALES.mt(0, 'revert'), ";margin-bottom:").concat(SCALES.mb(0, 'revert'), ";}.px.__jsx-style-dynamic-selector{padding-left:").concat(SCALES.pl(0, 'revert'), ";padding-right:").concat(SCALES.pr(0, 'revert'), ";}.py.__jsx-style-dynamic-selector{padding-top:").concat(SCALES.pt(0, 'revert'), ";padding-bottom:").concat(SCALES.pb(0, 'revert'), ";}")));
1165
1165
  };
1166
1166
  TextChild.displayName = 'TextChild';
1167
1167
 
@@ -17,7 +17,7 @@ interface Props {
17
17
  em?: boolean;
18
18
  blockquote?: boolean;
19
19
  className?: string;
20
- type?: TextTypes;
20
+ color?: TextTypes;
21
21
  align?: 'center' | 'right' | 'left';
22
22
  }
23
23
  type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
@@ -1480,7 +1480,7 @@ var ButtonLoading = function ButtonLoading(_ref) {
1480
1480
  id: "212623367"
1481
1481
  }, ".btn-loading.jsx-212623367{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;background-color:var(--helpdice-ui-button-bg);}"));
1482
1482
  };
1483
- ButtonLoading.displayName = 'GeistButtonLoading';
1483
+ ButtonLoading.displayName = 'ButtonLoading';
1484
1484
 
1485
1485
  var _excluded$1 = ["isRight", "isSingle", "children", "className"];
1486
1486
  var ButtonIcon = function ButtonIcon(_ref) {
@@ -1687,7 +1687,7 @@ var getButtonGhostHoverColors = function getButtonGhostHoverColors(palette, _col
1687
1687
  color: 'white'
1688
1688
  }
1689
1689
  };
1690
- var withoutLightType = _color.replace('-light', '');
1690
+ var withoutLightType = _color === null || _color === void 0 ? void 0 : _color.replace('-light', '');
1691
1691
  return colors[withoutLightType] || null;
1692
1692
  };
1693
1693
  var getButtonHoverColors = function getButtonHoverColors(palette, props) {
@@ -1299,7 +1299,7 @@ var LinkIconComponent = function LinkIconComponent() {
1299
1299
  id: "3409194595"
1300
1300
  }, ".icon.jsx-3409194595{margin:0 0 -1px 0.1875em;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;color:currentColor;}"));
1301
1301
  };
1302
- LinkIconComponent.displayName = 'GeistLinkIcon';
1302
+ LinkIconComponent.displayName = 'LinkIcon';
1303
1303
  var LinkIcon = /*#__PURE__*/React.memo(LinkIconComponent);
1304
1304
 
1305
1305
  var hexToRgb = function hexToRgb(color) {
@@ -9,7 +9,7 @@ export declare const setChildrenProps: (children: ReactNode | undefined, props:
9
9
  export declare const setChildrenIndex: (children: ReactNode | undefined, targetComponents?: Array<React.ElementType>) => ReactNode | undefined;
10
10
  export declare const getReactNode: (node?: React.ReactNode | (() => React.ReactNode)) => React.ReactNode;
11
11
  export declare const isChildElement: (parent: Element | null | undefined, child: Element | null | undefined) => boolean;
12
- export declare const isGeistElement: (el?: HTMLElement) => boolean;
12
+ export declare const isUiElement: (el?: HTMLElement) => boolean;
13
13
  export declare const isBrowser: () => boolean;
14
14
  export declare const isMac: () => boolean;
15
15
  export declare const isCSSNumberValue: (value?: string | number) => boolean;
@@ -27,7 +27,39 @@ interface Props {
27
27
  }
28
28
  type NativeAttrs = Omit<React.InputHTMLAttributes<any>, keyof Props>;
29
29
  export type AutoCompleteProps = Props & NativeAttrs & ReactElement;
30
- declare const AutoCompleteComponent: React.ForwardRefExoticComponent<Props & NativeAttrs & React.ReactElement<any, string | React.JSXElementConstructor<any>> & {
30
+ declare const AutoComplete: React.ForwardRefExoticComponent<Omit<Props & NativeAttrs & React.ReactElement<any, string | React.JSXElementConstructor<any>> & {
31
31
  children?: React.ReactNode | undefined;
32
- } & React.RefAttributes<HTMLInputElement>>;
33
- export default AutoCompleteComponent;
32
+ } & React.RefAttributes<HTMLInputElement> & {
33
+ width?: string | number;
34
+ height?: string | number;
35
+ padding?: string | number;
36
+ margin?: string | number;
37
+ w?: string | number;
38
+ h?: string | number;
39
+ paddingLeft?: string | number;
40
+ paddingRight?: string | number;
41
+ paddingTop?: string | number;
42
+ paddingBottom?: string | number;
43
+ pl?: string | number;
44
+ pr?: string | number;
45
+ pt?: string | number;
46
+ pb?: string | number;
47
+ marginLeft?: string | number;
48
+ marginRight?: string | number;
49
+ marginTop?: string | number;
50
+ marginBottom?: string | number;
51
+ ml?: string | number;
52
+ mr?: string | number;
53
+ mt?: string | number;
54
+ mb?: string | number;
55
+ px?: string | number;
56
+ py?: string | number;
57
+ mx?: string | number;
58
+ my?: string | number;
59
+ font?: string | number;
60
+ unit?: string;
61
+ scale?: number;
62
+ children?: any;
63
+ className?: string;
64
+ } & React.InputHTMLAttributes<any>, "ref"> & React.RefAttributes<unknown>>;
65
+ export default AutoComplete;
@@ -15,7 +15,7 @@ import { AutoCompleteContext } from './auto-complete-context';
15
15
  import Loading from '../loading';
16
16
  import { pickChild } from '../utils/collections';
17
17
  import useCurrentState from '../utils/use-current-state';
18
- import useScale from '../use-scale';
18
+ import useScale, { withScale } from '../use-scale';
19
19
  import { ArrowRight } from '@helpdice/icons';
20
20
  var childrenToOptionsNode = function childrenToOptionsNode(options) {
21
21
  return options.map(function (item, index) {
@@ -201,6 +201,5 @@ var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRe
201
201
  }, ".auto-complete.__jsx-style-dynamic-selector{width:".concat(SCALES.width(1, 'max-content'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.auto-complete.__jsx-style-dynamic-selector .loading{width:-webkit-max-content;width:-moz-max-content;width:max-content;}"))));
202
202
  });
203
203
  AutoCompleteComponent.displayName = 'AutoComplete';
204
- // const AutoComplete = withScale(AutoCompleteComponent)
205
-
206
- export default AutoCompleteComponent;
204
+ var AutoComplete = withScale(AutoCompleteComponent);
205
+ export default AutoComplete;
@@ -11,5 +11,5 @@ var ButtonLoading = function ButtonLoading(_ref) {
11
11
  id: "212623367"
12
12
  }, ".btn-loading.jsx-212623367{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;background-color:var(--helpdice-ui-button-bg);}"));
13
13
  };
14
- ButtonLoading.displayName = 'GeistButtonLoading';
14
+ ButtonLoading.displayName = 'ButtonLoading';
15
15
  export default ButtonLoading;
@@ -102,7 +102,7 @@ export var getButtonGhostHoverColors = function getButtonGhostHoverColors(palett
102
102
  color: 'white'
103
103
  }
104
104
  };
105
- var withoutLightType = _color.replace('-light', '');
105
+ var withoutLightType = _color === null || _color === void 0 ? void 0 : _color.replace('-light', '');
106
106
  return colors[withoutLightType] || null;
107
107
  };
108
108
  export var getButtonHoverColors = function getButtonHoverColors(palette, props) {
@@ -24,5 +24,5 @@ var ButtonDropdownIcon = function ButtonDropdownIcon(_ref) {
24
24
  id: "3359574434"
25
25
  }, "svg.jsx-3359574434{-webkit-transform:scale(0.6);-ms-transform:scale(0.6);transform:scale(0.6);}"));
26
26
  };
27
- ButtonDropdownIcon.displayName = 'GeistButtonDropdownIcon';
27
+ ButtonDropdownIcon.displayName = 'ButtonDropdownIcon';
28
28
  export default ButtonDropdownIcon;
@@ -41,6 +41,6 @@ var CheckboxIconComponent = function CheckboxIconComponent(_ref) {
41
41
  dynamic: [disabled ? 0.4 : 1, disabled ? 'not-allowed' : 'pointer']
42
42
  }, "svg.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:calc(0.86 * var(--checkbox-size));height:calc(0.86 * var(--checkbox-size));-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:".concat(disabled ? 0.4 : 1, ";cursor:").concat(disabled ? 'not-allowed' : 'pointer', ";}")));
43
43
  };
44
- CheckboxIconComponent.displayName = 'GeistCheckboxIcon';
44
+ CheckboxIconComponent.displayName = 'CheckboxIcon';
45
45
  var CheckboxIcon = /*#__PURE__*/React.memo(CheckboxIconComponent);
46
46
  export default CheckboxIcon;
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ type CodeProps = {
3
+ code: string;
4
+ language: string;
5
+ style?: any;
6
+ wrapLines?: boolean;
7
+ showLineNumbers?: boolean;
8
+ };
9
+ declare const CodeBlock: React.FC<CodeProps>;
10
+ export default CodeBlock;
@@ -1,29 +1,28 @@
1
- // /* "use client" */
1
+ /* "use client" */
2
2
 
3
- // import * as React from "react";
4
- // import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
5
- // import { dracula } from 'react-syntax-highlighter/dist/cjs/styles/prism';
6
-
7
- // type CodeProps = {
8
- // code: string;
9
- // language: string;
10
- // style?: any;
11
- // wrapLines?: boolean;
12
- // showLineNumbers?: boolean;
13
- // };
14
-
15
- // const CodeBlock: React.FC<CodeProps> = ({ code, language, wrapLines = true, showLineNumbers = true }) => {
16
- // return (
17
- // <SyntaxHighlighter
18
- // lineProps={{ style: { wordBreak: 'break-all', whiteSpace: 'pre-wrap' } }}
19
- // language={language}
20
- // style={dracula}
21
- // wrapLines={wrapLines}
22
- // wrapLongLines={wrapLines}
23
- // showLineNumbers={showLineNumbers}
24
- // showInlineLineNumbers={false}
25
- // >{code}</SyntaxHighlighter>
26
- // );
27
- // };
28
-
29
- // export default CodeBlock;
3
+ import * as React from "react";
4
+ import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
5
+ import { dracula } from 'react-syntax-highlighter/dist/cjs/styles/prism';
6
+ var CodeBlock = function CodeBlock(_ref) {
7
+ var code = _ref.code,
8
+ language = _ref.language,
9
+ _ref$wrapLines = _ref.wrapLines,
10
+ wrapLines = _ref$wrapLines === void 0 ? true : _ref$wrapLines,
11
+ _ref$showLineNumbers = _ref.showLineNumbers,
12
+ showLineNumbers = _ref$showLineNumbers === void 0 ? true : _ref$showLineNumbers;
13
+ return /*#__PURE__*/React.createElement(SyntaxHighlighter, {
14
+ lineProps: {
15
+ style: {
16
+ wordBreak: 'break-all',
17
+ whiteSpace: 'pre-wrap'
18
+ }
19
+ },
20
+ language: language,
21
+ style: dracula,
22
+ wrapLines: wrapLines,
23
+ wrapLongLines: wrapLines,
24
+ showLineNumbers: showLineNumbers,
25
+ showInlineLineNumbers: false
26
+ }, code);
27
+ };
28
+ export default CodeBlock;
package/esm/index.d.ts CHANGED
@@ -126,6 +126,7 @@ export { useRect } from './utils/layouts';
126
126
  export type { ReactiveDomReact } from './utils/layouts';
127
127
  export { default as Highlight } from './shared/highlight';
128
128
  export type { HighlightProps } from './shared/highlight';
129
+ export { default as CodeBlock } from './code-block';
129
130
  export { default as Skeleton } from './skeleton';
130
131
  export { CartProvider, useCart, createCartIdentifier } from './cart';
131
132
  export type { CartProviderState } from './cart';
package/esm/index.js CHANGED
@@ -75,7 +75,7 @@ export { default as useScale } from './use-scale';
75
75
  export { withScale, ScalePropKeys, ScaleContext } from './use-scale';
76
76
  export { useRect } from './utils/layouts';
77
77
  export { default as Highlight } from './shared/highlight';
78
- // export { default as CodeBlock } from './code-block'
78
+ export { default as CodeBlock } from './code-block';
79
79
  export { default as Skeleton } from './skeleton';
80
80
 
81
81
  // Cart
@@ -11,6 +11,6 @@ var InputBlockLabelComponent = function InputBlockLabelComponent(_ref) {
11
11
  dynamic: [theme.palette.accents_6]
12
12
  }, "label.__jsx-style-dynamic-selector{display:block;font-weight:normal;color:".concat(theme.palette.accents_6, ";padding:0 0 0 1px;margin-bottom:0.5em;font-size:1em;line-height:1.5;}label.__jsx-style-dynamic-selector>*:first-child{margin-top:0;}label.__jsx-style-dynamic-selector>*:last-child{margin-bottom:0;}")));
13
13
  };
14
- InputBlockLabelComponent.displayName = 'GeistInputBlockLabel';
14
+ InputBlockLabelComponent.displayName = 'InputBlockLabel';
15
15
  var InputBlockLabel = /*#__PURE__*/React.memo(InputBlockLabelComponent);
16
16
  export default InputBlockLabel;
@@ -13,6 +13,6 @@ var InputIconComponent = function InputIconComponent(_ref) {
13
13
  dynamic: [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none']
14
14
  }, ".input-icon.__jsx-style-dynamic-selector{box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:calc(var(--input-height) - 2px);-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;line-height:1;position:relative;cursor:".concat(clickable ? 'pointer' : 'default', ";pointer-events:").concat(clickable ? 'auto' : 'none', ";}.input-icon.__jsx-style-dynamic-selector svg{width:calc(var(--input-height) - 2px);height:calc(var(--input-height) - 2px);-webkit-transform:scale(0.44);-ms-transform:scale(0.44);transform:scale(0.44);}")));
15
15
  };
16
- InputIconComponent.displayName = 'GeistInputIcon';
16
+ InputIconComponent.displayName = 'InputIcon';
17
17
  var InputIcon = /*#__PURE__*/React.memo(InputIconComponent);
18
18
  export default InputIcon;
package/esm/link/icon.js CHANGED
@@ -25,6 +25,6 @@ export var LinkIconComponent = function LinkIconComponent() {
25
25
  id: "3409194595"
26
26
  }, ".icon.jsx-3409194595{margin:0 0 -1px 0.1875em;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;color:currentColor;}"));
27
27
  };
28
- LinkIconComponent.displayName = 'GeistLinkIcon';
28
+ LinkIconComponent.displayName = 'LinkIcon';
29
29
  var LinkIcon = /*#__PURE__*/React.memo(LinkIconComponent);
30
30
  export default LinkIcon;
@@ -31,6 +31,6 @@ var ModalActionsComponent = function ModalActionsComponent(_ref) {
31
31
  dynamic: [theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, height]
32
32
  }, "footer.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;width:100%;height:auto;position:absolute;bottom:0;left:0;right:0;border-top:1px solid ".concat(theme.palette.border, ";border-bottom-left-radius:").concat(theme.layout.radius, ";border-bottom-right-radius:").concat(theme.layout.radius, ";}footer.__jsx-style-dynamic-selector>button.btn + button.btn{border-left:1px solid ").concat(theme.palette.border, ";}div.__jsx-style-dynamic-selector{height:").concat(height, ";-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}")));
33
33
  };
34
- ModalActionsComponent.displayName = 'GeistModalActions';
34
+ ModalActionsComponent.displayName = 'ModalActions';
35
35
  var ModalActions = /*#__PURE__*/React.memo(ModalActionsComponent);
36
36
  export default ModalActions;
@@ -14,5 +14,5 @@ var RatingIcon = function RatingIcon() {
14
14
  d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"
15
15
  }));
16
16
  };
17
- RatingIcon.displayName = 'GeistRatingIcon';
17
+ RatingIcon.displayName = 'RatingIcon';
18
18
  export default RatingIcon;
@@ -16,6 +16,6 @@ var SelectIconComponent = function SelectIconComponent() {
16
16
  id: "2742933678"
17
17
  }, "svg.jsx-2742933678{color:inherit;stroke:currentColor;-webkit-transition:all 200ms ease;transition:all 200ms ease;width:1.214em;height:1.214em;}"));
18
18
  };
19
- SelectIconComponent.displayName = 'GeistSelectIcon';
19
+ SelectIconComponent.displayName = 'SelectIcon';
20
20
  var SelectIcon = /*#__PURE__*/React.memo(SelectIconComponent);
21
21
  export default SelectIcon;
@@ -31,5 +31,5 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function (_ref, inputRef) {
31
31
  id: "2813108835"
32
32
  }, "input.jsx-2813108835{position:fixed;top:-10000px;left:-10000px;opacity:0;z-index:-1;width:0;height:0;padding:0;font-size:0;border:none;}"));
33
33
  });
34
- SelectInput.displayName = 'GeistSelectInput';
34
+ SelectInput.displayName = 'SelectInput';
35
35
  export default SelectInput;
@@ -17,5 +17,5 @@ var SelectMultipleValue = function SelectMultipleValue(_ref) {
17
17
  dynamic: [theme.layout.radius, theme.palette.accents_2, disabled ? theme.palette.accents_4 : theme.palette.accents_6]
18
18
  }, ".item.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;justify-items:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1;padding:0 0.5em;font-size:var(--select-font-size);height:calc(var(--select-font-size) * 2);border-radius:".concat(theme.layout.radius, ";background-color:").concat(theme.palette.accents_2, ";color:").concat(disabled ? theme.palette.accents_4 : theme.palette.accents_6, ";}.item.__jsx-style-dynamic-selector>div:not(.clear-icon),.item.__jsx-style-dynamic-selector>div:not(.clear-icon):hover{border-radius:0;background-color:transparent;padding:0;margin:0;color:inherit;}")));
19
19
  };
20
- SelectMultipleValue.displayName = 'GeistSelectMultipleValue';
20
+ SelectMultipleValue.displayName = 'SelectMultipleValue';
21
21
  export default SelectMultipleValue;
@@ -20,6 +20,6 @@ var SnippetIconComponent = function SnippetIconComponent() {
20
20
  id: "418323402"
21
21
  }, "svg.jsx-418323402{width:calc(var(--snippet-font-size) * 1.69);height:calc(var(--snippet-font-size) * 1.69);}"));
22
22
  };
23
- SnippetIconComponent.displayName = 'GeistSnippetIcon';
23
+ SnippetIconComponent.displayName = 'SnippetIcon';
24
24
  var SnippetIcon = /*#__PURE__*/React.memo(SnippetIconComponent);
25
25
  export default SnippetIcon;
package/esm/tabs/tabs.js CHANGED
@@ -12,7 +12,7 @@ import { TabsContext } from './tabs-context';
12
12
  import useScale, { withScale } from '../use-scale';
13
13
  import Highlight from '../shared/highlight';
14
14
  import { useRect } from '../utils/layouts';
15
- import { isGeistElement } from '../utils/collections';
15
+ import { isUiElement } from '../utils/collections';
16
16
  import useClasses from '../use-classes';
17
17
  var TabsComponent = function TabsComponent(_ref) {
18
18
  var userCustomInitialValue = _ref.initialValue,
@@ -87,7 +87,7 @@ var TabsComponent = function TabsComponent(_ref) {
87
87
  onChange && onChange(value);
88
88
  };
89
89
  var tabItemMouseOverHandler = function tabItemMouseOverHandler(event) {
90
- if (!isGeistElement(event.target)) return;
90
+ if (!isUiElement(event.target)) return;
91
91
  setRect(event, function () {
92
92
  return ref.current;
93
93
  });
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { NormalTypes } from '../utils/prop-types';
3
3
  export interface Props {
4
4
  tag: keyof JSX.IntrinsicElements;
5
- type?: NormalTypes;
5
+ color?: NormalTypes;
6
6
  className?: string;
7
7
  }
8
8
  type NativeAttrs = Omit<React.DetailsHTMLAttributes<any>, keyof Props>;
package/esm/text/child.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["children", "tag", "className", "type"];
3
+ var _excluded = ["children", "tag", "className", "color"];
4
4
  import _JSXStyle from "../styled-jsx.es.js";
5
5
  /* "use client" */
6
6
 
@@ -22,8 +22,8 @@ var TextChild = function TextChild(_ref) {
22
22
  tag = _ref.tag,
23
23
  _ref$className = _ref.className,
24
24
  className = _ref$className === void 0 ? '' : _ref$className,
25
- _ref$type = _ref.type,
26
- type = _ref$type === void 0 ? 'default' : _ref$type,
25
+ _ref$color = _ref.color,
26
+ color = _ref$color === void 0 ? 'default' : _ref$color,
27
27
  props = _objectWithoutProperties(_ref, _excluded);
28
28
  var Component = tag;
29
29
  var theme = useTheme();
@@ -35,9 +35,9 @@ var TextChild = function TextChild(_ref) {
35
35
  var my = getScaleProps(['margin', 'marginTop', 'marginBottom', 'my', 'mt', 'mb']);
36
36
  var px = getScaleProps(['padding', 'paddingLeft', 'paddingRight', 'pl', 'pr', 'px']);
37
37
  var py = getScaleProps(['padding', 'paddingTop', 'paddingBottom', 'pt', 'pb', 'py']);
38
- var color = useMemo(function () {
39
- return getTypeColor(type, theme.palette);
40
- }, [type, theme.palette]);
38
+ var _color = useMemo(function () {
39
+ return getTypeColor(color, theme.palette);
40
+ }, [color, theme.palette]);
41
41
  var classNames = useMemo(function () {
42
42
  var keys = [{
43
43
  value: mx,
@@ -62,11 +62,11 @@ var TextChild = function TextChild(_ref) {
62
62
  return "".concat(scaleClassNames, " ").concat(className).trim();
63
63
  }, [mx, my, px, py, font, className]);
64
64
  return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
65
- className: _JSXStyle.dynamic([["3155699851", [tag, color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')]]]) + " " + (props && props.className != null && props.className || classNames || "")
65
+ className: _JSXStyle.dynamic([["4133320328", [tag, _color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')]]]) + " " + (props && props.className != null && props.className || classNames || "")
66
66
  }), children, /*#__PURE__*/React.createElement(_JSXStyle, {
67
- id: "3155699851",
68
- dynamic: [tag, color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')]
69
- }, "".concat(tag, ".__jsx-style-dynamic-selector{color:").concat(color, ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";}.font.__jsx-style-dynamic-selector{font-size:").concat(SCALES.font(1, 'inherit'), ";}.mx.__jsx-style-dynamic-selector{margin-left:").concat(SCALES.ml(0, 'revert'), ";margin-right:").concat(SCALES.mr(0, 'revert'), ";}.my.__jsx-style-dynamic-selector{margin-top:").concat(SCALES.mt(0, 'revert'), ";margin-bottom:").concat(SCALES.mb(0, 'revert'), ";}.px.__jsx-style-dynamic-selector{padding-left:").concat(SCALES.pl(0, 'revert'), ";padding-right:").concat(SCALES.pr(0, 'revert'), ";}.py.__jsx-style-dynamic-selector{padding-top:").concat(SCALES.pt(0, 'revert'), ";padding-bottom:").concat(SCALES.pb(0, 'revert'), ";}")));
67
+ id: "4133320328",
68
+ dynamic: [tag, _color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')]
69
+ }, "".concat(tag, ".__jsx-style-dynamic-selector{color:").concat(_color, ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";}.font.__jsx-style-dynamic-selector{font-size:").concat(SCALES.font(1, 'inherit'), ";}.mx.__jsx-style-dynamic-selector{margin-left:").concat(SCALES.ml(0, 'revert'), ";margin-right:").concat(SCALES.mr(0, 'revert'), ";}.my.__jsx-style-dynamic-selector{margin-top:").concat(SCALES.mt(0, 'revert'), ";margin-bottom:").concat(SCALES.mb(0, 'revert'), ";}.px.__jsx-style-dynamic-selector{padding-left:").concat(SCALES.pl(0, 'revert'), ";padding-right:").concat(SCALES.pr(0, 'revert'), ";}.py.__jsx-style-dynamic-selector{padding-top:").concat(SCALES.pt(0, 'revert'), ";padding-bottom:").concat(SCALES.pb(0, 'revert'), ";}")));
70
70
  };
71
71
  TextChild.displayName = 'TextChild';
72
72
  export default TextChild;
@@ -17,7 +17,7 @@ interface Props {
17
17
  em?: boolean;
18
18
  blockquote?: boolean;
19
19
  className?: string;
20
- type?: TextTypes;
20
+ color?: TextTypes;
21
21
  align?: 'center' | 'right' | 'left';
22
22
  }
23
23
  type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;