@sustaina/shared-ui 1.27.1 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1318,7 +1318,7 @@ type InputNumberProps = NumericFormatProps<InputProps> & {
|
|
|
1318
1318
|
};
|
|
1319
1319
|
declare const InputNumber: ({ customInputProps, ...props }: InputNumberProps) => react_jsx_runtime.JSX.Element;
|
|
1320
1320
|
|
|
1321
|
-
declare function isDefined(value:
|
|
1321
|
+
declare function isDefined<T>(value: T | null | undefined): value is NonNullable<T>;
|
|
1322
1322
|
declare function isEmptyObject(value: any): boolean;
|
|
1323
1323
|
type DebounceOptions = {
|
|
1324
1324
|
leading?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1318,7 +1318,7 @@ type InputNumberProps = NumericFormatProps<InputProps> & {
|
|
|
1318
1318
|
};
|
|
1319
1319
|
declare const InputNumber: ({ customInputProps, ...props }: InputNumberProps) => react_jsx_runtime.JSX.Element;
|
|
1320
1320
|
|
|
1321
|
-
declare function isDefined(value:
|
|
1321
|
+
declare function isDefined<T>(value: T | null | undefined): value is NonNullable<T>;
|
|
1322
1322
|
declare function isEmptyObject(value: any): boolean;
|
|
1323
1323
|
type DebounceOptions = {
|
|
1324
1324
|
leading?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -6061,7 +6061,7 @@ var pushVariableAndInner = (tokens, value, prefixMap, prefixes) => {
|
|
|
6061
6061
|
}
|
|
6062
6062
|
cursor += prefix.length;
|
|
6063
6063
|
const rest = value.slice(cursor);
|
|
6064
|
-
const codeMatch = rest.match(
|
|
6064
|
+
const codeMatch = rest.match(/^[\w-]+/);
|
|
6065
6065
|
if (codeMatch) {
|
|
6066
6066
|
tokens.push({ type: prefixMap[prefix], code: codeMatch[0] });
|
|
6067
6067
|
cursor += codeMatch[0].length;
|
|
@@ -6090,7 +6090,7 @@ var tokenizeFormulaString = (raw, prefixMap) => {
|
|
|
6090
6090
|
const prefix = findPrefixAt(raw, i, prefixes);
|
|
6091
6091
|
if (prefix) {
|
|
6092
6092
|
const rest = raw.slice(i + prefix.length);
|
|
6093
|
-
const codeMatch = rest.match(
|
|
6093
|
+
const codeMatch = rest.match(/^[\w-]+/);
|
|
6094
6094
|
if (codeMatch) {
|
|
6095
6095
|
flushBuffer();
|
|
6096
6096
|
segments.push({ kind: "token", prefix, code: codeMatch[0] });
|
|
@@ -6114,7 +6114,7 @@ var parseFormulaToToken = (text, prefixMap) => {
|
|
|
6114
6114
|
return tokens;
|
|
6115
6115
|
}
|
|
6116
6116
|
const afterPrefix = text.slice(leadingPrefix.length);
|
|
6117
|
-
const codeMatch = afterPrefix.match(
|
|
6117
|
+
const codeMatch = afterPrefix.match(/^[\w-]+/);
|
|
6118
6118
|
if (!codeMatch) {
|
|
6119
6119
|
pushVariableAndInner(tokens, text, prefixMap, prefixes);
|
|
6120
6120
|
return tokens;
|