@instincthub/react-ui 0.0.1 → 0.0.2

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 (155) hide show
  1. package/dist/_virtual/index8.js +2 -0
  2. package/dist/_virtual/index8.js.map +1 -0
  3. package/dist/_virtual/react-is.development3.js +2 -0
  4. package/dist/_virtual/react-is.development3.js.map +1 -0
  5. package/dist/_virtual/react-is.production.min2.js +2 -0
  6. package/dist/_virtual/react-is.production.min2.js.map +1 -0
  7. package/dist/_virtual/stylis.js +2 -0
  8. package/dist/_virtual/stylis.js.map +1 -0
  9. package/dist/assets/css/bootstrap.css +315 -0
  10. package/dist/assets/css/darkmode.css +57 -0
  11. package/dist/assets/css/fonts.css +1 -0
  12. package/dist/assets/css/forms/input-fields.css +77 -0
  13. package/dist/assets/css/forms/react-action.css +46 -0
  14. package/dist/assets/css/forms/submit-btn.css +39 -0
  15. package/dist/assets/css/forms.css +145 -0
  16. package/dist/assets/css/invoice.css +196 -0
  17. package/dist/assets/css/loading.css +57 -0
  18. package/dist/assets/css/main.css +2357 -0
  19. package/dist/assets/css/material-ui.css +82 -0
  20. package/dist/assets/css/modals.css +208 -0
  21. package/dist/assets/css/primereact.css +367 -0
  22. package/dist/assets/css/react-video-player.css +81 -0
  23. package/dist/assets/css/readme/overflow.md +93 -0
  24. package/dist/assets/css/readme/width-height-padding.md +342 -0
  25. package/dist/assets/css/readme/z-index.md +80 -0
  26. package/dist/assets/css/root.css +70 -0
  27. package/dist/assets/css/styles.css +23 -0
  28. package/dist/assets/css/tag-only-selectors.css +240 -0
  29. package/dist/assets/css/tooltip.css +26 -0
  30. package/dist/assets/css/ui/code-display.css +132 -0
  31. package/dist/assets/css/ui/content-viewer.css +599 -0
  32. package/dist/assets/css/ui/editor.css +161 -0
  33. package/dist/assets/css/ui/list-styles.css +318 -0
  34. package/dist/assets/css/ui/parent-list-styles.css +223 -0
  35. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +2 -0
  36. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  37. package/dist/node_modules/@emotion/cache/dist/emotion-cache.esm.js +2 -0
  38. package/dist/node_modules/@emotion/cache/dist/emotion-cache.esm.js.map +1 -0
  39. package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +2 -0
  40. package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js.map +1 -0
  41. package/dist/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +2 -0
  42. package/dist/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js.map +1 -0
  43. package/dist/node_modules/@emotion/react/dist/emotion-react.esm.js +2 -0
  44. package/dist/node_modules/@emotion/react/dist/emotion-react.esm.js.map +1 -0
  45. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +2 -0
  46. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -0
  47. package/dist/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js +2 -0
  48. package/dist/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js.map +1 -0
  49. package/dist/node_modules/@emotion/styled/dist/emotion-styled.esm.js +2 -0
  50. package/dist/node_modules/@emotion/styled/dist/emotion-styled.esm.js.map +1 -0
  51. package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +2 -0
  52. package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js.map +1 -0
  53. package/dist/node_modules/@emotion/utils/dist/emotion-utils.esm.js +2 -0
  54. package/dist/node_modules/@emotion/utils/dist/emotion-utils.esm.js.map +1 -0
  55. package/dist/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +2 -0
  56. package/dist/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js.map +1 -0
  57. package/dist/node_modules/@mui/material/styles/createThemeWithVars.js +1 -1
  58. package/dist/node_modules/@mui/material/styles/createThemeWithVars.js.map +1 -1
  59. package/dist/node_modules/@mui/material/utils/memoTheme.js +1 -1
  60. package/dist/node_modules/@mui/material/utils/memoTheme.js.map +1 -1
  61. package/dist/node_modules/@mui/styled-engine/index.js +2 -2
  62. package/dist/node_modules/@mui/system/esm/Box/Box.js +2 -0
  63. package/dist/node_modules/@mui/system/esm/Box/Box.js.map +1 -0
  64. package/dist/node_modules/@mui/system/esm/Box/boxClasses.js +2 -0
  65. package/dist/node_modules/@mui/system/esm/Box/boxClasses.js.map +1 -0
  66. package/dist/node_modules/@mui/system/esm/Container/Container.js +2 -0
  67. package/dist/node_modules/@mui/system/esm/Container/Container.js.map +1 -0
  68. package/dist/node_modules/@mui/system/esm/Container/containerClasses.js +2 -0
  69. package/dist/node_modules/@mui/system/esm/Container/containerClasses.js.map +1 -0
  70. package/dist/node_modules/@mui/system/esm/Container/createContainer.js +2 -0
  71. package/dist/node_modules/@mui/system/esm/Container/createContainer.js.map +1 -0
  72. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +2 -0
  73. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -0
  74. package/dist/node_modules/@mui/system/esm/Grid/Grid.js +2 -0
  75. package/dist/node_modules/@mui/system/esm/Grid/Grid.js.map +1 -0
  76. package/dist/node_modules/@mui/system/esm/Grid/createGrid.js +2 -0
  77. package/dist/node_modules/@mui/system/esm/Grid/createGrid.js.map +1 -0
  78. package/dist/node_modules/@mui/system/esm/Grid/deleteLegacyGridProps.js +2 -0
  79. package/dist/node_modules/@mui/system/esm/Grid/deleteLegacyGridProps.js.map +1 -0
  80. package/dist/node_modules/@mui/system/esm/Grid/gridClasses.js +2 -0
  81. package/dist/node_modules/@mui/system/esm/Grid/gridClasses.js.map +1 -0
  82. package/dist/node_modules/@mui/system/esm/Grid/gridGenerator.js +2 -0
  83. package/dist/node_modules/@mui/system/esm/Grid/gridGenerator.js.map +1 -0
  84. package/dist/node_modules/@mui/system/esm/Grid/traverseBreakpoints.js +2 -0
  85. package/dist/node_modules/@mui/system/esm/Grid/traverseBreakpoints.js.map +1 -0
  86. package/dist/node_modules/@mui/system/esm/Stack/Stack.js +2 -0
  87. package/dist/node_modules/@mui/system/esm/Stack/Stack.js.map +1 -0
  88. package/dist/node_modules/@mui/system/esm/Stack/createStack.js +2 -0
  89. package/dist/node_modules/@mui/system/esm/Stack/createStack.js.map +1 -0
  90. package/dist/node_modules/@mui/system/esm/Stack/stackClasses.js +2 -0
  91. package/dist/node_modules/@mui/system/esm/Stack/stackClasses.js.map +1 -0
  92. package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
  93. package/dist/node_modules/@mui/system/esm/borders/borders.js +1 -1
  94. package/dist/node_modules/@mui/system/esm/borders/borders.js.map +1 -1
  95. package/dist/node_modules/@mui/system/esm/breakpoints/breakpoints.js +1 -1
  96. package/dist/node_modules/@mui/system/esm/breakpoints/breakpoints.js.map +1 -1
  97. package/dist/node_modules/@mui/system/esm/createBox/createBox.js +2 -0
  98. package/dist/node_modules/@mui/system/esm/createBox/createBox.js.map +1 -0
  99. package/dist/node_modules/@mui/system/esm/cssGrid/cssGrid.js +1 -1
  100. package/dist/node_modules/@mui/system/esm/cssGrid/cssGrid.js.map +1 -1
  101. package/dist/node_modules/@mui/system/esm/cssVars/createGetCssVar.js +2 -0
  102. package/dist/node_modules/@mui/system/esm/cssVars/createGetCssVar.js.map +1 -0
  103. package/dist/node_modules/@mui/system/esm/display/display.js +2 -0
  104. package/dist/node_modules/@mui/system/esm/display/display.js.map +1 -0
  105. package/dist/node_modules/@mui/system/esm/flexbox/flexbox.js +2 -0
  106. package/dist/node_modules/@mui/system/esm/flexbox/flexbox.js.map +1 -0
  107. package/dist/node_modules/@mui/system/esm/getThemeValue/getThemeValue.js +2 -0
  108. package/dist/node_modules/@mui/system/esm/getThemeValue/getThemeValue.js.map +1 -0
  109. package/dist/node_modules/@mui/system/esm/memoTheme.js +2 -0
  110. package/dist/node_modules/@mui/system/esm/memoTheme.js.map +1 -0
  111. package/dist/node_modules/@mui/system/esm/palette/palette.js +1 -1
  112. package/dist/node_modules/@mui/system/esm/palette/palette.js.map +1 -1
  113. package/dist/node_modules/@mui/system/esm/positions/positions.js +2 -0
  114. package/dist/node_modules/@mui/system/esm/positions/positions.js.map +1 -0
  115. package/dist/node_modules/@mui/system/esm/shadows/shadows.js +2 -0
  116. package/dist/node_modules/@mui/system/esm/shadows/shadows.js.map +1 -0
  117. package/dist/node_modules/@mui/system/esm/sizing/sizing.js +1 -1
  118. package/dist/node_modules/@mui/system/esm/sizing/sizing.js.map +1 -1
  119. package/dist/node_modules/@mui/system/esm/spacing/spacing.js +1 -1
  120. package/dist/node_modules/@mui/system/esm/spacing/spacing.js.map +1 -1
  121. package/dist/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js +2 -0
  122. package/dist/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js.map +1 -0
  123. package/dist/node_modules/@mui/system/esm/styled/styled.js +2 -0
  124. package/dist/node_modules/@mui/system/esm/styled/styled.js.map +1 -0
  125. package/dist/node_modules/@mui/system/esm/typography/typography.js +2 -0
  126. package/dist/node_modules/@mui/system/esm/typography/typography.js.map +1 -0
  127. package/dist/node_modules/@mui/system/esm/useTheme/useTheme.js +2 -0
  128. package/dist/node_modules/@mui/system/esm/useTheme/useTheme.js.map +1 -0
  129. package/dist/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +2 -0
  130. package/dist/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js.map +1 -0
  131. package/dist/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js +2 -0
  132. package/dist/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js.map +1 -0
  133. package/dist/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js +1 -1
  134. package/dist/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js +2 -0
  135. package/dist/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js.map +1 -0
  136. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +2 -0
  137. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
  138. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +10 -0
  139. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  140. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +10 -0
  141. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  142. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +2 -0
  143. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js.map +1 -0
  144. package/dist/node_modules/stylis/dist/umd/stylis.js +2 -0
  145. package/dist/node_modules/stylis/dist/umd/stylis.js.map +1 -0
  146. package/dist/src/components/forms/AnimatedBox.js.map +1 -1
  147. package/dist/src/components/forms/SubmitBtn.js.map +1 -1
  148. package/dist/src/components/ui/viewer/CodeDisplay.js +1 -1
  149. package/dist/src/styles.js.map +1 -1
  150. package/dist/src/types/components/forms/CountryInput.d.ts +0 -1
  151. package/dist/src/types/components/forms/CountryStateInput.d.ts +0 -1
  152. package/dist/src/types/components/ui/viewer/CodeDisplay.d.ts +1 -1
  153. package/dist/src/types/styles.d.ts +1 -13
  154. package/dist/styles.css +1 -1
  155. package/package.json +6 -4
