@helpdice/ui 1.8.4 → 2.0.5
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/CurrencyInput/components/CurrencyInput.d.ts +4 -0
- package/dist/CurrencyInput/components/CurrencyInputProps.d.ts +160 -0
- package/dist/CurrencyInput/components/utils/cleanValue.d.ts +8 -0
- package/dist/CurrencyInput/components/utils/escapeRegExp.d.ts +6 -0
- package/dist/CurrencyInput/components/utils/fixedDecimalValue.d.ts +1 -0
- package/dist/CurrencyInput/components/utils/formatValue.d.ts +49 -0
- package/dist/CurrencyInput/components/utils/getLocaleConfig.d.ts +13 -0
- package/dist/CurrencyInput/components/utils/getSuffix.d.ts +6 -0
- package/dist/CurrencyInput/components/utils/index.d.ts +8 -0
- package/dist/CurrencyInput/components/utils/isNumber.d.ts +1 -0
- package/dist/CurrencyInput/components/utils/padTrimValue.d.ts +1 -0
- package/dist/CurrencyInput/components/utils/parseAbbrValue.d.ts +10 -0
- package/dist/CurrencyInput/components/utils/removeInvalidChars.d.ts +4 -0
- package/dist/CurrencyInput/components/utils/removeSeparators.d.ts +4 -0
- package/dist/CurrencyInput/components/utils/repositionCursor.d.ts +16 -0
- package/dist/CurrencyInput/index.d.ts +5 -0
- package/dist/CurrencyInput/index.js +3 -2122
- package/dist/ITooltip/index.d.ts +13 -0
- package/dist/Loadable/index.js +29 -3
- package/dist/PhoneInput/index.js +21 -2140
- package/dist/Placeholder/index.js +5 -2124
- package/dist/auto-complete/index.js +73 -12092
- package/dist/avatar/index.js +15 -2134
- package/dist/badge/index.js +8 -2127
- package/dist/breadcrumbs/index.js +19 -2138
- package/dist/button/index.js +36 -2229
- package/dist/button-dropdown/index.js +28 -2147
- package/dist/button-group/index.js +9 -2128
- package/dist/capacity/index.js +10 -2129
- package/dist/card/index.js +46 -2165
- package/dist/carousal/index.js +644 -12666
- package/dist/checkbox/index.js +10 -2129
- package/dist/code/index.js +14 -2133
- package/dist/collapse/index.js +16 -2135
- package/dist/description/index.js +9 -2128
- package/dist/display/index.js +11 -2130
- package/dist/divider/index.js +12 -2131
- package/dist/dot/index.js +6 -2125
- package/dist/drawer/index.js +21 -2139
- package/dist/fieldset/index.js +22 -2141
- package/dist/grid/index.js +8 -2127
- package/dist/image/index.js +31 -2150
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2065 -23539
- package/dist/input/index.js +42 -2158
- package/dist/keyboard/index.js +11 -2130
- package/dist/link/index.js +11 -2130
- package/dist/list/index.js +25 -2143
- package/dist/list/list-item.d.ts +1 -0
- package/dist/loading/index.js +14 -2133
- package/dist/menu/index.js +2 -10245
- package/dist/modal/index.js +59 -2177
- package/dist/note/index.js +10 -2129
- package/dist/page/index.js +6 -2125
- package/dist/pagination/index.js +11 -2130
- package/dist/popover/index.js +23 -2141
- package/dist/progress/index.js +10 -2129
- package/dist/radio/index.js +17 -2136
- package/dist/rating/index.js +7 -2126
- package/dist/row/index.js +5 -2124
- package/dist/select/index.js +54 -2173
- package/dist/slider/index.js +21 -2140
- package/dist/snippet/index.js +12 -2131
- package/dist/spacer/index.js +2 -2121
- package/dist/spinner/index.js +5 -2124
- package/dist/table/index.js +910 -12918
- package/dist/tabs/index.js +16 -2135
- package/dist/tag/index.js +5 -2124
- package/dist/text/index.js +5 -2124
- package/dist/textarea/index.js +10 -2129
- package/dist/toggle/index.js +14 -2133
- package/dist/tooltip/index.js +17 -2135
- package/dist/tree/index.js +39 -2158
- package/dist/use-input/index.js +2 -2122
- package/dist/use-modal/index.js +2 -2122
- package/dist/use-scale/index.js +2 -2121
- package/dist/use-tabs/index.js +2 -2122
- package/dist/user/index.js +31 -2150
- package/esm/CurrencyInput/components/CurrencyInput.d.ts +4 -0
- package/esm/CurrencyInput/components/CurrencyInputProps.d.ts +160 -0
- package/esm/CurrencyInput/components/utils/cleanValue.d.ts +8 -0
- package/esm/CurrencyInput/components/utils/escapeRegExp.d.ts +6 -0
- package/esm/CurrencyInput/components/utils/fixedDecimalValue.d.ts +1 -0
- package/esm/CurrencyInput/components/utils/formatValue.d.ts +49 -0
- package/esm/CurrencyInput/components/utils/getLocaleConfig.d.ts +13 -0
- package/esm/CurrencyInput/components/utils/getSuffix.d.ts +6 -0
- package/esm/CurrencyInput/components/utils/index.d.ts +8 -0
- package/esm/CurrencyInput/components/utils/isNumber.d.ts +1 -0
- package/esm/CurrencyInput/components/utils/padTrimValue.d.ts +1 -0
- package/esm/CurrencyInput/components/utils/parseAbbrValue.d.ts +10 -0
- package/esm/CurrencyInput/components/utils/removeInvalidChars.d.ts +4 -0
- package/esm/CurrencyInput/components/utils/removeSeparators.d.ts +4 -0
- package/esm/CurrencyInput/components/utils/repositionCursor.d.ts +16 -0
- package/esm/CurrencyInput/index.d.ts +5 -0
- package/esm/ITooltip/index.d.ts +13 -0
- package/esm/ITooltip/index.js +97 -0
- package/esm/Loadable/loader.js +13 -0
- package/esm/button/button.compact.js +13 -86
- package/esm/index.d.ts +4 -0
- package/esm/index.js +4 -1
- package/esm/input/input.js +13 -10
- package/esm/link/link.js +3 -3
- package/esm/list/list-item.d.ts +1 -0
- package/esm/list/list-item.js +4 -2
- package/esm/login-with/LoginSocialAmazon/index.js +1 -1
- package/esm/login-with/LoginSocialApple/index.js +1 -1
- package/esm/login-with/LoginSocialFacebook/index.js +1 -1
- package/esm/login-with/LoginSocialGoogle/index.js +1 -1
- package/esm/table/table-body.js +14 -4
- package/esm/table/table-cell.js +1 -1
- package/esm/table/table-head.js +13 -13
- package/esm/table/table.js +8 -8
- package/package.json +5 -5
package/esm/input/input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
var _excluded = ["label", "labelRight", "color", "error", "type", "icon", "iconRight", "iconClickable", "onIconClick", "initialValue", "onChange", "readOnly", "value", "onClearClick", "clearable", "className", "onBlur", "onFocus", "autoComplete", "placeholder", "children", "disabled"];
|
|
4
|
+
var _excluded = ["label", "labelRight", "color", "error", "type", "icon", "iconRight", "iconClickable", "onIconClick", "initialValue", "onChange", "readOnly", "value", "onClearClick", "clearable", "className", "onBlur", "onFocus", "autoComplete", "placeholder", "children", "disabled", "fullWidth"];
|
|
5
5
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
6
6
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
7
7
|
/* eslint-disable react/jsx-no-undef */
|
|
@@ -54,6 +54,8 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
54
54
|
children = _ref.children,
|
|
55
55
|
_ref$disabled = _ref.disabled,
|
|
56
56
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
57
|
+
_ref$fullWidth = _ref.fullWidth,
|
|
58
|
+
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
|
57
59
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
58
60
|
var theme = useTheme();
|
|
59
61
|
var _useScale = useScale(),
|
|
@@ -130,12 +132,13 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
130
132
|
defaultValue: initialValue
|
|
131
133
|
};
|
|
132
134
|
var inputProps = _extends({}, props, controlledValue);
|
|
135
|
+
var defaultWidth = fullWidth ? '100%' : 'initial';
|
|
133
136
|
return /*#__PURE__*/React.createElement("div", {
|
|
134
|
-
className: _JSXStyle.dynamic([["
|
|
137
|
+
className: _JSXStyle.dynamic([["3279091727", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), theme.layout.radius, borderColor, theme.palette.accents_1, theme.palette.accents_2, hoverBorder, SCALES.font(0.875), color, theme.palette.accents_3, theme.palette.background, color]]]) + " " + "with-label"
|
|
135
138
|
}, children && /*#__PURE__*/React.createElement(InputBlockLabel, null, children), /*#__PURE__*/React.createElement("div", {
|
|
136
|
-
className: _JSXStyle.dynamic([["
|
|
139
|
+
className: _JSXStyle.dynamic([["3279091727", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), theme.layout.radius, borderColor, theme.palette.accents_1, theme.palette.accents_2, hoverBorder, SCALES.font(0.875), color, theme.palette.accents_3, theme.palette.background, color]]]) + " " + (useClasses('input-container', className) || "")
|
|
137
140
|
}, label && /*#__PURE__*/React.createElement(InputLabel, null, label), /*#__PURE__*/React.createElement("div", {
|
|
138
|
-
className: _JSXStyle.dynamic([["
|
|
141
|
+
className: _JSXStyle.dynamic([["3279091727", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), theme.layout.radius, borderColor, theme.palette.accents_1, theme.palette.accents_2, hoverBorder, SCALES.font(0.875), color, theme.palette.accents_3, theme.palette.background, color]]]) + " " + (useClasses('input-wrapper', {
|
|
139
142
|
hover: hover,
|
|
140
143
|
disabled: disabled
|
|
141
144
|
}, labelClasses) || "")
|
|
@@ -152,7 +155,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
152
155
|
onChange: changeHandler,
|
|
153
156
|
autoComplete: autoComplete
|
|
154
157
|
}, inputProps, {
|
|
155
|
-
className: _JSXStyle.dynamic([["
|
|
158
|
+
className: _JSXStyle.dynamic([["3279091727", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), theme.layout.radius, borderColor, theme.palette.accents_1, theme.palette.accents_2, hoverBorder, SCALES.font(0.875), color, theme.palette.accents_3, theme.palette.background, color]]]) + " " + (inputProps && inputProps.className != null && inputProps.className || useClasses({
|
|
156
159
|
disabled: disabled
|
|
157
160
|
}, iconClasses) || "")
|
|
158
161
|
})), clearable && /*#__PURE__*/React.createElement(InputClearIcon, {
|
|
@@ -164,7 +167,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
164
167
|
}, iconProps))), labelRight && /*#__PURE__*/React.createElement(InputLabel, {
|
|
165
168
|
isRight: true
|
|
166
169
|
}, labelRight), /*#__PURE__*/React.createElement("br", {
|
|
167
|
-
className: _JSXStyle.dynamic([["
|
|
170
|
+
className: _JSXStyle.dynamic([["3279091727", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), theme.layout.radius, borderColor, theme.palette.accents_1, theme.palette.accents_2, hoverBorder, SCALES.font(0.875), color, theme.palette.accents_3, theme.palette.background, color]]])
|
|
168
171
|
})), error && /*#__PURE__*/React.createElement("p", {
|
|
169
172
|
style: {
|
|
170
173
|
marginTop: 0.4,
|
|
@@ -173,11 +176,11 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
173
176
|
marginBottom: '0.4rem',
|
|
174
177
|
textAlign: 'left'
|
|
175
178
|
},
|
|
176
|
-
className: _JSXStyle.dynamic([["
|
|
179
|
+
className: _JSXStyle.dynamic([["3279091727", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), theme.layout.radius, borderColor, theme.palette.accents_1, theme.palette.accents_2, hoverBorder, SCALES.font(0.875), color, theme.palette.accents_3, theme.palette.background, color]]]) + " " + "input-error"
|
|
177
180
|
}, error), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
178
|
-
id: "
|
|
179
|
-
dynamic: [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1,
|
|
180
|
-
}, ".with-label.__jsx-style-dynamic-selector{display:inline-block;box-sizing:border-box;-webkit-box-align:center;--input-height:".concat(SCALES.height(2.25), ";font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1,
|
|
181
|
+
id: "3279091727",
|
|
182
|
+
dynamic: [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), theme.layout.radius, borderColor, theme.palette.accents_1, theme.palette.accents_2, hoverBorder, SCALES.font(0.875), color, theme.palette.accents_3, theme.palette.background, color]
|
|
183
|
+
}, ".with-label.__jsx-style-dynamic-selector{display:inline-block;box-sizing:border-box;-webkit-box-align:center;--input-height:".concat(SCALES.height(2.25), ";font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, defaultWidth), ";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), ";}.input-error.__jsx-style-dynamic-selector{color:#aa4a44;}.input-container.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:").concat(SCALES.width(1, defaultWidth), ";height:var(--input-height);}.input-wrapper.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:").concat(theme.layout.radius, ";border:1px solid ").concat(borderColor, ";-webkit-transition:border 0.2s ease 0s,color 0.2s ease 0s;transition:border 0.2s ease 0s,color 0.2s ease 0s;}.input-wrapper.left-label.__jsx-style-dynamic-selector{border-top-left-radius:0;border-bottom-left-radius:0;}.input-wrapper.right-label.__jsx-style-dynamic-selector{border-top-right-radius:0;border-bottom-right-radius:0;}.input-wrapper.disabled.__jsx-style-dynamic-selector{background-color:").concat(theme.palette.accents_1, ";border-color:").concat(theme.palette.accents_2, ";cursor:not-allowed;}input.disabled.__jsx-style-dynamic-selector{cursor:not-allowed;}.input-wrapper.hover.__jsx-style-dynamic-selector{border-color:").concat(hoverBorder, ";}input.__jsx-style-dynamic-selector{margin:0.25em 0.625em;padding:0;box-shadow:none;font-size:").concat(SCALES.font(0.875), ";background-color:transparent;border:none;color:").concat(color, ";outline:none;border-radius:0;width:100%;min-width:0;-webkit-appearance:none;}input.left-icon.__jsx-style-dynamic-selector{margin-left:0;}input.right-icon.__jsx-style-dynamic-selector{margin-right:0;}.__jsx-style-dynamic-selector::-webkit-input-placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme.palette.accents_3, ";}.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme.palette.accents_3, ";}.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme.palette.accents_3, ";}.__jsx-style-dynamic-selector::placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme.palette.accents_3, ";}.__jsx-style-dynamic-selector::-ms-reveal{display:none !important;}input.__jsx-style-dynamic-selector:-webkit-autofill,input.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:hover,input.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:active,input.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:focus{-webkit-box-shadow:0 0 0 30px ").concat(theme.palette.background, " inset !important;-webkit-text-fill-color:").concat(color, " !important;}")));
|
|
181
184
|
});
|
|
182
185
|
InputComponent.displayName = 'Input';
|
|
183
186
|
var Input = withScale(InputComponent);
|
package/esm/link/link.js
CHANGED
|
@@ -38,11 +38,11 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
38
38
|
href: href
|
|
39
39
|
}, props, {
|
|
40
40
|
ref: ref,
|
|
41
|
-
className: _JSXStyle.dynamic([["
|
|
41
|
+
className: _JSXStyle.dynamic([["1962988967", [linkColor, block ? theme.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme.palette.link, 0.1) : 'unset', hoverColor]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
42
42
|
}), icon && icon, /*#__PURE__*/React.createElement("span", {
|
|
43
|
-
className: _JSXStyle.dynamic([["
|
|
43
|
+
className: _JSXStyle.dynamic([["1962988967", [linkColor, block ? theme.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme.palette.link, 0.1) : 'unset', hoverColor]]]) + " " + "link-extra"
|
|
44
44
|
}, children, arrow && /*#__PURE__*/React.createElement(LinkIcon, null)), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
45
|
-
id: "
|
|
45
|
+
id: "1962988967",
|
|
46
46
|
dynamic: [linkColor, block ? theme.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme.palette.link, 0.1) : 'unset', hoverColor]
|
|
47
47
|
}, ".link.__jsx-style-dynamic-selector,.link-extra.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:inherit;gap:5px;color:".concat(linkColor, ";-webkit-text-decoration:none;text-decoration:none;border-radius:").concat(block ? theme.layout.radius : 0, ";-webkit-transition:color 200ms ease 0ms;transition:color 200ms ease 0ms;font-size:").concat(SCALES.font(1, 'inherit'), ";width:").concat(SCALES.width(1, 'fit-content'), ";height:").concat(SCALES.height(1, 'auto'), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";}.block.__jsx-style-dynamic-selector{padding:").concat(SCALES.pt(0.125), " ").concat(SCALES.pr(0.25), " ").concat(SCALES.pb(0.125), " ").concat(SCALES.pl(0.25), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(-0.125), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(-0.125), ";}.link.__jsx-style-dynamic-selector:hover,.link.__jsx-style-dynamic-selector:active,.link.__jsx-style-dynamic-selector:focus{-webkit-text-decoration:").concat(decoration, ";text-decoration:").concat(decoration, ";}.link.__jsx-style-dynamic-selector:hover{background-color:").concat(block ? addColorAlpha(theme.palette.link, 0.1) : 'unset', ";color:").concat(hoverColor, ";}")));
|
|
48
48
|
});
|
package/esm/list/list-item.d.ts
CHANGED
package/esm/list/list-item.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", "direction", "justify", "alignItems", "line", "showTitle", "className", "onClick", "leading", "primary", "secondary", "trailing", "selected", "disableAutoClose"];
|
|
3
|
+
var _excluded = ["children", "direction", "justify", "alignItems", "line", "to", "showTitle", "className", "onClick", "leading", "primary", "secondary", "trailing", "selected", "disableAutoClose"];
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { useTheme, useClasses } from '@helpdice/theme';
|
|
@@ -15,6 +15,8 @@ var ListItemComponent = function ListItemComponent(_ref) {
|
|
|
15
15
|
alignItems = _ref$alignItems === void 0 ? 'center' : _ref$alignItems,
|
|
16
16
|
_ref$line = _ref.line,
|
|
17
17
|
line = _ref$line === void 0 ? false : _ref$line,
|
|
18
|
+
_ref$to = _ref.to,
|
|
19
|
+
to = _ref$to === void 0 ? '/' : _ref$to,
|
|
18
20
|
_ref$showTitle = _ref.showTitle,
|
|
19
21
|
showTitle = _ref$showTitle === void 0 ? false : _ref$showTitle,
|
|
20
22
|
_ref$className = _ref.className,
|
|
@@ -53,7 +55,7 @@ var ListItemComponent = function ListItemComponent(_ref) {
|
|
|
53
55
|
}
|
|
54
56
|
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
55
57
|
style: {
|
|
56
|
-
backgroundColor: selected ?
|
|
58
|
+
backgroundColor: selected ? theme.palette.accents_2 : ''
|
|
57
59
|
},
|
|
58
60
|
onClick: clickHandler
|
|
59
61
|
}, props, {
|
|
@@ -12,7 +12,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
12
12
|
import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
13
13
|
var JS_SRC = 'https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js';
|
|
14
14
|
var SCRIPT_ID = 'apple-login';
|
|
15
|
-
var _window =
|
|
15
|
+
var _window = globalThis.window;
|
|
16
16
|
var LoginSocialApple = function LoginSocialApple(_ref) {
|
|
17
17
|
var client_id = _ref.client_id,
|
|
18
18
|
_ref$scope = _ref.scope,
|
|
@@ -11,7 +11,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
11
11
|
import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
12
12
|
var SDK_URL = 'https://connect.facebook.net/en_EN/sdk.js';
|
|
13
13
|
var SCRIPT_ID = 'facebook-jssdk';
|
|
14
|
-
var _window =
|
|
14
|
+
var _window = globalThis.window;
|
|
15
15
|
var LoginSocialFacebook = function LoginSocialFacebook(_ref) {
|
|
16
16
|
var appId = _ref.appId,
|
|
17
17
|
_ref$scope = _ref.scope,
|
|
@@ -15,7 +15,7 @@ import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
|
15
15
|
var JS_SRC = 'https://accounts.google.com/gsi/client';
|
|
16
16
|
var SCRIPT_ID = 'google-login';
|
|
17
17
|
var PREVENT_CORS_URL = '';
|
|
18
|
-
var _window =
|
|
18
|
+
var _window = globalThis.window;
|
|
19
19
|
var LoginSocialGoogle = function LoginSocialGoogle(_ref) {
|
|
20
20
|
var client_id = _ref.client_id,
|
|
21
21
|
_ref$scope = _ref.scope,
|
package/esm/table/table-body.js
CHANGED
|
@@ -7,7 +7,7 @@ import TableCell from './table-cell';
|
|
|
7
7
|
import { useTableContext } from './table-context';
|
|
8
8
|
import _ from 'lodash';
|
|
9
9
|
import Placeholder from '../Placeholder';
|
|
10
|
-
// import { DataTable } from '@helpdice/pro'
|
|
10
|
+
// import { DataTable } from '@helpdice/pro'
|
|
11
11
|
|
|
12
12
|
var TableBody = function TableBody(_ref) {
|
|
13
13
|
var data = _ref.data,
|
|
@@ -86,6 +86,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
86
86
|
// ) as unknown as TableDataItem
|
|
87
87
|
// console.log(frow);
|
|
88
88
|
var isRowSelected = selected.indexOf(row) !== -1;
|
|
89
|
+
var hoverColor = theme.type == 'dark' ? theme.palette.accents_1 : theme.palette.background;
|
|
89
90
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tr", {
|
|
90
91
|
draggable: rowDraggable,
|
|
91
92
|
role: "checkbox",
|
|
@@ -95,7 +96,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
95
96
|
key: urid,
|
|
96
97
|
style: _extends({
|
|
97
98
|
cursor: 'pointer',
|
|
98
|
-
backgroundColor: isRowSelected ?
|
|
99
|
+
backgroundColor: isRowSelected ? hoverColor : ''
|
|
99
100
|
}, rowStyle),
|
|
100
101
|
onClick: function onClick(e) {
|
|
101
102
|
if (!rowDraggable) {
|
|
@@ -130,7 +131,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
130
131
|
return /*#__PURE__*/React.createElement("tbody", {
|
|
131
132
|
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
132
133
|
}, data.map(function (row, index) {
|
|
133
|
-
|
|
134
|
+
var qid = _.uniqueId();
|
|
134
135
|
if (row === null || row === undefined) {
|
|
135
136
|
var uid = _.uniqueId();
|
|
136
137
|
return /*#__PURE__*/React.createElement("tr", {
|
|
@@ -141,7 +142,16 @@ var TableBody = function TableBody(_ref) {
|
|
|
141
142
|
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
142
143
|
}, "\u2003"));
|
|
143
144
|
}
|
|
144
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, renderRow(columns, row, index))
|
|
145
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, renderRow(columns, row, index), (row === null || row === void 0 ? void 0 : row.table) && /*#__PURE__*/React.createElement("tr", {
|
|
146
|
+
key: qid,
|
|
147
|
+
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
148
|
+
}, /*#__PURE__*/React.createElement("td", {
|
|
149
|
+
style: {
|
|
150
|
+
padding: '1rem'
|
|
151
|
+
},
|
|
152
|
+
colSpan: columns.length,
|
|
153
|
+
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
154
|
+
})));
|
|
145
155
|
|
|
146
156
|
// return (
|
|
147
157
|
// <tr
|
package/esm/table/table-cell.js
CHANGED
|
@@ -14,7 +14,7 @@ var TableCell = function TableCell(_ref) {
|
|
|
14
14
|
return /*#__PURE__*/React.createElement("td", {
|
|
15
15
|
style: _extends({
|
|
16
16
|
fontSize: "".concat(column === null || column === void 0 ? void 0 : column.fontSize),
|
|
17
|
-
textAlign: "".concat(column === null || column === void 0 ? void 0 : column.align, " !important"),
|
|
17
|
+
textAlign: column !== null && column !== void 0 && column.align ? "".concat(column === null || column === void 0 ? void 0 : column.align, " !important") : 'left',
|
|
18
18
|
paddingLeft: '0.3rem',
|
|
19
19
|
paddingRight: '0.3rem',
|
|
20
20
|
color: "".concat(column === null || column === void 0 ? void 0 : column.color),
|
package/esm/table/table-head.js
CHANGED
|
@@ -84,7 +84,7 @@ var TableHead = function TableHead(props) {
|
|
|
84
84
|
return /*#__PURE__*/React.createElement("th", {
|
|
85
85
|
style: {
|
|
86
86
|
padding: '3px',
|
|
87
|
-
|
|
87
|
+
textAlign: 'left'
|
|
88
88
|
},
|
|
89
89
|
"data-column": Header
|
|
90
90
|
}, accessor === 'fixed' && /*#__PURE__*/React.createElement(Select
|
|
@@ -133,12 +133,12 @@ var TableHead = function TableHead(props) {
|
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
135
|
return /*#__PURE__*/React.createElement(React.Fragment, null, colgroup, /*#__PURE__*/React.createElement("thead", {
|
|
136
|
-
className: _JSXStyle.dynamic([["
|
|
136
|
+
className: _JSXStyle.dynamic([["4089411751", [theme.palette.background, stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
137
137
|
}, /*#__PURE__*/React.createElement("tr", {
|
|
138
138
|
style: {
|
|
139
|
-
backgroundColor:
|
|
139
|
+
backgroundColor: theme.palette.background
|
|
140
140
|
},
|
|
141
|
-
className: _JSXStyle.dynamic([["
|
|
141
|
+
className: _JSXStyle.dynamic([["4089411751", [theme.palette.background, stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
142
142
|
}, columns.map(function (column, _index) {
|
|
143
143
|
var _String2;
|
|
144
144
|
var dataName = (_String2 = String(column === null || column === void 0 ? void 0 : column.label)) === null || _String2 === void 0 ? void 0 : _String2.replace(' ', '_').toLowerCase();
|
|
@@ -147,28 +147,28 @@ var TableHead = function TableHead(props) {
|
|
|
147
147
|
// textAlign: `${column?.align} !important`,
|
|
148
148
|
// paddingLeft: '0.3rem',
|
|
149
149
|
// paddingRight: '0.3rem',
|
|
150
|
-
backgroundColor: '
|
|
150
|
+
backgroundColor: theme.type == 'dark' ? theme.palette.accents_1 : theme.palette.background,
|
|
151
151
|
color: "".concat(column !== null && column !== void 0 && column.color ? column === null || column === void 0 ? void 0 : column.color : '#333'),
|
|
152
152
|
whiteSpace: column !== null && column !== void 0 && column.noWrap ? 'nowrap' : 'normal'
|
|
153
153
|
}, column === null || column === void 0 ? void 0 : column.style),
|
|
154
154
|
"data-column": dataName,
|
|
155
|
-
className: _JSXStyle.dynamic([["
|
|
155
|
+
className: _JSXStyle.dynamic([["4089411751", [theme.palette.background, stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]]) + " " + (column.className || "")
|
|
156
156
|
}, /*#__PURE__*/React.createElement("div", {
|
|
157
|
-
className: _JSXStyle.dynamic([["
|
|
157
|
+
className: _JSXStyle.dynamic([["4089411751", [theme.palette.background, stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]]) + " " + "thead-box"
|
|
158
158
|
}, column.label, /*#__PURE__*/React.createElement("br", {
|
|
159
|
-
className: _JSXStyle.dynamic([["
|
|
159
|
+
className: _JSXStyle.dynamic([["4089411751", [theme.palette.background, stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
160
160
|
}), /*#__PURE__*/React.createElement("span", {
|
|
161
161
|
style: {
|
|
162
162
|
textAlign: 'center'
|
|
163
163
|
},
|
|
164
|
-
className: _JSXStyle.dynamic([["
|
|
164
|
+
className: _JSXStyle.dynamic([["4089411751", [theme.palette.background, stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
165
165
|
}, column.text)));
|
|
166
166
|
})), showFilters && /*#__PURE__*/React.createElement("tr", {
|
|
167
|
-
className: _JSXStyle.dynamic([["
|
|
167
|
+
className: _JSXStyle.dynamic([["4089411751", [theme.palette.background, stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
168
168
|
}, generateFilterInputs())), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
169
|
-
id: "
|
|
170
|
-
dynamic: [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]
|
|
171
|
-
}, "thead.__jsx-style-dynamic-selector{border-collapse:separate;border-spacing:0;background-color
|
|
169
|
+
id: "4089411751",
|
|
170
|
+
dynamic: [theme.palette.background, stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]
|
|
171
|
+
}, "thead.__jsx-style-dynamic-selector{border-collapse:separate;border-spacing:0;background-color:".concat(theme.palette.background, ";font-size:inherit;").concat(stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", ";}th.__jsx-style-dynamic-selector{padding:0 0.5em;font-size:calc(0.75 * var(--table-font-size));font-weight:normal;text-align:left;-webkit-letter-spacing:0;-moz-letter-spacing:0;-ms-letter-spacing:0;letter-spacing:0;vertical-align:middle;min-height:calc(2.5 * var(--table-font-size));color:").concat(theme.palette.accents_5, ";background:").concat(theme.palette.accents_1, ";border-bottom:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-radius:0;}th.__jsx-style-dynamic-selector:nth-child(1){border-bottom:1px solid ").concat(theme.palette.border, ";border-left:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-top-left-radius:").concat(theme.layout.radius, ";border-bottom-left-radius:").concat(theme.layout.radius, ";}th.__jsx-style-dynamic-selector:last-child{border-bottom:1px solid ").concat(theme.palette.border, ";border-right:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-top-right-radius:").concat(theme.layout.radius, ";border-bottom-right-radius:").concat(theme.layout.radius, ";}.thead-box.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-align:center;min-height:calc(2.5 * var(--table-font-size));text-transform:uppercase;}")));
|
|
172
172
|
};
|
|
173
173
|
TableHead.displayName = 'TableHead';
|
|
174
174
|
export default TableHead;
|
package/esm/table/table.js
CHANGED
|
@@ -118,7 +118,7 @@ function TableComponent(tableProps) {
|
|
|
118
118
|
}, /*#__PURE__*/React.createElement("table", _extends({
|
|
119
119
|
ref: ref
|
|
120
120
|
}, props, {
|
|
121
|
-
className: _JSXStyle.dynamic([["
|
|
121
|
+
className: _JSXStyle.dynamic([["2040515329", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + (props && props.className != null && props.className || className || "")
|
|
122
122
|
}), /*#__PURE__*/React.createElement(TableHead, {
|
|
123
123
|
stickyHeader: stickyHeader,
|
|
124
124
|
onFilters: onFilters,
|
|
@@ -137,17 +137,17 @@ function TableComponent(tableProps) {
|
|
|
137
137
|
readOnly: readOnly,
|
|
138
138
|
onSelected: onSelected
|
|
139
139
|
}), children, cursorPagination ? /*#__PURE__*/React.createElement("tfoot", {
|
|
140
|
-
className: _JSXStyle.dynamic([["
|
|
140
|
+
className: _JSXStyle.dynamic([["2040515329", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]])
|
|
141
141
|
}, /*#__PURE__*/React.createElement("td", {
|
|
142
142
|
colSpan: columns === null || columns === void 0 ? void 0 : columns.length,
|
|
143
|
-
className: _JSXStyle.dynamic([["
|
|
143
|
+
className: _JSXStyle.dynamic([["2040515329", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]])
|
|
144
144
|
}, /*#__PURE__*/React.createElement("div", {
|
|
145
145
|
style: {
|
|
146
146
|
display: 'flex',
|
|
147
147
|
gap: 10,
|
|
148
148
|
margin: '10px'
|
|
149
149
|
},
|
|
150
|
-
className: _JSXStyle.dynamic([["
|
|
150
|
+
className: _JSXStyle.dynamic([["2040515329", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]])
|
|
151
151
|
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
152
152
|
text: "Previous"
|
|
153
153
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -171,10 +171,10 @@ function TableComponent(tableProps) {
|
|
|
171
171
|
scale: 2 / 3,
|
|
172
172
|
iconRight: /*#__PURE__*/React.createElement(ChevronRight, null)
|
|
173
173
|
}))))) : dataLength && viewLength && onPageChange ? /*#__PURE__*/React.createElement("tfoot", {
|
|
174
|
-
className: _JSXStyle.dynamic([["
|
|
174
|
+
className: _JSXStyle.dynamic([["2040515329", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]])
|
|
175
175
|
}, /*#__PURE__*/React.createElement("td", {
|
|
176
176
|
colSpan: columns === null || columns === void 0 ? void 0 : columns.length,
|
|
177
|
-
className: _JSXStyle.dynamic([["
|
|
177
|
+
className: _JSXStyle.dynamic([["2040515329", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]])
|
|
178
178
|
}, /*#__PURE__*/React.createElement(Pagination, {
|
|
179
179
|
style: {
|
|
180
180
|
marginLeft: '10px',
|
|
@@ -191,9 +191,9 @@ function TableComponent(tableProps) {
|
|
|
191
191
|
limit: 5,
|
|
192
192
|
count: Number(dataLength / viewLength)
|
|
193
193
|
}, /*#__PURE__*/React.createElement(Pagination.Next, null, /*#__PURE__*/React.createElement(ChevronRight, null)), /*#__PURE__*/React.createElement(Pagination.Previous, null, /*#__PURE__*/React.createElement(ChevronLeft, null))))) : null, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
194
|
-
id: "
|
|
194
|
+
id: "2040515329",
|
|
195
195
|
dynamic: [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]
|
|
196
|
-
}, "table.__jsx-style-dynamic-selector{border-collapse:separate;border-spacing:0;--table-font-size:".concat(SCALES.font(1), ";font-size:var(--table-font-size);width:").concat(SCALES.width(1, '100%'), ";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), ";}tfoot.__jsx-style-dynamic-selector td.__jsx-style-dynamic-selector{position:-webkit-sticky;position:sticky;bottom:0;z-index:2;
|
|
196
|
+
}, "table.__jsx-style-dynamic-selector{border-collapse:separate;border-spacing:0;--table-font-size:".concat(SCALES.font(1), ";font-size:var(--table-font-size);width:").concat(SCALES.width(1, '100%'), ";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), ";}tfoot.__jsx-style-dynamic-selector td.__jsx-style-dynamic-selector{position:-webkit-sticky;position:sticky;bottom:0;z-index:2;}"))));
|
|
197
197
|
}
|
|
198
198
|
TableComponent.displayName = 'Table';
|
|
199
199
|
TableComponent.Column = TableColumn;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helpdice/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "esm/index.d.ts",
|
|
6
6
|
"unpkg": "dist/index.min.js",
|
|
@@ -37,9 +37,6 @@
|
|
|
37
37
|
"type": "git",
|
|
38
38
|
"url": "https://github.com/helpdice/ui"
|
|
39
39
|
},
|
|
40
|
-
"publishConfig": {
|
|
41
|
-
"registry": "https://registry.npmjs.org/"
|
|
42
|
-
},
|
|
43
40
|
"prettier": "@helpdice/prettier-config",
|
|
44
41
|
"keywords": [
|
|
45
42
|
"flux",
|
|
@@ -61,10 +58,13 @@
|
|
|
61
58
|
"@babel/preset-env": "^7.14.7",
|
|
62
59
|
"@babel/preset-react": "^7.14.5",
|
|
63
60
|
"@babel/preset-typescript": "^7.14.5",
|
|
61
|
+
"@babel/standalone": "^7.28.3",
|
|
64
62
|
"@helpdice/icons": "^1.1.3",
|
|
63
|
+
"@helpdice/pro": "^1.5.4",
|
|
65
64
|
"@mapbox/rehype-prism": "^0.9.0",
|
|
66
65
|
"@mdx-js/loader": "^3.1.0",
|
|
67
66
|
"@mdx-js/react": "^3.1.0",
|
|
67
|
+
"@monaco-editor/react": "^4.7.0",
|
|
68
68
|
"@next/bundle-analyzer": "^15.1.6",
|
|
69
69
|
"@next/mdx": "^15.1.6",
|
|
70
70
|
"@rollup/plugin-babel": "^6.0.4",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"yup": "^1.6.1"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@floating-ui/react-dom": "^2.1.
|
|
107
|
+
"@floating-ui/react-dom": "^2.1.6",
|
|
108
108
|
"@helpdice/sdk": "^0.1.4",
|
|
109
109
|
"@helpdice/utils": "^0.1.3",
|
|
110
110
|
"@mapbox/rehype-prism": "^0.9.0",
|