@db-ux/wc-core-components 3.0.2-copilot3-1616965 → 3.0.2-copilot4-0defc04
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/README.md +0 -10
- package/package.json +4 -6
- package/agent/Accordion.md +0 -23
- package/agent/AccordionItem.md +0 -29
- package/agent/Badge.md +0 -32
- package/agent/Brand.md +0 -13
- package/agent/Button.md +0 -47
- package/agent/Card.md +0 -23
- package/agent/Checkbox.md +0 -41
- package/agent/CustomSelect.md +0 -54
- package/agent/Divider.md +0 -21
- package/agent/Drawer.md +0 -71
- package/agent/Header.md +0 -29
- package/agent/Icon.md +0 -20
- package/agent/Infotext.md +0 -25
- package/agent/Input.md +0 -48
- package/agent/Link.md +0 -52
- package/agent/Navigation.md +0 -19
- package/agent/NavigationItem.md +0 -29
- package/agent/Notification.md +0 -38
- package/agent/Page.md +0 -27
- package/agent/Popover.md +0 -52
- package/agent/Radio.md +0 -28
- package/agent/Section.md +0 -21
- package/agent/Select.md +0 -62
- package/agent/Stack.md +0 -35
- package/agent/Switch.md +0 -44
- package/agent/TabItem.md +0 -25
- package/agent/Tabs.md +0 -61
- package/agent/Tag.md +0 -41
- package/agent/Textarea.md +0 -44
- package/agent/Tooltip.md +0 -37
- package/agent/_instructions.md +0 -31
package/README.md
CHANGED
|
@@ -74,16 +74,6 @@ If you don't have it already, add a VS Code settings folder and file at the root
|
|
|
74
74
|
}
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
## Documentation for AI Agents
|
|
78
|
-
|
|
79
|
-
We provide a documentation for every component in the DB UX Design System via `docs` folder.
|
|
80
|
-
To consume those documentation for AI Agents the best way is to copy the `docs` folder into your project.
|
|
81
|
-
|
|
82
|
-
We provide a CLI tool to do this automatically, which you can run with:
|
|
83
|
-
|
|
84
|
-
```shell
|
|
85
|
-
npx @db-ux/agent-cli
|
|
86
|
-
```
|
|
87
77
|
|
|
88
78
|
## Deutsche Bahn brand
|
|
89
79
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/wc-core-components",
|
|
3
|
-
"version": "3.0.2-
|
|
3
|
+
"version": "3.0.2-copilot4-0defc04",
|
|
4
4
|
"description": "Stencil components for @db-ux/core-components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,14 +17,12 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
|
-
"dist/"
|
|
21
|
-
"agent"
|
|
20
|
+
"dist/"
|
|
22
21
|
],
|
|
23
22
|
"scripts": {
|
|
24
23
|
"build": "stencil build",
|
|
25
24
|
"build:cem": "cem analyze",
|
|
26
25
|
"mv:dist": "cpr dist ../../build-outputs/wc-core-components/dist -o",
|
|
27
|
-
"mv:agent": "cpr agent ../../build-outputs/wc-core-components/agent -o",
|
|
28
26
|
"mv:package.json": "cpr package.json ../../build-outputs/wc-core-components/package.json -o",
|
|
29
27
|
"mv:readme": "cpr README.md ../../build-outputs/wc-core-components/README.md -o",
|
|
30
28
|
"postbuild": "npm-run-all --parallel build:* --parallel mv:*",
|
|
@@ -44,7 +42,7 @@
|
|
|
44
42
|
},
|
|
45
43
|
"web-types": "./dist/web-types.json",
|
|
46
44
|
"dependencies": {
|
|
47
|
-
"@db-ux/core-components": "3.0.2-
|
|
48
|
-
"@db-ux/core-foundations": "3.0.2-
|
|
45
|
+
"@db-ux/core-components": "3.0.2-copilot4-0defc04",
|
|
46
|
+
"@db-ux/core-foundations": "3.0.2-copilot4-0defc04"
|
|
49
47
|
}
|
|
50
48
|
}
|
package/agent/Accordion.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Accordion Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBAccordion Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Accordion</h2>
|
|
8
|
-
<db-accordion>Default Accordion</db-accordion>
|
|
9
|
-
<h2>2. Behavior Variants</h2>
|
|
10
|
-
<db-accordion behavior="multiple">Multiple Behavior</db-accordion>
|
|
11
|
-
<db-accordion behavior="single">Single Behavior</db-accordion>
|
|
12
|
-
<h2>3. Initial Open Index</h2>
|
|
13
|
-
<db-accordion initOpenIndex={[0, 1]}>Initial Open Index</db-accordion>
|
|
14
|
-
<h2>4. Items</h2>
|
|
15
|
-
<db-accordion items={this.getItems()}>
|
|
16
|
-
Accordion with Items
|
|
17
|
-
</db-accordion>
|
|
18
|
-
<h2>5. Name Attribute</h2>
|
|
19
|
-
<db-accordion name="accordion-name">With Name</db-accordion>
|
|
20
|
-
<h2>6. Variant Types</h2>
|
|
21
|
-
<db-accordion variant="divider">Divider Variant</db-accordion>
|
|
22
|
-
<db-accordion variant="card">Card Variant</db-accordion>
|
|
23
|
-
```
|
package/agent/AccordionItem.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# AccordionItem Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBAccordionItem Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Accordion Item</h2>
|
|
8
|
-
<db-accordion-item>Default Accordion Item</db-accordion-item>
|
|
9
|
-
<h2>2. Initial State</h2>
|
|
10
|
-
<db-accordion-item defaultOpen={true}>Initially Open</db-accordion-item>
|
|
11
|
-
<db-accordion-item defaultOpen={false}>
|
|
12
|
-
Initially Closed
|
|
13
|
-
</db-accordion-item>
|
|
14
|
-
<h2>3. Disabled State</h2>
|
|
15
|
-
<db-accordion-item disabled={true}>
|
|
16
|
-
Disabled Accordion Item
|
|
17
|
-
</db-accordion-item>
|
|
18
|
-
<h2>4. Headline Variants</h2>
|
|
19
|
-
<db-accordion-item headline={<strong>Custom Headline</strong>}>
|
|
20
|
-
With Custom Headline
|
|
21
|
-
</db-accordion-item>
|
|
22
|
-
<db-accordion-item headlinePlain="Plain Headline">
|
|
23
|
-
With Plain Headline
|
|
24
|
-
</db-accordion-item>
|
|
25
|
-
<h2>5. Toggle Event</h2>
|
|
26
|
-
<db-accordion-item onToggle={(open) => console.log("Toggled:", open)}>
|
|
27
|
-
With Toggle Event
|
|
28
|
-
</db-accordion-item>
|
|
29
|
-
```
|
package/agent/Badge.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Badge Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBBadge Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Badge</h2>
|
|
8
|
-
<db-badge>Default Badge</db-badge>
|
|
9
|
-
<h2>2. Semantic Variants</h2>
|
|
10
|
-
<db-badge semantic="adaptive">Adaptive</db-badge>
|
|
11
|
-
<db-badge semantic="neutral">Neutral</db-badge>
|
|
12
|
-
<db-badge semantic="critical">Critical</db-badge>
|
|
13
|
-
<db-badge semantic="informational">Informational</db-badge>
|
|
14
|
-
<db-badge semantic="warning">Warning</db-badge>
|
|
15
|
-
<db-badge semantic="successful">Successful</db-badge>
|
|
16
|
-
<h2>3. Sizes</h2>
|
|
17
|
-
<db-badge size="small">Small</db-badge>
|
|
18
|
-
<db-badge size="medium">Medium</db-badge>
|
|
19
|
-
<h2>4. Emphasis Variants</h2>
|
|
20
|
-
<db-badge emphasis="weak">Weak Emphasis</db-badge>
|
|
21
|
-
<db-badge emphasis="strong">Strong Emphasis</db-badge>
|
|
22
|
-
<h2>5. Placement Variants</h2>
|
|
23
|
-
<db-badge placement="inline">Inline</db-badge>
|
|
24
|
-
<db-badge placement="corner-top-left">Corner Top Left</db-badge>
|
|
25
|
-
<db-badge placement="corner-top-right">Corner Top Right</db-badge>
|
|
26
|
-
<db-badge placement="corner-center-left">Corner Center Left</db-badge>
|
|
27
|
-
<db-badge placement="corner-center-right">Corner Center Right</db-badge>
|
|
28
|
-
<db-badge placement="corner-bottom-left">Corner Bottom Left</db-badge>
|
|
29
|
-
<db-badge placement="corner-bottom-right">Corner Bottom Right</db-badge>
|
|
30
|
-
<h2>6. Custom Label</h2>
|
|
31
|
-
<db-badge label="Custom Label">With Custom Label</db-badge>
|
|
32
|
-
```
|
package/agent/Brand.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Brand Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBBrand Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Brand</h2>
|
|
8
|
-
<db-brand>Default Brand</db-brand>
|
|
9
|
-
<h2>2. Icon Visibility</h2>
|
|
10
|
-
<db-brand showIcon={false}>Icon Hidden</db-brand>
|
|
11
|
-
<h2>3. Custom Text</h2>
|
|
12
|
-
<db-brand text="Custom Brand Text">With Custom Text</db-brand>
|
|
13
|
-
```
|
package/agent/Button.md
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Button Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBButton Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Button</h2>
|
|
8
|
-
<db-button>Button</db-button>
|
|
9
|
-
<h2>2. Variants</h2>
|
|
10
|
-
<db-button variant="filled">Filled</db-button>
|
|
11
|
-
<db-button variant="outlined">Outlined</db-button>
|
|
12
|
-
<db-button variant="ghost">Ghost</db-button>
|
|
13
|
-
<db-button variant="brand">Brand</db-button>
|
|
14
|
-
<h2>3. Sizes</h2>
|
|
15
|
-
<db-button size="small">Small</db-button>
|
|
16
|
-
<db-button size="medium">Medium</db-button>
|
|
17
|
-
<h2>4. Icon Only</h2>
|
|
18
|
-
<db-button icon="check" noText={true}></db-button>
|
|
19
|
-
<h2>5. Disabled</h2>
|
|
20
|
-
<db-button disabled={true}>Disabled</db-button>
|
|
21
|
-
<h2>6. Button Types</h2>
|
|
22
|
-
<db-button type="button">Type=button</db-button>
|
|
23
|
-
<db-button type="submit">Type=submit</db-button>
|
|
24
|
-
<db-button type="reset">Type=reset</db-button>
|
|
25
|
-
<h2>7. Form Association</h2>
|
|
26
|
-
<form id="example-form">
|
|
27
|
-
<input name="exampleInput" placeholder="Example input" />
|
|
28
|
-
</form>
|
|
29
|
-
<db-button form="example-form" type="submit">
|
|
30
|
-
Submit Form
|
|
31
|
-
</db-button>
|
|
32
|
-
<h2>8. Name & Value</h2>
|
|
33
|
-
<db-button name="testName" value="testValue">
|
|
34
|
-
Name/Value
|
|
35
|
-
</db-button>
|
|
36
|
-
<h2>9. Width</h2>
|
|
37
|
-
<db-button width="full">Full width</db-button>
|
|
38
|
-
<db-button width="auto">Auto width</db-button>
|
|
39
|
-
<h2>10. Icon Visibility</h2>
|
|
40
|
-
<db-button icon="check" showIcon={false}>
|
|
41
|
-
Icon Hidden
|
|
42
|
-
</db-button>
|
|
43
|
-
<h2>11. Custom Class</h2>
|
|
44
|
-
<db-button class="my-custom-class">Custom Class</db-button>
|
|
45
|
-
<h2>12. Click Event</h2>
|
|
46
|
-
<db-button onClick={() => alert("Button clicked!")}>Click Me</db-button>
|
|
47
|
-
```
|
package/agent/Card.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Card Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBCard Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Card</h2>
|
|
8
|
-
<db-card>Default Card</db-card>
|
|
9
|
-
<h2>2. Behaviors</h2>
|
|
10
|
-
<db-card behavior="static">Static</db-card>
|
|
11
|
-
<db-card behavior="interactive">Interactive</db-card>
|
|
12
|
-
<h2>3. Elevation Levels</h2>
|
|
13
|
-
<db-card elevationLevel="1">Elevation Level 1</db-card>
|
|
14
|
-
<db-card elevationLevel="2">Elevation Level 2</db-card>
|
|
15
|
-
<db-card elevationLevel="3">Elevation Level 3</db-card>
|
|
16
|
-
<h2>4. Custom Class</h2>
|
|
17
|
-
<db-card class="my-custom-class">Custom Class</db-card>
|
|
18
|
-
<h2>5. Spacing</h2>
|
|
19
|
-
<db-card spacing="medium">Medium Spacing</db-card>
|
|
20
|
-
<db-card spacing="small">Small Spacing</db-card>
|
|
21
|
-
<db-card spacing="large">Large Spacing</db-card>
|
|
22
|
-
<db-card spacing="none">No Spacing</db-card>
|
|
23
|
-
```
|
package/agent/Checkbox.md
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Checkbox Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBCheckbox Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Checkbox</h2>
|
|
8
|
-
<db-checkbox label="Default Checkbox"></db-checkbox>
|
|
9
|
-
<h2>2. Indeterminate State</h2>
|
|
10
|
-
<db-checkbox
|
|
11
|
-
label="Indeterminate Checkbox"
|
|
12
|
-
indeterminate={true}
|
|
13
|
-
></db-checkbox>
|
|
14
|
-
<h2>3. Sizes</h2>
|
|
15
|
-
<db-checkbox size="small" label="Small Checkbox"></db-checkbox>
|
|
16
|
-
<db-checkbox size="medium" label="Medium Checkbox"></db-checkbox>
|
|
17
|
-
<h2>4. Validation States</h2>
|
|
18
|
-
<db-checkbox validation="valid" label="Valid Checkbox"></db-checkbox>
|
|
19
|
-
<db-checkbox
|
|
20
|
-
validation="invalid"
|
|
21
|
-
label="Invalid Checkbox"
|
|
22
|
-
></db-checkbox>
|
|
23
|
-
<db-checkbox
|
|
24
|
-
validation="no-validation"
|
|
25
|
-
label="No Validation Checkbox"
|
|
26
|
-
></db-checkbox>
|
|
27
|
-
<h2>5. Disabled State</h2>
|
|
28
|
-
<db-checkbox label="Disabled Checkbox" disabled={true}></db-checkbox>
|
|
29
|
-
<h2>6. Message Property Example</h2>
|
|
30
|
-
<db-checkbox
|
|
31
|
-
label="Checkbox with Message"
|
|
32
|
-
message="This is a helper message."
|
|
33
|
-
></db-checkbox>
|
|
34
|
-
<h2>7. Change Event Example</h2>
|
|
35
|
-
<db-checkbox
|
|
36
|
-
label="Change Event"
|
|
37
|
-
onChange={(event) =>
|
|
38
|
-
console.log("Change event:", event.target.checked)
|
|
39
|
-
}
|
|
40
|
-
></db-checkbox>
|
|
41
|
-
```
|
package/agent/CustomSelect.md
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# CustomSelect Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBCustomSelect Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Custom Select</h2>
|
|
8
|
-
<db-custom-select
|
|
9
|
-
label="Default Custom Select"
|
|
10
|
-
options={this.getOptions()}
|
|
11
|
-
></db-custom-select>
|
|
12
|
-
<h2>3. Multiple Select</h2>
|
|
13
|
-
<db-custom-select
|
|
14
|
-
label="Multiple Custom Select"
|
|
15
|
-
multiple={true}
|
|
16
|
-
options={this.getOptions()}
|
|
17
|
-
></db-custom-select>
|
|
18
|
-
<h2>4. Disabled State</h2>
|
|
19
|
-
<db-custom-select
|
|
20
|
-
label="Disabled Custom Select"
|
|
21
|
-
disabled={true}
|
|
22
|
-
options={this.getOptions()}
|
|
23
|
-
></db-custom-select>
|
|
24
|
-
<h2>5. Validation States</h2>
|
|
25
|
-
<db-custom-select
|
|
26
|
-
validMessage="This is a valid selection"
|
|
27
|
-
validation="valid"
|
|
28
|
-
label="Valid Custom Select"
|
|
29
|
-
options={this.getOptions()}
|
|
30
|
-
></db-custom-select>
|
|
31
|
-
<db-custom-select
|
|
32
|
-
invalidMessage="This is an invalid selection"
|
|
33
|
-
validation="invalid"
|
|
34
|
-
label="Invalid Custom Select"
|
|
35
|
-
options={this.getOptions()}
|
|
36
|
-
></db-custom-select>
|
|
37
|
-
<db-custom-select
|
|
38
|
-
validation="no-validation"
|
|
39
|
-
label="No Validation Custom Select"
|
|
40
|
-
options={this.getOptions()}
|
|
41
|
-
></db-custom-select>
|
|
42
|
-
<h2>6. Change Event Example</h2>
|
|
43
|
-
<db-custom-select
|
|
44
|
-
label="Change Event"
|
|
45
|
-
onChange={(event) => console.log("Change event:", event.target.value)}
|
|
46
|
-
options={this.getOptions()}
|
|
47
|
-
></db-custom-select>
|
|
48
|
-
<h2>7. Placeholder Example</h2>
|
|
49
|
-
<db-custom-select
|
|
50
|
-
label="Custom Select with Placeholder"
|
|
51
|
-
placeholder="Select an option"
|
|
52
|
-
options={this.getOptions()}
|
|
53
|
-
></db-custom-select>
|
|
54
|
-
```
|
package/agent/Divider.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Divider Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBDivider Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Divider</h2>
|
|
8
|
-
<db-divider></db-divider>
|
|
9
|
-
<h2>2. Margin Variants</h2>
|
|
10
|
-
<db-divider margin="none"></db-divider>
|
|
11
|
-
<db-divider margin="_"></db-divider>
|
|
12
|
-
<h2>3. Orientation Variants</h2>
|
|
13
|
-
<db-divider variant="horizontal"></db-divider>
|
|
14
|
-
<db-divider variant="vertical"></db-divider>
|
|
15
|
-
<h2>4. Emphasis Variants</h2>
|
|
16
|
-
<db-divider emphasis="weak"></db-divider>
|
|
17
|
-
<db-divider emphasis="strong"></db-divider>
|
|
18
|
-
<h2>5. Width Variants</h2>
|
|
19
|
-
<db-divider width="full"></db-divider>
|
|
20
|
-
<db-divider width="auto"></db-divider>
|
|
21
|
-
```
|
package/agent/Drawer.md
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
## CSS Properties
|
|
2
|
-
|
|
3
|
-
| CSS Variable | Default | CSS Property | Description | Example |
|
|
4
|
-
| --- | --- | --- | --- | --- |
|
|
5
|
-
| `--db-drawer-max-height` | `calc(100% - #{variables.$db-spacing-fixed-xl})` | max-block-size | Sets the maximum height of the drawer | — |
|
|
6
|
-
| `--db-drawer-header-padding-block-end` | `#{map.get($spacing, "block")}` | padding-block-end | Controls the bottom padding inside the drawer header | — |
|
|
7
|
-
| `--db-drawer-content-padding-inline` | `#{map.get($spacing, "inline")}` | padding-inline | Controls left/right padding inside the drawer content area | — |
|
|
8
|
-
| `--db-drawer-max-width` | `calc(100% - #{variables.$db-spacing-fixed-xl})` | max-inline-size | Sets the maximum width of the drawer and some default values for the drawer | <pre>css - Wide drawer<br>.db-drawer-wide {<br>--db-drawer-max-width: 800px;<br>}<br><div class="db-drawer db-drawer-wide"><br><!-- wide drawer --><br></div><br></pre> |
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
# Drawer Examples (stencil)
|
|
12
|
-
|
|
13
|
-
```html
|
|
14
|
-
<h1>DBDrawer Documentation Examples</h1>
|
|
15
|
-
<h2>1. Default Drawer</h2>
|
|
16
|
-
<div>
|
|
17
|
-
<db-button
|
|
18
|
-
onClick={() => {
|
|
19
|
-
this.open = true;
|
|
20
|
-
}}
|
|
21
|
-
>
|
|
22
|
-
Open Me
|
|
23
|
-
</db-button>
|
|
24
|
-
<db-drawer
|
|
25
|
-
open={this.open}
|
|
26
|
-
onClose={() => {
|
|
27
|
-
this.open = false;
|
|
28
|
-
}}
|
|
29
|
-
drawerHeader={<header>Optional drawer header</header>}
|
|
30
|
-
>
|
|
31
|
-
My Drawer content
|
|
32
|
-
</db-drawer>
|
|
33
|
-
</div>
|
|
34
|
-
<h2>2. Drawer Variants</h2>
|
|
35
|
-
<div>
|
|
36
|
-
<db-button
|
|
37
|
-
onClick={() => {
|
|
38
|
-
this.open = true;
|
|
39
|
-
}}
|
|
40
|
-
>
|
|
41
|
-
Open Modal Drawer
|
|
42
|
-
</db-button>
|
|
43
|
-
<db-drawer
|
|
44
|
-
variant="modal"
|
|
45
|
-
open={this.open}
|
|
46
|
-
onClose={() => {
|
|
47
|
-
this.open = false;
|
|
48
|
-
}}
|
|
49
|
-
>
|
|
50
|
-
Modal Drawer content
|
|
51
|
-
</db-drawer>
|
|
52
|
-
</div>
|
|
53
|
-
<div>
|
|
54
|
-
<db-button
|
|
55
|
-
onClick={() => {
|
|
56
|
-
this.open = true;
|
|
57
|
-
}}
|
|
58
|
-
>
|
|
59
|
-
Open Inside Drawer
|
|
60
|
-
</db-button>
|
|
61
|
-
<db-drawer
|
|
62
|
-
variant="inside"
|
|
63
|
-
open={this.open}
|
|
64
|
-
onClose={() => {
|
|
65
|
-
this.open = false;
|
|
66
|
-
}}
|
|
67
|
-
>
|
|
68
|
-
Inside Drawer content
|
|
69
|
-
</db-drawer>
|
|
70
|
-
</div>
|
|
71
|
-
```
|
package/agent/Header.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Header Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBHeader Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Header</h2>
|
|
8
|
-
<db-header
|
|
9
|
-
drawerOpen={this.drawerOpen}
|
|
10
|
-
onToggle={(open) => (this.drawerOpen = open)}
|
|
11
|
-
>
|
|
12
|
-
<db-brand slot="brand">My Awesome App</db-brand>
|
|
13
|
-
<div slot="metaNavigation"><db-link href="#">Imprint</db-link><db-link href="#">Help</db-link></div>
|
|
14
|
-
<db-button slot="primaryAction" icon="magnifying_glass" variant="ghost" noText>Search</db-button>
|
|
15
|
-
<div slot="secondaryAction"><db-button icon="x_placeholder" variant="ghost" noText>Profile</db-button><db-button icon="alert" variant="ghost" noText>Notification</db-button><db-button icon="help" variant="ghost" noText>Help</db-button></div>
|
|
16
|
-
|
|
17
|
-
<db-navigation>
|
|
18
|
-
<db-navigation-item>
|
|
19
|
-
<a href="#">Navi-Item 1</a>
|
|
20
|
-
</db-navigation-item>
|
|
21
|
-
<db-navigation-item icon="x_placeholder">
|
|
22
|
-
<a href="#">Navi-Item 2</a>
|
|
23
|
-
</db-navigation-item>
|
|
24
|
-
<db-navigation-item disabled={true}>
|
|
25
|
-
<a href="#">Navi-Item 3</a>
|
|
26
|
-
</db-navigation-item>
|
|
27
|
-
</db-navigation>
|
|
28
|
-
</db-header>
|
|
29
|
-
```
|
package/agent/Icon.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Icon Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBIcon Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Icon</h2>
|
|
8
|
-
<db-icon>Default Icon</db-icon>
|
|
9
|
-
<h2>2. Icon Variants</h2>
|
|
10
|
-
<db-icon icon="user">User Icon</db-icon>
|
|
11
|
-
<db-icon icon="settings">Settings Icon</db-icon>
|
|
12
|
-
<h2>3. Icon Weights</h2>
|
|
13
|
-
<db-icon weight="16">16px Icon</db-icon>
|
|
14
|
-
<db-icon weight="24">24px Icon</db-icon>
|
|
15
|
-
<db-icon weight="32">32px Icon</db-icon>
|
|
16
|
-
<h2>4. Custom Class</h2>
|
|
17
|
-
<db-icon class="my-custom-class">Custom Class Icon</db-icon>
|
|
18
|
-
<h2>5. Text Content</h2>
|
|
19
|
-
<db-icon text="Icon with Text">Icon with Text</db-icon>
|
|
20
|
-
```
|
package/agent/Infotext.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Infotext Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBInfotext Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Infotext</h2>
|
|
8
|
-
<db-infotext>Default Infotext</db-infotext>
|
|
9
|
-
<h2>2. Semantic Variants</h2>
|
|
10
|
-
<db-infotext semantic="adaptive">Adaptive</db-infotext>
|
|
11
|
-
<db-infotext semantic="neutral">Neutral</db-infotext>
|
|
12
|
-
<db-infotext semantic="critical">Critical</db-infotext>
|
|
13
|
-
<db-infotext semantic="informational">Informational</db-infotext>
|
|
14
|
-
<db-infotext semantic="warning">Warning</db-infotext>
|
|
15
|
-
<db-infotext semantic="successful">Successful</db-infotext>
|
|
16
|
-
<h2>3. Sizes</h2>
|
|
17
|
-
<db-infotext size="small">Small</db-infotext>
|
|
18
|
-
<db-infotext size="medium">Medium</db-infotext>
|
|
19
|
-
<h2>4. Icon Visibility</h2>
|
|
20
|
-
<db-infotext icon="info" showIcon={false}>
|
|
21
|
-
Icon Hidden
|
|
22
|
-
</db-infotext>
|
|
23
|
-
<h2>5. Custom Class</h2>
|
|
24
|
-
<db-infotext class="my-custom-class">Custom Class</db-infotext>
|
|
25
|
-
```
|
package/agent/Input.md
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Input Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBInput Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Input</h2>
|
|
8
|
-
<db-input label="Enter text here"></db-input>
|
|
9
|
-
<h2>2. Input Types</h2>
|
|
10
|
-
<db-input type="text" label="Text Input"></db-input>
|
|
11
|
-
<db-input type="email" label="Email Input"></db-input>
|
|
12
|
-
<db-input type="password" label="Password Input"></db-input>
|
|
13
|
-
<db-input type="number" label="Number Input"></db-input>
|
|
14
|
-
<h2>3. Sizes</h2>
|
|
15
|
-
<db-input size="small" label="Small Input"></db-input>
|
|
16
|
-
<db-input size="medium" label="Medium Input"></db-input>
|
|
17
|
-
<h2>4. Icon Support</h2>
|
|
18
|
-
<db-input icon="search" label="Search Input"></db-input>
|
|
19
|
-
<db-input iconLeading="user" label="Leading Icon"></db-input>
|
|
20
|
-
<db-input iconTrailing="check" label="Trailing Icon"></db-input>
|
|
21
|
-
<h2>5. Validation States</h2>
|
|
22
|
-
<db-input validation="valid" label="Valid Input"></db-input>
|
|
23
|
-
<db-input validation="invalid" label="Invalid Input"></db-input>
|
|
24
|
-
<db-input validation="no-validation" label="No Validation"></db-input>
|
|
25
|
-
<h2>6. Disabled State</h2>
|
|
26
|
-
<db-input label="Disabled Input" disabled={true}></db-input>
|
|
27
|
-
<h2>7. Custom Class</h2>
|
|
28
|
-
<db-input class="my-custom-class" label="Custom Class"></db-input>
|
|
29
|
-
<h2>8. Placeholder Examples</h2>
|
|
30
|
-
<db-input
|
|
31
|
-
placeholder="Enter text here"
|
|
32
|
-
label="With Placeholder"
|
|
33
|
-
></db-input>
|
|
34
|
-
<db-input
|
|
35
|
-
placeholder="Search here"
|
|
36
|
-
label="Search Placeholder"
|
|
37
|
-
></db-input>
|
|
38
|
-
<h2>9. Input Event Example</h2>
|
|
39
|
-
<db-input
|
|
40
|
-
label="Input Event"
|
|
41
|
-
onInput={(event) => console.log("Input event:", event.target.value)}
|
|
42
|
-
></db-input>
|
|
43
|
-
<h2>10. Message Property Example</h2>
|
|
44
|
-
<db-input
|
|
45
|
-
label="Input with Message"
|
|
46
|
-
message="This is a helper message."
|
|
47
|
-
></db-input>
|
|
48
|
-
```
|
package/agent/Link.md
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Link Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBLink Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Link</h2>
|
|
8
|
-
<db-link href="https://example.com">Default Link</db-link>
|
|
9
|
-
<h2>2. Disabled Link</h2>
|
|
10
|
-
<db-link href="https://example.com" disabled={true}>
|
|
11
|
-
Disabled Link
|
|
12
|
-
</db-link>
|
|
13
|
-
<h2>3. Target Variants</h2>
|
|
14
|
-
<db-link href="https://example.com" target="_self">
|
|
15
|
-
Self Target
|
|
16
|
-
</db-link>
|
|
17
|
-
<db-link href="https://example.com" target="_blank">
|
|
18
|
-
Blank Target
|
|
19
|
-
</db-link>
|
|
20
|
-
<h2>4. Custom Class</h2>
|
|
21
|
-
<db-link class="my-custom-class" href="https://example.com">
|
|
22
|
-
Custom Class
|
|
23
|
-
</db-link>
|
|
24
|
-
<h2>5. Rel Attribute</h2>
|
|
25
|
-
<db-link href="https://example.com" rel="noopener noreferrer">
|
|
26
|
-
No Referrer
|
|
27
|
-
</db-link>
|
|
28
|
-
<h2>6. Link Variants</h2>
|
|
29
|
-
<db-link href="https://example.com" variant="adaptive">
|
|
30
|
-
Adaptive Variant
|
|
31
|
-
</db-link>
|
|
32
|
-
<db-link href="https://example.com" variant="brand">
|
|
33
|
-
Brand Variant
|
|
34
|
-
</db-link>
|
|
35
|
-
<db-link href="https://example.com" variant="inline">
|
|
36
|
-
Inline Variant
|
|
37
|
-
</db-link>
|
|
38
|
-
<h2>7. Link Sizes</h2>
|
|
39
|
-
<db-link href="https://example.com" size="medium">
|
|
40
|
-
Medium Size
|
|
41
|
-
</db-link>
|
|
42
|
-
<db-link href="https://example.com" size="small">
|
|
43
|
-
Small Size
|
|
44
|
-
</db-link>
|
|
45
|
-
<h2>8. Link Content</h2>
|
|
46
|
-
<db-link href="https://example.com" content="external">
|
|
47
|
-
External Content
|
|
48
|
-
</db-link>
|
|
49
|
-
<db-link href="https://example.com" content="internal">
|
|
50
|
-
Internal Content
|
|
51
|
-
</db-link>
|
|
52
|
-
```
|
package/agent/Navigation.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Navigation Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBNavigation Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Navigation</h2>
|
|
8
|
-
<db-navigation>
|
|
9
|
-
<db-navigation-item>
|
|
10
|
-
<a href="#">Navi-Item 1</a>
|
|
11
|
-
</db-navigation-item>
|
|
12
|
-
<db-navigation-item icon="x_placeholder">
|
|
13
|
-
<a href="#">Navi-Item 2</a>
|
|
14
|
-
</db-navigation-item>
|
|
15
|
-
<db-navigation-item disabled={true}>
|
|
16
|
-
<a href="#">Navi-Item 3</a>
|
|
17
|
-
</db-navigation-item>
|
|
18
|
-
</db-navigation>
|
|
19
|
-
```
|
package/agent/NavigationItem.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# NavigationItem Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBNavigationItem Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Navigation Item</h2>
|
|
8
|
-
<db-navigation-item>Default Navigation Item</db-navigation-item>
|
|
9
|
-
<h2>2. Active State</h2>
|
|
10
|
-
<db-navigation-item active={true}>
|
|
11
|
-
Active Navigation Item
|
|
12
|
-
</db-navigation-item>
|
|
13
|
-
<h2>3. Disabled State</h2>
|
|
14
|
-
<db-navigation-item disabled={true}>
|
|
15
|
-
Disabled Navigation Item
|
|
16
|
-
</db-navigation-item>
|
|
17
|
-
<h2>4. Sub-Navigation</h2>
|
|
18
|
-
<db-navigation-item subNavigation={<div>Sub Navigation Content</div>}>
|
|
19
|
-
Navigation Item with Sub-Navigation
|
|
20
|
-
</db-navigation-item>
|
|
21
|
-
<h2>5. Icon Support</h2>
|
|
22
|
-
<db-navigation-item icon="user">
|
|
23
|
-
Navigation Item with Icon
|
|
24
|
-
</db-navigation-item>
|
|
25
|
-
<h2>6. Custom Class</h2>
|
|
26
|
-
<db-navigation-item class="custom-class">
|
|
27
|
-
Navigation Item with Custom Class
|
|
28
|
-
</db-navigation-item>
|
|
29
|
-
```
|
package/agent/Notification.md
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Notification Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBNotification Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Notification</h2>
|
|
8
|
-
<db-notification>Default Notification</db-notification>
|
|
9
|
-
<h2>2. Semantic Variants</h2>
|
|
10
|
-
<db-notification semantic="adaptive">Adaptive</db-notification>
|
|
11
|
-
<db-notification semantic="neutral">Neutral</db-notification>
|
|
12
|
-
<db-notification semantic="critical">Critical</db-notification>
|
|
13
|
-
<db-notification semantic="informational">
|
|
14
|
-
Informational
|
|
15
|
-
</db-notification>
|
|
16
|
-
<db-notification semantic="warning">Warning</db-notification>
|
|
17
|
-
<db-notification semantic="successful">Successful</db-notification>
|
|
18
|
-
<h2>3. Variants</h2>
|
|
19
|
-
<db-notification variant="docked">Docked</db-notification>
|
|
20
|
-
<db-notification variant="standalone">Standalone</db-notification>
|
|
21
|
-
<db-notification variant="overlay">Overlay</db-notification>
|
|
22
|
-
<h2>4. Closeable</h2>
|
|
23
|
-
<db-notification closeable={true}>
|
|
24
|
-
Closeable Notification
|
|
25
|
-
</db-notification>
|
|
26
|
-
<h2>5. Headline</h2>
|
|
27
|
-
<db-notification headline="Important Update">
|
|
28
|
-
Notification with Headline
|
|
29
|
-
</db-notification>
|
|
30
|
-
<h2>6. Timestamp</h2>
|
|
31
|
-
<db-notification timestamp="10:30 AM">
|
|
32
|
-
Notification with Timestamp
|
|
33
|
-
</db-notification>
|
|
34
|
-
<h2>7. Icon Support</h2>
|
|
35
|
-
<db-notification icon="info">Notification with Icon</db-notification>
|
|
36
|
-
<h2>8. Custom Class</h2>
|
|
37
|
-
<db-notification class="my-custom-class">Custom Class</db-notification>
|
|
38
|
-
```
|
package/agent/Page.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Page Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBPage Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Page</h2>
|
|
8
|
-
<db-page><db-header slot="header">Header Content</db-header>
|
|
9
|
-
Main Page</db-page>
|
|
10
|
-
<h2>2. Document Overflow Variants</h2>
|
|
11
|
-
<db-page documentOverflow="hidden">
|
|
12
|
-
<db-header slot="header">Header Content</db-header>
|
|
13
|
-
Main Page with Hidden Overflow
|
|
14
|
-
</db-page>
|
|
15
|
-
<db-page documentOverflow="auto">
|
|
16
|
-
<db-header slot="header">Header Content</db-header>
|
|
17
|
-
Main Page with Auto Overflow
|
|
18
|
-
</db-page>
|
|
19
|
-
<h2>3. Fade-In Effect</h2>
|
|
20
|
-
<db-page fadeIn={true}><db-header slot="header">Header Content</db-header>
|
|
21
|
-
Main Page with Fade-In</db-page>
|
|
22
|
-
<h2>4. Variant Examples</h2>
|
|
23
|
-
<db-page variant="auto"><db-header slot="header">Header Content</db-header>
|
|
24
|
-
Page with Auto Variant</db-page>
|
|
25
|
-
<db-page variant="fixed"><db-header slot="header">Header Content</db-header>
|
|
26
|
-
Page with Fixed Variant</db-page>
|
|
27
|
-
```
|
package/agent/Popover.md
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Popover Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBPopover Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Popover</h2>
|
|
8
|
-
<db-popover trigger={<DBButton>Hover on me to open Popover</DBButton>}>
|
|
9
|
-
Use any HTML code here like e.g. a<code>button</code>:
|
|
10
|
-
<button type="button">Test</button>
|
|
11
|
-
</db-popover>
|
|
12
|
-
<h2>2. Placement Variants</h2>
|
|
13
|
-
<db-popover
|
|
14
|
-
placement="top"
|
|
15
|
-
trigger={<DBButton>Top Placement</DBButton>}
|
|
16
|
-
>
|
|
17
|
-
Popover with top placement
|
|
18
|
-
</db-popover>
|
|
19
|
-
<db-popover
|
|
20
|
-
placement="bottom"
|
|
21
|
-
trigger={<DBButton>Bottom Placement</DBButton>}
|
|
22
|
-
>
|
|
23
|
-
Popover with bottom placement
|
|
24
|
-
</db-popover>
|
|
25
|
-
<h2>3. Delay Variants</h2>
|
|
26
|
-
<db-popover delay="fast" trigger={<DBButton>Fast Delay</DBButton>}>
|
|
27
|
-
Popover with fast delay
|
|
28
|
-
</db-popover>
|
|
29
|
-
<db-popover delay="slow" trigger={<DBButton>Slow Delay</DBButton>}>
|
|
30
|
-
Popover with slow delay
|
|
31
|
-
</db-popover>
|
|
32
|
-
<h2>4. Animation</h2>
|
|
33
|
-
<db-popover
|
|
34
|
-
trigger={<DBButton>With Animation</DBButton>}
|
|
35
|
-
animation={true}
|
|
36
|
-
>
|
|
37
|
-
Popover with animation
|
|
38
|
-
</db-popover>
|
|
39
|
-
<db-popover
|
|
40
|
-
trigger={<DBButton>No Animation</DBButton>}
|
|
41
|
-
animation={false}
|
|
42
|
-
>
|
|
43
|
-
Popover without animation
|
|
44
|
-
</db-popover>
|
|
45
|
-
<h2>5. Width Variants</h2>
|
|
46
|
-
<db-popover width="auto" trigger={<DBButton>Auto Width</DBButton>}>
|
|
47
|
-
Popover with auto width
|
|
48
|
-
</db-popover>
|
|
49
|
-
<db-popover width="fixed" trigger={<DBButton>Fixed Width</DBButton>}>
|
|
50
|
-
Popover with fixed width
|
|
51
|
-
</db-popover>
|
|
52
|
-
```
|
package/agent/Radio.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Radio Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBRadio Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Radio</h2>
|
|
8
|
-
<db-radio label="Default Radio"></db-radio>
|
|
9
|
-
<h2>2. Sizes</h2>
|
|
10
|
-
<db-radio size="small" label="Small Radio"></db-radio>
|
|
11
|
-
<db-radio size="medium" label="Medium Radio"></db-radio>
|
|
12
|
-
<h2>3. Validation States</h2>
|
|
13
|
-
<db-radio validation="valid" label="Valid Radio"></db-radio>
|
|
14
|
-
<db-radio validation="invalid" label="Invalid Radio"></db-radio>
|
|
15
|
-
<db-radio
|
|
16
|
-
validation="no-validation"
|
|
17
|
-
label="No Validation Radio"
|
|
18
|
-
></db-radio>
|
|
19
|
-
<h2>4. Disabled State</h2>
|
|
20
|
-
<db-radio label="Disabled Radio" disabled={true}></db-radio>
|
|
21
|
-
<h2>5. Change Event Example</h2>
|
|
22
|
-
<db-radio
|
|
23
|
-
label="Change Event"
|
|
24
|
-
onChange={(event) =>
|
|
25
|
-
console.log("Change event:", event.target.checked)
|
|
26
|
-
}
|
|
27
|
-
></db-radio>
|
|
28
|
-
```
|
package/agent/Section.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Section Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBSection Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Section</h2>
|
|
8
|
-
<db-section>Default Section</db-section>
|
|
9
|
-
<h2>2. Spacing Variants</h2>
|
|
10
|
-
<db-section spacing="medium">Medium Spacing</db-section>
|
|
11
|
-
<db-section spacing="small">Small Spacing</db-section>
|
|
12
|
-
<db-section spacing="large">Large Spacing</db-section>
|
|
13
|
-
<db-section spacing="none">No Spacing</db-section>
|
|
14
|
-
<h2>3. Container Width</h2>
|
|
15
|
-
<db-section width="full">Full Width</db-section>
|
|
16
|
-
<db-section width="medium">Medium Width</db-section>
|
|
17
|
-
<db-section width="large">Large Width</db-section>
|
|
18
|
-
<db-section width="small">Small Width</db-section>
|
|
19
|
-
<h2>4. Custom Class</h2>
|
|
20
|
-
<db-section class="my-custom-class">Custom Class</db-section>
|
|
21
|
-
```
|
package/agent/Select.md
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Select Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBSelect Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Select</h2>
|
|
8
|
-
<db-select label="Default Select">
|
|
9
|
-
<option value="1">Option 1</option>
|
|
10
|
-
<option value="2" disabled={true}>
|
|
11
|
-
Option 2
|
|
12
|
-
</option>
|
|
13
|
-
</db-select>
|
|
14
|
-
<h2>2. Options Array</h2>
|
|
15
|
-
<db-select
|
|
16
|
-
label="Select with Options"
|
|
17
|
-
options={this.getOptions()}
|
|
18
|
-
></db-select>
|
|
19
|
-
<h2>3. Multiple Select</h2>
|
|
20
|
-
<db-select label="Multiple Select" multiple={true}>
|
|
21
|
-
<option value="1">Option 1</option>
|
|
22
|
-
<option value="2" disabled={true}>
|
|
23
|
-
Option 2
|
|
24
|
-
</option>
|
|
25
|
-
</db-select>
|
|
26
|
-
<h2>4. Disabled State</h2>
|
|
27
|
-
<db-select label="Disabled Select" disabled={true}>
|
|
28
|
-
<option value="1">Option 1</option>
|
|
29
|
-
<option value="2" disabled={true}>
|
|
30
|
-
Option 2
|
|
31
|
-
</option>
|
|
32
|
-
</db-select>
|
|
33
|
-
<h2>5. Validation States</h2>
|
|
34
|
-
<db-select validation="valid" label="Valid Select">
|
|
35
|
-
<option value="1">Option 1</option>
|
|
36
|
-
<option value="2" disabled={true}>
|
|
37
|
-
Option 2
|
|
38
|
-
</option>
|
|
39
|
-
</db-select>
|
|
40
|
-
<db-select validation="invalid" label="Invalid Select">
|
|
41
|
-
<option value="1">Option 1</option>
|
|
42
|
-
<option value="2" disabled={true}>
|
|
43
|
-
Option 2
|
|
44
|
-
</option>
|
|
45
|
-
</db-select>
|
|
46
|
-
<db-select validation="no-validation" label="No Validation Select">
|
|
47
|
-
<option value="1">Option 1</option>
|
|
48
|
-
<option value="2" disabled={true}>
|
|
49
|
-
Option 2
|
|
50
|
-
</option>
|
|
51
|
-
</db-select>
|
|
52
|
-
<h2>6. Change Event Example</h2>
|
|
53
|
-
<db-select
|
|
54
|
-
label="Change Event"
|
|
55
|
-
onChange={(event) => console.log("Change event:", event.target.value)}
|
|
56
|
-
>
|
|
57
|
-
<option value="1">Option 1</option>
|
|
58
|
-
<option value="2" disabled={true}>
|
|
59
|
-
Option 2
|
|
60
|
-
</option>
|
|
61
|
-
</db-select>
|
|
62
|
-
```
|
package/agent/Stack.md
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Stack Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBStack Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Stack</h2>
|
|
8
|
-
<db-stack>Default Stack</db-stack>
|
|
9
|
-
<h2>2. Variants</h2>
|
|
10
|
-
<db-stack variant="simple">Simple Variant</db-stack>
|
|
11
|
-
<db-stack variant="divider">Divider Variant</db-stack>
|
|
12
|
-
<h2>3. Directions</h2>
|
|
13
|
-
<db-stack direction="row">Row Direction</db-stack>
|
|
14
|
-
<db-stack direction="column">Column Direction</db-stack>
|
|
15
|
-
<h2>4. Alignment</h2>
|
|
16
|
-
<db-stack alignment="stretch">Stretch Alignment</db-stack>
|
|
17
|
-
<db-stack alignment="start">Start Alignment</db-stack>
|
|
18
|
-
<db-stack alignment="end">End Alignment</db-stack>
|
|
19
|
-
<db-stack alignment="center">Center Alignment</db-stack>
|
|
20
|
-
<h2>5. Justify Content</h2>
|
|
21
|
-
<db-stack justifyContent="space-between">Space Between</db-stack>
|
|
22
|
-
<db-stack justifyContent="start">Start Justify</db-stack>
|
|
23
|
-
<db-stack justifyContent="end">End Justify</db-stack>
|
|
24
|
-
<db-stack justifyContent="center">Center Justify</db-stack>
|
|
25
|
-
<h2>6. Gap Spacing</h2>
|
|
26
|
-
<db-stack gap="medium">Medium Gap</db-stack>
|
|
27
|
-
<db-stack gap="small">Small Gap</db-stack>
|
|
28
|
-
<db-stack gap="large">Large Gap</db-stack>
|
|
29
|
-
<db-stack gap="none">No Gap</db-stack>
|
|
30
|
-
<h2>7. Wrap</h2>
|
|
31
|
-
<db-stack wrap={true}>Wrap Enabled</db-stack>
|
|
32
|
-
<db-stack wrap={false}>Wrap Disabled</db-stack>
|
|
33
|
-
<h2>8. Custom Class</h2>
|
|
34
|
-
<db-stack class="my-custom-class">Custom Class</db-stack>
|
|
35
|
-
```
|
package/agent/Switch.md
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Switch Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBSwitch Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Switch</h2>
|
|
8
|
-
<db-switch label="Default Switch"></db-switch>
|
|
9
|
-
<h2>2. Visual Aid</h2>
|
|
10
|
-
<db-switch label="Switch with Visual Aid" visualAid={true}></db-switch>
|
|
11
|
-
<db-switch
|
|
12
|
-
label="Switch without Visual Aid"
|
|
13
|
-
visualAid={false}
|
|
14
|
-
></db-switch>
|
|
15
|
-
<h2>3. Sizes</h2>
|
|
16
|
-
<db-switch size="small" label="Small Switch"></db-switch>
|
|
17
|
-
<db-switch size="medium" label="Medium Switch"></db-switch>
|
|
18
|
-
<h2>4. Validation States</h2>
|
|
19
|
-
<db-switch validation="valid" label="Valid Switch"></db-switch>
|
|
20
|
-
<db-switch validation="invalid" label="Invalid Switch"></db-switch>
|
|
21
|
-
<db-switch
|
|
22
|
-
validation="no-validation"
|
|
23
|
-
label="No Validation Switch"
|
|
24
|
-
></db-switch>
|
|
25
|
-
<h2>5. Disabled State</h2>
|
|
26
|
-
<db-switch label="Disabled Switch" disabled={true}></db-switch>
|
|
27
|
-
<h2>6. Icon Support</h2>
|
|
28
|
-
<db-switch icon="check" label="Switch with Icon"></db-switch>
|
|
29
|
-
<db-switch
|
|
30
|
-
iconLeading="user"
|
|
31
|
-
label="Switch with Leading Icon"
|
|
32
|
-
></db-switch>
|
|
33
|
-
<db-switch
|
|
34
|
-
iconTrailing="arrow"
|
|
35
|
-
label="Switch with Trailing Icon"
|
|
36
|
-
></db-switch>
|
|
37
|
-
<h2>7. Change Event Example</h2>
|
|
38
|
-
<db-switch
|
|
39
|
-
label="Change Event"
|
|
40
|
-
onChange={(event) =>
|
|
41
|
-
console.log("Change event:", event.target.checked)
|
|
42
|
-
}
|
|
43
|
-
></db-switch>
|
|
44
|
-
```
|
package/agent/TabItem.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# TabItem Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBTabItem Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Tab Item</h2>
|
|
8
|
-
<db-tab-item>Default Tab Item</db-tab-item>
|
|
9
|
-
<h2>2. Active State</h2>
|
|
10
|
-
<db-tab-item active={true}>Active Tab Item</db-tab-item>
|
|
11
|
-
<h2>3. Disabled State</h2>
|
|
12
|
-
<db-tab-item disabled={true}>Disabled Tab Item</db-tab-item>
|
|
13
|
-
<h2>4. Icon Variants</h2>
|
|
14
|
-
<db-tab-item icon="user">Tab Item with Icon</db-tab-item>
|
|
15
|
-
<db-tab-item iconLeading="arrow-left">
|
|
16
|
-
Tab Item with Leading Icon
|
|
17
|
-
</db-tab-item>
|
|
18
|
-
<db-tab-item iconTrailing="arrow-right">
|
|
19
|
-
Tab Item with Trailing Icon
|
|
20
|
-
</db-tab-item>
|
|
21
|
-
<h2>5. Label Property</h2>
|
|
22
|
-
<db-tab-item label="Tab Item Label">Tab Item with Label</db-tab-item>
|
|
23
|
-
<h2>6. No Text</h2>
|
|
24
|
-
<db-tab-item icon="user" noText={true}></db-tab-item>
|
|
25
|
-
```
|
package/agent/Tabs.md
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Tabs Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBTabs Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Tabs</h2>
|
|
8
|
-
<db-tabs>
|
|
9
|
-
<db-tab-list>
|
|
10
|
-
<db-tab-item>Tab 1</db-tab-item>
|
|
11
|
-
<db-tab-item>Tab 2</db-tab-item>
|
|
12
|
-
<db-tab-item>Tab 3</db-tab-item>
|
|
13
|
-
</db-tab-list>
|
|
14
|
-
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
15
|
-
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
16
|
-
<db-tab-panel>Tab Panel 3</db-tab-panel>
|
|
17
|
-
</db-tabs>
|
|
18
|
-
<h2>2. Behavior Variants</h2>
|
|
19
|
-
<db-tabs behavior="scrollbar">
|
|
20
|
-
<db-tab-list>
|
|
21
|
-
<db-tab-item>Tab 1</db-tab-item>
|
|
22
|
-
<db-tab-item>Tab 2</db-tab-item>
|
|
23
|
-
<db-tab-item>Tab 3</db-tab-item>
|
|
24
|
-
</db-tab-list>
|
|
25
|
-
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
26
|
-
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
27
|
-
<db-tab-panel>Tab Panel 3</db-tab-panel>
|
|
28
|
-
</db-tabs>
|
|
29
|
-
<db-tabs behavior="arrows">
|
|
30
|
-
<db-tab-list>
|
|
31
|
-
<db-tab-item>Tab 1</db-tab-item>
|
|
32
|
-
<db-tab-item>Tab 2</db-tab-item>
|
|
33
|
-
<db-tab-item>Tab 3</db-tab-item>
|
|
34
|
-
</db-tab-list>
|
|
35
|
-
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
36
|
-
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
37
|
-
<db-tab-panel>Tab Panel 3</db-tab-panel>
|
|
38
|
-
</db-tabs>
|
|
39
|
-
<h2>3. Initial Selected Index</h2>
|
|
40
|
-
<db-tabs initialSelectedIndex={1}>
|
|
41
|
-
<db-tab-list>
|
|
42
|
-
<db-tab-item>Tab 1</db-tab-item>
|
|
43
|
-
<db-tab-item>Tab 2</db-tab-item>
|
|
44
|
-
<db-tab-item>Tab 3</db-tab-item>
|
|
45
|
-
</db-tab-list>
|
|
46
|
-
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
47
|
-
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
48
|
-
<db-tab-panel>Tab Panel 3</db-tab-panel>
|
|
49
|
-
</db-tabs>
|
|
50
|
-
<h2>4. Initial Selected Mode</h2>
|
|
51
|
-
<db-tabs initialSelectedMode="manually">
|
|
52
|
-
<db-tab-list>
|
|
53
|
-
<db-tab-item>Tab 1</db-tab-item>
|
|
54
|
-
<db-tab-item>Tab 2</db-tab-item>
|
|
55
|
-
<db-tab-item>Tab 3</db-tab-item>
|
|
56
|
-
</db-tab-list>
|
|
57
|
-
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
58
|
-
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
59
|
-
<db-tab-panel>Tab Panel 3</db-tab-panel>
|
|
60
|
-
</db-tabs>
|
|
61
|
-
```
|
package/agent/Tag.md
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Tag Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBTag Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Tags</h2>
|
|
8
|
-
<db-tag>
|
|
9
|
-
<db-button>Tag as Button</db-button>
|
|
10
|
-
</db-tag>
|
|
11
|
-
<db-tag>
|
|
12
|
-
<db-link>Tag as Link</db-link>
|
|
13
|
-
</db-tag>
|
|
14
|
-
<db-tag>
|
|
15
|
-
<db-checkbox>Tag as Checkbox</db-checkbox>
|
|
16
|
-
</db-tag>
|
|
17
|
-
<db-tag>
|
|
18
|
-
<db-radio>Tag as Radio</db-radio>
|
|
19
|
-
</db-tag>
|
|
20
|
-
<db-tag>Static Tag</db-tag>
|
|
21
|
-
<h2>2. Overflow Example</h2>
|
|
22
|
-
<db-tag overflow={true}>
|
|
23
|
-
<span>Static Tag with overflow</span>
|
|
24
|
-
</db-tag>
|
|
25
|
-
<h2>3. Removable Tag</h2>
|
|
26
|
-
<db-tag
|
|
27
|
-
behavior="removable"
|
|
28
|
-
onRemove={() => console.log("Tag removed")}
|
|
29
|
-
>
|
|
30
|
-
Removable Tag
|
|
31
|
-
</db-tag>
|
|
32
|
-
<h2>4. Semantic Variants</h2>
|
|
33
|
-
<db-tag semantic="adaptive">Adaptive Tag</db-tag>
|
|
34
|
-
<db-tag semantic="neutral">Neutral Tag</db-tag>
|
|
35
|
-
<db-tag semantic="critical">Critical Tag</db-tag>
|
|
36
|
-
<db-tag semantic="informational">Informational Tag</db-tag>
|
|
37
|
-
<db-tag semantic="warning">Warning Tag</db-tag>
|
|
38
|
-
<db-tag semantic="successful">Successful Tag</db-tag>
|
|
39
|
-
<h2>5. Icon Support</h2>
|
|
40
|
-
<db-tag icon="user">Tag with Icon</db-tag>
|
|
41
|
-
```
|
package/agent/Textarea.md
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Textarea Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBTextarea Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Textarea</h2>
|
|
8
|
-
<db-textarea label="Default Textarea"></db-textarea>
|
|
9
|
-
<h2>2. Resizable Variants</h2>
|
|
10
|
-
<db-textarea resize="none" label="No Resize"></db-textarea>
|
|
11
|
-
<db-textarea resize="both" label="Resize Both"></db-textarea>
|
|
12
|
-
<db-textarea
|
|
13
|
-
resize="horizontal"
|
|
14
|
-
label="Resize Horizontal"
|
|
15
|
-
></db-textarea>
|
|
16
|
-
<db-textarea resize="vertical" label="Resize Vertical"></db-textarea>
|
|
17
|
-
<h2>3. Rows and Columns</h2>
|
|
18
|
-
<db-textarea
|
|
19
|
-
label="Custom Rows and Columns"
|
|
20
|
-
rows={5}
|
|
21
|
-
cols={30}
|
|
22
|
-
></db-textarea>
|
|
23
|
-
<h2>4. Wrap Variants</h2>
|
|
24
|
-
<db-textarea wrap="hard" label="Hard Wrap"></db-textarea>
|
|
25
|
-
<db-textarea wrap="soft" label="Soft Wrap"></db-textarea>
|
|
26
|
-
<db-textarea wrap="off" label="No Wrap"></db-textarea>
|
|
27
|
-
<h2>5. Disabled State</h2>
|
|
28
|
-
<db-textarea label="Disabled Textarea" disabled={true}></db-textarea>
|
|
29
|
-
<h2>6. Placeholder Examples</h2>
|
|
30
|
-
<db-textarea
|
|
31
|
-
placeholder="Enter text here"
|
|
32
|
-
label="With Placeholder"
|
|
33
|
-
></db-textarea>
|
|
34
|
-
<h2>7. Message Property Example</h2>
|
|
35
|
-
<db-textarea
|
|
36
|
-
label="Textarea with Message"
|
|
37
|
-
message="This is a helper message."
|
|
38
|
-
></db-textarea>
|
|
39
|
-
<h2>8. Input Event Example</h2>
|
|
40
|
-
<db-textarea
|
|
41
|
-
label="Input Event"
|
|
42
|
-
onInput={(event) => console.log("Input event:", event.target.value)}
|
|
43
|
-
></db-textarea>
|
|
44
|
-
```
|
package/agent/Tooltip.md
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Tooltip Examples (stencil)
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<h1>DBTooltip Documentation Examples</h1>
|
|
7
|
-
<h2>1. Default Tooltip</h2>
|
|
8
|
-
<db-button>
|
|
9
|
-
Hover on me to open Tooltip
|
|
10
|
-
<db-tooltip>Tooltip</db-tooltip>
|
|
11
|
-
</db-button>
|
|
12
|
-
<h2>2. Tooltip Variants</h2>
|
|
13
|
-
<db-button>
|
|
14
|
-
Description Tooltip
|
|
15
|
-
<db-tooltip variant="description">
|
|
16
|
-
Description Tooltip Content
|
|
17
|
-
</db-tooltip>
|
|
18
|
-
</db-button>
|
|
19
|
-
<db-button>
|
|
20
|
-
Label Tooltip
|
|
21
|
-
<db-tooltip variant="label">Label Tooltip Content</db-tooltip>
|
|
22
|
-
</db-button>
|
|
23
|
-
<h2>3. Tooltip with Arrow</h2>
|
|
24
|
-
<db-button>
|
|
25
|
-
Tooltip with Arrow
|
|
26
|
-
<db-tooltip showArrow={true}>Tooltip Content with Arrow</db-tooltip>
|
|
27
|
-
</db-button>
|
|
28
|
-
<h2>4. Placement Variants</h2>
|
|
29
|
-
<db-button>
|
|
30
|
-
Top Placement
|
|
31
|
-
<db-tooltip placement="top">Tooltip Content at Top</db-tooltip>
|
|
32
|
-
</db-button>
|
|
33
|
-
<db-button>
|
|
34
|
-
Bottom Placement
|
|
35
|
-
<db-tooltip placement="bottom">Tooltip Content at Bottom</db-tooltip>
|
|
36
|
-
</db-button>
|
|
37
|
-
```
|
package/agent/_instructions.md
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
- Use "@db-ux/wc-core-components" as import for components:
|
|
2
|
-
- use for `DBDrawer` or `Drawer` the file __agent-path__/agent/Drawer.md
|
|
3
|
-
- use for `DBTooltip` or `Tooltip` the file __agent-path__/agent/Tooltip.md
|
|
4
|
-
- use for `DBTextarea` or `Textarea` the file __agent-path__/agent/Textarea.md
|
|
5
|
-
- use for `DBTag` or `Tag` the file __agent-path__/agent/Tag.md
|
|
6
|
-
- use for `DBTabs` or `Tabs` the file __agent-path__/agent/Tabs.md
|
|
7
|
-
- use for `DBTabItem` or `TabItem` the file __agent-path__/agent/TabItem.md
|
|
8
|
-
- use for `DBSwitch` or `Switch` the file __agent-path__/agent/Switch.md
|
|
9
|
-
- use for `DBStack` or `Stack` the file __agent-path__/agent/Stack.md
|
|
10
|
-
- use for `DBSelect` or `Select` the file __agent-path__/agent/Select.md
|
|
11
|
-
- use for `DBSection` or `Section` the file __agent-path__/agent/Section.md
|
|
12
|
-
- use for `DBRadio` or `Radio` the file __agent-path__/agent/Radio.md
|
|
13
|
-
- use for `DBPopover` or `Popover` the file __agent-path__/agent/Popover.md
|
|
14
|
-
- use for `DBPage` or `Page` the file __agent-path__/agent/Page.md
|
|
15
|
-
- use for `DBNotification` or `Notification` the file __agent-path__/agent/Notification.md
|
|
16
|
-
- use for `DBNavigationItem` or `NavigationItem` the file __agent-path__/agent/NavigationItem.md
|
|
17
|
-
- use for `DBNavigation` or `Navigation` the file __agent-path__/agent/Navigation.md
|
|
18
|
-
- use for `DBLink` or `Link` the file __agent-path__/agent/Link.md
|
|
19
|
-
- use for `DBInput` or `Input` the file __agent-path__/agent/Input.md
|
|
20
|
-
- use for `DBInfotext` or `Infotext` the file __agent-path__/agent/Infotext.md
|
|
21
|
-
- use for `DBIcon` or `Icon` the file __agent-path__/agent/Icon.md
|
|
22
|
-
- use for `DBHeader` or `Header` the file __agent-path__/agent/Header.md
|
|
23
|
-
- use for `DBDivider` or `Divider` the file __agent-path__/agent/Divider.md
|
|
24
|
-
- use for `DBCustomSelect` or `CustomSelect` the file __agent-path__/agent/CustomSelect.md
|
|
25
|
-
- use for `DBCheckbox` or `Checkbox` the file __agent-path__/agent/Checkbox.md
|
|
26
|
-
- use for `DBCard` or `Card` the file __agent-path__/agent/Card.md
|
|
27
|
-
- use for `DBButton` or `Button` the file __agent-path__/agent/Button.md
|
|
28
|
-
- use for `DBBrand` or `Brand` the file __agent-path__/agent/Brand.md
|
|
29
|
-
- use for `DBBadge` or `Badge` the file __agent-path__/agent/Badge.md
|
|
30
|
-
- use for `DBAccordionItem` or `AccordionItem` the file __agent-path__/agent/AccordionItem.md
|
|
31
|
-
- use for `DBAccordion` or `Accordion` the file __agent-path__/agent/Accordion.md
|