@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
package/agent/Section.md DELETED
@@ -1,32 +0,0 @@
1
-
2
-
3
- # Section Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBSection } from "@db-ux/react-react-core-components";
8
-
9
- function Section(props: any) {
10
- return (
11
- <>
12
- <h1>DBSection Documentation Examples</h1>
13
- <h2>1. Default Section</h2>
14
- <DBSection>Default Section</DBSection>
15
- <h2>2. Spacing Variants</h2>
16
- <DBSection spacing="medium">Medium Spacing</DBSection>
17
- <DBSection spacing="small">Small Spacing</DBSection>
18
- <DBSection spacing="large">Large Spacing</DBSection>
19
- <DBSection spacing="none">No Spacing</DBSection>
20
- <h2>3. Container Width</h2>
21
- <DBSection width="full">Full Width</DBSection>
22
- <DBSection width="medium">Medium Width</DBSection>
23
- <DBSection width="large">Large Width</DBSection>
24
- <DBSection width="small">Small Width</DBSection>
25
- <h2>4. Custom Class</h2>
26
- <DBSection className="my-custom-class">Custom Class</DBSection>
27
- </>
28
- );
29
- }
30
-
31
- export default Section;
32
- ```
package/agent/Select.md DELETED
@@ -1,90 +0,0 @@
1
-
2
-
3
- # Select Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBSelect } from "@db-ux/react-react-core-components";
8
-
9
- function Select(props: any) {
10
- function getOptions() {
11
- return [
12
- {
13
- id: "1",
14
- label: "Option 1",
15
- selected: false,
16
- },
17
- {
18
- id: "2",
19
- label: "Option 2",
20
- selected: true,
21
- },
22
- {
23
- id: "3",
24
- label: "Option 3",
25
- disabled: true,
26
- },
27
- ];
28
- }
29
-
30
- return (
31
- <>
32
- <h1>DBSelect Documentation Examples</h1>
33
- <h2>1. Default Select</h2>
34
- <DBSelect label="Default Select">
35
- <option value="1">Option 1</option>
36
- <option value="2" disabled>
37
- Option 2
38
- </option>
39
- </DBSelect>
40
- <h2>2. Options Array</h2>
41
- <DBSelect label="Select with Options" options={getOptions()} />
42
- <h2>3. Multiple Select</h2>
43
- <DBSelect label="Multiple Select" multiple>
44
- <option value="1">Option 1</option>
45
- <option value="2" disabled>
46
- Option 2
47
- </option>
48
- </DBSelect>
49
- <h2>4. Disabled State</h2>
50
- <DBSelect label="Disabled Select" disabled>
51
- <option value="1">Option 1</option>
52
- <option value="2" disabled>
53
- Option 2
54
- </option>
55
- </DBSelect>
56
- <h2>5. Validation States</h2>
57
- <DBSelect validation="valid" label="Valid Select">
58
- <option value="1">Option 1</option>
59
- <option value="2" disabled>
60
- Option 2
61
- </option>
62
- </DBSelect>
63
- <DBSelect validation="invalid" label="Invalid Select">
64
- <option value="1">Option 1</option>
65
- <option value="2" disabled>
66
- Option 2
67
- </option>
68
- </DBSelect>
69
- <DBSelect validation="no-validation" label="No Validation Select">
70
- <option value="1">Option 1</option>
71
- <option value="2" disabled>
72
- Option 2
73
- </option>
74
- </DBSelect>
75
- <h2>6. Change Event Example</h2>
76
- <DBSelect
77
- label="Change Event"
78
- onChange={(event) => console.log("Change event:", event.target.value)}
79
- >
80
- <option value="1">Option 1</option>
81
- <option value="2" disabled>
82
- Option 2
83
- </option>
84
- </DBSelect>
85
- </>
86
- );
87
- }
88
-
89
- export default Select;
90
- ```
package/agent/Stack.md DELETED
@@ -1,46 +0,0 @@
1
-
2
-
3
- # Stack Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBStack } from "@db-ux/react-react-core-components";
8
-
9
- function Stack(props: any) {
10
- return (
11
- <>
12
- <h1>DBStack Documentation Examples</h1>
13
- <h2>1. Default Stack</h2>
14
- <DBStack>Default Stack</DBStack>
15
- <h2>2. Variants</h2>
16
- <DBStack variant="simple">Simple Variant</DBStack>
17
- <DBStack variant="divider">Divider Variant</DBStack>
18
- <h2>3. Directions</h2>
19
- <DBStack direction="row">Row Direction</DBStack>
20
- <DBStack direction="column">Column Direction</DBStack>
21
- <h2>4. Alignment</h2>
22
- <DBStack alignment="stretch">Stretch Alignment</DBStack>
23
- <DBStack alignment="start">Start Alignment</DBStack>
24
- <DBStack alignment="end">End Alignment</DBStack>
25
- <DBStack alignment="center">Center Alignment</DBStack>
26
- <h2>5. Justify Content</h2>
27
- <DBStack justifyContent="space-between">Space Between</DBStack>
28
- <DBStack justifyContent="start">Start Justify</DBStack>
29
- <DBStack justifyContent="end">End Justify</DBStack>
30
- <DBStack justifyContent="center">Center Justify</DBStack>
31
- <h2>6. Gap Spacing</h2>
32
- <DBStack gap="medium">Medium Gap</DBStack>
33
- <DBStack gap="small">Small Gap</DBStack>
34
- <DBStack gap="large">Large Gap</DBStack>
35
- <DBStack gap="none">No Gap</DBStack>
36
- <h2>7. Wrap</h2>
37
- <DBStack wrap>Wrap Enabled</DBStack>
38
- <DBStack wrap={false}>Wrap Disabled</DBStack>
39
- <h2>8. Custom Class</h2>
40
- <DBStack className="my-custom-class">Custom Class</DBStack>
41
- </>
42
- );
43
- }
44
-
45
- export default Stack;
46
- ```
package/agent/Switch.md DELETED
@@ -1,41 +0,0 @@
1
-
2
-
3
- # Switch Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBSwitch } from "@db-ux/react-react-core-components";
8
-
9
- function Switch(props: any) {
10
- return (
11
- <>
12
- <h1>DBSwitch Documentation Examples</h1>
13
- <h2>1. Default Switch</h2>
14
- <DBSwitch label="Default Switch" />
15
- <h2>2. Visual Aid</h2>
16
- <DBSwitch label="Switch with Visual Aid" visualAid />
17
- <DBSwitch label="Switch without Visual Aid" visualAid={false} />
18
- <h2>3. Sizes</h2>
19
- <DBSwitch size="small" label="Small Switch" />
20
- <DBSwitch size="medium" label="Medium Switch" />
21
- <h2>4. Validation States</h2>
22
- <DBSwitch validation="valid" label="Valid Switch" />
23
- <DBSwitch validation="invalid" label="Invalid Switch" />
24
- <DBSwitch validation="no-validation" label="No Validation Switch" />
25
- <h2>5. Disabled State</h2>
26
- <DBSwitch label="Disabled Switch" disabled />
27
- <h2>6. Icon Support</h2>
28
- <DBSwitch icon="check" label="Switch with Icon" />
29
- <DBSwitch iconLeading="user" label="Switch with Leading Icon" />
30
- <DBSwitch iconTrailing="arrow" label="Switch with Trailing Icon" />
31
- <h2>7. Change Event Example</h2>
32
- <DBSwitch
33
- label="Change Event"
34
- onChange={(event) => console.log("Change event:", event.target.checked)}
35
- />
36
- </>
37
- );
38
- }
39
-
40
- export default Switch;
41
- ```
package/agent/TabItem.md DELETED
@@ -1,34 +0,0 @@
1
-
2
-
3
- # TabItem Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBTabItem } from "@db-ux/react-react-core-components";
8
-
9
- function TabItem(props: any) {
10
- return (
11
- <>
12
- <h1>DBTabItem Documentation Examples</h1>
13
- <h2>1. Default Tab Item</h2>
14
- <DBTabItem>Default Tab Item</DBTabItem>
15
- <h2>2. Active State</h2>
16
- <DBTabItem active>Active Tab Item</DBTabItem>
17
- <h2>3. Disabled State</h2>
18
- <DBTabItem disabled>Disabled Tab Item</DBTabItem>
19
- <h2>4. Icon Variants</h2>
20
- <DBTabItem icon="user">Tab Item with Icon</DBTabItem>
21
- <DBTabItem iconLeading="arrow-left">Tab Item with Leading Icon</DBTabItem>
22
- <DBTabItem iconTrailing="arrow-right">
23
- Tab Item with Trailing Icon
24
- </DBTabItem>
25
- <h2>5. Label Property</h2>
26
- <DBTabItem label="Tab Item Label">Tab Item with Label</DBTabItem>
27
- <h2>6. No Text</h2>
28
- <DBTabItem icon="user" noText />
29
- </>
30
- );
31
- }
32
-
33
- export default TabItem;
34
- ```
package/agent/Tabs.md DELETED
@@ -1,75 +0,0 @@
1
-
2
-
3
- # Tabs Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBTabItem } from "@db-ux/react-react-core-components";
8
- import { DBTabList } from "@db-ux/react-react-core-components";
9
- import { DBTabPanel } from "@db-ux/react-react-core-components";
10
- import { DBTabs } from "@db-ux/react-react-core-components";
11
-
12
- function Tabs(props: any) {
13
- return (
14
- <>
15
- <h1>DBTabs Documentation Examples</h1>
16
- <h2>1. Default Tabs</h2>
17
- <DBTabs>
18
- <DBTabList>
19
- <DBTabItem>Tab 1</DBTabItem>
20
- <DBTabItem>Tab 2</DBTabItem>
21
- <DBTabItem>Tab 3</DBTabItem>
22
- </DBTabList>
23
- <DBTabPanel>Tab Panel 1</DBTabPanel>
24
- <DBTabPanel>Tab Panel 2</DBTabPanel>
25
- <DBTabPanel>Tab Panel 3</DBTabPanel>
26
- </DBTabs>
27
- <h2>2. Behavior Variants</h2>
28
- <DBTabs behavior="scrollbar">
29
- <DBTabList>
30
- <DBTabItem>Tab 1</DBTabItem>
31
- <DBTabItem>Tab 2</DBTabItem>
32
- <DBTabItem>Tab 3</DBTabItem>
33
- </DBTabList>
34
- <DBTabPanel>Tab Panel 1</DBTabPanel>
35
- <DBTabPanel>Tab Panel 2</DBTabPanel>
36
- <DBTabPanel>Tab Panel 3</DBTabPanel>
37
- </DBTabs>
38
- <DBTabs behavior="arrows">
39
- <DBTabList>
40
- <DBTabItem>Tab 1</DBTabItem>
41
- <DBTabItem>Tab 2</DBTabItem>
42
- <DBTabItem>Tab 3</DBTabItem>
43
- </DBTabList>
44
- <DBTabPanel>Tab Panel 1</DBTabPanel>
45
- <DBTabPanel>Tab Panel 2</DBTabPanel>
46
- <DBTabPanel>Tab Panel 3</DBTabPanel>
47
- </DBTabs>
48
- <h2>3. Initial Selected Index</h2>
49
- <DBTabs initialSelectedIndex={1}>
50
- <DBTabList>
51
- <DBTabItem>Tab 1</DBTabItem>
52
- <DBTabItem>Tab 2</DBTabItem>
53
- <DBTabItem>Tab 3</DBTabItem>
54
- </DBTabList>
55
- <DBTabPanel>Tab Panel 1</DBTabPanel>
56
- <DBTabPanel>Tab Panel 2</DBTabPanel>
57
- <DBTabPanel>Tab Panel 3</DBTabPanel>
58
- </DBTabs>
59
- <h2>4. Initial Selected Mode</h2>
60
- <DBTabs initialSelectedMode="manually">
61
- <DBTabList>
62
- <DBTabItem>Tab 1</DBTabItem>
63
- <DBTabItem>Tab 2</DBTabItem>
64
- <DBTabItem>Tab 3</DBTabItem>
65
- </DBTabList>
66
- <DBTabPanel>Tab Panel 1</DBTabPanel>
67
- <DBTabPanel>Tab Panel 2</DBTabPanel>
68
- <DBTabPanel>Tab Panel 3</DBTabPanel>
69
- </DBTabs>
70
- </>
71
- );
72
- }
73
-
74
- export default Tabs;
75
- ```
package/agent/Tag.md DELETED
@@ -1,56 +0,0 @@
1
-
2
-
3
- # Tag Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBButton } from "@db-ux/react-react-core-components";
8
- import { DBCheckbox } from "@db-ux/react-react-core-components";
9
- import { DBLink } from "@db-ux/react-react-core-components";
10
- import { DBRadio } from "@db-ux/react-react-core-components";
11
- import { DBTag } from "@db-ux/react-react-core-components";
12
-
13
- function Tag(props: any) {
14
- return (
15
- <>
16
- <h1>DBTag Documentation Examples</h1>
17
- <h2>1. Default Tags</h2>
18
- <DBTag>
19
- <DBButton>Tag as Button</DBButton>
20
- </DBTag>
21
- <DBTag>
22
- <DBLink>Tag as Link</DBLink>
23
- </DBTag>
24
- <DBTag>
25
- <DBCheckbox>Tag as Checkbox</DBCheckbox>
26
- </DBTag>
27
- <DBTag>
28
- <DBRadio>Tag as Radio</DBRadio>
29
- </DBTag>
30
- <DBTag>Static Tag</DBTag>
31
- <h2>2. Overflow Example</h2>
32
- <DBTag overflow>
33
- <span>Static Tag with overflow</span>
34
- </DBTag>
35
- <h2>3. Removable Tag</h2>
36
- <DBTag
37
- behavior="removable"
38
- onRemove={(event) => console.log("Tag removed")}
39
- >
40
- Removable Tag
41
- </DBTag>
42
- <h2>4. Semantic Variants</h2>
43
- <DBTag semantic="adaptive">Adaptive Tag</DBTag>
44
- <DBTag semantic="neutral">Neutral Tag</DBTag>
45
- <DBTag semantic="critical">Critical Tag</DBTag>
46
- <DBTag semantic="informational">Informational Tag</DBTag>
47
- <DBTag semantic="warning">Warning Tag</DBTag>
48
- <DBTag semantic="successful">Successful Tag</DBTag>
49
- <h2>5. Icon Support</h2>
50
- <DBTag icon="user">Tag with Icon</DBTag>
51
- </>
52
- );
53
- }
54
-
55
- export default Tag;
56
- ```
package/agent/Textarea.md DELETED
@@ -1,45 +0,0 @@
1
-
2
-
3
- # Textarea Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBTextarea } from "@db-ux/react-react-core-components";
8
-
9
- function Textarea(props: any) {
10
- return (
11
- <>
12
- <h1>DBTextarea Documentation Examples</h1>
13
- <h2>1. Default Textarea</h2>
14
- <DBTextarea label="Default Textarea" />
15
- <h2>2. Resizable Variants</h2>
16
- <DBTextarea resize="none" label="No Resize" />
17
- <DBTextarea resize="both" label="Resize Both" />
18
- <DBTextarea resize="horizontal" label="Resize Horizontal" />
19
- <DBTextarea resize="vertical" label="Resize Vertical" />
20
- <h2>3. Rows and Columns</h2>
21
- <DBTextarea label="Custom Rows and Columns" rows={5} cols={30} />
22
- <h2>4. Wrap Variants</h2>
23
- <DBTextarea wrap="hard" label="Hard Wrap" />
24
- <DBTextarea wrap="soft" label="Soft Wrap" />
25
- <DBTextarea wrap="off" label="No Wrap" />
26
- <h2>5. Disabled State</h2>
27
- <DBTextarea label="Disabled Textarea" disabled />
28
- <h2>6. Placeholder Examples</h2>
29
- <DBTextarea placeholder="Enter text here" label="With Placeholder" />
30
- <h2>7. Message Property Example</h2>
31
- <DBTextarea
32
- label="Textarea with Message"
33
- message="This is a helper message."
34
- />
35
- <h2>8. Input Event Example</h2>
36
- <DBTextarea
37
- label="Input Event"
38
- onInput={(event) => console.log("Input event:", event.target.value)}
39
- />
40
- </>
41
- );
42
- }
43
-
44
- export default Textarea;
45
- ```
package/agent/Tooltip.md DELETED
@@ -1,47 +0,0 @@
1
-
2
-
3
- # Tooltip Examples (react)
4
-
5
- ```tsx
6
- import * as React from "react";
7
- import { DBButton } from "@db-ux/react-react-core-components";
8
- import { DBTooltip } from "@db-ux/react-react-core-components";
9
-
10
- function Tooltip(props: any) {
11
- return (
12
- <>
13
- <h1>DBTooltip Documentation Examples</h1>
14
- <h2>1. Default Tooltip</h2>
15
- <DBButton>
16
- Hover on me to open Tooltip
17
- <DBTooltip>Tooltip</DBTooltip>
18
- </DBButton>
19
- <h2>2. Tooltip Variants</h2>
20
- <DBButton>
21
- Description Tooltip
22
- <DBTooltip variant="description">Description Tooltip Content</DBTooltip>
23
- </DBButton>
24
- <DBButton>
25
- Label Tooltip
26
- <DBTooltip variant="label">Label Tooltip Content</DBTooltip>
27
- </DBButton>
28
- <h2>3. Tooltip with Arrow</h2>
29
- <DBButton>
30
- Tooltip with Arrow
31
- <DBTooltip showArrow>Tooltip Content with Arrow</DBTooltip>
32
- </DBButton>
33
- <h2>4. Placement Variants</h2>
34
- <DBButton>
35
- Top Placement
36
- <DBTooltip placement="top">Tooltip Content at Top</DBTooltip>
37
- </DBButton>
38
- <DBButton>
39
- Bottom Placement
40
- <DBTooltip placement="bottom">Tooltip Content at Bottom</DBTooltip>
41
- </DBButton>
42
- </>
43
- );
44
- }
45
-
46
- export default Tooltip;
47
- ```
@@ -1,31 +0,0 @@
1
- - Use "@db-ux/react-core-components" as import for components:
2
- - use for `DBDrawer` or `Drawer` the file __agent-path__/Drawer.md
3
- - use for `DBTooltip` or `Tooltip` the file __agent-path__/Tooltip.md
4
- - use for `DBTextarea` or `Textarea` the file __agent-path__/Textarea.md
5
- - use for `DBTag` or `Tag` the file __agent-path__/Tag.md
6
- - use for `DBTabs` or `Tabs` the file __agent-path__/Tabs.md
7
- - use for `DBTabItem` or `TabItem` the file __agent-path__/TabItem.md
8
- - use for `DBSwitch` or `Switch` the file __agent-path__/Switch.md
9
- - use for `DBStack` or `Stack` the file __agent-path__/Stack.md
10
- - use for `DBSelect` or `Select` the file __agent-path__/Select.md
11
- - use for `DBSection` or `Section` the file __agent-path__/Section.md
12
- - use for `DBRadio` or `Radio` the file __agent-path__/Radio.md
13
- - use for `DBPopover` or `Popover` the file __agent-path__/Popover.md
14
- - use for `DBPage` or `Page` the file __agent-path__/Page.md
15
- - use for `DBNotification` or `Notification` the file __agent-path__/Notification.md
16
- - use for `DBNavigationItem` or `NavigationItem` the file __agent-path__/NavigationItem.md
17
- - use for `DBNavigation` or `Navigation` the file __agent-path__/Navigation.md
18
- - use for `DBLink` or `Link` the file __agent-path__/Link.md
19
- - use for `DBInput` or `Input` the file __agent-path__/Input.md
20
- - use for `DBInfotext` or `Infotext` the file __agent-path__/Infotext.md
21
- - use for `DBIcon` or `Icon` the file __agent-path__/Icon.md
22
- - use for `DBHeader` or `Header` the file __agent-path__/Header.md
23
- - use for `DBDivider` or `Divider` the file __agent-path__/Divider.md
24
- - use for `DBCustomSelect` or `CustomSelect` the file __agent-path__/CustomSelect.md
25
- - use for `DBCheckbox` or `Checkbox` the file __agent-path__/Checkbox.md
26
- - use for `DBCard` or `Card` the file __agent-path__/Card.md
27
- - use for `DBButton` or `Button` the file __agent-path__/Button.md
28
- - use for `DBBrand` or `Brand` the file __agent-path__/Brand.md
29
- - use for `DBBadge` or `Badge` the file __agent-path__/Badge.md
30
- - use for `DBAccordionItem` or `AccordionItem` the file __agent-path__/AccordionItem.md
31
- - use for `DBAccordion` or `Accordion` the file __agent-path__/Accordion.md
@@ -1,3 +0,0 @@
1
- import * as React from "react";
2
- declare const DBBrand: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "text" | "icon" | keyof import("../..").GlobalProps | "hideLogo" | "showIcon"> & import("./model").DBBrandDefaultProps & import("../..").GlobalProps & import("../..").IconProps & import("../..").ShowIconProps & import("../..").TextProps & React.RefAttributes<any>>;
3
- export default DBBrand;
@@ -1,13 +0,0 @@
1
- "use client";
2
- import * as React from "react";
3
- import { filterPassingProps, getRootProps } from "../../utils/react";
4
- import { useRef, forwardRef } from "react";
5
- import { DEFAULT_ICON } from "../../shared/constants";
6
- import { cls, getBooleanAsString } from "../../utils";
7
- function DBBrandFn(props, component) {
8
- var _a;
9
- const _ref = component || useRef(component);
10
- return (React.createElement("div", Object.assign({ ref: _ref }, filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { "data-icon": props.hideLogo ? "none" : (_a = props.icon) !== null && _a !== void 0 ? _a : DEFAULT_ICON, "data-show-icon": getBooleanAsString(props.showIcon), id: props.id }, getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { className: cls("db-brand", props.className) }), props.text ? React.createElement(React.Fragment, null, props.text) : React.createElement(React.Fragment, null, props.children)));
11
- }
12
- const DBBrand = forwardRef(DBBrandFn);
13
- export default DBBrand;
@@ -1 +0,0 @@
1
- export { default as DBBrand } from './brand';
@@ -1 +0,0 @@
1
- export { default as DBBrand } from './brand';
@@ -1,10 +0,0 @@
1
- import { GlobalProps, GlobalState, IconProps, ShowIconProps, TextProps } from '../../shared/model';
2
- export type DBBrandDefaultProps = {
3
- /**
4
- * @deprecated: Disable the default logo svg to pass in a custom `img`
5
- */
6
- hideLogo?: boolean;
7
- };
8
- export type DBBrandProps = DBBrandDefaultProps & GlobalProps & IconProps & ShowIconProps & TextProps;
9
- export type DBBrandDefaultState = {};
10
- export type DBBrandState = DBBrandDefaultState & GlobalState;
@@ -1,3 +0,0 @@
1
- import * as React from "react";
2
- declare const DBHeader: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "width" | keyof import("../..").GlobalProps | keyof import("../..").ToggleEventProps | keyof import("./model").DBHeaderDefaultProps> & import("./model").DBHeaderDefaultProps & import("../..").GlobalProps & import("../..").ToggleEventProps & import("../..").ContainerWidthProps & React.RefAttributes<any>>;
3
- export default DBHeader;
@@ -1,67 +0,0 @@
1
- "use client";
2
- import * as React from "react";
3
- import { filterPassingProps, getRootProps } from "../../utils/react";
4
- import { useState, useRef, useEffect, forwardRef } from "react";
5
- import { DEFAULT_BURGER_MENU } from "../../shared/constants";
6
- import { addAttributeToChildren, cls, getBoolean } from "../../utils";
7
- import { isEventTargetNavigationItem } from "../../utils/navigation";
8
- import DBButton from "../button/button";
9
- import DBDrawer from "../drawer/drawer";
10
- function DBHeaderFn(props, component) {
11
- var _a;
12
- const _ref = component || useRef(component);
13
- const [initialized, setInitialized] = useState(() => false);
14
- const [forcedToMobile, setForcedToMobile] = useState(() => false);
15
- function handleToggle(event) {
16
- if (event && event.stopPropagation) {
17
- event.stopPropagation();
18
- }
19
- const open = !getBoolean(props.drawerOpen, "drawerOpen");
20
- if (props.onToggle) {
21
- props.onToggle(open);
22
- }
23
- }
24
- function handleNavigationItemClick(event) {
25
- if (isEventTargetNavigationItem(event)) {
26
- handleToggle();
27
- }
28
- }
29
- useEffect(() => {
30
- setInitialized(true);
31
- }, []);
32
- useEffect(() => {
33
- if (initialized && _ref.current && props.forceMobile) {
34
- // Adds this attribute to the header to enable all styling which would have
35
- // @media screen and (min-width: $db-screens-m) to show mobile navigation on a desktop device
36
- addAttributeToChildren(_ref.current, {
37
- key: "data-force-mobile",
38
- value: "true",
39
- });
40
- setForcedToMobile(true);
41
- }
42
- }, [initialized, _ref.current]);
43
- return (React.createElement("header", Object.assign({ ref: _ref }, filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font", "onToggle"]), getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { className: cls("db-header", props.className), id: props.id, "data-width": props.width, "data-on-forcing-mobile": props.forceMobile && !forcedToMobile }),
44
- React.createElement(DBDrawer, { className: "db-header-drawer", spacing: "small", rounded: true, open: getBoolean(props.drawerOpen), onClose: (event) => handleToggle() },
45
- React.createElement("div", { className: "db-header-drawer-navigation" },
46
- React.createElement("div", { className: "db-header-navigation", onClick: (event) => handleNavigationItemClick(event) }, props.children),
47
- React.createElement("div", { className: "db-header-meta-navigation" },
48
- React.createElement(React.Fragment, null, props.metaNavigation))),
49
- React.createElement("div", { className: "db-header-secondary-action" },
50
- React.createElement(React.Fragment, null, props.secondaryAction))),
51
- React.createElement("div", { className: "db-header-meta-navigation" },
52
- React.createElement(React.Fragment, null, props.metaNavigation)),
53
- React.createElement("div", { className: "db-header-navigation-bar" },
54
- React.createElement("div", { className: "db-header-brand-container" },
55
- React.createElement(React.Fragment, null, props.brand)),
56
- React.createElement("div", { className: "db-header-navigation-container" },
57
- React.createElement("div", { className: "db-header-navigation" }, props.children),
58
- React.createElement("div", { className: "db-header-primary-action" },
59
- React.createElement(React.Fragment, null, props.primaryAction))),
60
- React.createElement("div", { className: "db-header-action-container" },
61
- React.createElement("div", { className: "db-header-burger-menu-container" },
62
- React.createElement(DBButton, { icon: "menu", variant: "ghost", noText: true, onClick: (event) => handleToggle() }, (_a = props.burgerMenuLabel) !== null && _a !== void 0 ? _a : DEFAULT_BURGER_MENU)),
63
- React.createElement("div", { className: "db-header-secondary-action" },
64
- React.createElement(React.Fragment, null, props.secondaryAction))))));
65
- }
66
- const DBHeader = forwardRef(DBHeaderFn);
67
- export default DBHeader;
@@ -1 +0,0 @@
1
- export { default as DBHeader } from './header';
@@ -1 +0,0 @@
1
- export { default as DBHeader } from './header';