Skip to content

Commit

Permalink
Merge pull request #1807 from gluestack/release/@gluestack-ui/progres…
Browse files Browse the repository at this point in the history
[email protected]

release: @gluestack-ui/progress version 0.1.13
  • Loading branch information
Viraj-10 authored Feb 16, 2024
2 parents 38a9dff + 8fca78e commit 0df1275
Show file tree
Hide file tree
Showing 42 changed files with 216 additions and 25 deletions.
7 changes: 7 additions & 0 deletions packages/themed/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @gluestack-ui/themed

## 1.1.7

### Patch Changes

- Updated dependencies
- @gluestack-ui/progress@0.1.13

## 1.1.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/themed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gluestack-ui/themed",
"version": "1.1.6",
"version": "1.1.7",
"main": "build/index.js",
"types": "build/index.d.ts",
"module": "build/index",
Expand Down Expand Up @@ -56,7 +56,7 @@
"@gluestack-ui/overlay": "0.1.12",
"@gluestack-ui/popover": "0.1.31",
"@gluestack-ui/pressable": "0.1.14",
"@gluestack-ui/progress": "0.1.12",
"@gluestack-ui/progress": "0.1.13",
"@gluestack-ui/provider": "0.1.10",
"@gluestack-ui/radio": "0.1.25",
"@gluestack-ui/select": "0.1.24",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
"@react-native-aria/focus": "^0.2.9",
"@react-native-aria/interactions": "^0.2.11"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/accordion#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"peerDependencies": {
"react": ">=16",
"react-dom": ">=16"
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/actionsheet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
"@react-native-aria/focus": "^0.2.9",
"@react-native-aria/interactions": "^0.2.11"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/actionsheet#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"peerDependencies": {
"react": ">=16",
"react-dom": ">=16"
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/alert-dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/alert-dialog#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/alert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/alert#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/avatar#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/button#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/checkbox#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/divider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/divider#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/fab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/fab#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/form-control/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/form-control#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/hooks#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/hstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/hstack#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/icon#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/image#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/input#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/linear-gradient/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/linear-gradient#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/link#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/menu#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/modal#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/overlay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/overlay#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/popover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/popover#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/pressable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/pressable#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
6 changes: 6 additions & 0 deletions packages/unstyled/progress/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @gluestack-ui/progress

## 0.1.13

### Patch Changes

- Remove sx dependancy in `ProgressFilledTrack`.

## 0.1.7

### Patch Changes
Expand Down
7 changes: 6 additions & 1 deletion packages/unstyled/progress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ios",
"nextjs"
],
"version": "0.1.12",
"version": "0.1.13",
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/index.d.ts",
Expand Down Expand Up @@ -49,6 +49,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/progress#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
32 changes: 10 additions & 22 deletions packages/unstyled/progress/src/ProgressFilledTrack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,15 @@ import { useProgress } from './ProgressContext';
export function ProgressFilledTrack<StyledProgressFilledTrack>(
StyledProgressFilledTrack: React.ComponentType<StyledProgressFilledTrack>
) {
return forwardRef(
//@ts-ignore
({ sx, ...props }: StyledProgressFilledTrack, ref?: any) => {
const { valueWidth } = useProgress('ProgressContext');
return forwardRef(({ style = {}, ...props }: any, ref?: any) => {
const { valueWidth } = useProgress('ProgressContext');

let mysx = {};
if (sx) {
sx['w'] = `${valueWidth}%`;
mysx = sx;
} else {
// @ts-ignore
mysx['w'] = `${valueWidth}%`;
}

return (
<StyledProgressFilledTrack
{...(props as StyledProgressFilledTrack)}
sx={mysx}
ref={ref}
/>
);
}
);
return (
<StyledProgressFilledTrack
{...(props as StyledProgressFilledTrack)}
style={[style, { width: `${valueWidth}%`, height: '100%' }]}
ref={ref}
/>
);
});
}
5 changes: 5 additions & 0 deletions packages/unstyled/provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/provider#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
5 changes: 5 additions & 0 deletions packages/unstyled/radio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
"react": ">=16",
"react-dom": ">=16"
},
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/radio#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gluestack/gluestack-ui.git"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
Loading

0 comments on commit 0df1275

Please sign in to comment.