this.gui 1.0.16 → 1.0.18

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 (104) hide show
  1. package/README.md +191 -23
  2. package/dist/style.css +1 -1
  3. package/dist/this-gui.es.js +2879 -1945
  4. package/dist/this-gui.umd.js +24 -24
  5. package/package.json +3 -4
  6. package/src/App.jsx +19 -40
  7. package/src/CreatePage.jsx +61 -0
  8. package/src/MDXEditor.jsx +51 -0
  9. package/src/Page.jsx +28 -0
  10. package/src/PageDashboard.jsx +56 -0
  11. package/src/SiteBuilder.jsx +95 -26
  12. package/src/example.json +43 -0
  13. package/src/scripts/ComponentRegistry.js +70 -0
  14. package/src/scripts/postinstall.js +60 -10
  15. package/src/scripts/renderComponents.js +11 -0
  16. package/src/stories/Atoms/Badge/Badge.css +1 -0
  17. package/src/stories/Atoms/Badge/Badge.stories.jsx +1 -0
  18. package/src/stories/Atoms/Button/Button.css +259 -58
  19. package/src/stories/Atoms/Button/Button.jsx +8 -11
  20. package/src/stories/Atoms/Button/Button.stories.jsx +65 -40
  21. package/src/stories/Atoms/Container/Container.css +420 -39
  22. package/src/stories/Atoms/Container/Container.jsx +98 -36
  23. package/src/stories/Atoms/Container/Container.stories.jsx +120 -79
  24. package/src/stories/Atoms/Grid/Grid.css +160 -0
  25. package/src/stories/Atoms/Grid/Grid.jsx +43 -0
  26. package/src/stories/Atoms/Grid/Grid.stories.jsx +84 -0
  27. package/src/stories/Atoms/Link/Link.css +6 -26
  28. package/src/stories/Atoms/Link/Link.jsx +11 -21
  29. package/src/stories/Atoms/ProgressBar/ProgressBar.css +1 -1
  30. package/src/stories/Atoms/ProgressBar/ProgressBar.jsx +1 -1
  31. package/src/stories/Atoms/ProgressBar/ProgressBar.stories.jsx +1 -1
  32. package/src/stories/Atoms/Section/Section.css +268 -0
  33. package/src/stories/Atoms/Section/Section.jsx +63 -0
  34. package/src/stories/Atoms/Section/Section.stories.jsx +46 -0
  35. package/src/stories/Atoms/TextArea/TextArea.css +1 -0
  36. package/src/stories/Atoms/TextArea/TextArea.jsx +1 -0
  37. package/src/stories/Atoms/TextArea/TextArea.stories.jsx +1 -0
  38. package/src/stories/Atoms/TextInput/TextInput.css +1 -0
  39. package/src/stories/Atoms/TextInput/TextInput.jsx +1 -0
  40. package/src/stories/Atoms/TextInput/TextInput.stories.jsx +1 -0
  41. package/src/stories/Atoms/Toggle/Toggle.css +1 -0
  42. package/src/stories/Atoms/Toggle/Toggle.jsx +1 -0
  43. package/src/stories/Atoms/Toggle/Toggle.stories.jsx +1 -0
  44. package/src/stories/Atoms/Tooltip/Tooltip.css +1 -0
  45. package/src/stories/Atoms/Tooltip/Tooltip.jsx +1 -0
  46. package/src/stories/Atoms/Tooltip/Tooltip.stories.jsx +1 -0
  47. package/src/stories/Atoms/Video/Video.css +1 -0
  48. package/src/stories/Atoms/Video/Video.jsx +1 -0
  49. package/src/stories/Atoms/Video/Video.stories.jsx +1 -0
  50. package/src/stories/Atoms/index.js +4 -0
  51. package/src/stories/Atoms/meta_Atoms.js +4 -1
  52. package/src/stories/Layouts/Accordion/Accordion.css +285 -8
  53. package/src/stories/Layouts/Accordion/Accordion.jsx +62 -19
  54. package/src/stories/Layouts/Accordion/Accordion.stories.jsx +30 -19
  55. package/src/stories/Layouts/index.js +0 -6
  56. package/src/stories/Layouts/meta_Layouts.js +2 -5
  57. package/src/stories/Molecules/Accordion/Accordion.css +1 -1
  58. package/src/stories/Molecules/Accordion/Accordion.jsx +1 -1
  59. package/src/stories/Molecules/Accordion/Accordion.stories.jsx +1 -1
  60. package/src/stories/Molecules/AudioPlayer/AudioPlayer.css +95 -2
  61. package/src/stories/Molecules/AudioPlayer/AudioPlayer.jsx +232 -13
  62. package/src/stories/Molecules/AudioPlayer/AudioPlayer.stories.jsx +46 -11
  63. package/src/stories/Molecules/AvatarWithName/AvatarWithName.css +128 -2
  64. package/src/stories/Molecules/AvatarWithName/AvatarWithName.jsx +69 -14
  65. package/src/stories/Molecules/AvatarWithName/AvatarWithName.stories.jsx +12 -12
  66. package/src/stories/Molecules/Breadcrumbs/Breadcrumbs.css +145 -2
  67. package/src/stories/Molecules/Breadcrumbs/Breadcrumbs.jsx +39 -13
  68. package/src/stories/Molecules/Breadcrumbs/Breadcrumbs.stories.jsx +27 -11
  69. package/src/stories/Molecules/ButtonGroup/ButtonGroup.css +463 -2
  70. package/src/stories/Molecules/ButtonGroup/ButtonGroup.jsx +34 -12
  71. package/src/stories/Molecules/ButtonGroup/ButtonGroup.stories.jsx +36 -12
  72. package/src/stories/Molecules/Card/Card.css +39 -2
  73. package/src/stories/Molecules/Card/Card.jsx +80 -13
  74. package/src/stories/Molecules/Card/Card.stories.jsx +27 -13
  75. package/src/stories/Molecules/ComparisonTable/ComparisonTable.css +33 -2
  76. package/src/stories/Molecules/ComparisonTable/ComparisonTable.jsx +91 -12
  77. package/src/stories/Molecules/ComparisonTable/ComparisonTable.stories.jsx +73 -12
  78. package/src/stories/Molecules/Dropdown/Dropdown.css +192 -0
  79. package/src/stories/Molecules/Dropdown/Dropdown.jsx +96 -0
  80. package/src/stories/Molecules/Dropdown/Dropdown.stories.jsx +45 -0
  81. package/src/stories/Molecules/index.js +2 -1
  82. package/src/stories/Molecules/meta_Molecules.js +6 -3
  83. package/src/themes/styles/neurons/light.css +94 -204
  84. package/dist/Styles.md +0 -446
  85. package/dist/context.md +0 -942
  86. package/src/Theme.jsx +0 -28
  87. package/src/components/CodeBlock.jsx +0 -22
  88. package/src/components/ComponentFactory.jsx +0 -36
  89. package/src/components/ComponentRegistry.js +0 -21
  90. package/src/scripts/generateComponents.js +0 -166
  91. package/src/scripts/verifyLayouts.js +0 -175
  92. package/src/scripts/verifyMolecules.js +0 -158
  93. package/src/scripts/verifyTemplates.js +0 -154
  94. package/src/scripts/verify_and_install_atoms.js +0 -211
  95. package/src/stories/Layouts/DropdownMenu/DropdownMenu.css +0 -16
  96. package/src/stories/Layouts/DropdownMenu/DropdownMenu.jsx +0 -31
  97. package/src/stories/Layouts/DropdownMenu/DropdownMenu.stories.jsx +0 -28
  98. package/src/stories/Layouts/Grid/Grid.css +0 -4
  99. package/src/stories/Layouts/Grid/Grid.jsx +0 -13
  100. package/src/stories/Layouts/Grid/Grid.stories.jsx +0 -28
  101. package/src/stories/Layouts/Section/Section.css +0 -16
  102. package/src/stories/Layouts/Section/Section.jsx +0 -31
  103. package/src/stories/Layouts/Section/Section.stories.jsx +0 -28
  104. /package/src/themes/{README.md → README_Styles.md} +0 -0
