@db-ux/react-core-components 3.0.2-copilot2-e7bf98b → 3.0.2-shell2-badc28f

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.
Files changed (147) hide show
  1. package/README.md +0 -11
  2. package/dist/components/button/button.d.ts +1 -1
  3. package/dist/components/checkbox/checkbox.d.ts +4 -1
  4. package/dist/components/checkbox/checkbox.js +2 -2
  5. package/dist/components/control-panel-brand/control-panel-brand.d.ts +3 -0
  6. package/dist/components/control-panel-brand/control-panel-brand.js +15 -0
  7. package/dist/components/control-panel-brand/index.d.ts +1 -0
  8. package/dist/components/control-panel-brand/index.js +1 -0
  9. package/dist/components/control-panel-brand/model.d.ts +5 -0
  10. package/dist/components/control-panel-desktop/control-panel-desktop.d.ts +3 -0
  11. package/dist/components/control-panel-desktop/control-panel-desktop.js +62 -0
  12. package/dist/components/control-panel-desktop/index.d.ts +1 -0
  13. package/dist/components/control-panel-desktop/index.js +1 -0
  14. package/dist/components/control-panel-desktop/model.d.ts +7 -0
  15. package/dist/components/control-panel-flat-icon-navigation/control-panel-flat-icon-navigation.d.ts +3 -0
  16. package/dist/components/control-panel-flat-icon-navigation/control-panel-flat-icon-navigation.js +26 -0
  17. package/dist/components/control-panel-flat-icon-navigation/index.d.ts +1 -0
  18. package/dist/components/control-panel-flat-icon-navigation/index.js +1 -0
  19. package/dist/components/control-panel-flat-icon-navigation/model.d.ts +7 -0
  20. package/dist/components/control-panel-flat-icon-navigation/model.js +1 -0
  21. package/dist/components/control-panel-meta-navigation/control-panel-meta-navigation.d.ts +3 -0
  22. package/dist/components/control-panel-meta-navigation/control-panel-meta-navigation.js +11 -0
  23. package/dist/components/control-panel-meta-navigation/index.d.ts +1 -0
  24. package/dist/components/control-panel-meta-navigation/index.js +1 -0
  25. package/dist/components/control-panel-meta-navigation/model.d.ts +5 -0
  26. package/dist/components/control-panel-meta-navigation/model.js +1 -0
  27. package/dist/components/control-panel-mobile/control-panel-mobile.d.ts +3 -0
  28. package/dist/components/control-panel-mobile/control-panel-mobile.js +41 -0
  29. package/dist/components/control-panel-mobile/index.d.ts +1 -0
  30. package/dist/components/control-panel-mobile/index.js +1 -0
  31. package/dist/components/control-panel-mobile/model.d.ts +30 -0
  32. package/dist/components/control-panel-mobile/model.js +1 -0
  33. package/dist/components/control-panel-primary-actions/control-panel-primary-actions.d.ts +3 -0
  34. package/dist/components/control-panel-primary-actions/control-panel-primary-actions.js +11 -0
  35. package/dist/components/control-panel-primary-actions/index.d.ts +1 -0
  36. package/dist/components/control-panel-primary-actions/index.js +1 -0
  37. package/dist/components/control-panel-primary-actions/model.d.ts +5 -0
  38. package/dist/components/control-panel-primary-actions/model.js +1 -0
  39. package/dist/components/control-panel-secondary-actions/control-panel-secondary-actions.d.ts +3 -0
  40. package/dist/components/control-panel-secondary-actions/control-panel-secondary-actions.js +11 -0
  41. package/dist/components/control-panel-secondary-actions/index.d.ts +1 -0
  42. package/dist/components/control-panel-secondary-actions/index.js +1 -0
  43. package/dist/components/control-panel-secondary-actions/model.d.ts +5 -0
  44. package/dist/components/control-panel-secondary-actions/model.js +1 -0
  45. package/dist/components/custom-select/custom-select.d.ts +4 -1
  46. package/dist/components/custom-select/custom-select.js +7 -7
  47. package/dist/components/custom-select/model.d.ts +4 -1
  48. package/dist/components/custom-select-list-item/custom-select-list-item.d.ts +4 -1
  49. package/dist/components/drawer/drawer.js +4 -4
  50. package/dist/components/drawer/model.d.ts +5 -1
  51. package/dist/components/drawer/model.js +1 -1
  52. package/dist/components/input/input.d.ts +4 -1
  53. package/dist/components/input/input.js +2 -2
  54. package/dist/components/navigation/model.d.ts +14 -5
  55. package/dist/components/navigation/navigation.d.ts +1 -1
  56. package/dist/components/navigation/navigation.js +96 -6
  57. package/dist/components/navigation-item/model.d.ts +9 -24
  58. package/dist/components/navigation-item/navigation-item.d.ts +1 -1
  59. package/dist/components/navigation-item/navigation-item.js +8 -67
  60. package/dist/components/navigation-item-group/index.d.ts +1 -0
  61. package/dist/components/navigation-item-group/index.js +1 -0
  62. package/dist/components/navigation-item-group/model.d.ts +26 -0
  63. package/dist/components/navigation-item-group/model.js +1 -0
  64. package/dist/components/navigation-item-group/navigation-item-group.d.ts +3 -0
  65. package/dist/components/navigation-item-group/navigation-item-group.js +100 -0
  66. package/dist/components/popover/popover.js +1 -2
  67. package/dist/components/radio/radio.d.ts +4 -1
  68. package/dist/components/select/select.d.ts +4 -1
  69. package/dist/components/select/select.js +2 -2
  70. package/dist/components/shell/index.d.ts +1 -0
  71. package/dist/components/shell/index.js +1 -0
  72. package/dist/components/shell/model.d.ts +50 -0
  73. package/dist/components/shell/model.js +1 -0
  74. package/dist/components/shell/shell.d.ts +3 -0
  75. package/dist/components/{page/page.js → shell/shell.js} +9 -28
  76. package/dist/components/shell-sub-navigation/index.d.ts +1 -0
  77. package/dist/components/shell-sub-navigation/index.js +1 -0
  78. package/dist/components/shell-sub-navigation/model.d.ts +5 -0
  79. package/dist/components/shell-sub-navigation/model.js +1 -0
  80. package/dist/components/shell-sub-navigation/shell-sub-navigation.d.ts +3 -0
  81. package/dist/components/shell-sub-navigation/shell-sub-navigation.js +45 -0
  82. package/dist/components/switch/switch.d.ts +4 -1
  83. package/dist/components/tabs/model.d.ts +3 -11
  84. package/dist/components/tabs/tabs.d.ts +1 -1
  85. package/dist/components/tabs/tabs.js +3 -3
  86. package/dist/components/textarea/textarea.d.ts +4 -1
  87. package/dist/components/textarea/textarea.js +2 -2
  88. package/dist/components/tooltip/tooltip.js +2 -3
  89. package/dist/index.d.ts +19 -6
  90. package/dist/index.js +19 -6
  91. package/dist/shared/constants.d.ts +3 -0
  92. package/dist/shared/constants.js +3 -0
  93. package/dist/shared/model.d.ts +82 -3
  94. package/dist/shared/model.js +3 -0
  95. package/dist/utils/floating-components.d.ts +17 -1
  96. package/dist/utils/floating-components.js +76 -48
  97. package/dist/utils/navigation.d.ts +2 -6
  98. package/dist/utils/navigation.js +34 -22
  99. package/package.json +4 -6
  100. package/agent/Accordion.md +0 -47
  101. package/agent/AccordionItem.md +0 -36
  102. package/agent/Badge.md +0 -43
  103. package/agent/Brand.md +0 -24
  104. package/agent/Button.md +0 -60
  105. package/agent/Card.md +0 -34
  106. package/agent/Checkbox.md +0 -41
  107. package/agent/CustomSelect.md +0 -81
  108. package/agent/Divider.md +0 -32
  109. package/agent/Drawer.md +0 -87
  110. package/agent/Header.md +0 -45
  111. package/agent/Icon.md +0 -31
  112. package/agent/Infotext.md +0 -36
  113. package/agent/Input.md +0 -50
  114. package/agent/Link.md +0 -63
  115. package/agent/Navigation.md +0 -31
  116. package/agent/NavigationItem.md +0 -34
  117. package/agent/Notification.md +0 -45
  118. package/agent/Page.md +0 -36
  119. package/agent/Popover.md +0 -55
  120. package/agent/Radio.md +0 -34
  121. package/agent/Section.md +0 -32
  122. package/agent/Select.md +0 -90
  123. package/agent/Stack.md +0 -46
  124. package/agent/Switch.md +0 -41
  125. package/agent/TabItem.md +0 -34
  126. package/agent/Tabs.md +0 -75
  127. package/agent/Tag.md +0 -56
  128. package/agent/Textarea.md +0 -45
  129. package/agent/Tooltip.md +0 -47
  130. package/agent/_instructions.md +0 -31
  131. package/dist/components/brand/brand.d.ts +0 -3
  132. package/dist/components/brand/brand.js +0 -13
  133. package/dist/components/brand/index.d.ts +0 -1
  134. package/dist/components/brand/index.js +0 -1
  135. package/dist/components/brand/model.d.ts +0 -10
  136. package/dist/components/header/header.d.ts +0 -3
  137. package/dist/components/header/header.js +0 -67
  138. package/dist/components/header/index.d.ts +0 -1
  139. package/dist/components/header/index.js +0 -1
  140. package/dist/components/header/model.d.ts +0 -44
  141. package/dist/components/page/index.d.ts +0 -1
  142. package/dist/components/page/index.js +0 -1
  143. package/dist/components/page/model.d.ts +0 -36
  144. package/dist/components/page/model.js +0 -2
  145. package/dist/components/page/page.d.ts +0 -3
  146. /package/dist/components/{brand → control-panel-brand}/model.js +0 -0
  147. /package/dist/components/{header → control-panel-desktop}/model.js +0 -0