@@ -0,0 +1,81 @@
1
+ /* CSS for custom play button */
2
+ .custom-play-button button {
3
+ background-color: #0077ff !important;
4
+ border: none;
5
+ color: #fff;
6
+ padding: 8px;
7
+ border-radius: 50%;
8
+ cursor: pointer;
9
+ }
10
+
11
+ /* CSS for custom progress bar */
12
+ .custom-progress-bar {
13
+ height: 8px;
14
+ background-color: #ccc;
15
+ border-radius: 4px;
16
+ }
17
+
18
+ .custom-progress-bar .video-react-progress-holder {
19
+ height: 100%;
20
+ background-color: #0077ff;
21
+ border-radius: 4px;
22
+ }
23
+
24
+ /* Progress bar */
25
+ .vjs-progress-control .vjs-play-progress,
26
+ .vjs-progress-control .vjs-load-progress {
27
+ background-color: #ff7f00;
28
+ }
29
+
30
+ .vjs-progress-control .vjs-mouse-display {
31
+ background-color: #ff7f00;
32
+ }
33
+
34
+ .vjs-progress-control .vjs-mouse-display:before {
35
+ border-color: transparent #ff7f00 transparent transparent;
36
+ }
37
+
38
+ /* Play/Pause button */
39
+ .vjs-play-control:before {
40
+ content: "\f04b";
41
+ font-family: "Font Awesome 5 Free";
42
+ font-weight: 400;
43
+ }
44
+
45
+ .vjs-paused .vjs-play-control:before {
46
+ content: "\f04c";
47
+ }
48
+
49
+ /* Volume button */
50
+ .vjs-volume-menu-button:before {
51
+ content: "\f027";
52
+ font-family: "Font Awesome 5 Free";
53
+ font-weight: 400;
54
+ }
55
+
56
+ .vjs-mute:before,
57
+ .vjs-volume-level:before {
58
+ font-family: "Font Awesome 5 Free";
59
+ font-weight: 400;
60
+ }
61
+
62
+ .vjs-mute:before {
63
+ content: "\f6a9";
64
+ }
65
+
66
+ .vjs-volume-level:before {
67
+ content: "\f028";
68
+ }
69
+
70
+ /* Fullscreen button */
71
+ .vjs-fullscreen-control:before {
72
+ content: "\f065";
73
+ font-family: "Font Awesome 5 Free";
74
+ font-weight: 400;
75
+ }
76
+
77
+ .vjs-fullscreen-exit-control:before {
78
+ content: "\f066";
79
+ font-family: "Font Awesome 5 Free";
80
+ font-weight: 400;
81
+ }
@@ -0,0 +1,93 @@
1
+ # InstinctHub CSS Overflow Utilities
2
+
3
+ This document outlines the custom overflow utilities for InstinctHub's CSS framework, designed to provide consistent overflow behavior across the platform.
4
+
5
+ ## General Overflow Utilities
6
+
7
+ These utilities control the overflow behavior in both directions (horizontal and vertical).
8
+
9
+ | Class | Description |
10
+ |-------|-------------|
11
+ | `.ihub-overflow-auto` | Adds scrollbars only when content overflows |
12
+ | `.ihub-overflow-hidden` | Clips content that overflows the element's box |
13
+ | `.ihub-overflow-visible` | Content is not clipped when it overflows |
14
+ | `.ihub-overflow-scroll` | Always displays scrollbars, even when content doesn't overflow |
15
+
16
+ ## Axis-Specific Overflow
17
+
18
+ These utilities allow you to control overflow behavior on a specific axis.
19
+
20
+ ### Horizontal Overflow
21
+
22
+ | Class | Description |
23
+ |-------|-------------|
24
+ | `.ihub-overflow-x-auto` | Adds horizontal scrollbar only when content overflows horizontally |
25
+ | `.ihub-overflow-x-hidden` | Clips content that overflows horizontally |
26
+ | `.ihub-overflow-x-scroll` | Always displays horizontal scrollbar |
27
+
28
+ ### Vertical Overflow
29
+
30
+ | Class | Description |
31
+ |-------|-------------|
32
+ | `.ihub-overflow-y-auto` | Adds vertical scrollbar only when content overflows vertically |
33
+ | `.ihub-overflow-y-hidden` | Clips content that overflows vertically |
34
+ | `.ihub-overflow-y-scroll` | Always displays vertical scrollbar |
35
+
36
+ ## Scrollbar Styling
37
+
38
+ Custom scrollbar styling for elements with overflow.
39
+
40
+ | Class | Description |
41
+ |-------|-------------|
42
+ | `.ihub-scrollbar-thin` | Displays thin scrollbars (4px) with InstinctHub brand colors |
43
+ | `.ihub-scrollbar-hidden` | Hides scrollbars while maintaining scroll functionality |
44
+
45
+ ## Usage Examples
46
+
47
+ ### Basic Container with Auto Overflow
48
+
49
+ ```html
50
+ <div class="ihub-overflow-auto" style="max-height: 300px">
51
+ <!-- Content that might overflow -->
52
+ </div>
53
+ ```
54
+
55
+ ### Horizontal Scrolling Container
56
+
57
+ ```html
58
+ <div class="ihub-overflow-x-auto ihub-overflow-y-hidden">
59
+ <!-- Horizontally scrollable content -->
60
+ </div>
61
+ ```
62
+
63
+ ### Custom Scrollbar Styling
64
+
65
+ ```html
66
+ <div class="ihub-overflow-auto ihub-scrollbar-thin">
67
+ <!-- Content with custom-styled scrollbars -->
68
+ </div>
69
+ ```
70
+
71
+ ### Hidden Scrollbars
72
+
73
+ ```html
74
+ <div class="ihub-overflow-auto ihub-scrollbar-hidden">
75
+ <!-- Content with functional but invisible scrollbars -->
76
+ </div>
77
+ ```
78
+
79
+ ## Implementation Notes
80
+
81
+ - These utilities use CSS variables from InstinctHub's main theme
82
+ - Compatible with all modern browsers
83
+ - For Internet Explorer support, use polyfills or fallbacks
84
+ - Follows the `ihub-` prefix convention for InstinctHub's component library
85
+
86
+ ## Integration with Existing Components
87
+
88
+ When using these utilities with existing InstinctHub components, follow these guidelines:
89
+
90
+ 1. Apply overflow utilities to container elements rather than directly to components
91
+ 2. Use `ihub-overflow-hidden` on parent containers to prevent layout shifts
92
+ 3. For long content areas like course descriptions or lesson content, use `ihub-overflow-y-auto` with a defined height
93
+ 4. When creating horizontally scrolling galleries or carousels, use `ihub-overflow-x-auto ihub-overflow-y-hidden`
@@ -0,0 +1,342 @@
1
+ # InstinctHub CSS Utilities Documentation
2
+
3
+ This documentation covers the custom CSS utilities for width, height, and padding created specifically for InstinctHub's front-end framework.
4
+
5
+ ## Table of Contents
6
+
7
+ 1. [Width Utilities](#width-utilities)
8
+ 2. [Height Utilities](#height-utilities)
9
+ 3. [Padding Utilities](#padding-utilities)
10
+ 4. [Responsive Utilities](#responsive-utilities)
11
+ 5. [Usage Examples](#usage-examples)
12
+
13
+ ## Width Utilities
14
+
15
+ Width utilities control the horizontal space an element occupies.
16
+
17
+ ### Fixed Widths
18
+
19
+ Fixed width utilities set a specific pixel width to an element.
20
+
21
+ | Class | Description |
22
+ |-------|-------------|
23
+ | `.ihub-w-1` | Sets width to 1px |
24
+ | `.ihub-w-2` | Sets width to 2px |
25
+ | `.ihub-w-4` | Sets width to 4px |
26
+ | `.ihub-w-8` | Sets width to 8px |
27
+ | `.ihub-w-16` | Sets width to 16px |
28
+ | `.ihub-w-24` | Sets width to 24px |
29
+ | `.ihub-w-32` | Sets width to 32px |
30
+ | `.ihub-w-48` | Sets width to 48px |
31
+ | `.ihub-w-64` | Sets width to 64px |
32
+ | `.ihub-w-80` | Sets width to 80px |
33
+ | `.ihub-w-96` | Sets width to 96px |
34
+ | `.ihub-w-128` | Sets width to 128px |
35
+ | `.ihub-w-200` | Sets width to 200px |
36
+ | `.ihub-w-250` | Sets width to 250px |
37
+ | `.ihub-w-300` | Sets width to 300px |
38
+ | `.ihub-w-350` | Sets width to 350px |
39
+ | `.ihub-w-400` | Sets width to 400px |
40
+ | `.ihub-w-500` | Sets width to 500px |
41
+ | `.ihub-w-600` | Sets width to 600px |
42
+ | `.ihub-w-700` | Sets width to 700px |
43
+ | `.ihub-w-800` | Sets width to 800px |
44
+
45
+ ### Percentage Widths
46
+
47
+ Percentage-based width utilities set a width relative to the parent element.
48
+
49
+ | Class | Description |
50
+ |-------|-------------|
51
+ | `.ihub-w-25` | Sets width to 25% |
52
+ | `.ihub-w-33` | Sets width to 33.333333% |
53
+ | `.ihub-w-50` | Sets width to 50% |
54
+ | `.ihub-w-75` | Sets width to 75% |
55
+ | `.ihub-w-100` | Sets width to 100% |
56
+ | `.ihub-w-auto` | Sets width to auto |
57
+
58
+ ### Maximum Widths
59
+
60
+ Maximum width utilities constrain an element's width to a maximum value.
61
+
62
+ | Class | Description |
63
+ |-------|-------------|
64
+ | `.ihub-max-w-300` | Sets max-width to 300px |
65
+ | `.ihub-max-w-400` | Sets max-width to 400px |
66
+ | `.ihub-max-w-500` | Sets max-width to 500px |
67
+ | `.ihub-max-w-600` | Sets max-width to 600px |
68
+ | `.ihub-max-w-700` | Sets max-width to 700px |
69
+ | `.ihub-max-w-800` | Sets max-width to 800px |
70
+ | `.ihub-max-w-900` | Sets max-width to 900px |
71
+ | `.ihub-max-w-1000` | Sets max-width to 1000px |
72
+ | `.ihub-max-w-1200` | Sets max-width to 1200px |
73
+ | `.ihub-max-w-1400` | Sets max-width to 1400px |
74
+ | `.ihub-max-w-1600` | Sets max-width to 1600px |
75
+ | `.ihub-max-w-full` | Sets max-width to 100% |
76
+ | `.ihub-max-w-none` | Removes max-width constraint |
77
+
78
+ ## Height Utilities
79
+
80
+ Height utilities control the vertical space an element occupies.
81
+
82
+ ### Fixed Heights
83
+
84
+ Fixed height utilities set a specific pixel height to an element.
85
+
86
+ | Class | Description |
87
+ |-------|-------------|
88
+ | `.ihub-h-1` | Sets height to 1px |
89
+ | `.ihub-h-2` | Sets height to 2px |
90
+ | `.ihub-h-4` | Sets height to 4px |
91
+ | `.ihub-h-8` | Sets height to 8px |
92
+ | `.ihub-h-16` | Sets height to 16px |
93
+ | `.ihub-h-24` | Sets height to 24px |
94
+ | `.ihub-h-32` | Sets height to 32px |
95
+ | `.ihub-h-48` | Sets height to 48px |
96
+ | `.ihub-h-64` | Sets height to 64px |
97
+ | `.ihub-h-80` | Sets height to 80px |
98
+ | `.ihub-h-96` | Sets height to 96px |
99
+ | `.ihub-h-128` | Sets height to 128px |
100
+ | `.ihub-h-200` | Sets height to 200px |
101
+ | `.ihub-h-300` | Sets height to 300px |
102
+ | `.ihub-h-400` | Sets height to 400px |
103
+ | `.ihub-h-500` | Sets height to 500px |
104
+ | `.ihub-h-600` | Sets height to 600px |
105
+
106
+ ### Percentage Heights
107
+
108
+ Percentage-based height utilities set a height relative to the parent element.
109
+
110
+ | Class | Description |
111
+ |-------|-------------|
112
+ | `.ihub-h-25` | Sets height to 25% |
113
+ | `.ihub-h-33` | Sets height to 33.333333% |
114
+ | `.ihub-h-50` | Sets height to 50% |
115
+ | `.ihub-h-75` | Sets height to 75% |
116
+ | `.ihub-h-100` | Sets height to 100% |
117
+ | `.ihub-h-auto` | Sets height to auto |
118
+ | `.ihub-h-screen` | Sets height to 100vh (full viewport height) |
119
+
120
+ ### Maximum Heights
121
+
122
+ Maximum height utilities constrain an element's height to a maximum value.
123
+
124
+ | Class | Description |
125
+ |-------|-------------|
126
+ | `.ihub-max-h-200` | Sets max-height to 200px |
127
+ | `.ihub-max-h-300` | Sets max-height to 300px |
128
+ | `.ihub-max-h-400` | Sets max-height to 400px |
129
+ | `.ihub-max-h-500` | Sets max-height to 500px |
130
+ | `.ihub-max-h-600` | Sets max-height to 600px |
131
+ | `.ihub-max-h-full` | Sets max-height to 100% |
132
+ | `.ihub-max-h-screen` | Sets max-height to 100vh |
133
+ | `.ihub-max-h-none` | Removes max-height constraint |
134
+
135
+ ### Minimum Heights
136
+
137
+ Minimum height utilities set a minimum height for an element.
138
+
139
+ | Class | Description |
140
+ |-------|-------------|
141
+ | `.ihub-min-h-0` | Sets min-height to 0 |
142
+ | `.ihub-min-h-100` | Sets min-height to 100px |
143
+ | `.ihub-min-h-200` | Sets min-height to 200px |
144
+ | `.ihub-min-h-300` | Sets min-height to 300px |
145
+ | `.ihub-min-h-400` | Sets min-height to 400px |
146
+ | `.ihub-min-h-500` | Sets min-height to 500px |
147
+ | `.ihub-min-h-full` | Sets min-height to 100% |
148
+ | `.ihub-min-h-screen` | Sets min-height to 100vh |
149
+
150
+ ## Padding Utilities
151
+
152
+ Padding utilities control the space between an element's content and its border.
153
+
154
+ ### All-Side Padding
155
+
156
+ These utilities apply padding to all sides of an element.
157
+
158
+ | Class | Description |
159
+ |-------|-------------|
160
+ | `.ihub-p-0` | Sets padding to 0 |
161
+ | `.ihub-p-1` | Sets padding to 4px |
162
+ | `.ihub-p-2` | Sets padding to 8px |
163
+ | `.ihub-p-3` | Sets padding to 12px |
164
+ | `.ihub-p-4` | Sets padding to 16px |
165
+ | `.ihub-p-5` | Sets padding to 20px |
166
+ | `.ihub-p-6` | Sets padding to 24px |
167
+ | `.ihub-p-8` | Sets padding to 32px |
168
+ | `.ihub-p-10` | Sets padding to 40px |
169
+ | `.ihub-p-12` | Sets padding to 48px |
170
+ | `.ihub-p-16` | Sets padding to 64px |
171
+ | `.ihub-p-20` | Sets padding to 80px |
172
+ | `.ihub-p-24` | Sets padding to 96px |
173
+ | `.ihub-p-32` | Sets padding to 128px |
174
+
175
+ ### Directional Padding
176
+
177
+ These utilities apply padding to specific sides of an element.
178
+
179
+ #### Top Padding
180
+
181
+ | Class | Description |
182
+ |-------|-------------|
183
+ | `.ihub-pt-0` | Sets padding-top to 0 |
184
+ | `.ihub-pt-1` through `.ihub-pt-32` | Sets padding-top from 4px to 128px |
185
+
186
+ #### Right Padding
187
+
188
+ | Class | Description |
189
+ |-------|-------------|
190
+ | `.ihub-pr-0` | Sets padding-right to 0 |
191
+ | `.ihub-pr-1` through `.ihub-pr-32` | Sets padding-right from 4px to 128px |
192
+
193
+ #### Bottom Padding
194
+
195
+ | Class | Description |
196
+ |-------|-------------|
197
+ | `.ihub-pb-0` | Sets padding-bottom to 0 |
198
+ | `.ihub-pb-1` through `.ihub-pb-32` | Sets padding-bottom from 4px to 128px |
199
+
200
+ #### Left Padding
201
+
202
+ | Class | Description |
203
+ |-------|-------------|
204
+ | `.ihub-pl-0` | Sets padding-left to 0 |
205
+ | `.ihub-pl-1` through `.ihub-pl-32` | Sets padding-left from 4px to 128px |
206
+
207
+ ### Horizontal & Vertical Padding
208
+
209
+ These utilities apply padding to horizontal (left and right) or vertical (top and bottom) sides simultaneously.
210
+
211
+ #### Horizontal Padding
212
+
213
+ | Class | Description |
214
+ |-------|-------------|
215
+ | `.ihub-px-0` | Sets horizontal padding to 0 |
216
+ | `.ihub-px-1` through `.ihub-px-32` | Sets horizontal padding from 4px to 128px |
217
+
218
+ #### Vertical Padding
219
+
220
+ | Class | Description |
221
+ |-------|-------------|
222
+ | `.ihub-py-0` | Sets vertical padding to 0 |
223
+ | `.ihub-py-1` through `.ihub-py-32` | Sets vertical padding from 4px to 128px |
224
+
225
+ ## Responsive Utilities
226
+
227
+ These utilities apply different styles based on screen size.
228
+
229
+ ### Small Screen Utilities (max-width: 768px)
230
+
231
+ | Class | Description |
232
+ |-------|-------------|
233
+ | `.ihub-sm-w-100` | Sets width to 100% on small screens |
234
+ | `.ihub-sm-h-auto` | Sets height to auto on small screens |
235
+ | `.ihub-sm-p-2` | Sets padding to 8px on small screens |
236
+ | `.ihub-sm-p-3` | Sets padding to 12px on small screens |
237
+ | `.ihub-sm-p-4` | Sets padding to 16px on small screens |
238
+ | `.ihub-sm-py-2` | Sets vertical padding to 8px on small screens |
239
+ | `.ihub-sm-py-3` | Sets vertical padding to 12px on small screens |
240
+ | `.ihub-sm-px-2` | Sets horizontal padding to 8px on small screens |
241
+ | `.ihub-sm-px-3` | Sets horizontal padding to 12px on small screens |
242
+
243
+ ### Medium Screen Utilities (769px - 1024px)
244
+
245
+ | Class | Description |
246
+ |-------|-------------|
247
+ | `.ihub-md-w-50` | Sets width to 50% on medium screens |
248
+ | `.ihub-md-w-75` | Sets width to 75% on medium screens |
249
+ | `.ihub-md-w-100` | Sets width to 100% on medium screens |
250
+ | `.ihub-md-p-4` | Sets padding to 16px on medium screens |
251
+ | `.ihub-md-p-5` | Sets padding to 20px on medium screens |
252
+ | `.ihub-md-py-4` | Sets vertical padding to 16px on medium screens |
253
+ | `.ihub-md-py-5` | Sets vertical padding to 20px on medium screens |
254
+ | `.ihub-md-px-4` | Sets horizontal padding to 16px on medium screens |
255
+ | `.ihub-md-px-5` | Sets horizontal padding to 20px on medium screens |
256
+
257
+ ### Large Screen Utilities (min-width: 1025px)
258
+
259
+ | Class | Description |
260
+ |-------|-------------|
261
+ | `.ihub-lg-w-25` | Sets width to 25% on large screens |
262
+ | `.ihub-lg-w-33` | Sets width to 33.333333% on large screens |
263
+ | `.ihub-lg-w-50` | Sets width to 50% on large screens |
264
+ | `.ihub-lg-w-75` | Sets width to 75% on large screens |
265
+ | `.ihub-lg-p-6` | Sets padding to 24px on large screens |
266
+ | `.ihub-lg-p-8` | Sets padding to 32px on large screens |
267
+ | `.ihub-lg-py-6` | Sets vertical padding to 24px on large screens |
268
+ | `.ihub-lg-py-8` | Sets vertical padding to 32px on large screens |
269
+ | `.ihub-lg-px-6` | Sets horizontal padding to 24px on large screens |
270
+ | `.ihub-lg-px-8` | Sets horizontal padding to 32px on large screens |
271
+
272
+ ## Usage Examples
273
+
274
+ ### Basic Layout Structure
275
+
276
+ ```html
277
+ <div class="ihub-w-100 ihub-max-w-1200 ihub-p-4 ihub-md-p-6 ihub-lg-p-8">
278
+ <div class="ihub-w-100 ihub-lg-w-50 ihub-p-3">
279
+ <!-- Content here -->
280
+ </div>
281
+ </div>
282
+ ```
283
+
284
+ ### Card Component
285
+
286
+ ```html
287
+ <div class="ihub-w-300 ihub-sm-w-100 ihub-md-w-50 ihub-p-4 ihub-max-h-500">
288
+ <div class="ihub-w-100 ihub-h-200">
289
+ <img src="image.jpg" alt="Card image" class="ihub-w-100 ihub-h-100">
290
+ </div>
291
+ <div class="ihub-py-3 ihub-px-2">
292
+ <h3>Card Title</h3>
293
+ <p>Card description goes here</p>
294
+ </div>
295
+ </div>
296
+ ```
297
+
298
+ ### Full-Height Layout
299
+
300
+ ```html
301
+ <div class="ihub-w-100 ihub-h-screen">
302
+ <header class="ihub-w-100 ihub-h-64 ihub-px-4 ihub-py-2">
303
+ <!-- Header content -->
304
+ </header>
305
+ <main class="ihub-w-100 ihub-min-h-400 ihub-p-4">
306
+ <!-- Main content -->
307
+ </main>
308
+ <footer class="ihub-w-100 ihub-h-80 ihub-py-4 ihub-px-4">
309
+ <!-- Footer content -->
310
+ </footer>
311
+ </div>
312
+ ```
313
+
314
+ ### Responsive Grid
315
+
316
+ ```html
317
+ <div class="ihub-w-100 ihub-p-2 ihub-md-p-4">
318
+ <div class="ihub-w-100 ihub-lg-w-33 ihub-p-2">Column 1</div>
319
+ <div class="ihub-w-100 ihub-lg-w-33 ihub-p-2">Column 2</div>
320
+ <div class="ihub-w-100 ihub-lg-w-33 ihub-p-2">Column 3</div>
321
+ </div>
322
+ ```
323
+
324
+ ### Dashboard Widget
325
+
326
+ ```html
327
+ <div class="ihub-w-350 ihub-sm-w-100 ihub-md-w-50 ihub-p-4 ihub-max-h-300">
328
+ <div class="ihub-w-100 ihub-h-200 ihub-p-3">
329
+ <!-- Widget content -->
330
+ </div>
331
+ <div class="ihub-p-2">
332
+ <button class="ihub-w-100 ihub-p-2">View Details</button>
333
+ </div>
334
+ </div>
335
+ ```
336
+
337
+ ## Implementation Notes
338
+
339
+ - These utilities use a 4px base scale for consistency
340
+ - Use responsive utilities to create mobile-first designs
341
+ - Combine width and height utilities with `display: flex` for advanced layouts
342
+ - When nesting elements with percentage-based widths, remember that percentages are relative to the parent container
@@ -0,0 +1,80 @@
1
+ ## **Structuring Your `z-index` System Efficiently**
2
+
3
+ Instead of using arbitrary large numbers, it's best to follow a **layered approach** where `z-index` values are assigned based on UI importance. Here's how you can do it:
4
+
5
+ ---
6
+
7
+ ### **1. Define Logical Layers**
8
+
9
+ Break down your UI into layers from the lowest to the highest priority:
10
+
11
+ | **Layer** | **z-index Range** | **Examples** |
12
+ | --------------- | ----------------- | -------------------------- |
13
+ | **Base Layer** | `0` - `10` | Background, body content |
14
+ | **Navigation** | `10` - `100` | Headers, sidebars |
15
+ | **Overlays** | `100` - `1000` | Dropdowns, modals |
16
+ | **Popups** | `1000` - `5000` | Toasts, notifications |
17
+ | **Critical UI** | `5000+` | Fullscreen modals, loaders |
18
+
19
+ ---
20
+
21
+ ### **2. Use CSS Variables for Maintainability**
22
+
23
+ Instead of hardcoding values, define them in a **CSS variables file**:
24
+
25
+ ```css
26
+ :root {
27
+ --z-base: 0;
28
+ --z-navigation: 100;
29
+ --z-overlay: 500;
30
+ --z-popup: 1000;
31
+ --z-critical: 9999;
32
+ }
33
+
34
+ .header {
35
+ z-index: var(--z-navigation);
36
+ }
37
+
38
+ .modal {
39
+ z-index: var(--z-overlay);
40
+ }
41
+
42
+ .toast {
43
+ z-index: var(--z-popup);
44
+ }
45
+ ```
46
+
47
+ ---
48
+
49
+ ### **3. Create Stacking Contexts Instead of High `z-index` Values**
50
+
51
+ Every positioned (`relative`, `absolute`, `fixed`, `sticky`) element creates a **new stacking context**. Instead of using `z-index: 999999`, wrap elements in a `relative` container with controlled stacking inside it:
52
+
53
+ ```css
54
+ .container {
55
+ position: relative; /* Creates stacking context */
56
+ z-index: 10;
57
+ }
58
+
59
+ .child {
60
+ position: absolute;
61
+ z-index: 5; /* Only relevant within .container */
62
+ }
63
+ ```
64
+
65
+ ---
66
+
67
+ ### **4. Use `z-index` Only When Necessary**
68
+
69
+ - Don't set `z-index` unless you **need** to override stacking.
70
+ - Check if a stacking issue can be resolved by reordering HTML structure instead.
71
+
72
+ ---
73
+
74
+ ### **5. Debug Stacking Issues with DevTools**
75
+
76
+ If `z-index` isn’t working, use Chrome DevTools:
77
+
78
+ 1. Right-click an element → **Inspect**
79
+ 2. Check `z-index` under **Computed Styles**
80
+ 3. Look for unexpected **stacking contexts**
@@ -0,0 +1,70 @@
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ -webkit-box-sizing: border-box;
5
+ box-sizing: border-box;
6
+ text-decoration: none;
7
+ list-style-type: none;
8
+ overflow: -moz-scrollbars-vertical;
9
+ -webkit-tap-highlight-color: transparent;
10
+ }
11
+
12
+ :root {
13
+ --DarkCyan: #00838f;
14
+ --TurkishRose: #bc658d;
15
+ --Gunmetal: #2c333a;
16
+ --ViridianGreen: #009ba2;
17
+ --White: #ffffff;
18
+ --Danger: #ea5f5e;
19
+ --FadeGlass: #ffffffe6;
20
+
21
+ --Rhythm: #69779b;
22
+ --CaribbeanGreen: #00c5a2;
23
+ --OldLavender: #756c83;
24
+ --AmericanPurple: #432160;
25
+ --ChineseBlue: #415b90;
26
+ --DarkSlateGray: #314a52;
27
+ --MaximumRedPurple: #a03c78;
28
+ --DarkLavender: #6f539b;
29
+ --MetallicBlue: #3c5186;
30
+ --TiffanyBlue: #0fabbc;
31
+ --PoliceBlue: #394a6d;
32
+ --Corn: #fbeb5b;
33
+ --LimeGreen: #4be133;
34
+ --OldRose: #394a6d;
35
+ --Magnolia: #f4f3fe;
36
+ --ChineseSilver: #cccccc;
37
+ --LavenderGray: #c5c0db;
38
+ --Main-Gradient: linear-gradient(79.85deg, #009ba2 -20.87%, #bc658d 87.74%);
39
+ --Dark-Gradient: linear-gradient(
40
+ 90deg,
41
+ rgba(0, 0, 0, 1) 0%,
42
+ rgba(33, 33, 33, 1) 35%,
43
+ rgba(79, 79, 79, 1) 100%
44
+ );
45
+ --blue: rgb(26, 57, 87);
46
+ --white: rgb(236, 236, 236);
47
+ --DeepGreen-CyanTurquoise: #206d62;
48
+ --Gray: #f4f4f4;
49
+ --filter: none;
50
+ --shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
51
+ --overlay: rgba(44, 51, 58, 0.2);
52
+ --lightShadow: 0px 1px 8px rgba(0, 0, 0, 0.1);
53
+ --borderDefault: 1px solid rgba(44, 51, 58, 0.2);
54
+ --nesgBlue: #083e9e;
55
+ --nesgBlueOpacity: #083f9e9c;
56
+ --main-color: #f857a6;
57
+ --second-color: #ff5858;
58
+ --OpacityBackground: #7d7c7c20;
59
+
60
+ /* Fonts */
61
+ --Nunito: "Nunito", sans-serif;
62
+ --Montserat: "Montserrat", sans-serif;
63
+
64
+ /* Z-index more details on ./README.md */
65
+ --z-base: 0;
66
+ --z-navigation: 100;
67
+ --z-overlay: 500;
68
+ --z-popup: 1000;
69
+ --z-critical: 9999;
70
+ }
@@ -0,0 +1,23 @@
1
+ /* Base Styles */
2
+ @import url("./fonts.css");
3
+ @import url("./root.css");
4
+ @import url("./bootstrap.css");
5
+ @import url("./tag-only-selectors.css");
6
+ @import url("./main.css");
7
+ @import url("./forms/input-fields.css");
8
+ @import url("./modals.css");
9
+ @import url("./tooltip.css");
10
+
11
+ /* UI Styles */
12
+ @import url("./ui/parent-list-styles.css");
13
+ @import url("./ui/list-styles.css");
14
+ @import url("./ui/editor.css");
15
+ @import url("./ui/content-viewer.css");
16
+ @import url("./ui/code-display.css");
17
+
18
+ /* Third-party Framework Styles */
19
+ @import url("./material-ui.css");
20
+ @import url("./primereact.css");
21
+
22
+ /* Overrides & Dark Mode: Last to ensure it overrides other styles */
23
+ @import url("./darkmode.css");