@@ -1,4 +1,147 @@
1
-
1
+ /*this.GUI/src/stories/Molecules/Breadcrumbs/Breadcrumbs.css*/
2
+ Base Styles */
2
3
  .breadcrumbs {
3
- /* Default styles for Breadcrumbs */
4
+ display: flex;
5
+ align-items: center;
6
+ font-size: var(--font-size-medium);
7
+ color: var(--text-color);
8
+ }
9
+
10
+ .breadcrumbs__item {
11
+ display: flex;
12
+ align-items: center;
13
+ }
14
+
15
+ .breadcrumbs__link {
16
+ text-decoration: none;
17
+ cursor: pointer;
18
+ color: inherit;
19
+ background: none;
20
+ border: none;
21
+ font-size: inherit;
22
+ padding: 0;
23
+ }
24
+
25
+ .breadcrumbs__separator {
26
+ margin: 0 8px;
27
+ }
28
+
29
+ /* Active State (Bold Text) */
30
+ .breadcrumbs__active {
31
+ font-weight: bold;
32
+ }
33
+
34
+ /* Size Variants */
35
+ .breadcrumbs--small {
36
+ font-size: 0.75rem;
37
+ }
38
+
39
+ .breadcrumbs--medium {
40
+ font-size: 1rem;
41
+ }
42
+
43
+ .breadcrumbs--large {
44
+ font-size: 1.25rem;
45
+ }
46
+
47
+ /* Color Variants for Breadcrumb Links */
48
+ .breadcrumbs--primary .breadcrumbs__link {
49
+ color: var(--primary-color);
50
+ }
51
+
52
+ .breadcrumbs--secondary .breadcrumbs__link {
53
+ color: var(--secondary-color);
54
+ }
55
+
56
+ .breadcrumbs--info .breadcrumbs__link {
57
+ color: var(--info-color);
58
+ }
59
+
60
+ .breadcrumbs--warning .breadcrumbs__link {
61
+ color: var(--warning-color);
62
+ }
63
+
64
+ .breadcrumbs--alert .breadcrumbs__link {
65
+ color: var(--alert-color);
66
+ }
67
+
68
+ .breadcrumbs--success .breadcrumbs__link {
69
+ color: var(--success-color);
70
+ }
71
+
72
+ .breadcrumbs--neutral .breadcrumbs__link {
73
+ color: var(--neutral-color);
74
+ }
75
+
76
+ .breadcrumbs--dark .breadcrumbs__link {
77
+ color: var(--dark-color);
4
78
  }
