this.gui 1.0.14 → 1.0.16
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 -39
- package/dist/style.css +1 -1
- package/dist/this-gui.es.js +3751 -1882
- package/dist/this-gui.umd.js +34 -22
- package/package.json +14 -12
- package/src/App.jsx +50 -21
- package/src/SiteBuilder.jsx +39 -0
- package/src/index.mdx +10 -0
- package/src/main.jsx +11 -14
- package/src/scripts/postinstall.js +28 -31
- package/src/scripts/verifyLayouts.js +175 -0
- package/src/scripts/verifyTemplates.js +154 -0
- package/src/stories/Atoms/Alert/Alert.css +196 -14
- package/src/stories/Atoms/Alert/Alert.jsx +43 -28
- package/src/stories/Atoms/Alert/Alert.stories.jsx +154 -28
- package/src/stories/Atoms/Audio/Audio.css +246 -16
- package/src/stories/Atoms/Audio/Audio.jsx +204 -29
- package/src/stories/Atoms/Audio/Audio.stories.jsx +178 -28
- package/src/stories/Atoms/Badge/Badge.css +234 -15
- package/src/stories/Atoms/Badge/Badge.jsx +44 -31
- package/src/stories/Atoms/Badge/Badge.stories.jsx +108 -29
- package/src/stories/Atoms/Button/Button.css +106 -45
- package/src/stories/Atoms/Button/Button.jsx +31 -82
- package/src/stories/Atoms/Button/Button.stories.jsx +170 -40
- package/src/stories/Atoms/Caption/Caption.css +156 -16
- package/src/stories/Atoms/Caption/Caption.jsx +62 -31
- package/src/stories/Atoms/Caption/Caption.stories.jsx +194 -28
- package/src/stories/Atoms/Checkbox/Checkbox.css +168 -15
- package/src/stories/Atoms/Checkbox/Checkbox.jsx +73 -31
- package/src/stories/Atoms/Checkbox/Checkbox.stories.jsx +98 -27
- package/src/stories/Atoms/Container/Container.css +75 -15
- package/src/stories/Atoms/Container/Container.jsx +41 -28
- package/src/stories/Atoms/Container/Container.stories.jsx +92 -29
- package/src/stories/Atoms/Divider/Divider.css +131 -13
- package/src/stories/Atoms/Divider/Divider.jsx +54 -33
- package/src/stories/Atoms/Divider/Divider.stories.jsx +93 -29
- package/src/stories/Atoms/Heading/Heading.css +99 -16
- package/src/stories/Atoms/Heading/Heading.jsx +57 -29
- package/src/stories/Atoms/Heading/Heading.stories.jsx +117 -28
- package/src/stories/Atoms/Icon/Icon.css +219 -27
- package/src/stories/Atoms/Icon/Icon.jsx +67 -38
- package/src/stories/Atoms/Icon/Icon.stories.jsx +156 -51
- package/src/stories/Atoms/Image/Image.css +231 -15
- package/src/stories/Atoms/Image/Image.jsx +166 -32
- package/src/stories/Atoms/Image/Image.stories.jsx +319 -28
- package/src/stories/Atoms/Label/Label.css +158 -16
- package/src/stories/Atoms/Label/Label.jsx +61 -31
- package/src/stories/Atoms/Label/Label.stories.jsx +167 -28
- package/src/stories/Atoms/Link/Link.css +58 -16
- package/src/stories/Atoms/Link/Link.jsx +73 -32
- package/src/stories/Atoms/Link/Link.stories.jsx +141 -29
- package/src/stories/Atoms/Loader/Loader.css +93 -16
- package/src/stories/Atoms/Loader/Loader.jsx +47 -30
- package/src/stories/Atoms/Loader/Loader.stories.jsx +86 -28
- package/src/stories/Atoms/Logo/Logo.css +94 -0
- package/src/stories/Atoms/Logo/Logo.jsx +53 -0
- package/src/stories/Atoms/Logo/Logo.stories.jsx +120 -0
- package/src/stories/Atoms/Paragraph/Paragraph.css +167 -16
- package/src/stories/Atoms/Paragraph/Paragraph.jsx +67 -31
- package/src/stories/Atoms/Paragraph/Paragraph.stories.jsx +130 -28
- package/src/stories/Atoms/ProgressBar/ProgressBar.css +115 -17
- package/src/stories/Atoms/ProgressBar/ProgressBar.jsx +30 -31
- package/src/stories/Atoms/ProgressBar/ProgressBar.stories.jsx +72 -27
- package/src/stories/Atoms/RadioButton/RadioButton.css +118 -17
- package/src/stories/Atoms/RadioButton/RadioButton.jsx +77 -31
- package/src/stories/Atoms/RadioButton/RadioButton.stories.jsx +99 -27
- package/src/stories/Atoms/Range/Range.css +169 -0
- package/src/stories/Atoms/Range/Range.jsx +87 -0
- package/src/stories/Atoms/Range/Range.stories.jsx +110 -0
- package/src/stories/Atoms/Select/Select.css +74 -16
- package/src/stories/Atoms/Select/Select.jsx +62 -30
- package/src/stories/Atoms/Select/Select.stories.jsx +95 -27
- package/src/stories/Atoms/Slider/Slider.css +77 -16
- package/src/stories/Atoms/Slider/Slider.jsx +119 -31
- package/src/stories/Atoms/Slider/Slider.stories.jsx +77 -28
- package/src/stories/Atoms/Snackbar/Snackbar.css +297 -13
- package/src/stories/Atoms/Snackbar/Snackbar.jsx +62 -31
- package/src/stories/Atoms/Snackbar/Snackbar.stories.jsx +63 -26
- package/src/stories/Atoms/Spacer/Spacer.css +101 -16
- package/src/stories/Atoms/Spacer/Spacer.jsx +26 -32
- package/src/stories/Atoms/Spacer/Spacer.stories.jsx +50 -30
- package/src/stories/Atoms/Spinner/Spinner.css +97 -16
- package/src/stories/Atoms/Spinner/Spinner.jsx +50 -26
- package/src/stories/Atoms/Spinner/Spinner.stories.jsx +47 -30
- package/src/stories/Atoms/Tag/Tag.css +97 -14
- package/src/stories/Atoms/Tag/Tag.jsx +58 -24
- package/src/stories/Atoms/Tag/Tag.stories.jsx +55 -29
- package/src/stories/Atoms/TextArea/TextArea.css +84 -15
- package/src/stories/Atoms/TextArea/TextArea.jsx +107 -31
- package/src/stories/Atoms/TextArea/TextArea.stories.jsx +24 -30
- package/src/stories/Atoms/TextInput/TextInput.css +89 -17
- package/src/stories/Atoms/TextInput/TextInput.jsx +118 -27
- package/src/stories/Atoms/TextInput/TextInput.stories.jsx +52 -25
- package/src/stories/Atoms/Toggle/Toggle.css +105 -17
- package/src/stories/Atoms/Toggle/Toggle.jsx +55 -28
- package/src/stories/Atoms/Toggle/Toggle.stories.jsx +23 -30
- package/src/stories/Atoms/Tooltip/Tooltip.css +367 -14
- package/src/stories/Atoms/Tooltip/Tooltip.jsx +32 -28
- package/src/stories/Atoms/Tooltip/Tooltip.stories.jsx +41 -31
- package/src/stories/Atoms/Video/Video.css +27 -18
- package/src/stories/Atoms/Video/Video.jsx +65 -29
- package/src/stories/Atoms/Video/Video.stories.jsx +29 -30
- package/src/stories/Atoms/index.js +5 -2
- package/src/stories/Atoms/meta_Atoms.js +3 -1
- package/src/stories/Layouts/Accordion/Accordion.css +16 -0
- package/src/stories/Layouts/Accordion/Accordion.jsx +31 -0
- package/src/stories/Layouts/Accordion/Accordion.stories.jsx +28 -0
- package/src/stories/Layouts/DropdownMenu/DropdownMenu.css +16 -0
- package/src/stories/Layouts/DropdownMenu/DropdownMenu.jsx +31 -0
- package/src/stories/Layouts/DropdownMenu/DropdownMenu.stories.jsx +28 -0
- package/src/stories/Layouts/Flexbox/Flexbox.css +16 -0
- package/src/stories/Layouts/Flexbox/Flexbox.jsx +11 -0
- package/src/stories/Layouts/Flexbox/Flexbox.stories.jsx +28 -0
- package/src/stories/Layouts/Footer/Footer.css +16 -0
- package/src/stories/Layouts/Footer/Footer.jsx +31 -0
- package/src/stories/Layouts/Footer/Footer.stories.jsx +28 -0
- package/src/stories/Layouts/Grid/Grid.jsx +2 -4
- package/src/stories/Layouts/Grid/Grid.stories.jsx +20 -18
- package/src/stories/Layouts/Header/Header.css +16 -0
- package/src/stories/Layouts/Header/Header.jsx +31 -0
- package/src/stories/Layouts/Header/Header.stories.jsx +28 -0
- package/src/stories/Layouts/HeroBanner/HeroBanner.css +16 -0
- package/src/stories/Layouts/HeroBanner/HeroBanner.jsx +31 -0
- package/src/stories/Layouts/HeroBanner/HeroBanner.stories.jsx +28 -0
- package/src/stories/Layouts/HeroImageVideo/HeroImageVideo.css +16 -0
- package/src/stories/Layouts/HeroImageVideo/HeroImageVideo.jsx +31 -0
- package/src/stories/Layouts/HeroImageVideo/HeroImageVideo.stories.jsx +28 -0
- package/src/stories/Layouts/Pagination/Pagination.css +16 -0
- package/src/stories/Layouts/Pagination/Pagination.jsx +31 -0
- package/src/stories/Layouts/Pagination/Pagination.stories.jsx +28 -0
- package/src/stories/Layouts/Section/Section.css +16 -0
- package/src/stories/Layouts/Section/Section.jsx +31 -0
- package/src/stories/Layouts/Section/Section.stories.jsx +28 -0
- package/src/stories/Layouts/Sidebar/Sidebar.css +16 -0
- package/src/stories/Layouts/Sidebar/Sidebar.jsx +71 -0
- package/src/stories/Layouts/Sidebar/Sidebar.stories.jsx +28 -0
- package/src/stories/Layouts/Tabs/Tabs.css +16 -0
- package/src/stories/Layouts/Tabs/Tabs.jsx +31 -0
- package/src/stories/Layouts/Tabs/Tabs.stories.jsx +28 -0
- package/src/stories/Layouts/index.js +31 -0
- package/src/stories/Layouts/meta_Layouts.js +31 -0
- package/src/stories/Molecules/Navbar/Navbar.css +63 -59
- package/src/stories/Molecules/Navbar/Navbar.jsx +43 -48
- package/src/stories/Molecules/Navbar/Navbar.stories.jsx +58 -8
- package/src/stories/Molecules/SearchBar/SearchBar.css +66 -1
- package/src/stories/Molecules/SearchBar/SearchBar.jsx +59 -11
- package/src/stories/Molecules/SearchBar/SearchBar.stories.jsx +16 -7
- package/src/stories/Molecules/SelectTheme/SelectTheme.jsx +16 -38
- package/src/stories/Molecules/SelectTheme/SelectTheme.stories.jsx +1 -2
- package/src/stories/Molecules/Sidebar/Sidebar.css +65 -2
- package/src/stories/Molecules/Sidebar/Sidebar.jsx +66 -11
- package/src/stories/Molecules/Sidebar/Sidebar.stories.jsx +20 -5
- package/src/stories/Templates/AdminDashboard/AdminDashboard.css +7 -0
- package/src/stories/Templates/AdminDashboard/AdminDashboard.jsx +24 -0
- package/src/stories/Templates/AdminDashboard/AdminDashboard.stories.jsx +20 -0
- package/src/stories/Templates/CallToAction/CallToAction.css +7 -0
- package/src/stories/Templates/CallToAction/CallToAction.jsx +24 -0
- package/src/stories/Templates/CallToAction/CallToAction.stories.jsx +20 -0
- package/src/stories/Templates/FeaturesList/FeaturesList.css +7 -0
- package/src/stories/Templates/FeaturesList/FeaturesList.jsx +24 -0
- package/src/stories/Templates/FeaturesList/FeaturesList.stories.jsx +20 -0
- package/src/stories/Templates/FormSection/FormSection.css +7 -0
- package/src/stories/Templates/FormSection/FormSection.jsx +24 -0
- package/src/stories/Templates/FormSection/FormSection.stories.jsx +20 -0
- package/src/stories/Templates/HeroSection/HeroSection.css +7 -0
- package/src/stories/Templates/HeroSection/HeroSection.jsx +24 -0
- package/src/stories/Templates/HeroSection/HeroSection.stories.jsx +20 -0
- package/src/stories/Templates/LocationInfo/LocationInfo.css +7 -0
- package/src/stories/Templates/LocationInfo/LocationInfo.jsx +24 -0
- package/src/stories/Templates/LocationInfo/LocationInfo.stories.jsx +20 -0
- package/src/stories/Templates/ProductPage/ProductPage.css +7 -0
- package/src/stories/Templates/ProductPage/ProductPage.jsx +24 -0
- package/src/stories/Templates/ProductPage/ProductPage.stories.jsx +20 -0
- package/src/stories/Templates/RegistrationPage/RegistrationPage.css +7 -0
- package/src/stories/Templates/RegistrationPage/RegistrationPage.jsx +24 -0
- package/src/stories/Templates/RegistrationPage/RegistrationPage.stories.jsx +20 -0
- package/src/stories/Templates/ShoppingCart/ShoppingCart.css +7 -0
- package/src/stories/Templates/ShoppingCart/ShoppingCart.jsx +24 -0
- package/src/stories/Templates/ShoppingCart/ShoppingCart.stories.jsx +20 -0
- package/src/stories/Templates/SidebarTopNav/SidebarTopNav.css +7 -0
- package/src/stories/Templates/SidebarTopNav/SidebarTopNav.jsx +24 -0
- package/src/stories/Templates/SidebarTopNav/SidebarTopNav.stories.jsx +20 -0
- package/src/stories/Templates/SignInPage/SignInPage.css +7 -0
- package/src/stories/Templates/SignInPage/SignInPage.jsx +24 -0
- package/src/stories/Templates/SignInPage/SignInPage.stories.jsx +20 -0
- package/src/stories/Templates/SocialMediaLinks/SocialMediaLinks.css +7 -0
- package/src/stories/Templates/SocialMediaLinks/SocialMediaLinks.jsx +24 -0
- package/src/stories/Templates/SocialMediaLinks/SocialMediaLinks.stories.jsx +20 -0
- package/src/stories/Templates/Testimonials/Testimonials.css +7 -0
- package/src/stories/Templates/Testimonials/Testimonials.jsx +24 -0
- package/src/stories/Templates/Testimonials/Testimonials.stories.jsx +20 -0
- package/src/stories/Templates/index.js +33 -0
- package/src/stories/Templates/{Templates.js → meta_Templates.js} +3 -1
- package/src/stories/assets/logo.png +0 -0
- package/src/stories/assets/logo.svg +106 -0
- package/src/stories/assets/test.svg +3 -0
- package/src/themes/README.md +301 -0
- package/src/themes/ThemeProvider.jsx +47 -22
- package/src/themes/styles/dracula/dark.css +0 -0
- package/src/themes/styles/dracula/light.css +0 -0
- package/src/themes/styles/github/dark.css +0 -0
- package/src/themes/styles/github/light.css +0 -0
- package/src/themes/styles/neurons/dark.css +247 -0
- package/src/themes/styles/neurons/light.css +280 -0
- package/dist/github-3688a83a.js +0 -5
- package/dist/gothic-94a7ecd6.js +0 -5
- package/dist/newsprint-32bf94d9.js +0 -5
- package/dist/night-4a954853.js +0 -5
- package/dist/pixyll-94de4610.js +0 -5
- package/dist/whitey-db68723e.js +0 -5
- package/src/MDXEditor.jsx +0 -32
- package/src/stories/Atoms/RangeInput/RangeInput.css +0 -29
- package/src/stories/Atoms/RangeInput/RangeInput.jsx +0 -41
- package/src/stories/Atoms/RangeInput/RangeInput.stories.jsx +0 -41
- package/src/stories/Components.md +0 -189
- package/src/stories/Layouts/Layout.js +0 -28
- package/src/styles/Header.modules.css +0 -32
- package/src/styles/global.css +0 -59
- package/src/themes/Themes.js +0 -44
- package/src/themes/dark.js +0 -22
- package/src/themes/light.js +0 -22
- package/src/themes/typ/Readme.md +0 -4
- package/src/themes/typ/github/open-sans-v17-latin-ext_latin-700.woff2 +0 -0
- package/src/themes/typ/github/open-sans-v17-latin-ext_latin-700italic.woff2 +0 -0
- package/src/themes/typ/github/open-sans-v17-latin-ext_latin-italic.woff2 +0 -0
- package/src/themes/typ/github/open-sans-v17-latin-ext_latin-regular.woff2 +0 -0
- package/src/themes/typ/github.css +0 -416
- package/src/themes/typ/gothic/GUST e-foundry License.txt +0 -29
- package/src/themes/typ/gothic/didact-gothic-c-ext.woff2 +0 -0
- package/src/themes/typ/gothic/didact-gothic-c.woff2 +0 -0
- package/src/themes/typ/gothic/texgyreadventor-bold.woff +0 -0
- package/src/themes/typ/gothic/texgyreadventor-bolditalic.woff +0 -0
- package/src/themes/typ/gothic/texgyreadventor-italic.woff +0 -0
- package/src/themes/typ/gothic/texgyreadventor-regular.woff +0 -0
- package/src/themes/typ/gothic.css +0 -410
- package/src/themes/typ/newsprint/pt-serif-v11-latin-700.woff2 +0 -0
- package/src/themes/typ/newsprint/pt-serif-v11-latin-700italic.woff2 +0 -0
- package/src/themes/typ/newsprint/pt-serif-v11-latin-italic.woff2 +0 -0
- package/src/themes/typ/newsprint/pt-serif-v11-latin-regular.woff2 +0 -0
- package/src/themes/typ/newsprint.css +0 -622
- package/src/themes/typ/night/codeblock.dark.css +0 -113
- package/src/themes/typ/night/credit.html +0 -1
- package/src/themes/typ/night/cursor.png +0 -0
- package/src/themes/typ/night/cursor@2x.png +0 -0
- package/src/themes/typ/night/mermaid.dark.css +0 -7
- package/src/themes/typ/night/sourcemode.dark.css +0 -38
- package/src/themes/typ/night.css +0 -1032
- package/src/themes/typ/pixyll/lato-v14-latin-300.woff +0 -0
- package/src/themes/typ/pixyll/lato-v14-latin-300italic.woff +0 -0
- package/src/themes/typ/pixyll/lato-v14-latin-900.woff +0 -0
- package/src/themes/typ/pixyll/lato-v14-latin-900italic.woff +0 -0
- package/src/themes/typ/pixyll/merriweather-v19-latin-300.woff +0 -0
- package/src/themes/typ/pixyll/merriweather-v19-latin-300italic.woff +0 -0
- package/src/themes/typ/pixyll/merriweather-v19-latin-700.woff +0 -0
- package/src/themes/typ/pixyll/merriweather-v19-latin-700italic.woff +0 -0
- package/src/themes/typ/pixyll.css +0 -528
- package/src/themes/typ/whitey.css +0 -299
- /package/src/stories/Molecules/{Molecules.js → meta_Molecules.js} +0 -0
- /package/src/stories/Organisms/{Organisms.js → meta_Organisms.js} +0 -0
|
@@ -1,29 +1,180 @@
|
|
|
1
|
+
/* src/stories/Atoms/Paragraph/Paragraph.css */
|
|
1
2
|
|
|
2
3
|
.paragraph {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
background-color: #f0f0f0;
|
|
6
|
-
border: 1px solid #ddd;
|
|
4
|
+
font-family: var(--font-family);
|
|
5
|
+
margin-bottom: var(--spacing-md);
|
|
7
6
|
}
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
/* Size Variants */
|
|
9
|
+
.paragraph--size-xs {
|
|
10
|
+
font-size: var(--font-size-small);
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
.paragraph--
|
|
15
|
-
|
|
16
|
-
border-color: #ccc;
|
|
13
|
+
.paragraph--size-sm {
|
|
14
|
+
font-size: calc(var(--font-size-small) * 1.1);
|
|
17
15
|
}
|
|
18
16
|
|
|
19
|
-
.paragraph--
|
|
20
|
-
|
|
17
|
+
.paragraph--size-md {
|
|
18
|
+
font-size: var(--font-size-base);
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
.paragraph--
|
|
24
|
-
|
|
21
|
+
.paragraph--size-lg {
|
|
22
|
+
font-size: calc(var(--font-size-base) * 1.1);
|
|
25
23
|
}
|
|
26
24
|
|
|
27
|
-
.paragraph--
|
|
28
|
-
|
|
25
|
+
.paragraph--size-xl {
|
|
26
|
+
font-size: calc(var(--font-size-base) * 1.25);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Text Alignment */
|
|
30
|
+
.paragraph--align-left {
|
|
31
|
+
text-align: left;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.paragraph--align-center {
|
|
35
|
+
text-align: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.paragraph--align-right {
|
|
39
|
+
text-align: right;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.paragraph--align-justify {
|
|
43
|
+
text-align: justify;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Font Weight */
|
|
47
|
+
.paragraph--weight-light {
|
|
48
|
+
font-weight: 300;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.paragraph--weight-normal {
|
|
52
|
+
font-weight: var(--font-weight-regular);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.paragraph--weight-bold {
|
|
56
|
+
font-weight: var(--font-weight-bold);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Text Colors */
|
|
60
|
+
.paragraph--color-default {
|
|
61
|
+
color: var(--text-color);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.paragraph--color-muted {
|
|
65
|
+
color: var(--muted-text-color);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.paragraph--color-primary {
|
|
69
|
+
color: var(--primary-color);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.paragraph--color-secondary {
|
|
73
|
+
color: var(--secondary-color);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.paragraph--color-info {
|
|
77
|
+
color: var(--info-color);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.paragraph--color-warning {
|
|
81
|
+
color: var(--warning-color);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.paragraph--color-alert {
|
|
85
|
+
color: var(--alert-color);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.paragraph--color-success {
|
|
89
|
+
color: var(--success-color);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.paragraph--color-dark {
|
|
93
|
+
color: var(--dark-color);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.paragraph--color-neutral {
|
|
97
|
+
color: var(--neutral-color);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Classy Palette */
|
|
101
|
+
.paragraph--color-classy-color-1 {
|
|
102
|
+
color: var(--classy-color-1);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.paragraph--color-classy-color-2 {
|
|
106
|
+
color: var(--classy-color-2);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.paragraph--color-classy-color-3 {
|
|
110
|
+
color: var(--classy-color-3);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.paragraph--color-classy-color-4 {
|
|
114
|
+
color: var(--classy-color-4);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.paragraph--color-classy-color-5 {
|
|
118
|
+
color: var(--classy-color-5);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* Small Switch Palette */
|
|
122
|
+
.paragraph--color-small-switch-color-1 {
|
|
123
|
+
color: var(--small-switch-color-1);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.paragraph--color-small-switch-color-2 {
|
|
127
|
+
color: var(--small-switch-color-2);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Natural Palette */
|
|
131
|
+
.paragraph--color-natural-color-1 {
|
|
132
|
+
color: var(--natural-color-1);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.paragraph--color-natural-color-2 {
|
|
136
|
+
color: var(--natural-color-2);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.paragraph--color-natural-color-3 {
|
|
140
|
+
color: var(--natural-color-3);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Grey Friends */
|
|
144
|
+
.paragraph--color-grey-friend-1 {
|
|
145
|
+
color: var(--grey-friend-1);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.paragraph--color-grey-friend-2 {
|
|
149
|
+
color: var(--grey-friend-2);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Shades */
|
|
153
|
+
.paragraph--color-shade-1 {
|
|
154
|
+
color: var(--shade-1);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.paragraph--color-shade-2 {
|
|
158
|
+
color: var(--shade-2);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.paragraph--color-shade-3 {
|
|
162
|
+
color: var(--shade-3);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.paragraph--color-shade-4 {
|
|
166
|
+
color: var(--shade-4);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Line Height */
|
|
170
|
+
.paragraph--lineHeight-normal {
|
|
171
|
+
line-height: var(--line-height);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.paragraph--lineHeight-tight {
|
|
175
|
+
line-height: 1.3;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.paragraph--lineHeight-loose {
|
|
179
|
+
line-height: 2;
|
|
29
180
|
}
|
|
@@ -1,41 +1,77 @@
|
|
|
1
|
-
|
|
1
|
+
// src/stories/Atoms/Paragraph/Paragraph.jsx
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
+
import classNames from 'classnames';
|
|
4
5
|
import './Paragraph.css';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
export const Paragraph = ({
|
|
8
|
+
text,
|
|
9
|
+
size = 'md', // 'xs', 'sm', 'md', 'lg', 'xl'
|
|
10
|
+
alignment = 'left', // 'left', 'center', 'right', 'justify'
|
|
11
|
+
weight = 'normal', // 'light', 'normal', 'bold'
|
|
12
|
+
color = 'default', // All color options, including the new semantic and palette options
|
|
13
|
+
lineHeight = 'normal', // 'normal', 'tight', 'loose'
|
|
14
|
+
className = '',
|
|
15
|
+
style = {},
|
|
16
|
+
...props
|
|
17
|
+
}) => {
|
|
18
|
+
const paragraphClasses = classNames('paragraph', className, {
|
|
19
|
+
[`paragraph--size-${size}`]: size,
|
|
20
|
+
[`paragraph--align-${alignment}`]: alignment,
|
|
21
|
+
[`paragraph--weight-${weight}`]: weight,
|
|
22
|
+
[`paragraph--color-${color}`]: color,
|
|
23
|
+
[`paragraph--lineHeight-${lineHeight}`]: lineHeight,
|
|
24
|
+
});
|
|
25
|
+
|
|
11
26
|
return (
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
>
|
|
16
|
-
{children}
|
|
17
|
-
</div>
|
|
27
|
+
<p className={paragraphClasses} style={style} {...props}>
|
|
28
|
+
{text}
|
|
29
|
+
</p>
|
|
18
30
|
);
|
|
19
31
|
};
|
|
20
32
|
|
|
21
33
|
Paragraph.propTypes = {
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
/** Text content for the paragraph */
|
|
35
|
+
text: PropTypes.string.isRequired,
|
|
36
|
+
/** Size of the paragraph text */
|
|
37
|
+
size: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
|
|
38
|
+
/** Text alignment */
|
|
39
|
+
alignment: PropTypes.oneOf(['left', 'center', 'right', 'justify']),
|
|
40
|
+
/** Font weight */
|
|
41
|
+
weight: PropTypes.oneOf(['light', 'normal', 'bold']),
|
|
42
|
+
/** Text color */
|
|
43
|
+
color: PropTypes.oneOf([
|
|
44
|
+
'default',
|
|
45
|
+
'muted',
|
|
46
|
+
'primary',
|
|
47
|
+
'secondary',
|
|
48
|
+
'info',
|
|
49
|
+
'warning',
|
|
50
|
+
'alert',
|
|
51
|
+
'success',
|
|
52
|
+
'dark',
|
|
53
|
+
'neutral',
|
|
54
|
+
'classy-color-1',
|
|
55
|
+
'classy-color-2',
|
|
56
|
+
'classy-color-3',
|
|
57
|
+
'classy-color-4',
|
|
58
|
+
'classy-color-5',
|
|
59
|
+
'small-switch-color-1',
|
|
60
|
+
'small-switch-color-2',
|
|
61
|
+
'natural-color-1',
|
|
62
|
+
'natural-color-2',
|
|
63
|
+
'natural-color-3',
|
|
64
|
+
'grey-friend-1',
|
|
65
|
+
'grey-friend-2',
|
|
66
|
+
'shade-1',
|
|
67
|
+
'shade-2',
|
|
68
|
+
'shade-3',
|
|
69
|
+
'shade-4',
|
|
70
|
+
]),
|
|
71
|
+
/** Line height */
|
|
72
|
+
lineHeight: PropTypes.oneOf(['normal', 'tight', 'loose']),
|
|
73
|
+
/** Additional CSS classes */
|
|
74
|
+
className: PropTypes.string,
|
|
75
|
+
/** Inline styles */
|
|
76
|
+
style: PropTypes.object,
|
|
34
77
|
};
|
|
35
|
-
|
|
36
|
-
Paragraph.defaultProps = {
|
|
37
|
-
primary: false,
|
|
38
|
-
size: 'medium',
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export default Paragraph;
|
|
@@ -1,41 +1,143 @@
|
|
|
1
|
-
|
|
1
|
+
// src/stories/Atoms/Paragraph/Paragraph.stories.jsx
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { Paragraph } from './Paragraph';
|
|
4
|
+
import './Paragraph.css';
|
|
3
5
|
|
|
4
|
-
// Storybook configuration for Paragraph component
|
|
5
6
|
export default {
|
|
6
7
|
title: 'Atoms/Text/Paragraph',
|
|
7
8
|
component: Paragraph,
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: 'centered',
|
|
10
|
-
},
|
|
11
9
|
argTypes: {
|
|
12
|
-
|
|
10
|
+
text: {
|
|
11
|
+
control: 'text',
|
|
12
|
+
description: 'Text content for the paragraph.',
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
control: {
|
|
16
|
+
type: 'select',
|
|
17
|
+
options: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
18
|
+
},
|
|
19
|
+
description: 'Size of the paragraph text.',
|
|
20
|
+
},
|
|
21
|
+
alignment: {
|
|
22
|
+
control: {
|
|
23
|
+
type: 'select',
|
|
24
|
+
options: ['left', 'center', 'right', 'justify'],
|
|
25
|
+
},
|
|
26
|
+
description: 'Text alignment.',
|
|
27
|
+
},
|
|
28
|
+
weight: {
|
|
29
|
+
control: {
|
|
30
|
+
type: 'select',
|
|
31
|
+
options: ['light', 'normal', 'bold'],
|
|
32
|
+
},
|
|
33
|
+
description: 'Font weight.',
|
|
34
|
+
},
|
|
35
|
+
color: {
|
|
36
|
+
control: {
|
|
37
|
+
type: 'select',
|
|
38
|
+
options: [
|
|
39
|
+
'default',
|
|
40
|
+
'muted',
|
|
41
|
+
'primary',
|
|
42
|
+
'secondary',
|
|
43
|
+
'info',
|
|
44
|
+
'warning',
|
|
45
|
+
'alert',
|
|
46
|
+
'success',
|
|
47
|
+
'dark',
|
|
48
|
+
'neutral',
|
|
49
|
+
'classy-color-1',
|
|
50
|
+
'classy-color-2',
|
|
51
|
+
'classy-color-3',
|
|
52
|
+
'classy-color-4',
|
|
53
|
+
'classy-color-5',
|
|
54
|
+
'small-switch-color-1',
|
|
55
|
+
'small-switch-color-2',
|
|
56
|
+
'natural-color-1',
|
|
57
|
+
'natural-color-2',
|
|
58
|
+
'natural-color-3',
|
|
59
|
+
'grey-friend-1',
|
|
60
|
+
'grey-friend-2',
|
|
61
|
+
'shade-1',
|
|
62
|
+
'shade-2',
|
|
63
|
+
'shade-3',
|
|
64
|
+
'shade-4',
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
description: 'Text color.',
|
|
68
|
+
},
|
|
69
|
+
lineHeight: {
|
|
70
|
+
control: {
|
|
71
|
+
type: 'select',
|
|
72
|
+
options: ['normal', 'tight', 'loose'],
|
|
73
|
+
},
|
|
74
|
+
description: 'Line height of the paragraph.',
|
|
75
|
+
},
|
|
76
|
+
className: {
|
|
77
|
+
control: 'text',
|
|
78
|
+
description: 'Additional CSS classes.',
|
|
79
|
+
},
|
|
80
|
+
style: {
|
|
81
|
+
control: 'object',
|
|
82
|
+
description: 'Inline styles.',
|
|
83
|
+
},
|
|
13
84
|
},
|
|
14
85
|
};
|
|
15
86
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
87
|
+
/**
|
|
88
|
+
* Default Paragraph
|
|
89
|
+
*/
|
|
90
|
+
export const DefaultParagraph = () => (
|
|
91
|
+
<Paragraph text="This is a default paragraph with medium size and left alignment." />
|
|
92
|
+
);
|
|
22
93
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
94
|
+
/**
|
|
95
|
+
* Large Bold Centered Paragraph
|
|
96
|
+
*/
|
|
97
|
+
export const LargeBoldCentered = () => (
|
|
98
|
+
<Paragraph
|
|
99
|
+
text="This is a large, bold, and centered paragraph."
|
|
100
|
+
size="lg"
|
|
101
|
+
weight="bold"
|
|
102
|
+
alignment="center"
|
|
103
|
+
color="primary"
|
|
104
|
+
/>
|
|
105
|
+
);
|
|
28
106
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
107
|
+
/**
|
|
108
|
+
* Small Muted Paragraph with Tight Line Height
|
|
109
|
+
*/
|
|
110
|
+
export const SmallMutedTight = () => (
|
|
111
|
+
<Paragraph
|
|
112
|
+
text="This is a small, muted paragraph with tight line height."
|
|
113
|
+
size="sm"
|
|
114
|
+
color="muted"
|
|
115
|
+
lineHeight="tight"
|
|
116
|
+
/>
|
|
117
|
+
);
|
|
35
118
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
119
|
+
/**
|
|
120
|
+
* Paragraph with Justify Alignment and Secondary Color
|
|
121
|
+
*/
|
|
122
|
+
export const JustifySecondary = () => (
|
|
123
|
+
<Paragraph
|
|
124
|
+
text="This paragraph is justified and has secondary color."
|
|
125
|
+
alignment="justify"
|
|
126
|
+
color="secondary"
|
|
127
|
+
/>
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Interactive Paragraph
|
|
132
|
+
*/
|
|
133
|
+
const Template = (args) => <Paragraph {...args} />;
|
|
134
|
+
|
|
135
|
+
export const InteractiveParagraph = Template.bind({});
|
|
136
|
+
InteractiveParagraph.args = {
|
|
137
|
+
text: 'This is an interactive paragraph.',
|
|
138
|
+
size: 'md',
|
|
139
|
+
alignment: 'left',
|
|
140
|
+
weight: 'normal',
|
|
141
|
+
color: 'default',
|
|
142
|
+
lineHeight: 'normal',
|
|
41
143
|
};
|
|
@@ -1,29 +1,127 @@
|
|
|
1
|
+
/* ProgressBar.css */
|
|
1
2
|
|
|
2
|
-
.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
background-color:
|
|
6
|
-
border:
|
|
3
|
+
.progress-bar-container {
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 20px;
|
|
6
|
+
background-color: var(--neutral-color);
|
|
7
|
+
border-radius: var(--border-radius);
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
position: relative;
|
|
7
10
|
}
|
|
8
11
|
|
|
9
|
-
.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
.progress-bar {
|
|
13
|
+
height: 100%;
|
|
14
|
+
transition: width var(--transition-speed);
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: center;
|
|
18
|
+
border-radius: var(--border-radius);
|
|
19
|
+
color: var(--text-color-inverse); /* White text for better contrast */
|
|
12
20
|
}
|
|
13
21
|
|
|
14
|
-
.
|
|
15
|
-
|
|
16
|
-
|
|
22
|
+
.progress-label {
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
font-weight: bold;
|
|
17
25
|
}
|
|
18
26
|
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
/* Color Variants */
|
|
28
|
+
.progress-bar--primary {
|
|
29
|
+
background-color: var(--primary-color);
|
|
21
30
|
}
|
|
22
31
|
|
|
23
|
-
.
|
|
24
|
-
|
|
32
|
+
.progress-bar--secondary {
|
|
33
|
+
background-color: var(--secondary-color);
|
|
25
34
|
}
|
|
26
35
|
|
|
27
|
-
.
|
|
28
|
-
|
|
36
|
+
.progress-bar--info {
|
|
37
|
+
background-color: var(--info-color);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.progress-bar--warning {
|
|
41
|
+
background-color: var(--warning-color);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.progress-bar--alert {
|
|
45
|
+
background-color: var(--alert-color);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.progress-bar--success {
|
|
49
|
+
background-color: var(--success-color);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.progress-bar--neutral {
|
|
53
|
+
background-color: var(--neutral-color);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.progress-bar--dark {
|
|
57
|
+
background-color: var(--dark-color);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Classy Palette */
|
|
61
|
+
.progress-bar--classy-1 {
|
|
62
|
+
background-color: var(--classy-color-1);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.progress-bar--classy-2 {
|
|
66
|
+
background-color: var(--classy-color-2);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.progress-bar--classy-3 {
|
|
70
|
+
background-color: var(--classy-color-3);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.progress-bar--classy-4 {
|
|
74
|
+
background-color: var(--classy-color-4);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.progress-bar--classy-5 {
|
|
78
|
+
background-color: var(--classy-color-5);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Small Switch Palette */
|
|
82
|
+
.progress-bar--small-switch-1 {
|
|
83
|
+
background-color: var(--small-switch-color-1);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.progress-bar--small-switch-2 {
|
|
87
|
+
background-color: var(--small-switch-color-2);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Natural Palette */
|
|
91
|
+
.progress-bar--natural-1 {
|
|
92
|
+
background-color: var(--natural-color-1);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.progress-bar--natural-2 {
|
|
96
|
+
background-color: var(--natural-color-2);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.progress-bar--natural-3 {
|
|
100
|
+
background-color: var(--natural-color-3);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Grey Friends */
|
|
104
|
+
.progress-bar--grey-friend-1 {
|
|
105
|
+
background-color: var(--grey-friend-1);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.progress-bar--grey-friend-2 {
|
|
109
|
+
background-color: var(--grey-friend-2);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Shades */
|
|
113
|
+
.progress-bar--shade-1 {
|
|
114
|
+
background-color: var(--shade-1);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.progress-bar--shade-2 {
|
|
118
|
+
background-color: var(--shade-2);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.progress-bar--shade-3 {
|
|
122
|
+
background-color: var(--shade-3);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.progress-bar--shade-4 {
|
|
126
|
+
background-color: var(--shade-4);
|
|
29
127
|
}
|
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
// ProgressBar.jsx
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import './ProgressBar.css';
|
|
4
|
+
import './ProgressBar.css'; // Import the CSS styles
|
|
5
|
+
|
|
6
|
+
export const ProgressBar = ({
|
|
7
|
+
progress = 0, // Default to 0% progress
|
|
8
|
+
color = 'primary', // Can be 'primary', 'secondary', 'info', 'warning', etc.
|
|
9
|
+
label = '', // Optional label text
|
|
10
|
+
showLabel = true, // Show or hide the label
|
|
11
|
+
className = '',
|
|
12
|
+
style = {},
|
|
13
|
+
...props
|
|
14
|
+
}) => {
|
|
15
|
+
const colorClass = `progress-bar--${color}`;
|
|
5
16
|
|
|
6
|
-
/**
|
|
7
|
-
* ProgressBar component for user interaction
|
|
8
|
-
*/
|
|
9
|
-
export const ProgressBar = ({ primary, size, children, ...props }) => {
|
|
10
|
-
const mode = primary ? 'progressbar--primary' : 'progressbar--secondary';
|
|
11
17
|
return (
|
|
12
|
-
<div
|
|
13
|
-
className={
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
{children}
|
|
18
|
+
<div className={`progress-bar-container ${className}`} style={style} {...props}>
|
|
19
|
+
<div className={`progress-bar ${colorClass}`} style={{ width: `${progress}%` }}>
|
|
20
|
+
{showLabel && <span className="progress-label">{label}</span>}
|
|
21
|
+
</div>
|
|
17
22
|
</div>
|
|
18
23
|
);
|
|
19
24
|
};
|
|
20
25
|
|
|
21
26
|
ProgressBar.propTypes = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
progress: PropTypes.number,
|
|
28
|
+
color: PropTypes.oneOf([
|
|
29
|
+
'primary', 'secondary', 'info', 'warning', 'alert', 'success', 'neutral', 'dark',
|
|
30
|
+
'classy-1', 'classy-2', 'classy-3', 'classy-4', 'classy-5',
|
|
31
|
+
'small-switch-1', 'small-switch-2',
|
|
32
|
+
'natural-1', 'natural-2', 'natural-3',
|
|
33
|
+
'grey-friend-1', 'grey-friend-2',
|
|
34
|
+
'shade-1', 'shade-2', 'shade-3', 'shade-4'
|
|
35
|
+
]),
|
|
36
|
+
label: PropTypes.string,
|
|
37
|
+
showLabel: PropTypes.bool,
|
|
38
|
+
className: PropTypes.string,
|
|
39
|
+
style: PropTypes.object,
|
|
34
40
|
};
|
|
35
|
-
|
|
36
|
-
ProgressBar.defaultProps = {
|
|
37
|
-
primary: false,
|
|
38
|
-
size: 'medium',
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export default ProgressBar;
|