@@ -1,81 +0,0 @@
1
-
2
-
3
- # CustomSelect Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBCustomSelect } from "@db-ux/react-react-core-components";
8
-
9
- function CustomSelect(props: any) {
10
- function getOptions() {
11
- return [
12
- {
13
- value: "1",
14
- label: "Option 1",
15
- selected: false,
16
- },
17
- {
18
- value: "2",
19
- label: "Option 2",
20
- disabled: true,
21
- },
22
- {
23
- value: "3",
24
- label: "Option 3",
25
- },
26
- ];
27
- }
28
-
29
- return (
30
- <>
31
- <h1>DBCustomSelect Documentation Examples</h1>
32
- <h2>1. Default Custom Select</h2>
33
- <DBCustomSelect label="Default Custom Select" options={getOptions()} />
34
- <h2>3. Multiple Select</h2>
35
- <DBCustomSelect
36
- label="Multiple Custom Select"
37
- multiple
38
- options={getOptions()}
39
- />
40
- <h2>4. Disabled State</h2>
41
- <DBCustomSelect
42
- label="Disabled Custom Select"
43
- disabled
44
- options={getOptions()}
45
- />
46
- <h2>5. Validation States</h2>
47
- <DBCustomSelect
48
- validMessage="This is a valid selection"
49
- validation="valid"
50
- label="Valid Custom Select"
51
- options={getOptions()}
52
- />
53
- <DBCustomSelect
54
- invalidMessage="This is an invalid selection"
55
- validation="invalid"
56
- label="Invalid Custom Select"
57
- options={getOptions()}
58
- />
59
- <DBCustomSelect
60
- validation="no-validation"
61
- label="No Validation Custom Select"
62
- options={getOptions()}
63
- />
64
- <h2>6. Change Event Example</h2>
65
- <DBCustomSelect
66
- label="Change Event"
67
- onChange={(event) => console.log("Change event:", event.target.value)}
68
- options={getOptions()}
69
- />
70
- <h2>7. Placeholder Example</h2>
71
- <DBCustomSelect
72
- label="Custom Select with Placeholder"
73
- placeholder="Select an option"
74
- options={getOptions()}
75
- />
76
- </>
77
- );
78
- }
79
-
80
- export default CustomSelect;
81
- ```
package/agent/Divider.md DELETED
@@ -1,32 +0,0 @@
1
-
2
-
3
- # Divider Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBDivider } from "@db-ux/react-react-core-components";
8
-
9
- function Divider(props: any) {
10
- return (
11
- <>
12
- <h1>DBDivider Documentation Examples</h1>
13
- <h2>1. Default Divider</h2>
14
- <DBDivider />
15
- <h2>2. Margin Variants</h2>
16
- <DBDivider margin="none" />
17
- <DBDivider margin="_" />
18
- <h2>3. Orientation Variants</h2>
19
- <DBDivider variant="horizontal" />
20
- <DBDivider variant="vertical" />
21
- <h2>4. Emphasis Variants</h2>
22
- <DBDivider emphasis="weak" />
23
- <DBDivider emphasis="strong" />
24
- <h2>5. Width Variants</h2>
25
- <DBDivider width="full" />
26
- <DBDivider width="auto" />
27
- </>
28
- );
29
- }
30
-
31
- export default Divider;
32
- ```
package/agent/Drawer.md DELETED
@@ -1,87 +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>&lt;div class="db-drawer db-drawer-wide"&gt;<br>&lt;!-- wide drawer --&gt;<br>&lt;/div&gt;<br></pre> |
9
-
10
-
11
- # Drawer Examples (react)
12
-
13
- ```tsx
14
- "use client";
15
- import * as React from "react";
16
- import { useState } from "react";
17
- import { DBButton } from "@db-ux/react-react-core-components";
18
- import { DBDrawer } from "@db-ux/react-react-core-components";
19
-
20
- function Drawer(props: any) {
21
- const [open, setOpen] = useState<boolean>(() => false);
22
-
23
- return (
24
- <>
25
- <h1>DBDrawer Documentation Examples</h1>
26
- <h2>1. Default Drawer</h2>
27
- <div>
28
- <DBButton
29
- onClick={(event) => {
30
- setOpen(true);
31
- }}
32
- >
33
- Open Me
34
- </DBButton>
35
- <DBDrawer
36
- open={open}
37
- onClose={(event) => {
38
- setOpen(false);
39
- }}
40
- drawerHeader={<header>Optional drawer header</header>}
41
- >
42
- My Drawer content
43
- </DBDrawer>
44
- </div>
45
- <h2>2. Drawer Variants</h2>
46
- <div>
47
- <DBButton
48
- onClick={(event) => {
49
- setOpen(true);
50
- }}
51
- >
52
- Open Modal Drawer
53
- </DBButton>
54
- <DBDrawer
55
- variant="modal"
56
- open={open}
57
- onClose={(event) => {
58
- setOpen(false);
59
- }}
60
- >
61
- Modal Drawer content
62
- </DBDrawer>
63
- </div>
64
- <div>
65
- <DBButton
66
- onClick={(event) => {
67
- setOpen(true);
68
- }}
69
- >
70
- Open Inside Drawer
71
- </DBButton>
72
- <DBDrawer
73
- variant="inside"
74
- open={open}
75
- onClose={(event) => {
76
- setOpen(false);
77
- }}
78
- >
79
- Inside Drawer content
80
- </DBDrawer>
81
- </div>
82
- </>
83
- );
84
- }
85
-
86
- export default Drawer;
87
- ```
package/agent/Header.md DELETED
@@ -1,45 +0,0 @@
1
-
2
-
3
- # Header Examples (react)
4
-
5
- ```tsx
6
- "use client";
7
- import * as React from "react";
8
- import { useState } from "react";
9
- import { DBNavigation } from "@db-ux/react-react-core-components";
10
- import { DBNavigationItem } from "@db-ux/react-react-core-components";
11
- import { DBHeader } from "@db-ux/react-react-core-components";
12
-
13
- function Header(props: any) {
14
- const [drawerOpen, setDrawerOpen] = useState<boolean>(() => false);
15
-
16
- return (
17
- <>
18
- <h1>DBHeader Documentation Examples</h1>
19
- <h2>1. Default Header</h2>
20
- <DBHeader
21
- drawerOpen={drawerOpen}
22
- onToggle={(open) => setDrawerOpen(open)}
23
- brand={<DBBrand>My Awesome App</DBBrand>}
24
- metaNavigation={<><DBLink href="#">Imprint</DBLink><DBLink href="#">Help</DBLink></>}
25
- primaryAction={<DBButton icon="magnifying_glass" variant="ghost" noText>Search</DBButton>}
26
- secondaryAction={<><DBButton icon="x_placeholder" variant="ghost" noText>Profile</DBButton><DBButton icon="alert" variant="ghost" noText>Notification</DBButton><DBButton icon="help" variant="ghost" noText>Help</DBButton></>}
27
- >
28
- <DBNavigation>
29
- <DBNavigationItem>
30
- <a href="#">Navi-Item 1</a>
31
- </DBNavigationItem>
32
- <DBNavigationItem icon="x_placeholder">
33
- <a href="#">Navi-Item 2</a>
34
- </DBNavigationItem>
35
- <DBNavigationItem disabled>
36
- <a href="#">Navi-Item 3</a>
37
- </DBNavigationItem>
38
- </DBNavigation>
39
- </DBHeader>
40
- </>
41
- );
42
- }
43
-
44
- export default Header;
45
- ```
package/agent/Icon.md DELETED
@@ -1,31 +0,0 @@
1
-
2
-
3
- # Icon Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBIcon } from "@db-ux/react-react-core-components";
8
-
9
- function Icon(props: any) {
10
- return (
11
- <>
12
- <h1>DBIcon Documentation Examples</h1>
13
- <h2>1. Default Icon</h2>
14
- <DBIcon>Default Icon</DBIcon>
15
- <h2>2. Icon Variants</h2>
16
- <DBIcon icon="user">User Icon</DBIcon>
17
- <DBIcon icon="settings">Settings Icon</DBIcon>
18
- <h2>3. Icon Weights</h2>
19
- <DBIcon weight="16">16px Icon</DBIcon>
20
- <DBIcon weight="24">24px Icon</DBIcon>
21
- <DBIcon weight="32">32px Icon</DBIcon>
22
- <h2>4. Custom Class</h2>
23
- <DBIcon className="my-custom-class">Custom Class Icon</DBIcon>
24
- <h2>5. Text Content</h2>
25
- <DBIcon text="Icon with Text">Icon with Text</DBIcon>
26
- </>
27
- );
28
- }
29
-
30
- export default Icon;
31
- ```
package/agent/Infotext.md DELETED
@@ -1,36 +0,0 @@
1
-
2
-
3
- # Infotext Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBInfotext } from "@db-ux/react-react-core-components";
8
-
9
- function Infotext(props: any) {
10
- return (
11
- <>
12
- <h1>DBInfotext Documentation Examples</h1>
13
- <h2>1. Default Infotext</h2>
14
- <DBInfotext>Default Infotext</DBInfotext>
15
- <h2>2. Semantic Variants</h2>
16
- <DBInfotext semantic="adaptive">Adaptive</DBInfotext>
17
- <DBInfotext semantic="neutral">Neutral</DBInfotext>
18
- <DBInfotext semantic="critical">Critical</DBInfotext>
19
- <DBInfotext semantic="informational">Informational</DBInfotext>
20
- <DBInfotext semantic="warning">Warning</DBInfotext>
21
- <DBInfotext semantic="successful">Successful</DBInfotext>
22
- <h2>3. Sizes</h2>
23
- <DBInfotext size="small">Small</DBInfotext>
24
- <DBInfotext size="medium">Medium</DBInfotext>
25
- <h2>4. Icon Visibility</h2>
26
- <DBInfotext icon="info" showIcon={false}>
27
- Icon Hidden
28
- </DBInfotext>
29
- <h2>5. Custom Class</h2>
30
- <DBInfotext className="my-custom-class">Custom Class</DBInfotext>
31
- </>
32
- );
33
- }
34
-
35
- export default Infotext;
36
- ```
package/agent/Input.md DELETED
@@ -1,50 +0,0 @@
1
-
2
-
3
- # Input Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBInput } from "@db-ux/react-react-core-components";
8
-
9
- function Input(props: any) {
10
- return (
11
- <>
12
- <h1>DBInput Documentation Examples</h1>
13
- <h2>1. Default Input</h2>
14
- <DBInput label="Enter text here" />
15
- <h2>2. Input Types</h2>
16
- <DBInput type="text" label="Text Input" />
17
- <DBInput type="email" label="Email Input" />
18
- <DBInput type="password" label="Password Input" />
19
- <DBInput type="number" label="Number Input" />
20
- <h2>3. Sizes</h2>
21
- <DBInput size="small" label="Small Input" />
22
- <DBInput size="medium" label="Medium Input" />
23
- <h2>4. Icon Support</h2>
24
- <DBInput icon="search" label="Search Input" />
25
- <DBInput iconLeading="user" label="Leading Icon" />
26
- <DBInput iconTrailing="check" label="Trailing Icon" />
27
- <h2>5. Validation States</h2>
28
- <DBInput validation="valid" label="Valid Input" />
29
- <DBInput validation="invalid" label="Invalid Input" />
30
- <DBInput validation="no-validation" label="No Validation" />
31
- <h2>6. Disabled State</h2>
32
- <DBInput label="Disabled Input" disabled />
33
- <h2>7. Custom Class</h2>
34
- <DBInput className="my-custom-class" label="Custom Class" />
35
- <h2>8. Placeholder Examples</h2>
36
- <DBInput placeholder="Enter text here" label="With Placeholder" />
37
- <DBInput placeholder="Search here" label="Search Placeholder" />
38
- <h2>9. Input Event Example</h2>
39
- <DBInput
40
- label="Input Event"
41
- onInput={(event) => console.log("Input event:", event.target.value)}
42
- />
43
- <h2>10. Message Property Example</h2>
44
- <DBInput label="Input with Message" message="This is a helper message." />
45
- </>
46
- );
47
- }
48
-
49
- export default Input;
50
- ```
package/agent/Link.md DELETED
@@ -1,63 +0,0 @@
1
-
2
-
3
- # Link Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBLink } from "@db-ux/react-react-core-components";
8
-
9
- function Link(props: any) {
10
- return (
11
- <>
12
- <h1>DBLink Documentation Examples</h1>
13
- <h2>1. Default Link</h2>
14
- <DBLink href="https://example.com">Default Link</DBLink>
15
- <h2>2. Disabled Link</h2>
16
- <DBLink href="https://example.com" disabled>
17
- Disabled Link
18
- </DBLink>
19
- <h2>3. Target Variants</h2>
20
- <DBLink href="https://example.com" target="_self">
21
- Self Target
22
- </DBLink>
23
- <DBLink href="https://example.com" target="_blank">
24
- Blank Target
25
- </DBLink>
26
- <h2>4. Custom Class</h2>
27
- <DBLink href="https://example.com" className="my-custom-class">
28
- Custom Class
29
- </DBLink>
30
- <h2>5. Rel Attribute</h2>
31
- <DBLink href="https://example.com" rel="noopener noreferrer">
32
- No Referrer
33
- </DBLink>
34
- <h2>6. Link Variants</h2>
35
- <DBLink href="https://example.com" variant="adaptive">
36
- Adaptive Variant
37
- </DBLink>
38
- <DBLink href="https://example.com" variant="brand">
39
- Brand Variant
40
- </DBLink>
41
- <DBLink href="https://example.com" variant="inline">
42
- Inline Variant
43
- </DBLink>
44
- <h2>7. Link Sizes</h2>
45
- <DBLink href="https://example.com" size="medium">
46
- Medium Size
47
- </DBLink>
48
- <DBLink href="https://example.com" size="small">
49
- Small Size
50
- </DBLink>
51
- <h2>8. Link Content</h2>
52
- <DBLink href="https://example.com" content="external">
53
- External Content
54
- </DBLink>
55
- <DBLink href="https://example.com" content="internal">
56
- Internal Content
57
- </DBLink>
58
- </>
59
- );
60
- }
61
-
62
- export default Link;
63
- ```
@@ -1,31 +0,0 @@
1
-
2
-
3
- # Navigation Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBNavigationItem } from "@db-ux/react-react-core-components";
8
- import { DBNavigation } from "@db-ux/react-react-core-components";
9
-
10
- function Navigation(props: any) {
11
- return (
12
- <>
13
- <h1>DBNavigation Documentation Examples</h1>
14
- <h2>1. Default Navigation</h2>
15
- <DBNavigation>
16
- <DBNavigationItem>
17
- <a href="#">Navi-Item 1</a>
18
- </DBNavigationItem>
19
- <DBNavigationItem icon="x_placeholder">
20
- <a href="#">Navi-Item 2</a>
21
- </DBNavigationItem>
22
- <DBNavigationItem disabled>
23
- <a href="#">Navi-Item 3</a>
24
- </DBNavigationItem>
25
- </DBNavigation>
26
- </>
27
- );
28
- }
29
-
30
- export default Navigation;
31
- ```
@@ -1,34 +0,0 @@
1
-
2
-
3
- # NavigationItem Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBNavigationItem } from "@db-ux/react-react-core-components";
8
-
9
- function NavigationItem(props: any) {
10
- return (
11
- <>
12
- <h1>DBNavigationItem Documentation Examples</h1>
13
- <h2>1. Default Navigation Item</h2>
14
- <DBNavigationItem>Default Navigation Item</DBNavigationItem>
15
- <h2>2. Active State</h2>
16
- <DBNavigationItem active>Active Navigation Item</DBNavigationItem>
17
- <h2>3. Disabled State</h2>
18
- <DBNavigationItem disabled>Disabled Navigation Item</DBNavigationItem>
19
- <h2>4. Sub-Navigation</h2>
20
- <DBNavigationItem subNavigation={<div>Sub Navigation Content</div>}>
21
- Navigation Item with Sub-Navigation
22
- </DBNavigationItem>
23
- <h2>5. Icon Support</h2>
24
- <DBNavigationItem icon="user">Navigation Item with Icon</DBNavigationItem>
25
- <h2>6. Custom Class</h2>
26
- <DBNavigationItem className="custom-class">
27
- Navigation Item with Custom Class
28
- </DBNavigationItem>
29
- </>
30
- );
31
- }
32
-
33
- export default NavigationItem;
34
- ```
@@ -1,45 +0,0 @@
1
-
2
-
3
- # Notification Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBNotification } from "@db-ux/react-react-core-components";
8
-
9
- function Notification(props: any) {
10
- return (
11
- <>
12
- <h1>DBNotification Documentation Examples</h1>
13
- <h2>1. Default Notification</h2>
14
- <DBNotification>Default Notification</DBNotification>
15
- <h2>2. Semantic Variants</h2>
16
- <DBNotification semantic="adaptive">Adaptive</DBNotification>
17
- <DBNotification semantic="neutral">Neutral</DBNotification>
18
- <DBNotification semantic="critical">Critical</DBNotification>
19
- <DBNotification semantic="informational">Informational</DBNotification>
20
- <DBNotification semantic="warning">Warning</DBNotification>
21
- <DBNotification semantic="successful">Successful</DBNotification>
22
- <h2>3. Variants</h2>
23
- <DBNotification variant="docked">Docked</DBNotification>
24
- <DBNotification variant="standalone">Standalone</DBNotification>
25
- <DBNotification variant="overlay">Overlay</DBNotification>
26
- <h2>4. Closeable</h2>
27
- <DBNotification closeable>Closeable Notification</DBNotification>
28
- <h2>5. Headline</h2>
29
- <DBNotification headline="Important Update">
30
- Notification with Headline
31
- </DBNotification>
32
- <h2>6. Timestamp</h2>
33
- <DBNotification timestamp="10:30 AM">
34
- Notification with Timestamp
35
- </DBNotification>
36
- <h2>7. Icon Support</h2>
37
- <DBNotification icon="info">Notification with Icon</DBNotification>
38
- <h2>8. Custom Class</h2>
39
- <DBNotification className="my-custom-class">Custom Class</DBNotification>
40
- </>
41
- );
42
- }
43
-
44
- export default Notification;
45
- ```
package/agent/Page.md DELETED
@@ -1,36 +0,0 @@
1
-
2
-
3
- # Page Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBPage } from "@db-ux/react-react-core-components";
8
-
9
- function Page(props: any) {
10
- return (
11
- <>
12
- <h1>DBPage Documentation Examples</h1>
13
- <h2>1. Default Page</h2>
14
- <DBPage header={<DBHeader>Header Content</DBHeader>}
15
- >Main Page</DBPage>
16
- <h2>2. Document Overflow Variants</h2>
17
- <DBPage documentOverflow="hidden" header={<DBHeader>Header Content</DBHeader>}
18
- > Main Page with Hidden Overflow
19
- </DBPage>
20
- <DBPage documentOverflow="auto" header={<DBHeader>Header Content</DBHeader>}
21
- > Main Page with Auto Overflow
22
- </DBPage>
23
- <h2>3. Fade-In Effect</h2>
24
- <DBPage fadeIn header={<DBHeader>Header Content</DBHeader>}
25
- >Main Page with Fade-In</DBPage>
26
- <h2>4. Variant Examples</h2>
27
- <DBPage variant="auto" header={<DBHeader>Header Content</DBHeader>}
28
- >Page with Auto Variant</DBPage>
29
- <DBPage variant="fixed" header={<DBHeader>Header Content</DBHeader>}
30
- >Page with Fixed Variant</DBPage>
31
- </>
32
- );
33
- }
34
-
35
- export default Page;
36
- ```
package/agent/Popover.md DELETED
@@ -1,55 +0,0 @@
1
-
2
-
3
- # Popover Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBButton } from "@db-ux/react-react-core-components";
8
- import { DBPopover } from "@db-ux/react-react-core-components";
9
-
10
- function Popover(props: any) {
11
- return (
12
- <>
13
- <h1>DBPopover Documentation Examples</h1>
14
- <h2>1. Default Popover</h2>
15
- <DBPopover trigger={<DBButton>Hover on me to open Popover</DBButton>}>
16
- Use any HTML code here like e.g. a <code>button</code>:
17
- <button type="button">Test</button>
18
- </DBPopover>
19
- <h2>2. Placement Variants</h2>
20
- <DBPopover placement="top" trigger={<DBButton>Top Placement</DBButton>}>
21
- Popover with top placement
22
- </DBPopover>
23
- <DBPopover
24
- placement="bottom"
25
- trigger={<DBButton>Bottom Placement</DBButton>}
26
- >
27
- Popover with bottom placement
28
- </DBPopover>
29
- <h2>3. Delay Variants</h2>
30
- <DBPopover delay="fast" trigger={<DBButton>Fast Delay</DBButton>}>
31
- Popover with fast delay
32
- </DBPopover>
33
- <DBPopover delay="slow" trigger={<DBButton>Slow Delay</DBButton>}>
34
- Popover with slow delay
35
- </DBPopover>
36
- <h2>4. Animation</h2>
37
- <DBPopover animation trigger={<DBButton>With Animation</DBButton>}>
38
- Popover with animation
39
- </DBPopover>
40
- <DBPopover animation={false} trigger={<DBButton>No Animation</DBButton>}>
41
- Popover without animation
42
- </DBPopover>
43
- <h2>5. Width Variants</h2>
44
- <DBPopover width="auto" trigger={<DBButton>Auto Width</DBButton>}>
45
- Popover with auto width
46
- </DBPopover>
47
- <DBPopover width="fixed" trigger={<DBButton>Fixed Width</DBButton>}>
48
- Popover with fixed width
49
- </DBPopover>
50
- </>
51
- );
52
- }
53
-
54
- export default Popover;
55
- ```
package/agent/Radio.md DELETED
@@ -1,34 +0,0 @@
1
-
2
-
3
- # Radio Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBRadio } from "@db-ux/react-react-core-components";
8
-
9
- function Radio(props: any) {
10
- return (
11
- <>
12
- <h1>DBRadio Documentation Examples</h1>
13
- <h2>1. Default Radio</h2>
14
- <DBRadio label="Default Radio" />
15
- <h2>2. Sizes</h2>
16
- <DBRadio size="small" label="Small Radio" />
17
- <DBRadio size="medium" label="Medium Radio" />
18
- <h2>3. Validation States</h2>
19
- <DBRadio validation="valid" label="Valid Radio" />
20
- <DBRadio validation="invalid" label="Invalid Radio" />
21
- <DBRadio validation="no-validation" label="No Validation Radio" />
22
- <h2>4. Disabled State</h2>
23
- <DBRadio label="Disabled Radio" disabled />
24
- <h2>5. Change Event Example</h2>
25
- <DBRadio
26
- label="Change Event"
27
- onChange={(event) => console.log("Change event:", event.target.checked)}
28
- />
29
- </>
30
- );
31
- }
32
-
33
- export default Radio;
34
- ```