79
+
80
+ /* Classy Palette */
81
+ .breadcrumbs--classy-color-1 .breadcrumbs__link {
82
+ color: var(--classy-color-1);
83
+ }
84
+
85
+ .breadcrumbs--classy-color-2 .breadcrumbs__link {
86
+ color: var(--classy-color-2);
87
+ }
88
+
89
+ .breadcrumbs--classy-color-3 .breadcrumbs__link {
90
+ color: var(--classy-color-3);
91
+ }
92
+
93
+ .breadcrumbs--classy-color-4 .breadcrumbs__link {
94
+ color: var(--classy-color-4);
95
+ }
96
+
97
+ .breadcrumbs--classy-color-5 .breadcrumbs__link {
98
+ color: var(--classy-color-5);
99
+ }
100
+
101
+ /* Small Switch Palette */
102
+ .breadcrumbs--small-switch-color-1 .breadcrumbs__link {
103
+ color: var(--small-switch-color-1);
104
+ }
105
+
106
+ .breadcrumbs--small-switch-color-2 .breadcrumbs__link {
107
+ color: var(--small-switch-color-2);
108
+ }
109
+
110
+ /* Natural Palette */
111
+ .breadcrumbs--natural-color-1 .breadcrumbs__link {
112
+ color: var(--natural-color-1);
113
+ }
114
+
115
+ .breadcrumbs--natural-color-2 .breadcrumbs__link {
116
+ color: var(--natural-color-2);
117
+ }
118
+
119
+ .breadcrumbs--natural-color-3 .breadcrumbs__link {
120
+ color: var(--natural-color-3);
121
+ }
122
+
123
+ /* Grey Friends */
124
+ .breadcrumbs--grey-friend-1 .breadcrumbs__link {
125
+ color: var(--grey-friend-1);
126
+ }
127
+
128
+ .breadcrumbs--grey-friend-2 .breadcrumbs__link {
129
+ color: var(--grey-friend-2);
130
+ }
131
+
132
+ /* Shades */
133
+ .breadcrumbs--shade-1 .breadcrumbs__link {
134
+ color: var(--shade-1);
135
+ }
136
+
137
+ .breadcrumbs--shade-2 .breadcrumbs__link {
138
+ color: var(--shade-2);
139
+ }
140
+
141
+ .breadcrumbs--shade-3 .breadcrumbs__link {
142
+ color: var(--shade-3);
143
+ }
144
+
145
+ .breadcrumbs--shade-4 .breadcrumbs__link {
146
+ color: var(--shade-4);
147
+ }
@@ -1,25 +1,51 @@
1
-
1
+ //this.GUI/src/stories/Molecules/Breadcrumbs/Breadcrumbs.jsx
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import './Breadcrumbs.css';
5
5
 
