@tamagui/progress 1.0.1-beta.70 → 1.0.1-beta.73
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/cjs/Progress.js +0 -8
- package/dist/cjs/Progress.js.map +1 -1
- package/dist/esm/Progress.js +0 -9
- package/dist/esm/Progress.js.map +1 -1
- package/dist/jsx/Progress.js +0 -9
- package/package.json +9 -7
- package/types/Progress.d.ts +45 -45
- package/types/Progress.d.ts.map +0 -0
- package/types/index.d.ts +0 -0
- package/types/index.d.ts.map +0 -0
package/dist/cjs/Progress.js
CHANGED
|
@@ -21,7 +21,6 @@ var __spreadValues = (a, b) => {
|
|
|
21
21
|
return a;
|
|
22
22
|
};
|
|
23
23
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
25
24
|
var __objRest = (source, exclude) => {
|
|
26
25
|
var target = {};
|
|
27
26
|
for (var prop in source)
|
|
@@ -90,27 +89,21 @@ ProgressIndicator.displayName = INDICATOR_NAME;
|
|
|
90
89
|
function defaultGetValueLabel(value, max) {
|
|
91
90
|
return `${Math.round(value / max * 100)}%`;
|
|
92
91
|
}
|
|
93
|
-
__name(defaultGetValueLabel, "defaultGetValueLabel");
|
|
94
92
|
function getProgressState(value, maxValue) {
|
|
95
93
|
return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
|
|
96
94
|
}
|
|
97
|
-
__name(getProgressState, "getProgressState");
|
|
98
95
|
function isNumber(value) {
|
|
99
96
|
return typeof value === "number";
|
|
100
97
|
}
|
|
101
|
-
__name(isNumber, "isNumber");
|
|
102
98
|
function isValidMaxNumber(max) {
|
|
103
99
|
return isNumber(max) && !isNaN(max) && max > 0;
|
|
104
100
|
}
|
|
105
|
-
__name(isValidMaxNumber, "isValidMaxNumber");
|
|
106
101
|
function isValidValueNumber(value, max) {
|
|
107
102
|
return isNumber(value) && !isNaN(value) && value <= max && value >= 0;
|
|
108
103
|
}
|
|
109
|
-
__name(isValidValueNumber, "isValidValueNumber");
|
|
110
104
|
function getInvalidMaxError(propValue, componentName) {
|
|
111
105
|
return `Invalid prop \`max\` of value \`${propValue}\` supplied to \`${componentName}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${DEFAULT_MAX}\`.`;
|
|
112
106
|
}
|
|
113
|
-
__name(getInvalidMaxError, "getInvalidMaxError");
|
|
114
107
|
function getInvalidValueError(propValue, componentName) {
|
|
115
108
|
return `Invalid prop \`value\` of value \`${propValue}\` supplied to \`${componentName}\`. The \`value\` prop must be:
|
|
116
109
|
- a positive number
|
|
@@ -119,7 +112,6 @@ function getInvalidValueError(propValue, componentName) {
|
|
|
119
112
|
|
|
120
113
|
Defaulting to \`null\`.`;
|
|
121
114
|
}
|
|
122
|
-
__name(getInvalidValueError, "getInvalidValueError");
|
|
123
115
|
const DEFAULT_MAX = 100;
|
|
124
116
|
const ProgressFrame = (0, import_core.styled)(import_stacks.ThemeableStack, {
|
|
125
117
|
name: PROGRESS_NAME,
|
package/dist/cjs/Progress.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Progress.tsx"],
|
|
4
4
|
"sourcesContent": ["// forked from Radix UI\n// https://github.com/radix-ui/primitives/blob/main/packages/react/progress/src/Progress.tsx\n\nimport { GetProps, getSize, getVariableValue, styled, withStaticProperties } from '@tamagui/core'\nimport { Scope, createContextScope } from '@tamagui/create-context'\nimport { ThemeableStack, YStackProps } from '@tamagui/stacks'\nimport * as React from 'react'\nimport { View } from 'react-native'\n\nconst PROGRESS_NAME = 'Progress'\n\nconst [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME)\ntype ProgressContextValue = { value: number | null; max: number; width: number }\nconst [ProgressProvider, useProgressContext] =\n createProgressContext<ProgressContextValue>(PROGRESS_NAME)\n\n/* -------------------------------------------------------------------------------------------------\n * ProgressIndicator\n * -----------------------------------------------------------------------------------------------*/\n\nconst INDICATOR_NAME = 'ProgressIndicator'\n\ntype ProgressIndicatorElement = TamaguiElement\ninterface ProgressIndicatorProps extends YStackProps {}\n\nexport const ProgressIndicatorFrame = styled(ThemeableStack, {\n name: INDICATOR_NAME,\n height: '100%',\n width: '100%',\n backgrounded: true,\n})\n\nconst ProgressIndicator = ProgressIndicatorFrame.extractable(\n React.forwardRef<ProgressIndicatorElement, ProgressIndicatorProps>(\n (props: ScopedProps<ProgressIndicatorProps>, forwardedRef) => {\n const { __scopeProgress, ...indicatorProps } = props\n const context = useProgressContext(INDICATOR_NAME, __scopeProgress)\n const pct = context.max - (context.value ?? 0)\n const x = -context.width * (pct / 100)\n return (\n <ProgressIndicatorFrame\n data-state={getProgressState(context.value, context.max)}\n data-value={context.value ?? undefined}\n data-max={context.max}\n x={x}\n width={context.width}\n {...indicatorProps}\n ref={forwardedRef}\n />\n )\n }\n )\n)\n\nProgressIndicator.displayName = INDICATOR_NAME\n\n/* ---------------------------------------------------------------------------------------------- */\n\nfunction defaultGetValueLabel(value: number, max: number) {\n return `${Math.round((value / max) * 100)}%`\n}\n\nfunction getProgressState(value: number | undefined | null, maxValue: number): ProgressState {\n return value == null ? 'indeterminate' : value === maxValue ? 'complete' : 'loading'\n}\n\nfunction isNumber(value: any): value is number {\n return typeof value === 'number'\n}\n\nfunction isValidMaxNumber(max: any): max is number {\n // prettier-ignore\n return (\n isNumber(max) &&\n !isNaN(max) &&\n max > 0\n );\n}\n\nfunction isValidValueNumber(value: any, max: number): value is number {\n // prettier-ignore\n return (\n isNumber(value) &&\n !isNaN(value) &&\n value <= max &&\n value >= 0\n );\n}\n\n// Split this out for clearer readability of the error message.\nfunction getInvalidMaxError(propValue: string, componentName: string) {\n return `Invalid prop \\`max\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. Only numbers greater than 0 are valid max values. Defaulting to \\`${DEFAULT_MAX}\\`.`\n}\n\nfunction getInvalidValueError(propValue: string, componentName: string) {\n return `Invalid prop \\`value\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. The \\`value\\` prop must be:\n - a positive number\n - less than the value passed to \\`max\\` (or ${DEFAULT_MAX} if no \\`max\\` prop is set)\n - \\`null\\` if the progress is indeterminate.\n\nDefaulting to \\`null\\`.`\n}\n\n/* -------------------------------------------------------------------------------------------------\n * Progress\n * -----------------------------------------------------------------------------------------------*/\n\nconst DEFAULT_MAX = 100\n\ntype ScopedProps<P> = P & { __scopeProgress?: Scope }\n\ntype ProgressState = 'indeterminate' | 'complete' | 'loading'\n\ntype TamaguiElement = HTMLElement | View\n\ntype ProgressElement = TamaguiElement\n\nexport const ProgressFrame = styled(ThemeableStack, {\n name: PROGRESS_NAME,\n borderRadius: 100_000,\n overflow: 'hidden',\n backgrounded: true,\n\n variants: {\n size: {\n '...size': (val) => {\n const size = Math.round(getVariableValue(getSize(val)) * 0.25)\n return {\n height: size,\n minWidth: getVariableValue(size) * 20,\n width: '100%',\n }\n },\n },\n },\n})\n\ntype ProgressProps = GetProps<typeof ProgressFrame> & {\n value?: number | null | undefined\n max?: number\n getValueLabel?(value: number, max: number): string\n}\n\nconst Progress = withStaticProperties(\n ProgressFrame.extractable(\n React.forwardRef<ProgressElement, ProgressProps>(\n (props: ScopedProps<ProgressProps>, forwardedRef) => {\n const {\n __scopeProgress,\n value: valueProp,\n max: maxProp,\n getValueLabel = defaultGetValueLabel,\n size = '$4',\n ...progressProps\n } = props\n\n const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX\n const value = isValidValueNumber(valueProp, max) ? valueProp : null\n const valueLabel = isNumber(value) ? getValueLabel(value, max) : undefined\n const [width, setWidth] = React.useState(0)\n\n return (\n <ProgressProvider scope={__scopeProgress} value={value} max={max} width={width}>\n <ProgressFrame\n size={size}\n aria-valuemax={max}\n aria-valuemin={0}\n aria-valuenow={isNumber(value) ? value : undefined}\n aria-valuetext={valueLabel}\n // @ts-ignore\n role=\"progressbar\"\n data-state={getProgressState(value, max)}\n data-value={value ?? undefined}\n data-max={max}\n {...progressProps}\n onLayout={(e) => {\n setWidth(e.nativeEvent.layout.width)\n progressProps.onLayout?.(e)\n }}\n ref={forwardedRef}\n />\n </ProgressProvider>\n )\n }\n )\n ),\n {\n Indicator: ProgressIndicator,\n }\n)\n\nProgress.displayName = PROGRESS_NAME\n\nProgress.propTypes = {\n max(props, propName, componentName) {\n const propValue = props[propName]\n const strVal = String(propValue)\n if (propValue && !isValidMaxNumber(propValue)) {\n return new Error(getInvalidMaxError(strVal, componentName))\n }\n return null\n },\n value(props, propName, componentName) {\n const valueProp = props[propName]\n const strVal = String(valueProp)\n const max = isValidMaxNumber(props.max) ? props.max : DEFAULT_MAX\n if (valueProp != null && !isValidValueNumber(valueProp, max)) {\n return new Error(getInvalidValueError(strVal, componentName))\n }\n return null\n },\n}\n\nexport { createProgressScope, Progress, ProgressIndicator }\nexport type { ProgressProps, ProgressIndicatorProps }\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAkF;AAClF,4BAA0C;AAC1C,oBAA4C;AAC5C,YAAuB;AAGvB,MAAM,gBAAgB;AAEtB,MAAM,CAAC,uBAAuB,uBAAuB,8CAAmB,aAAa;AAErF,MAAM,CAAC,kBAAkB,sBACvB,sBAA4C,aAAa;AAM3D,MAAM,iBAAiB;AAKhB,MAAM,yBAAyB,wBAAO,8BAAgB;AAAA,EAC3D,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,cAAc;AAChB,CAAC;AAED,MAAM,oBAAoB,uBAAuB,YAC/C,MAAM,WACJ,CAAC,OAA4C,iBAAiB;AAC5D,QAA+C,YAAvC,sBAAuC,IAAnB,2BAAmB,IAAnB,CAApB;AACR,QAAM,UAAU,mBAAmB,gBAAgB,eAAe;AAClE,QAAM,MAA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;AAC7C,aAAO,IAAI,MAAM,mBAAmB,QAAQ,aAAa,CAAC;AAAA,IAC5D;AACA,WAAO;AAAA,EACT;AAAA,EACA,MAAM,OAAO,UAAU,eAAe;AACpC,UAAM,YAAY,MAAM;AACxB,UAAM,SAAS,OAAO,SAAS;AAC/B,UAAM,MAAM,iBAAiB,MAAM,GAAG,IAAI,MAAM,MAAM;AACtD,QAAI,aAAa,QAAQ,CAAC,mBAAmB,WAAW,GAAG,GAAG;AAC5D,aAAO,IAAI,MAAM,qBAAqB,QAAQ,aAAa,CAAC;AAAA,IAC9D;AACA,WAAO;AAAA,EACT;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/Progress.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
1
|
import { getSize, getVariableValue, styled, withStaticProperties } from "@tamagui/core";
|
|
4
2
|
import { createContextScope } from "@tamagui/create-context";
|
|
5
3
|
import { ThemeableStack } from "@tamagui/stacks";
|
|
@@ -34,27 +32,21 @@ ProgressIndicator.displayName = INDICATOR_NAME;
|
|
|
34
32
|
function defaultGetValueLabel(value, max) {
|
|
35
33
|
return `${Math.round(value / max * 100)}%`;
|
|
36
34
|
}
|
|
37
|
-
__name(defaultGetValueLabel, "defaultGetValueLabel");
|
|
38
35
|
function getProgressState(value, maxValue) {
|
|
39
36
|
return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
|
|
40
37
|
}
|
|
41
|
-
__name(getProgressState, "getProgressState");
|
|
42
38
|
function isNumber(value) {
|
|
43
39
|
return typeof value === "number";
|
|
44
40
|
}
|
|
45
|
-
__name(isNumber, "isNumber");
|
|
46
41
|
function isValidMaxNumber(max) {
|
|
47
42
|
return isNumber(max) && !isNaN(max) && max > 0;
|
|
48
43
|
}
|
|
49
|
-
__name(isValidMaxNumber, "isValidMaxNumber");
|
|
50
44
|
function isValidValueNumber(value, max) {
|
|
51
45
|
return isNumber(value) && !isNaN(value) && value <= max && value >= 0;
|
|
52
46
|
}
|
|
53
|
-
__name(isValidValueNumber, "isValidValueNumber");
|
|
54
47
|
function getInvalidMaxError(propValue, componentName) {
|
|
55
48
|
return `Invalid prop \`max\` of value \`${propValue}\` supplied to \`${componentName}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${DEFAULT_MAX}\`.`;
|
|
56
49
|
}
|
|
57
|
-
__name(getInvalidMaxError, "getInvalidMaxError");
|
|
58
50
|
function getInvalidValueError(propValue, componentName) {
|
|
59
51
|
return `Invalid prop \`value\` of value \`${propValue}\` supplied to \`${componentName}\`. The \`value\` prop must be:
|
|
60
52
|
- a positive number
|
|
@@ -63,7 +55,6 @@ function getInvalidValueError(propValue, componentName) {
|
|
|
63
55
|
|
|
64
56
|
Defaulting to \`null\`.`;
|
|
65
57
|
}
|
|
66
|
-
__name(getInvalidValueError, "getInvalidValueError");
|
|
67
58
|
const DEFAULT_MAX = 100;
|
|
68
59
|
const ProgressFrame = styled(ThemeableStack, {
|
|
69
60
|
name: PROGRESS_NAME,
|
package/dist/esm/Progress.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Progress.tsx"],
|
|
4
4
|
"sourcesContent": ["// forked from Radix UI\n// https://github.com/radix-ui/primitives/blob/main/packages/react/progress/src/Progress.tsx\n\nimport { GetProps, getSize, getVariableValue, styled, withStaticProperties } from '@tamagui/core'\nimport { Scope, createContextScope } from '@tamagui/create-context'\nimport { ThemeableStack, YStackProps } from '@tamagui/stacks'\nimport * as React from 'react'\nimport { View } from 'react-native'\n\nconst PROGRESS_NAME = 'Progress'\n\nconst [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME)\ntype ProgressContextValue = { value: number | null; max: number; width: number }\nconst [ProgressProvider, useProgressContext] =\n createProgressContext<ProgressContextValue>(PROGRESS_NAME)\n\n/* -------------------------------------------------------------------------------------------------\n * ProgressIndicator\n * -----------------------------------------------------------------------------------------------*/\n\nconst INDICATOR_NAME = 'ProgressIndicator'\n\ntype ProgressIndicatorElement = TamaguiElement\ninterface ProgressIndicatorProps extends YStackProps {}\n\nexport const ProgressIndicatorFrame = styled(ThemeableStack, {\n name: INDICATOR_NAME,\n height: '100%',\n width: '100%',\n backgrounded: true,\n})\n\nconst ProgressIndicator = ProgressIndicatorFrame.extractable(\n React.forwardRef<ProgressIndicatorElement, ProgressIndicatorProps>(\n (props: ScopedProps<ProgressIndicatorProps>, forwardedRef) => {\n const { __scopeProgress, ...indicatorProps } = props\n const context = useProgressContext(INDICATOR_NAME, __scopeProgress)\n const pct = context.max - (context.value ?? 0)\n const x = -context.width * (pct / 100)\n return (\n <ProgressIndicatorFrame\n data-state={getProgressState(context.value, context.max)}\n data-value={context.value ?? undefined}\n data-max={context.max}\n x={x}\n width={context.width}\n {...indicatorProps}\n ref={forwardedRef}\n />\n )\n }\n )\n)\n\nProgressIndicator.displayName = INDICATOR_NAME\n\n/* ---------------------------------------------------------------------------------------------- */\n\nfunction defaultGetValueLabel(value: number, max: number) {\n return `${Math.round((value / max) * 100)}%`\n}\n\nfunction getProgressState(value: number | undefined | null, maxValue: number): ProgressState {\n return value == null ? 'indeterminate' : value === maxValue ? 'complete' : 'loading'\n}\n\nfunction isNumber(value: any): value is number {\n return typeof value === 'number'\n}\n\nfunction isValidMaxNumber(max: any): max is number {\n // prettier-ignore\n return (\n isNumber(max) &&\n !isNaN(max) &&\n max > 0\n );\n}\n\nfunction isValidValueNumber(value: any, max: number): value is number {\n // prettier-ignore\n return (\n isNumber(value) &&\n !isNaN(value) &&\n value <= max &&\n value >= 0\n );\n}\n\n// Split this out for clearer readability of the error message.\nfunction getInvalidMaxError(propValue: string, componentName: string) {\n return `Invalid prop \\`max\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. Only numbers greater than 0 are valid max values. Defaulting to \\`${DEFAULT_MAX}\\`.`\n}\n\nfunction getInvalidValueError(propValue: string, componentName: string) {\n return `Invalid prop \\`value\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. The \\`value\\` prop must be:\n - a positive number\n - less than the value passed to \\`max\\` (or ${DEFAULT_MAX} if no \\`max\\` prop is set)\n - \\`null\\` if the progress is indeterminate.\n\nDefaulting to \\`null\\`.`\n}\n\n/* -------------------------------------------------------------------------------------------------\n * Progress\n * -----------------------------------------------------------------------------------------------*/\n\nconst DEFAULT_MAX = 100\n\ntype ScopedProps<P> = P & { __scopeProgress?: Scope }\n\ntype ProgressState = 'indeterminate' | 'complete' | 'loading'\n\ntype TamaguiElement = HTMLElement | View\n\ntype ProgressElement = TamaguiElement\n\nexport const ProgressFrame = styled(ThemeableStack, {\n name: PROGRESS_NAME,\n borderRadius: 100_000,\n overflow: 'hidden',\n backgrounded: true,\n\n variants: {\n size: {\n '...size': (val) => {\n const size = Math.round(getVariableValue(getSize(val)) * 0.25)\n return {\n height: size,\n minWidth: getVariableValue(size) * 20,\n width: '100%',\n }\n },\n },\n },\n})\n\ntype ProgressProps = GetProps<typeof ProgressFrame> & {\n value?: number | null | undefined\n max?: number\n getValueLabel?(value: number, max: number): string\n}\n\nconst Progress = withStaticProperties(\n ProgressFrame.extractable(\n React.forwardRef<ProgressElement, ProgressProps>(\n (props: ScopedProps<ProgressProps>, forwardedRef) => {\n const {\n __scopeProgress,\n value: valueProp,\n max: maxProp,\n getValueLabel = defaultGetValueLabel,\n size = '$4',\n ...progressProps\n } = props\n\n const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX\n const value = isValidValueNumber(valueProp, max) ? valueProp : null\n const valueLabel = isNumber(value) ? getValueLabel(value, max) : undefined\n const [width, setWidth] = React.useState(0)\n\n return (\n <ProgressProvider scope={__scopeProgress} value={value} max={max} width={width}>\n <ProgressFrame\n size={size}\n aria-valuemax={max}\n aria-valuemin={0}\n aria-valuenow={isNumber(value) ? value : undefined}\n aria-valuetext={valueLabel}\n // @ts-ignore\n role=\"progressbar\"\n data-state={getProgressState(value, max)}\n data-value={value ?? undefined}\n data-max={max}\n {...progressProps}\n onLayout={(e) => {\n setWidth(e.nativeEvent.layout.width)\n progressProps.onLayout?.(e)\n }}\n ref={forwardedRef}\n />\n </ProgressProvider>\n )\n }\n )\n ),\n {\n Indicator: ProgressIndicator,\n }\n)\n\nProgress.displayName = PROGRESS_NAME\n\nProgress.propTypes = {\n max(props, propName, componentName) {\n const propValue = props[propName]\n const strVal = String(propValue)\n if (propValue && !isValidMaxNumber(propValue)) {\n return new Error(getInvalidMaxError(strVal, componentName))\n }\n return null\n },\n value(props, propName, componentName) {\n const valueProp = props[propName]\n const strVal = String(valueProp)\n const max = isValidMaxNumber(props.max) ? props.max : DEFAULT_MAX\n if (valueProp != null && !isValidValueNumber(valueProp, max)) {\n return new Error(getInvalidValueError(strVal, componentName))\n }\n return null\n },\n}\n\nexport { createProgressScope, Progress, ProgressIndicator }\nexport type { ProgressProps, ProgressIndicatorProps }\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": "AAGA;AACA;AACA;AACA;AAGA,MAAM,gBAAgB;AAEtB,MAAM,CAAC,uBAAuB,uBAAuB,mBAAmB,aAAa;AAErF,MAAM,CAAC,kBAAkB,sBACvB,sBAA4C,aAAa;AAM3D,MAAM,iBAAiB;AAKhB,MAAM,yBAAyB,OAAO,gBAAgB;AAAA,EAC3D,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,cAAc;AAChB,CAAC;AAED,MAAM,oBAAoB,uBAAuB,YAC/C,MAAM,WACJ,CAAC,OAA4C,iBAAiB;AAlClE;AAmCM,QAAM,EAAE,oBAAoB,mBAAmB;AAC/C,QAAM,UAAU,mBAAmB,gBAAgB,eAAe;AAClE,QAAM,MAAM,QAAQ,MAAO,eAAQ,UAAR,YAAiB;AAC5C,QAAM,IAAI,CAAC,QAAQ,QAAS,OAAM;AAClC,SACE,oCAAC;AAAA,IACC,cAAY,iBAAiB,QAAQ,OAAO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AAM,MAAM,iBAAiB,MAAM,GAAG,IAAI,MAAM,MAAM;AACtD,QAAI,aAAa,QAAQ,CAAC,mBAAmB,WAAW,GAAG,GAAG;AAC5D,aAAO,IAAI,MAAM,qBAAqB,QAAQ,aAAa,CAAC;AAAA,IAC9D;AACA,WAAO;AAAA,EACT;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/jsx/Progress.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
1
|
import { getSize, getVariableValue, styled, withStaticProperties } from "@tamagui/core";
|
|
4
2
|
import { createContextScope } from "@tamagui/create-context";
|
|
5
3
|
import { ThemeableStack } from "@tamagui/stacks";
|
|
@@ -26,27 +24,21 @@ ProgressIndicator.displayName = INDICATOR_NAME;
|
|
|
26
24
|
function defaultGetValueLabel(value, max) {
|
|
27
25
|
return `${Math.round(value / max * 100)}%`;
|
|
28
26
|
}
|
|
29
|
-
__name(defaultGetValueLabel, "defaultGetValueLabel");
|
|
30
27
|
function getProgressState(value, maxValue) {
|
|
31
28
|
return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
|
|
32
29
|
}
|
|
33
|
-
__name(getProgressState, "getProgressState");
|
|
34
30
|
function isNumber(value) {
|
|
35
31
|
return typeof value === "number";
|
|
36
32
|
}
|
|
37
|
-
__name(isNumber, "isNumber");
|
|
38
33
|
function isValidMaxNumber(max) {
|
|
39
34
|
return isNumber(max) && !isNaN(max) && max > 0;
|
|
40
35
|
}
|
|
41
|
-
__name(isValidMaxNumber, "isValidMaxNumber");
|
|
42
36
|
function isValidValueNumber(value, max) {
|
|
43
37
|
return isNumber(value) && !isNaN(value) && value <= max && value >= 0;
|
|
44
38
|
}
|
|
45
|
-
__name(isValidValueNumber, "isValidValueNumber");
|
|
46
39
|
function getInvalidMaxError(propValue, componentName) {
|
|
47
40
|
return `Invalid prop \`max\` of value \`${propValue}\` supplied to \`${componentName}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${DEFAULT_MAX}\`.`;
|
|
48
41
|
}
|
|
49
|
-
__name(getInvalidMaxError, "getInvalidMaxError");
|
|
50
42
|
function getInvalidValueError(propValue, componentName) {
|
|
51
43
|
return `Invalid prop \`value\` of value \`${propValue}\` supplied to \`${componentName}\`. The \`value\` prop must be:
|
|
52
44
|
- a positive number
|
|
@@ -55,7 +47,6 @@ function getInvalidValueError(propValue, componentName) {
|
|
|
55
47
|
|
|
56
48
|
Defaulting to \`null\`.`;
|
|
57
49
|
}
|
|
58
|
-
__name(getInvalidValueError, "getInvalidValueError");
|
|
59
50
|
const DEFAULT_MAX = 100;
|
|
60
51
|
const ProgressFrame = styled(ThemeableStack, {
|
|
61
52
|
name: PROGRESS_NAME,
|
package/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/progress",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
4
|
-
"sideEffects":
|
|
3
|
+
"version": "1.0.1-beta.73",
|
|
4
|
+
"sideEffects": [
|
|
5
|
+
"*.css"
|
|
6
|
+
],
|
|
5
7
|
"source": "src/index.ts",
|
|
6
8
|
"types": "./types/index.d.ts",
|
|
7
9
|
"main": "dist/cjs",
|
|
@@ -19,10 +21,10 @@
|
|
|
19
21
|
"clean:build": "tamagui-build clean:build"
|
|
20
22
|
},
|
|
21
23
|
"dependencies": {
|
|
22
|
-
"@tamagui/compose-refs": "^1.0.1-beta.
|
|
23
|
-
"@tamagui/core": "^1.0.1-beta.
|
|
24
|
-
"@tamagui/create-context": "^1.0.1-beta.
|
|
25
|
-
"@tamagui/stacks": "^1.0.1-beta.
|
|
24
|
+
"@tamagui/compose-refs": "^1.0.1-beta.73",
|
|
25
|
+
"@tamagui/core": "^1.0.1-beta.73",
|
|
26
|
+
"@tamagui/create-context": "^1.0.1-beta.73",
|
|
27
|
+
"@tamagui/stacks": "^1.0.1-beta.73"
|
|
26
28
|
},
|
|
27
29
|
"peerDependencies": {
|
|
28
30
|
"react": "*",
|
|
@@ -30,7 +32,7 @@
|
|
|
30
32
|
"react-native": "*"
|
|
31
33
|
},
|
|
32
34
|
"devDependencies": {
|
|
33
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
35
|
+
"@tamagui/build": "^1.0.1-beta.73",
|
|
34
36
|
"@types/react-native": "^0.67.3",
|
|
35
37
|
"react": "*",
|
|
36
38
|
"react-dom": "*",
|
package/types/Progress.d.ts
CHANGED
|
@@ -8,13 +8,13 @@ interface ProgressIndicatorProps extends YStackProps {
|
|
|
8
8
|
export declare const ProgressIndicatorFrame: import("@tamagui/core").TamaguiComponent<(Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
9
9
|
readonly fullscreen?: boolean | undefined;
|
|
10
10
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
11
|
-
}, "
|
|
11
|
+
}, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
12
12
|
fontFamily?: unknown;
|
|
13
13
|
backgrounded?: boolean | undefined;
|
|
14
14
|
radiused?: boolean | undefined;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
hoverTheme?: boolean | undefined;
|
|
16
|
+
pressTheme?: boolean | undefined;
|
|
17
|
+
focusTheme?: boolean | undefined;
|
|
18
18
|
circular?: boolean | undefined;
|
|
19
19
|
padded?: boolean | undefined;
|
|
20
20
|
elevate?: boolean | undefined;
|
|
@@ -24,13 +24,13 @@ export declare const ProgressIndicatorFrame: import("@tamagui/core").TamaguiComp
|
|
|
24
24
|
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
25
25
|
readonly fullscreen?: boolean | undefined;
|
|
26
26
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
27
|
-
}, "
|
|
27
|
+
}, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
28
28
|
fontFamily?: unknown;
|
|
29
29
|
backgrounded?: boolean | undefined;
|
|
30
30
|
radiused?: boolean | undefined;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
hoverTheme?: boolean | undefined;
|
|
32
|
+
pressTheme?: boolean | undefined;
|
|
33
|
+
focusTheme?: boolean | undefined;
|
|
34
34
|
circular?: boolean | undefined;
|
|
35
35
|
padded?: boolean | undefined;
|
|
36
36
|
elevate?: boolean | undefined;
|
|
@@ -40,13 +40,13 @@ export declare const ProgressIndicatorFrame: import("@tamagui/core").TamaguiComp
|
|
|
40
40
|
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
41
41
|
readonly fullscreen?: boolean | undefined;
|
|
42
42
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
43
|
-
}, "
|
|
43
|
+
}, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
44
44
|
fontFamily?: unknown;
|
|
45
45
|
backgrounded?: boolean | undefined;
|
|
46
46
|
radiused?: boolean | undefined;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
hoverTheme?: boolean | undefined;
|
|
48
|
+
pressTheme?: boolean | undefined;
|
|
49
|
+
focusTheme?: boolean | undefined;
|
|
50
50
|
circular?: boolean | undefined;
|
|
51
51
|
padded?: boolean | undefined;
|
|
52
52
|
elevate?: boolean | undefined;
|
|
@@ -60,9 +60,9 @@ export declare const ProgressIndicatorFrame: import("@tamagui/core").TamaguiComp
|
|
|
60
60
|
fontFamily?: unknown;
|
|
61
61
|
backgrounded?: boolean | undefined;
|
|
62
62
|
radiused?: boolean | undefined;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
hoverTheme?: boolean | undefined;
|
|
64
|
+
pressTheme?: boolean | undefined;
|
|
65
|
+
focusTheme?: boolean | undefined;
|
|
66
66
|
circular?: boolean | undefined;
|
|
67
67
|
padded?: boolean | undefined;
|
|
68
68
|
elevate?: boolean | undefined;
|
|
@@ -78,9 +78,9 @@ export declare const ProgressIndicatorFrame: import("@tamagui/core").TamaguiComp
|
|
|
78
78
|
fontFamily?: unknown;
|
|
79
79
|
backgrounded?: boolean | undefined;
|
|
80
80
|
radiused?: boolean | undefined;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
hoverTheme?: boolean | undefined;
|
|
82
|
+
pressTheme?: boolean | undefined;
|
|
83
|
+
focusTheme?: boolean | undefined;
|
|
84
84
|
circular?: boolean | undefined;
|
|
85
85
|
padded?: boolean | undefined;
|
|
86
86
|
elevate?: boolean | undefined;
|
|
@@ -96,9 +96,9 @@ export declare const ProgressIndicatorFrame: import("@tamagui/core").TamaguiComp
|
|
|
96
96
|
fontFamily?: unknown;
|
|
97
97
|
backgrounded?: boolean | undefined;
|
|
98
98
|
radiused?: boolean | undefined;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
hoverTheme?: boolean | undefined;
|
|
100
|
+
pressTheme?: boolean | undefined;
|
|
101
|
+
focusTheme?: boolean | undefined;
|
|
102
102
|
circular?: boolean | undefined;
|
|
103
103
|
padded?: boolean | undefined;
|
|
104
104
|
elevate?: boolean | undefined;
|
|
@@ -114,9 +114,9 @@ export declare const ProgressIndicatorFrame: import("@tamagui/core").TamaguiComp
|
|
|
114
114
|
fontFamily?: unknown;
|
|
115
115
|
backgrounded?: boolean | undefined;
|
|
116
116
|
radiused?: boolean | undefined;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
hoverTheme?: boolean | undefined;
|
|
118
|
+
pressTheme?: boolean | undefined;
|
|
119
|
+
focusTheme?: boolean | undefined;
|
|
120
120
|
circular?: boolean | undefined;
|
|
121
121
|
padded?: boolean | undefined;
|
|
122
122
|
elevate?: boolean | undefined;
|
|
@@ -135,9 +135,9 @@ export declare const ProgressFrame: import("@tamagui/core").TamaguiComponent<Omi
|
|
|
135
135
|
fontFamily?: unknown;
|
|
136
136
|
backgrounded?: boolean | undefined;
|
|
137
137
|
radiused?: boolean | undefined;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
hoverTheme?: boolean | undefined;
|
|
139
|
+
pressTheme?: boolean | undefined;
|
|
140
|
+
focusTheme?: boolean | undefined;
|
|
141
141
|
circular?: boolean | undefined;
|
|
142
142
|
padded?: boolean | undefined;
|
|
143
143
|
elevate?: boolean | undefined;
|
|
@@ -153,9 +153,9 @@ export declare const ProgressFrame: import("@tamagui/core").TamaguiComponent<Omi
|
|
|
153
153
|
fontFamily?: unknown;
|
|
154
154
|
backgrounded?: boolean | undefined;
|
|
155
155
|
radiused?: boolean | undefined;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
hoverTheme?: boolean | undefined;
|
|
157
|
+
pressTheme?: boolean | undefined;
|
|
158
|
+
focusTheme?: boolean | undefined;
|
|
159
159
|
circular?: boolean | undefined;
|
|
160
160
|
padded?: boolean | undefined;
|
|
161
161
|
elevate?: boolean | undefined;
|
|
@@ -171,9 +171,9 @@ export declare const ProgressFrame: import("@tamagui/core").TamaguiComponent<Omi
|
|
|
171
171
|
fontFamily?: unknown;
|
|
172
172
|
backgrounded?: boolean | undefined;
|
|
173
173
|
radiused?: boolean | undefined;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
hoverTheme?: boolean | undefined;
|
|
175
|
+
pressTheme?: boolean | undefined;
|
|
176
|
+
focusTheme?: boolean | undefined;
|
|
177
177
|
circular?: boolean | undefined;
|
|
178
178
|
padded?: boolean | undefined;
|
|
179
179
|
elevate?: boolean | undefined;
|
|
@@ -189,9 +189,9 @@ export declare const ProgressFrame: import("@tamagui/core").TamaguiComponent<Omi
|
|
|
189
189
|
fontFamily?: unknown;
|
|
190
190
|
backgrounded?: boolean | undefined;
|
|
191
191
|
radiused?: boolean | undefined;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
hoverTheme?: boolean | undefined;
|
|
193
|
+
pressTheme?: boolean | undefined;
|
|
194
|
+
focusTheme?: boolean | undefined;
|
|
195
195
|
circular?: boolean | undefined;
|
|
196
196
|
padded?: boolean | undefined;
|
|
197
197
|
elevate?: boolean | undefined;
|
|
@@ -213,9 +213,9 @@ declare const Progress: React.ForwardRefExoticComponent<Omit<import("react-nativ
|
|
|
213
213
|
fontFamily?: unknown;
|
|
214
214
|
backgrounded?: boolean | undefined;
|
|
215
215
|
radiused?: boolean | undefined;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
hoverTheme?: boolean | undefined;
|
|
217
|
+
pressTheme?: boolean | undefined;
|
|
218
|
+
focusTheme?: boolean | undefined;
|
|
219
219
|
circular?: boolean | undefined;
|
|
220
220
|
padded?: boolean | undefined;
|
|
221
221
|
elevate?: boolean | undefined;
|
|
@@ -231,9 +231,9 @@ declare const Progress: React.ForwardRefExoticComponent<Omit<import("react-nativ
|
|
|
231
231
|
fontFamily?: unknown;
|
|
232
232
|
backgrounded?: boolean | undefined;
|
|
233
233
|
radiused?: boolean | undefined;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
234
|
+
hoverTheme?: boolean | undefined;
|
|
235
|
+
pressTheme?: boolean | undefined;
|
|
236
|
+
focusTheme?: boolean | undefined;
|
|
237
237
|
circular?: boolean | undefined;
|
|
238
238
|
padded?: boolean | undefined;
|
|
239
239
|
elevate?: boolean | undefined;
|
|
@@ -249,9 +249,9 @@ declare const Progress: React.ForwardRefExoticComponent<Omit<import("react-nativ
|
|
|
249
249
|
fontFamily?: unknown;
|
|
250
250
|
backgrounded?: boolean | undefined;
|
|
251
251
|
radiused?: boolean | undefined;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
252
|
+
hoverTheme?: boolean | undefined;
|
|
253
|
+
pressTheme?: boolean | undefined;
|
|
254
|
+
focusTheme?: boolean | undefined;
|
|
255
255
|
circular?: boolean | undefined;
|
|
256
256
|
padded?: boolean | undefined;
|
|
257
257
|
elevate?: boolean | undefined;
|
package/types/Progress.d.ts.map
CHANGED
|
File without changes
|
package/types/index.d.ts
CHANGED
|
File without changes
|
package/types/index.d.ts.map
CHANGED
|
File without changes
|