Skip to content

Commit 6ff7ec3

Browse files
committed
feat(cropper): added Avatar uploader with cropper
1 parent ee1f48e commit 6ff7ec3

3 files changed

Lines changed: 392 additions & 3 deletions

File tree

apps/origin-ui/src/app/config/components.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export const categories: ComponentCategory[] = [
9494
slug: 'cropper',
9595
name: 'Cropper',
9696
components: [
97+
{ name: 'cropper-00' },
9798
{ name: 'cropper-01' },
9899
{ name: 'cropper-02' },
99100
{ name: 'cropper-10' }]

apps/origin-ui/src/registry.json

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3280,11 +3280,35 @@
32803280
"style": 1
32813281
}
32823282
},
3283+
{
3284+
"name": "cropper-00",
3285+
"type": "registry:component",
3286+
"registryDependencies": [
3287+
"https://originui-ng.com/r/button.json",
3288+
"https://originui-ng.com/r/cropper.json",
3289+
"https://originui-ng.com/r/dialog.json",
3290+
"https://originui-ng.com/r/slider.json"
3291+
],
3292+
"files": [
3293+
{
3294+
"path": "registry/default/components/coppers/cropper-00.ts",
3295+
"type": "registry:component"
3296+
},
3297+
{
3298+
"path": "registry/default/lib/use-file-upload.ts",
3299+
"type": "registry:lib"
3300+
}
3301+
],
3302+
"meta": {
3303+
"tags": ["upload", "file", "image", "drag and drop", "crop", "dialog", "slider", "zoom"],
3304+
"colSpan": 3
3305+
}
3306+
},
32833307
{
32843308
"name": "cropper-01",
32853309
"type": "registry:component",
32863310
"registryDependencies": [
3287-
"https://originui.com/r/cropper.json"
3311+
"https://originui-ng.com/r/cropper.json"
32883312
],
32893313
"files": [
32903314
{
@@ -3301,7 +3325,7 @@
33013325
"name": "cropper-02",
33023326
"type": "registry:component",
33033327
"registryDependencies": [
3304-
"https://originui.com/r/cropper.json"
3328+
"https://originui-ng.com/r/cropper.json"
33053329
],
33063330
"files": [
33073331
{
@@ -3318,7 +3342,7 @@
33183342
"name": "cropper-10",
33193343
"type": "registry:component",
33203344
"registryDependencies": [
3321-
"https://originui.com/r/cropper.json"
3345+
"https://originui-ng.com/r/cropper.json"
33223346
],
33233347
"files": [
33243348
{

0 commit comments

Comments
 (0)