6
- /**
7
- * Breadcrumbs component
8
- */
9
- export const Breadcrumbs = (props) => {
6
+ export const Breadcrumbs = ({ items, separator, color, size, onItemClick }) => {
10
7
  return (
11
- <div className="breadcrumbs" {...props}>
12
- {/* Component implementation */}
13
- </div>
8
+ <nav className={`breadcrumbs breadcrumbs--${color} breadcrumbs--${size}`}>
9
+ {items.map((item, index) => (
10
+ <span key={item.label} className="breadcrumbs__item">
11
+ <button
12
+ className={`breadcrumbs__link ${item.active ? 'breadcrumbs__active' : ''}`}
13
+ onClick={() => onItemClick(item)}
14
+ >
15
+ {item.label}
16
+ </button>
17
+ {index < items.length - 1 && (
18
+ <span className="breadcrumbs__separator">{separator}</span>
19
+ )}
20
+ </span>
21
+ ))}
22
+ </nav>
14
23
  );
15
24
  };
16
25
 
17
26
  Breadcrumbs.propTypes = {
18
- // Define prop types here
27
+ items: PropTypes.arrayOf(
28
+ PropTypes.shape({
29
+ label: PropTypes.string.isRequired,
30
+ active: PropTypes.bool, // To mark the active breadcrumb
31
+ })
32
+ ).isRequired,
33
+ separator: PropTypes.string,
34
+ color: PropTypes.oneOf([
35
+ 'primary', 'secondary', 'info', 'warning', 'alert', 'success', 'neutral', 'dark',
36
+ 'classy-color-1', 'classy-color-2', 'classy-color-3', 'classy-color-4', 'classy-color-5',
37
+ 'small-switch-color-1', 'small-switch-color-2',
38
+ 'natural-color-1', 'natural-color-2', 'natural-color-3',
39
+ 'grey-friend-1', 'grey-friend-2',
40
+ 'shade-1', 'shade-2', 'shade-3', 'shade-4'
41
+ ]),
42
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
43
+ onItemClick: PropTypes.func,
19
44
  };
20
45
 
21
46
  Breadcrumbs.defaultProps = {
22
- // Define default props here
23
- };
24
-
25
- export default Breadcrumbs;
47
+ separator: '/',
48
+ color: 'primary',
49
+ size: 'medium',
50
+ onItemClick: () => {}, // Default click handler does nothing
51
+ };
@@ -1,20 +1,36 @@
1
-
1
+ //this.GUI/src/stories/Molecules/Breadcrumbs/Breadcrumbs.stories.jsx
2
+ import React from 'react';
2
3
  import { Breadcrumbs } from './Breadcrumbs';
3
4
 
4
- // Storybook configuration for Breadcrumbs component
5
5
  export default {
6
6
  title: 'Molecules/Navigation/Breadcrumbs',
7
7
  component: Breadcrumbs,
8
- parameters: {
9
- layout: 'centered',
10
- },
11
8
  argTypes: {
12
- // Define argTypes here
9
+ separator: { control: 'text', defaultValue: '>' },
10
+ color: {
11
+ control: {
12
+ type: 'select',
13
+ options: [
14
+ 'primary', 'secondary', 'info', 'warning', 'alert', 'success', 'neutral', 'dark',
15
+ 'classy-color-1', 'classy-color-2', 'classy-color-3', 'classy-color-4', 'classy-color-5',
16
+ 'small-switch-color-1', 'small-switch-color-2',
17
+ 'natural-color-1', 'natural-color-2', 'natural-color-3',
18
+ 'grey-friend-1', 'grey-friend-2',
19
+ 'shade-1', 'shade-2', 'shade-3', 'shade-4'
20
+ ],
21
+ },
22
+ },
23
+ size: {
24
+ control: { type: 'select', options: ['small', 'medium', 'large'], defaultValue: 'medium' },
25
+ },
13
26
  },
14
27
  };
15
28
 
16
- export const Default = {
17
- args: {
18
- // Define default args here
19
- },
20
- };
29
+ const items = [
30
+ { label: 'Home', link: '/' },
31
+ { label: 'Products', link: '/products' },
32
+ { label: 'Laptops', link: '/products/laptops', active: true }, // Mark this breadcrumb as active
33
+ { label: 'MacBook Pro' }, // No link, indicates the current page
34
+ ];
35
+
36
+ export const DefaultBreadcrumbs = (args) => <Breadcrumbs {...args} items={items} />;