Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions content/docs/references/ui/AccordionComponent.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: AccordionComponent
description: AccordionComponent Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | |
| **props** | `object` | ✅ | |
| **events** | `Record<string, any>` | optional | Event handlers |
| **style** | `Record<string, string>` | optional | Custom styles |
| **children** | `object[]` | optional | Child components |
14 changes: 14 additions & 0 deletions content/docs/references/ui/AlertComponent.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: AlertComponent
description: AlertComponent Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | |
| **props** | `object` | ✅ | |
| **events** | `Record<string, any>` | optional | Event handlers |
| **style** | `Record<string, string>` | optional | Custom styles |
| **children** | `object[]` | optional | Child components |
14 changes: 14 additions & 0 deletions content/docs/references/ui/BadgeComponent.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: BadgeComponent
description: BadgeComponent Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | |
| **props** | `object` | ✅ | |
| **events** | `Record<string, any>` | optional | Event handlers |
| **style** | `Record<string, string>` | optional | Custom styles |
| **children** | `object[]` | optional | Child components |
14 changes: 14 additions & 0 deletions content/docs/references/ui/BreadcrumbComponent.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: BreadcrumbComponent
description: BreadcrumbComponent Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | |
| **props** | `object` | ✅ | |
| **events** | `Record<string, any>` | optional | Event handlers |
| **style** | `Record<string, string>` | optional | Custom styles |
| **children** | `object[]` | optional | Child components |
14 changes: 14 additions & 0 deletions content/docs/references/ui/CardComponent.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: CardComponent
description: CardComponent Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | |
| **props** | `object` | optional | |
| **events** | `Record<string, any>` | optional | Event handlers |
| **style** | `Record<string, string>` | optional | Custom styles |
| **children** | `object[]` | optional | Child components |
14 changes: 14 additions & 0 deletions content/docs/references/ui/Component.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: Component
description: Component Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `Enum<'card' \| 'tabs' \| 'accordion' \| 'modal' \| 'drawer' \| 'timeline' \| 'stepper' \| 'breadcrumb' \| 'alert' \| 'badge' \| 'tooltip' \| 'popover'>` | ✅ | Component type |
| **props** | `Record<string, any>` | optional | Component properties |
| **events** | `Record<string, any>` | optional | Event handlers |
| **style** | `Record<string, string>` | optional | Custom styles |
| **children** | `any[]` | optional | Child components |
19 changes: 19 additions & 0 deletions content/docs/references/ui/ComponentType.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: ComponentType
description: ComponentType Schema Reference
---

## Allowed Values

* `card`
* `tabs`
* `accordion`
* `modal`
* `drawer`
* `timeline`
* `stepper`
* `breadcrumb`
* `alert`
* `badge`
* `tooltip`
* `popover`
14 changes: 14 additions & 0 deletions content/docs/references/ui/DrawerComponent.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: DrawerComponent
description: DrawerComponent Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | |
| **props** | `object` | optional | |
| **events** | `Record<string, any>` | optional | Event handlers |
| **style** | `Record<string, string>` | optional | Custom styles |
| **children** | `object[]` | optional | Child components |
14 changes: 14 additions & 0 deletions content/docs/references/ui/ModalComponent.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: ModalComponent
description: ModalComponent Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | |
| **props** | `object` | optional | |
| **events** | `Record<string, any>` | optional | Event handlers |
| **style** | `Record<string, string>` | optional | Custom styles |
| **children** | `object[]` | optional | Child components |
14 changes: 14 additions & 0 deletions content/docs/references/ui/PopoverComponent.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: PopoverComponent
description: PopoverComponent Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | |
| **props** | `object` | optional | |
| **events** | `Record<string, any>` | optional | Event handlers |
| **style** | `Record<string, string>` | optional | Custom styles |
| **children** | `object[]` | optional | Child components |
14 changes: 14 additions & 0 deletions content/docs/references/ui/StepperComponent.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: StepperComponent
description: StepperComponent Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | |
| **props** | `object` | ✅ | |
| **events** | `Record<string, any>` | optional | Event handlers |
| **style** | `Record<string, string>` | optional | Custom styles |
| **children** | `object[]` | optional | Child components |
14 changes: 14 additions & 0 deletions content/docs/references/ui/TabsComponent.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: TabsComponent
description: TabsComponent Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | |
| **props** | `object` | ✅ | |
| **events** | `Record<string, any>` | optional | Event handlers |
| **style** | `Record<string, string>` | optional | Custom styles |
| **children** | `object[]` | optional | Child components |
14 changes: 14 additions & 0 deletions content/docs/references/ui/TimelineComponent.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: TimelineComponent
description: TimelineComponent Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | |
| **props** | `object` | ✅ | |
| **events** | `Record<string, any>` | optional | Event handlers |
| **style** | `Record<string, string>` | optional | Custom styles |
| **children** | `object[]` | optional | Child components |
14 changes: 14 additions & 0 deletions content/docs/references/ui/TooltipComponent.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: TooltipComponent
description: TooltipComponent Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | |
| **props** | `object` | ✅ | |
| **events** | `Record<string, any>` | optional | Event handlers |
| **style** | `Record<string, string>` | optional | Custom styles |
| **children** | `object[]` | optional | Child components |
173 changes: 173 additions & 0 deletions packages/spec/json-schema/AccordionComponent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
{
"$ref": "#/definitions/AccordionComponent",
"definitions": {
"AccordionComponent": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "accordion"
},
"props": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Section title"
},
"icon": {
"type": "string",
"description": "Section icon"
},
"content": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"card",
"tabs",
"accordion",
"modal",
"drawer",
"timeline",
"stepper",
"breadcrumb",
"alert",
"badge",
"tooltip",
"popover"
],
"description": "Component type"
},
"props": {
"type": "object",
"additionalProperties": {},
"description": "Component properties"
},
"events": {
"type": "object",
"additionalProperties": true,
"description": "Event handlers"
},
"style": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Custom styles"
},
"children": {
"type": "array",
"items": {},
"description": "Child components"
}
},
"required": [
"type"
],
"additionalProperties": false,
"description": "Section content"
},
"defaultExpanded": {
"type": "boolean",
"description": "Initially expanded"
}
},
"required": [
"title"
],
"additionalProperties": false
},
"description": "Accordion items"
},
"allowMultiple": {
"type": "boolean",
"description": "Allow multiple open sections"
}
},
"required": [
"items"
],
"additionalProperties": false
},
"events": {
"type": "object",
"additionalProperties": true,
"description": "Event handlers"
},
"style": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Custom styles"
},
"children": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"card",
"tabs",
"accordion",
"modal",
"drawer",
"timeline",
"stepper",
"breadcrumb",
"alert",
"badge",
"tooltip",
"popover"
],
"description": "Component type"
},
"props": {
"type": "object",
"additionalProperties": {},
"description": "Component properties"
},
"events": {
"type": "object",
"additionalProperties": true,
"description": "Event handlers"
},
"style": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Custom styles"
},
"children": {
"type": "array",
"items": {},
"description": "Child components"
}
},
"required": [
"type"
],
"additionalProperties": false
},
"description": "Child components"
}
},
"required": [
"type",
"props"
],
"additionalProperties": false
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}
Loading