diff --git a/.storybook/style.css b/.storybook/style.css index 781d2c37..916c6e10 100644 --- a/.storybook/style.css +++ b/.storybook/style.css @@ -2,38 +2,33 @@ @tailwind components; @tailwind utilities; +.ReactCollapse--collapse { + transition: height 300ms; +} + @layer base { - input[type="number"]::-webkit-inner-spin-button, - input[type="number"]::-webkit-outer-spin-button { - margin: 0; + input[type='number']::-webkit-inner-spin-button, + input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; -moz-appearance: textfield !important; - } - - body { - font-family: var(--font-inter), sans-serif; - background-color: #f9fafb; - } - - html { - @apply scroll-smooth; + margin: 0; } } @layer components { .radio-ringed-item { - @apply bg-none border border-primary-500 before:content-[""] before:absolute before:left-2/4 before:top-2/4 before:rounded-full before:bg-primary-500 before:-translate-x-2/4 before:-translate-y-2/4; + @apply border border-primary-500 bg-none before:absolute before:left-2/4 before:top-2/4 before:-translate-x-2/4 before:-translate-y-2/4 before:rounded-full before:bg-primary-500 before:content-[""]; } .radio-square-item { - @apply bg-none border border-primary-500 before:content-[""] before:absolute before:left-2/4 before:top-2/4 before:rounded-none before:bg-primary-500 before:-translate-x-2/4 before:-translate-y-2/4; + @apply border border-primary-500 bg-none before:absolute before:left-2/4 before:top-2/4 before:-translate-x-2/4 before:-translate-y-2/4 before:rounded-none before:bg-primary-500 before:content-[""]; } .radio-checked-item { - @apply bg-primary-500 before:content-[""] before:absolute before:left-2/4 before:top-[45%] before:border before:border-white before:rotate-45 before:-translate-x-2/4 before:-translate-y-2/4; + @apply bg-primary-500 before:absolute before:left-2/4 before:top-[45%] before:-translate-x-2/4 before:-translate-y-2/4 before:rotate-45 before:border before:border-white before:content-[""]; } .checkbox-ringed-item { - @apply bg-none border border-primary-500 before:content-[""] before:absolute before:left-2/4 before:top-2/4 before:bg-primary-500 before:-translate-x-2/4 before:-translate-y-2/4; + @apply border border-primary-500 bg-none before:absolute before:left-2/4 before:top-2/4 before:-translate-x-2/4 before:-translate-y-2/4 before:bg-primary-500 before:content-[""]; } .checkbox-checked-item { - @apply bg-primary-500 before:content-[""] before:absolute before:left-2/4 before:top-[45%] before:border before:border-white before:rotate-45 before:-translate-x-2/4 before:-translate-y-2/4; + @apply bg-primary-500 before:absolute before:left-2/4 before:top-[45%] before:-translate-x-2/4 before:-translate-y-2/4 before:rotate-45 before:border before:border-white before:content-[""]; } } @layer utilities { @@ -101,39 +96,19 @@ background: linear-gradient(90deg, #1fa2ff 0%, #12d8fa 50%, #a6ffcb 100%); } .bg-gradient-22 { - background: linear-gradient( - 225deg, - #2cd8d5 0%, - #c5c1ff 56.32%, - #ffbac3 100% - ); + background: linear-gradient(225deg, #2cd8d5 0%, #c5c1ff 56.32%, #ffbac3 100%); } .bg-gradient-23 { background: linear-gradient(77.46deg, #3a1c71 0%, #d76d77 49%, #ffca7b 98%); } .bg-gradient-24 { - background: linear-gradient( - 225deg, - #69eacb 0%, - #eaccf8 44.64%, - #6654f1 100% - ); + background: linear-gradient(225deg, #69eacb 0%, #eaccf8 44.64%, #6654f1 100%); } .bg-gradient-25 { - background: linear-gradient( - 225deg, - #ac32e4 0%, - #7918f2 47.87%, - #4801ff 100% - ); + background: linear-gradient(225deg, #ac32e4 0%, #7918f2 47.87%, #4801ff 100%); } .bg-gradient-26 { - background: linear-gradient( - 87.12deg, - #9cecfb -45.69%, - #65c7f7 25.96%, - #0a40ff 97.6% - ); + background: linear-gradient(87.12deg, #9cecfb -45.69%, #65c7f7 25.96%, #0a40ff 97.6%); } .bg-gradient-27 { background: linear-gradient(90deg, #f7f0ac 0%, #acf7f0 50%, #f0acf7 100%); @@ -142,21 +117,10 @@ background: linear-gradient(90deg, #c6ffdd 0%, #fbd786 50%, #f7797d 100%); } .bg-gradient-29 { - background: linear-gradient( - 284.04deg, - #ffc8a9 0%, - #a981bb 51.78%, - #3b41c5 100% - ); + background: linear-gradient(284.04deg, #ffc8a9 0%, #a981bb 51.78%, #3b41c5 100%); } .bg-gradient-30 { - background: linear-gradient( - 296.69deg, - #3d3393 8.3%, - #2b76b9 35.59%, - #2cacd1 63.24%, - #35eb93 91.67% - ); + background: linear-gradient(296.69deg, #3d3393 8.3%, #2b76b9 35.59%, #2cacd1 63.24%, #35eb93 91.67%); } .bg-gradient-31 { background: linear-gradient( @@ -175,117 +139,38 @@ background: radial-gradient(73% 170% at 50% 64%, #b1aff0 0%, #836df0 100%); } .bg-gradient-33 { - background: radial-gradient( - 100% 100% at 50% 100%, - #71dda6 0%, - #70b2bc 100% - ); + background: radial-gradient(100% 100% at 50% 100%, #71dda6 0%, #70b2bc 100%); } .bg-gradient-34 { - background: radial-gradient( - 100% 100% at 50% 100%, - #ffffff 0%, - #ecfffe 100% - ); + background: radial-gradient(100% 100% at 50% 100%, #ffffff 0%, #ecfffe 100%); } .bg-gradient-35 { - background: radial-gradient( - 100% 100% at 50% 100%, - #71dda6 0%, - #70b2bc 100% - ); + background: radial-gradient(100% 100% at 50% 100%, #71dda6 0%, #70b2bc 100%); } } -.hero-text { - background-clip: text; - -webkit-background-clip: text; - color: transparent; - background-image: linear-gradient(45deg, #7028e4, #e5b2ca, #7028e4); - background-size: 200%; - animation: textAnimate 5s linear infinite; -} - -@keyframes textAnimate { - 0% { - background-position: 0%; - } - 100% { - background-position: 200%; - } -} - -.home-page { - background-image: url("https://staticmania.cdn.prismic.io/staticmania/248e8aae-351f-4cc8-8f1c-f44f9c292ac1_top-bg.svg"); - background-position: center top; - background-repeat: no-repeat; - background-size: 100%; -} -@media (max-width: 768px) { - .home-page { - background-size: 300%; - } -} -@media (min-width: 768px) { - .hero-area { - background-image: url("https://images.prismic.io/staticmania/353398a0-1d71-4c13-82dd-6048e0cddb8f_hero-bg.png?auto=compress,format"); - background-position: center; - background-repeat: no-repeat; - background-size: 100%; - } -} - -#sidebar ::-webkit-scrollbar { - width: 4px; -} -#sidebar ::-webkit-scrollbar-track { - background-color: #f9fafb; - border-radius: 10px; -} -#sidebar ::-webkit-scrollbar-thumb { - background-color: #d7dfe9; - border-radius: 10px; -} - -main::-webkit-scrollbar { - width: 10px; -} -main::-webkit-scrollbar-track { - background-color: #f9fafb; -} -main::-webkit-scrollbar-thumb { - background-color: #d7dfe9; -} - -pre::-webkit-scrollbar { - height: 8px !important; - width: 5px; -} -pre::-webkit-scrollbar-track { - background-color: #d7dfe9 !important; -} -pre::-webkit-scrollbar-thumb { - background-color: #afbaca !important; +/* ================= NUMBER INPUT ARROW ===================== */ +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; } -#tableScrollBar::-webkit-scrollbar { - height: 8px !important; -} -#tableScrollBar::-webkit-scrollbar-track { - background-color: #f9fafb; -} -#tableScrollBar::-webkit-scrollbar-thumb { - border-radius: 10px; - background-color: #d7dfe9; +input[type='number'] { + -moz-appearance: textfield; } /* ================= DATE PICKER===================== */ .react-datepicker { - font-family: inherit !important; box-shadow: 0px 32px 64px -12px rgba(45, 54, 67, 0.14) !important; - background-color: #fff !important; border: none !important; + background-color: #fff !important; + font-family: inherit !important; +} + +.react-datepicker-wrapper { + width: 100%; } .react-datepicker__month-container { @@ -293,17 +178,17 @@ pre::-webkit-scrollbar-thumb { } .react-datepicker__children-container { - width: 100% !important; + margin: 0 !important; padding-right: 0 !important; padding-left: 0 !important; - margin: 0 !important; + width: 100% !important; } .react-datepicker__header { - padding-bottom: 0.5rem !important; border-bottom: none !important; - background-color: #fff !important; border-radius: 0 !important; + background-color: #fff !important; + padding-bottom: 0.5rem !important; } .react-datepicker__header:not(.react-datepicker__header--has-time-select) { @@ -311,12 +196,12 @@ pre::-webkit-scrollbar-thumb { } .react-datepicker__navigation--previous { - top: 35px !important; + top: 32px !important; left: 24px !important; } .react-datepicker__navigation--next { - top: 35px !important; + top: 32px !important; right: 24px !important; } @@ -328,24 +213,24 @@ pre::-webkit-scrollbar-thumb { } .react-datepicker__navigation-icon::before { - border-color: #5e718d !important; - border-style: solid !important; - border-width: 1px 1px 0 0 !important; - content: "" !important; display: block !important; - height: 9px !important; position: absolute !important; top: 6px !important; + border-width: 1px 1px 0 0 !important; + border-style: solid !important; + border-color: #5e718d !important; width: 9px !important; + height: 9px !important; + content: '' !important; } .react-datepicker__current-month { + margin-bottom: 1.25rem !important; + color: #2d3643 !important; + font-weight: 600 !important; font-size: 16px !important; line-height: 24px !important; letter-spacing: -0.3px !important; - font-weight: 600 !important; - margin-bottom: 1.25rem !important; - color: #2d3643 !important; } .react-datepicker__month { @@ -355,8 +240,8 @@ pre::-webkit-scrollbar-thumb { .react-datepicker__day-names { display: flex !important; - align-items: center !important; justify-content: space-between !important; + align-items: center !important; gap: 8px !important; border-top-width: 1px !important; border-bottom-width: 1px !important; @@ -365,36 +250,32 @@ pre::-webkit-scrollbar-thumb { } .react-datepicker__day-name { + color: #5e718d !important; + font-weight: 400 !important; font-size: 16px !important; line-height: 24px !important; letter-spacing: -0.3px !important; - font-weight: 400 !important; - color: #5e718d !important; } .react-datepicker__week { display: flex !important; - align-items: center !important; justify-content: space-between !important; + align-items: center !important; margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; } -.react-datepicker__week:last-child { - margin-bottom: 1rem !important; -} - .react-datepicker__day { display: flex !important; - align-items: center !important; justify-content: center !important; + align-items: center !important; + margin: 0 !important; + width: 2.5rem !important; + height: 2.5rem !important; + font-weight: 500 !important; font-size: 16px !important; line-height: 24px !important; letter-spacing: -0.3px !important; - font-weight: 500 !important; - height: 2.5rem !important; - width: 2.5rem !important; - margin: 0 !important; } .react-datepicker__day--today { @@ -402,48 +283,55 @@ pre::-webkit-scrollbar-thumb { } .react-datepicker__day--outside-month { + color: #afbaca !important; + font-weight: 500 !important; font-size: 16px !important; line-height: 24px !important; letter-spacing: -0.3px !important; - font-weight: 500 !important; - color: #afbaca !important; } -.react-datepicker__day--selected, -.react-datepicker__day--today { - color: white !important; +.react-datepicker__day--selected { background-color: #1b4dff !important; + color: white !important; } -.react-datepicker__day--selected:hover, -.react-datepicker__day--today:hover { +.react-datepicker__day--selected:hover { background-color: #4a72ff !important; } .react-datepicker__day--keyboard-selected { - color: white !important; background-color: #1b4dff !important; + color: white !important; } .react-datepicker__day--keyboard-selected:hover { background-color: #4a72ff !important; } +.react-datepicker__day--today { + background-color: #4a72ff !important; + color: white !important; +} + +.react-datepicker__day--today:hover { + background-color: #6e8eff !important; +} /* =====================DATE RANGE PICKER STYLE START====================== */ .react-datepicker__day--in-range { - background-color: #e8edff !important; border-radius: 0px !important; + background-color: #e8edff !important; } .react-datepicker__day--in-range:hover { - background-color: #e8edff !important; border-radius: 0px !important; + background-color: #e8edff !important; } .react-datepicker__day--in-range.react-datepicker__day--today { color: #2d3643 !important; } -.react-datepicker__day--range-start.react-datepicker__day--today { +.react-datepicker__day--range-start.react-datepicker__day--today, +.react-datepicker__day--range-end.react-datepicker__day--today { color: #fff !important; } @@ -459,21 +347,21 @@ pre::-webkit-scrollbar-thumb { .react-datepicker__day--range-start, .react-datepicker__day--range-end { + border-radius: 0.375rem !important; background-color: #1b4dff !important; color: white !important; - border-radius: 0.375rem !important; } .react-datepicker__day--range-start:hover, .react-datepicker__day--range-end:hover { - background-color: #4a72ff !important; border-radius: 0.375rem !important; + background-color: #4a72ff !important; } .react-datepicker__day--in-selecting-range { + border-radius: 0px !important; background-color: #e8edff !important; color: #455468 !important; - border-radius: 0px !important; } /* =====================DATE RANGE PICKER STYLE END====================== */ @@ -482,8 +370,8 @@ pre::-webkit-scrollbar-thumb { .react-datepicker__month-wrapper { display: flex !important; - align-items: center !important; justify-content: space-between !important; + align-items: center !important; gap: 0.75rem !important; } @@ -505,18 +393,18 @@ pre::-webkit-scrollbar-thumb { .react-datepicker__month .react-datepicker__month-text, .react-datepicker__month .react-datepicker__quarter-text { - width: 48px !important; - height: 48px !important; display: flex !important; - align-items: center !important; justify-content: center !important; + align-items: center !important; transition: all !important; transition-duration: 200ms !important; + width: 48px !important; + height: 48px !important; + color: #2d3643; + font-weight: 500 !important; font-size: 14px !important; line-height: 24px !important; letter-spacing: -0.2px !important; - font-weight: 500 !important; - color: #2d3643; } .react-datepicker__month .react-datepicker__quarter-text:hover { @@ -525,14 +413,14 @@ pre::-webkit-scrollbar-thumb { } .react-datepicker__month .react-datepicker__month-text--today { - color: #fff !important; - background-color: #1b4dff !important; border-radius: 0.375rem !important; + background-color: #1b4dff !important; + color: #fff !important; } .react-datepicker__month .react-datepicker__month-text--today:hover { - color: #fff !important; background-color: #4a72ff !important; + color: #fff !important; } /* ================ MONTH PICKER END =========== */ @@ -540,50 +428,60 @@ pre::-webkit-scrollbar-thumb { /* ================ YEAR PICKER START =========== */ .react-datepicker__year-wrapper { - max-width: 32rem !important; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; - align-items: center !important; justify-content: center !important; - padding: 0px 20px 20px 20px !important; + align-items: center !important; + padding: 0px 20px 14px 20px !important; + max-width: 32rem !important; } .react-datepicker__year .react-datepicker__year-text { - width: 48px !important; - height: 48px !important; display: flex !important; - align-items: center !important; justify-content: center !important; + align-items: center !important; transition: all 0.2s !important; + border-radius: 0.375rem !important; + width: 48px !important; + height: 48px !important; + color: #2d3643 !important; + font-weight: 500 !important; font-size: 14px !important; line-height: 24px !important; letter-spacing: -0.2px !important; - font-weight: 500 !important; - border-radius: 0.375rem !important; - color: #2d3643 !important; } -.react-datepicker__year .react-datepicker__year-text:hover { +.react-datepicker__year-text.react-datepicker__year-text--keyboard-selected { + border-radius: 0.375rem !important; background-color: #e8edff !important; + color: #0f3cd9 !important; } -.react-datepicker__year .react-datepicker__year-text--selected, +.react-datepicker__year .react-datepicker__year-text--selected { + border-radius: 0.375rem !important; + background-color: #1b4dff !important; + color: #fff !important; +} .react-datepicker__year .react-datepicker__year-text--today { - background-color: #e8edff !important; border-radius: 0.375rem !important; + background-color: #e8edff !important; color: #0f3cd9 !important; } +.react-datepicker__year.react-datepicker__year-text:hover { + background-color: #4a72ff !important; +} + /* ================ YEAR PICKER END =========== */ /* ================ TIME PICKER START =========== */ .react-datepicker-time__header { + border-bottom: 1px solid #f0f3f9 !important; + color: #3d4a5c !important; + font-weight: 500 !important; font-size: 16px !important; line-height: 32px !important; letter-spacing: -0.3px !important; - font-weight: 500 !important; - color: #3d4a5c !important; - border-bottom: 1px solid #f0f3f9 !important; } .react-datepicker__time-container { @@ -595,36 +493,40 @@ pre::-webkit-scrollbar-thumb { } .react-datepicker__time-list-item { - height: 2.5rem !important; display: flex !important; - align-items: center !important; justify-content: center !important; - font-size: 14px !important; + align-items: center !important; + height: 2.5rem !important; + color: #5e718d !important; font-weight: 500 !important; + font-size: 14px !important; line-height: 24px !important ; letter-spacing: -0.3px !important; - color: #5e718d !important; } .react-datepicker__time-list-item:hover { - color: #fff !important; background-color: #1b4dff !important; + color: #fff !important; } .react-datepicker__time-list-item.react-datepicker__time-list-item--selected { + background-color: #6e8eff !important; color: #fff !important; - background-color: #1b4dff !important; +} + +.react-datepicker__time-list-item.react-datepicker__time-list-item--selected:hover { + background-color: #4a72ff !important; } .react-datepicker__time-container ::-webkit-scrollbar { width: 0.5rem !important; } .react-datepicker__time-container ::-webkit-scrollbar-track { - background-color: #f9fafb; border-radius: 10px; + background-color: #f9fafb; } .react-datepicker__time-container ::-webkit-scrollbar-thumb { - background-color: #d7dfe9; border-radius: 10px; + background-color: #d7dfe9; } /* ================ TIME PICKER END =========== */ @@ -634,12 +536,12 @@ pre::-webkit-scrollbar-thumb { .rc-slider { position: relative; + box-sizing: border-box; + border-radius: 6px; + padding: 5px 0; width: 100%; height: 14px; - padding: 5px 0; - border-radius: 6px; touch-action: none; - box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .rc-slider * { @@ -648,39 +550,39 @@ pre::-webkit-scrollbar-thumb { } .rc-slider-rail { position: absolute; + border-radius: 6px; + background-color: #e8edff; width: 100%; height: 10px; - background-color: #e8edff; - border-radius: 6px; } .rc-slider-track { position: absolute; - height: 10px; - background-color: #1b4dff; border-radius: 6px; + background-color: #1b4dff; + height: 10px; } .rc-slider-track-draggable { + transform: translateY(-5px); z-index: 1; box-sizing: content-box; - background-clip: content-box; border-top: 5px solid rgba(0, 0, 0, 0); border-bottom: 5px solid rgba(0, 0, 0, 0); - transform: translateY(-5px); + background-clip: content-box; } .rc-slider-handle { position: absolute; + opacity: 1; z-index: 1; - margin-top: -5px; - border-radius: 50%; cursor: pointer; cursor: -webkit-grab; cursor: grab; - touch-action: pan-x; + margin-top: -5px; + border: 2px solid #1b4dff; + border-radius: 50%; + background-color: #fff; width: 20px; height: 20px; - background-color: #fff; - border: 2px solid #1b4dff; - opacity: 1; + touch-action: pan-x; } .rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-dragging { box-shadow: 0 0 0 5px #b4c4ff !important; @@ -691,21 +593,21 @@ pre::-webkit-scrollbar-thumb { box-shadow: none; } .rc-slider-handle:focus-visible { - border-color: #2db7f5; box-shadow: 0 0 0 3px #96dbfa; + border-color: #2db7f5; } .rc-slider-handle-click-focused:focus { - border-color: #96dbfa; box-shadow: unset; + border-color: #96dbfa; } .rc-slider-handle:hover { border-color: #1b4dff !important; } .rc-slider-handle:active { - border-color: #57c5f7; - box-shadow: 0 0 5px #57c5f7; cursor: -webkit-grabbing; cursor: grabbing; + box-shadow: 0 0 5px #57c5f7; + border-color: #57c5f7; } .rc-slider-mark { position: absolute; @@ -715,37 +617,38 @@ pre::-webkit-scrollbar-thumb { font-size: 12px; } .rc-slider-mark-text { - position: absolute; display: inline-block; - text-align: center; + position: absolute; + top: 5px; vertical-align: middle; cursor: pointer; - top: 5px; - font-size: 14px; - font-weight: 500; color: #1b4dff; + font-weight: 500; + font-size: 14px; + text-align: center; } .rc-slider-mark-text-active { color: #666; } .rc-slider-step { position: absolute; + background: transparent; width: 100%; height: 10px; - background: transparent; } .rc-slider-dot { position: absolute; bottom: 0px; - width: 10px; - height: 10px; vertical-align: middle; - background-color: #fff; + cursor: pointer; border: 2px solid #e9e9e9; border-radius: 50%; - cursor: pointer; + background-color: #fff; + width: 10px; + height: 10px; } .rc-slider-dot-active { + left: 5px !important; border-color: #94abff; } .rc-slider-dot-reverse { @@ -764,19 +667,19 @@ pre::-webkit-scrollbar-thumb { .rc-slider-disabled .rc-slider-handle, .rc-slider-disabled .rc-slider-dot { - background-color: #fff; - border-color: #cccccc !important; - box-shadow: none; cursor: not-allowed; + box-shadow: none; + border-color: #cccccc !important; + background-color: #fff; } .rc-slider-disabled .rc-slider-mark-text, .rc-slider-disabled .rc-slider-dot { cursor: not-allowed !important; } .rc-slider-vertical { + padding: 0 5px; width: 14px; height: 100%; - padding: 0 5px; } .rc-slider-vertical .rc-slider-rail { width: 4px; @@ -788,11 +691,11 @@ pre::-webkit-scrollbar-thumb { width: 4px; } .rc-slider-vertical .rc-slider-track-draggable { + transform: translateX(-5px); border-top: 0; - border-bottom: 0; border-right: 5px solid rgba(0, 0, 0, 0); + border-bottom: 0; border-left: 5px solid rgba(0, 0, 0, 0); - transform: translateX(-5px); } .rc-slider-vertical .rc-slider-handle { position: absolute; @@ -828,12 +731,12 @@ pre::-webkit-scrollbar-thumb { } .rc-slider-tooltip-zoom-down-enter.rc-slider-tooltip-zoom-down-enter-active, .rc-slider-tooltip-zoom-down-appear.rc-slider-tooltip-zoom-down-appear-active { - animation-name: rcSliderTooltipZoomDownIn; animation-play-state: running; + animation-name: rcSliderTooltipZoomDownIn; } .rc-slider-tooltip-zoom-down-leave.rc-slider-tooltip-zoom-down-leave-active { - animation-name: rcSliderTooltipZoomDownOut; animation-play-state: running; + animation-name: rcSliderTooltipZoomDownOut; } .rc-slider-tooltip-zoom-down-enter, .rc-slider-tooltip-zoom-down-appear { @@ -884,24 +787,24 @@ pre::-webkit-scrollbar-thumb { padding: 4px 0 8px 0; } .rc-slider-tooltip-inner { + box-shadow: 0 0 4px #d9d9d9; + border-radius: 6px; + background-color: #6c6c6c; + padding: 6px 2px; min-width: 24px; height: 24px; - padding: 6px 2px; color: #fff; font-size: 12px; line-height: 1; text-align: center; text-decoration: none; - background-color: #6c6c6c; - border-radius: 6px; - box-shadow: 0 0 4px #d9d9d9; } .rc-slider-tooltip-arrow { position: absolute; + border-style: solid; + border-color: transparent; width: 0; height: 0; - border-color: transparent; - border-style: solid; } .rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow { bottom: 0px; @@ -926,57 +829,57 @@ pre::-webkit-scrollbar-thumb { .rc-tooltip-zoom-appear { opacity: 0; animation-duration: 0.3s; - animation-fill-mode: both; animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28); + animation-fill-mode: both; animation-play-state: paused; } .rc-tooltip-zoom-leave { animation-duration: 0.3s; - animation-fill-mode: both; animation-timing-function: cubic-bezier(0.6, -0.3, 0.74, 0.05); + animation-fill-mode: both; animation-play-state: paused; } .rc-tooltip-zoom-enter.rc-tooltip-zoom-enter-active, .rc-tooltip-zoom-appear.rc-tooltip-zoom-appear-active { - animation-name: rcToolTipZoomIn; animation-play-state: running; + animation-name: rcToolTipZoomIn; } .rc-tooltip-zoom-leave.rc-tooltip-zoom-leave-active { - animation-name: rcToolTipZoomOut; animation-play-state: running; + animation-name: rcToolTipZoomOut; } @keyframes rcToolTipZoomIn { 0% { - opacity: 0; - transform-origin: 50% 50%; transform: scale(0, 0); + transform-origin: 50% 50%; + opacity: 0; } 100% { - opacity: 1; - transform-origin: 50% 50%; transform: scale(1, 1); + transform-origin: 50% 50%; + opacity: 1; } } @keyframes rcToolTipZoomOut { 0% { - opacity: 1; - transform-origin: 50% 50%; transform: scale(1, 1); + transform-origin: 50% 50%; + opacity: 1; } 100% { - opacity: 0; - transform-origin: 50% 50%; transform: scale(0, 0); + transform-origin: 50% 50%; + opacity: 0; } } .rc-tooltip { - position: absolute; - z-index: 1070; display: block; + position: absolute; visibility: visible; + opacity: 0.9; + z-index: 1070; font-size: 12px; line-height: 1.5; - opacity: 0.9; } .rc-tooltip-hidden { display: none; @@ -1002,22 +905,22 @@ pre::-webkit-scrollbar-thumb { padding: 0 9px 0 5px; } .rc-tooltip-inner { + box-shadow: 0 0 4px rgba(0, 0, 0, 0.17); + border-radius: 6px; + background-color: #373737; padding: 8px 10px; + min-height: 34px; color: #fff; text-align: left; text-decoration: none; - background-color: #373737; - border-radius: 6px; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.17); - min-height: 34px; } .rc-tooltip-arrow { position: absolute; bottom: 0; + border-style: solid; + border-color: transparent; width: 0; height: 0; - border-color: transparent; - border-style: solid; } .rc-tooltip-placement-top .rc-tooltip-arrow, .rc-tooltip-placement-topLeft .rc-tooltip-arrow, @@ -1090,3 +993,125 @@ pre::-webkit-scrollbar-thumb { right: 15%; } /* ================ TOOLTIP CSS END =========== */ + +/* ================ TYPOGRAPHY CSS START =========== */ + +.display-1 { + font-size: 11rem; + line-height: 13.125rem; + letter-spacing: -3.5px; +} + +.display-2 { + font-size: 9rem; + line-height: 10.62rem; + letter-spacing: -3.5px; +} + +.display-3 { + font-size: 7.5rem; + line-height: 8.375rem; + letter-spacing: -3.5px; +} + +.display-4 { + font-size: 6rem; + line-height: 6.875rem; + letter-spacing: -2.5px; +} + +.heading-1 { + font-size: 4.5rem; + line-height: 5.5rem; + letter-spacing: -2.3px; +} + +.heading-2 { + font-size: 4rem; + line-height: 4.875rem; + letter-spacing: -2.3px; +} + +.heading-3 { + font-size: 3.5rem; + line-height: 4.125rem; + letter-spacing: -1.75px; +} + +.heading-4 { + font-size: 3rem; + line-height: 3.75rem; + letter-spacing: -1.75px; +} + +.heading-5 { + font-size: 2.25rem; + line-height: 3rem; + letter-spacing: -1px; +} + +.heading-6 { + font-size: 2rem; + line-height: 2.625rem; + letter-spacing: -0.5px; +} + +.description-1 { + font-size: 1.875rem; + line-height: 2.625rem; + letter-spacing: -0.5px; +} + +.description-2 { + font-size: 1.75rem; + line-height: 2.625rem; + letter-spacing: -0.5px; +} + +.description-3 { + font-size: 1.625rem; + line-height: 2.5rem; + letter-spacing: -0.5px; +} + +.description-4 { + font-size: 1.5rem; + line-height: 2.25rem; + letter-spacing: -0.5px; +} + +.body-1 { + font-size: 1.375rem; + line-height: 1.875rem; + letter-spacing: -0.3px; +} + +.body-2 { + font-size: 1.25rem; + line-height: 1.75rem; + letter-spacing: -0.3px; +} + +.body-3 { + font-size: 1.125rem; + line-height: 1.5rem; + letter-spacing: -0.3px; +} + +.body-4 { + font-size: 1rem; + line-height: 1.5rem; + letter-spacing: -0.3px; +} + +.body-5 { + font-size: 0.875rem; + line-height: 1.375rem; + letter-spacing: -0.2px; +} + +.body-6 { + font-size: 0.75rem; + line-height: 1.125rem; + letter-spacing: -0.2px; +} diff --git a/CHANGELOG.md b/CHANGELOG.md index 64736b6b..3e0eab37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,4 +19,20 @@ All notable changes to this project will be documented in this file. - Fixed Typography Error - Update Documentation - Add className Props in every component - - customClass props removed with className props \ No newline at end of file + - customClass props removed with className props + + ### v1.1.0 (2023-12-18) + + #### Features + - Alert component props and structure changed + - Accordion component props and structure changed + - Notification component props and structure changed + - Popover component props and structure changed + - Added Modal and Notification component open animation + - Added Typography component + - CSS Import Style changed + - Keep Preset import styles changed + +#### Bug fixes + - Date Picker Type Issue + - Popover width Issue \ No newline at end of file diff --git a/README.md b/README.md index 067fa26d..f89d5754 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ pnpm add keep-react following code: ```jsx -import keepPreset from "keep-react/src/keep-preset.js"; +import keepPreset from "keep-react/preset"; export default { content: ["node_modules/keep-react/**/*.{js,jsx,ts,tsx}"], presets: [keepPreset], @@ -63,7 +63,7 @@ export default { `Step 4:` Add Tailwind CSS to index.css File: ```css -@import "keep-react/src/main.min.css"; +@import "keep-react/css"; @tailwind base; @tailwind components; @tailwind utilities; @@ -107,14 +107,14 @@ following code ```js module.exports = { content: ["node_modules/keep-react/**/*.{js,jsx,ts,tsx}"], - presets: [require("keep-react/src/keep-preset.js")], + presets: [require("keep-react/preset")], }; ``` `Step 4:` Add Tailwind CSS to globals.css File: ```css -@import "keep-react/src/main.min.css"; +@import "keep-react/css"; @tailwind base; @tailwind components; @tailwind utilities; diff --git a/app/docs/components/accordion/accordion.mdx b/app/docs/components/accordion/accordion.mdx index f5aeceb2..01e68549 100644 --- a/app/docs/components/accordion/accordion.mdx +++ b/app/docs/components/accordion/accordion.mdx @@ -1,9 +1,9 @@ import { DefaultAccordion, DefaultAccordionCode } from './variant/DefaultAccordion' -import { AccordionCollapseAll, AccordionCollapseAllCode } from './variant/AccordionCollapseAll' -import { AccordionWithLeftSideIcon, AccordionWithLeftSideIconCode } from './variant/AccordionWithLeftSideIcon' -import { AccordionAlwaysOpen, AccordionAlwaysOpenCode } from './variant/AccordionAlwaysOpen' +import { AccordionFlush, AccordionFlushCode } from './variant/AccordionFlush' +import { AccordionOpenPanel, AccordionOpenPanelCode } from './variant/AccordionOpenPanel' import { DisabledAccordionCode, DisabledAccordion } from './variant/DisabledAccordion' -import { AccordionWithCustomIcon, AccordionWithCustomIconCode } from './variant/AccordionWithCustomIcon' +import { AccordionWithIcon, AccordionWithIconCode } from './variant/AccordionWithIcon' +import { CustomizeAccordion, CustomizeAccordionCode } from './variant/CustomizeAccordion' import CodePreview from '~/components/CodePreview' import CssThemePreview from '~/components/CssThemePreview' import ComponentApi from '~/components/ComponentApi' @@ -15,50 +15,50 @@ The Accordion Component in the Keep React allows you to create collapsible secti ## Default Accordion -The Default Accordion Component allows you to craft collapsible content sections. Users can reveal and hide the content by simply clicking on the disclosure button. +The default Accordion component allows users to reveal and hide content by simply clicking on the disclosure button. -## Controlling Collapse Behavior +## Flush Accordion -The `collapseAll` property lets you control the initial state of accordion panels. When set to `true`, all panels are collapsed by default. Users can then expand individual panels as needed. +Control the initial state of accordion panels with the `flush` property. - - + + -## Visual Context with Left-Side Icons +## Accordion First Open Panel -Using the `iconPosition="left"` property in the AccordionPanel, you can position icons on the left side of the panel header. This allows you to offer context or indicate the content within the panel. +Use the `openFirstPanel` property to set the first accordion panel to be open by default. - - + + -## Customizing Icons +## Accordion With Icon -If you prefer custom icons, you have the freedom to choose your preferred icons for the accordion's open and close states. Utilize the `openIcon` and `closeIcon` props for this purpose. +Enhance your accordion with icons for a more visually appealing experience. - - + + -## Panels That Stay Open +## Disabled Accordions -With the `alwaysOpen={true}` property, you can configure all panels to remain expanded. This eliminates the need for users to manually toggle panels, ensuring all content is consistently visible. +Control user interactions by making specific AccordionPanel components non-interactive with the `disabled` property. - - + + -## Disabled Accordions +## Customize Accordion -If you need to control which panels users can interact with, the `disabled` property on specific AccordionPanel components makes certain panels non-interactive. +Tailor the accordion to fit your design preferences with custom styling. - - + + ## API Reference diff --git a/app/docs/components/accordion/accordionApi.ts b/app/docs/components/accordion/accordionApi.ts index 6829f71d..fa485fc4 100644 --- a/app/docs/components/accordion/accordionApi.ts +++ b/app/docs/components/accordion/accordionApi.ts @@ -1,7 +1,7 @@ export const accordionApiData = [ { id: 1, - propsName: 'alwaysOpen', + propsName: 'openFirstPanel', propsType: 'boolean', propsDescription: 'Keep first panels always open.', default: 'false', @@ -10,24 +10,9 @@ export const accordionApiData = [ id: 3, propsName: 'flush', propsType: 'boolean', - propsDescription: 'Accordion without outer border and rounded corners.', + propsDescription: 'Accordion without outer border and and background color', default: 'false', }, - { - id: 4, - propsName: 'collapseAll', - propsType: 'boolean', - propsDescription: 'Collapse panels by default.', - default: 'false', - }, - - { - id: 6, - propsName: 'iconPosition', - propsType: ['left', 'right'], - propsDescription: 'Position of the arrow icon.', - default: 'left', - }, { id: 7, propsName: 'disabled', diff --git a/app/docs/components/accordion/variant/AccordionAlwaysOpen.tsx b/app/docs/components/accordion/variant/AccordionAlwaysOpen.tsx deleted file mode 100644 index 4e269fb1..00000000 --- a/app/docs/components/accordion/variant/AccordionAlwaysOpen.tsx +++ /dev/null @@ -1,95 +0,0 @@ -'use client' -import { Accordion } from '~/src' - -const AccordionAlwaysOpen = () => { - return ( - - - What is the purpose of the Keep React? - -

- The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a - unified user experience across our products. It simplifies the design and development process by providing - ready-to-use components that can be easily customized and integrated into various applications. -

-
-
- - How do I customize the color scheme of components? - -

- The Keep React offers a range of color variants for components. To customize the color scheme, you can use - the available color options such as gray,info,error,warning and success. Simply set the desired color - variant as a prop when using the component, and it will reflect the chosen color. -

-
-
- - Can I add additional content to notifications? - -

- Yes, the Notification component in the Keep React allows you to include extra content alongside the primary - message. The additionalContent prop can be used to display supplementary information, such as buttons, - links, or icons, within the notification to provide users with more context and options. -

-
-
-
- ) -} - -const AccordionAlwaysOpenCode = ` -"use client"; -import { Accordion } from "keep-react"; - -export const AccordionComponent = () => { - return ( - - - - What is the purpose of the Keep React? - - -

- The Keep React is a collection of UI components, styles, and - guidelines that ensure consistency and a unified user experience - across our products. It simplifies the design and development - process by providing ready-to-use components that can be easily - customized and integrated into various applications. -

-
-
- - - How do I customize the color scheme of components? - - -

- The Keep React offers a range of color variants for - components. To customize the color scheme, you can use the available - color options such as gray,info,error,warning and success. Simply - set the desired color variant as a prop when using the component, - and it will reflect the chosen color. -

-
-
- - - Can I add additional content to notifications? - - -

- Yes, the Notification component in the Keep React allows you - to include extra content alongside the primary message. The - additionalContent prop can be used to display supplementary - information, such as buttons, links, or icons, within the - notification to provide users with more context and options. -

-
-
-
- ); -}; -` - -export { AccordionAlwaysOpen, AccordionAlwaysOpenCode } diff --git a/app/docs/components/accordion/variant/AccordionCollapseAll.tsx b/app/docs/components/accordion/variant/AccordionCollapseAll.tsx deleted file mode 100644 index 27a8f8a1..00000000 --- a/app/docs/components/accordion/variant/AccordionCollapseAll.tsx +++ /dev/null @@ -1,95 +0,0 @@ -'use client' -import { Accordion } from '~/src' - -const AccordionCollapseAll = () => { - return ( - - - What is the purpose of the Keep React? - -

- The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a - unified user experience across our products. It simplifies the design and development process by providing - ready-to-use components that can be easily customized and integrated into various applications. -

-
-
- - How do I customize the color scheme of components? - -

- The Keep React offers a range of color variants for components. To customize the color scheme, you can use - the available color options such as gray,info,error,warning and success. Simply set the desired color - variant as a prop when using the component, and it will reflect the chosen color. -

-
-
- - Can I add additional content to notifications? - -

- Yes, the Notification component in the Keep React allows you to include extra content alongside the primary - message. The additionalContent prop can be used to display supplementary information, such as buttons, - links, or icons, within the notification to provide users with more context and options. -

-
-
-
- ) -} - -const AccordionCollapseAllCode = ` -"use client" -import { Accordion } from "keep-react"; - -export const AccordionComponent = () => { - return ( - - - - What is the purpose of the Keep React? - - -

- The Keep React is a collection of UI components, styles, and - guidelines that ensure consistency and a unified user experience - across our products. It simplifies the design and development - process by providing ready-to-use components that can be easily - customized and integrated into various applications. -

-
-
- - - How do I customize the color scheme of components? - - -

- The Keep React offers a range of color variants for - components. To customize the color scheme, you can use the available - color options such as gray,info,error,warning and success. Simply - set the desired color variant as a prop when using the component, - and it will reflect the chosen color. -

-
-
- - - Can I add additional content to notifications? - - -

- Yes, the Notification component in the Keep React allows you - to include extra content alongside the primary message. The - additionalContent prop can be used to display supplementary - information, such as buttons, links, or icons, within the - notification to provide users with more context and options. -

-
-
-
- ); -}; -` - -export { AccordionCollapseAll, AccordionCollapseAllCode } diff --git a/app/docs/components/accordion/variant/AccordionFlush.tsx b/app/docs/components/accordion/variant/AccordionFlush.tsx new file mode 100644 index 00000000..8cdadaca --- /dev/null +++ b/app/docs/components/accordion/variant/AccordionFlush.tsx @@ -0,0 +1,83 @@ +'use client' +import { Accordion } from '~/src' + +const AccordionFlush = () => { + return ( + + + + What is the purpose of the Keep React? + + + The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a unified + user experience across our products. It simplifies the design and development process by providing + ready-to-use components that can be easily customized and integrated into various applications. + + + + + How do I customize the color scheme of components? + + + The Keep React offers a range of color variants for components. To customize the color scheme, you can use the + available color options such as gray,info,error,warning and success. Simply set the desired color variant as a + prop when using the component, and it will reflect the chosen color. + + + + + Can I add additional content to notifications? + + + Yes, the Notification component in the Keep React allows you to include extra content alongside the primary + message. The additionalContent prop can be used to display supplementary information, such as buttons, links, + or icons, within the notification to provide users with more context and options. + + + + ) +} + +const AccordionFlushCode = ` +"use client" +import { Accordion } from "keep-react"; + +export const AccordionComponent = () => { + return ( + + + + What is the purpose of the Keep React? + + + The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a unified + user experience across our products. It simplifies the design and development process by providing + ready-to-use components that can be easily customized and integrated into various applications. + + + + + How do I customize the color scheme of components? + + + The Keep React offers a range of color variants for components. To customize the color scheme, you can use the + available color options such as gray,info,error,warning and success. Simply set the desired color variant as a + prop when using the component, and it will reflect the chosen color. + + + + + Can I add additional content to notifications? + + + Yes, the Notification component in the Keep React allows you to include extra content alongside the primary + message. The additionalContent prop can be used to display supplementary information, such as buttons, links, + or icons, within the notification to provide users with more context and options. + + + + ) +} +` + +export { AccordionFlush, AccordionFlushCode } diff --git a/app/docs/components/accordion/variant/AccordionOpenPanel.tsx b/app/docs/components/accordion/variant/AccordionOpenPanel.tsx new file mode 100644 index 00000000..2f01e70a --- /dev/null +++ b/app/docs/components/accordion/variant/AccordionOpenPanel.tsx @@ -0,0 +1,83 @@ +'use client' +import { Accordion } from '~/src' + +const AccordionOpenPanel = () => { + return ( + + + + What is the purpose of the Keep React? + + + The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a unified + user experience across our products. It simplifies the design and development process by providing + ready-to-use components that can be easily customized and integrated into various applications. + + + + + How do I customize the color scheme of components? + + + The Keep React offers a range of color variants for components. To customize the color scheme, you can use the + available color options such as gray,info,error,warning and success. Simply set the desired color variant as a + prop when using the component, and it will reflect the chosen color. + + + + + Can I add additional content to notifications? + + + Yes, the Notification component in the Keep React allows you to include extra content alongside the primary + message. The additionalContent prop can be used to display supplementary information, such as buttons, links, + or icons, within the notification to provide users with more context and options. + + + + ) +} + +const AccordionOpenPanelCode = ` +"use client"; +import { Accordion } from "keep-react"; + +export const AccordionComponent = () => { + return ( + + + + What is the purpose of the Keep React? + + + The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a unified + user experience across our products. It simplifies the design and development process by providing + ready-to-use components that can be easily customized and integrated into various applications. + + + + + How do I customize the color scheme of components? + + + The Keep React offers a range of color variants for components. To customize the color scheme, you can use + the available color options such as gray,info,error,warning and success. Simply set the desired color + variant as a prop when using the component, and it will reflect the chosen color. + + + + + Can I add additional content to notifications? + + + Yes, the Notification component in the Keep React allows you to include extra content alongside the primary + message. The additionalContent prop can be used to display supplementary information, such as buttons, + links, or icons, within the notification to provide users with more context and options. + + + + ) +} +` + +export { AccordionOpenPanel, AccordionOpenPanelCode } diff --git a/app/docs/components/accordion/variant/AccordionWithCustomIcon.tsx b/app/docs/components/accordion/variant/AccordionWithCustomIcon.tsx deleted file mode 100644 index c4ef4dd4..00000000 --- a/app/docs/components/accordion/variant/AccordionWithCustomIcon.tsx +++ /dev/null @@ -1,102 +0,0 @@ -'use client' -import { Accordion } from '~/src' -import { CaretDown, CaretUp } from 'phosphor-react' - -const AccordionWithCustomIcon = () => { - return ( - } closeIcon={} iconPosition="right" flush={true}> - - What is the purpose of the Keep React? - -

- The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a - unified user experience across our products. It simplifies the design and development process by providing - ready-to-use components that can be easily customized and integrated into various applications. -

-
-
- - How do I customize the color scheme of components? - -

- The Keep React offers a range of color variants for components. To customize the color scheme, you can use - the available color options such as gray,info,error,warning and success. Simply set the desired color - variant as a prop when using the component, and it will reflect the chosen color. -

-
-
- - Can I add additional content to notifications? - -

- Yes, the Notification component in the Keep React allows you to include extra content alongside the primary - message. The additionalContent prop can be used to display supplementary information, such as buttons, - links, or icons, within the notification to provide users with more context and options. -

-
-
-
- ) -} - -const AccordionWithCustomIconCode = ` -"use client"; -import { Accordion } from "keep-react"; -import { CaretDown, CaretUp } from "phosphor-react"; - -export const AccordionComponent = () => { - return ( - } - closeIcon={} - iconPosition="right" - flush={true} - > - - - What is the purpose of the Keep React? - - -

- The Keep React is a collection of UI components, styles, and - guidelines that ensure consistency and a unified user experience - across our products. It simplifies the design and development - process by providing ready-to-use components that can be easily - customized and integrated into various applications. -

-
-
- - - How do I customize the color scheme of components? - - -

- The Keep React offers a range of color variants for - components. To customize the color scheme, you can use the available - color options such as gray,info,error,warning and success. Simply - set the desired color variant as a prop when using the component, - and it will reflect the chosen color. -

-
-
- - - Can I add additional content to notifications? - - -

- Yes, the Notification component in the Keep React allows you - to include extra content alongside the primary message. The - additionalContent prop can be used to display supplementary - information, such as buttons, links, or icons, within the - notification to provide users with more context and options. -

-
-
-
- ); -}; -` - -export { AccordionWithCustomIcon, AccordionWithCustomIconCode } diff --git a/app/docs/components/accordion/variant/AccordionWithIcon.tsx b/app/docs/components/accordion/variant/AccordionWithIcon.tsx new file mode 100644 index 00000000..3a5f16be --- /dev/null +++ b/app/docs/components/accordion/variant/AccordionWithIcon.tsx @@ -0,0 +1,103 @@ +'use client' +import { Plus } from 'phosphor-react' +import { Accordion } from '~/src' + +const AccordionWithIcon = () => { + return ( + + + + What is the purpose of the Keep React? + + + + + + The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a unified + user experience across our products. It simplifies the design and development process by providing + ready-to-use components that can be easily customized and integrated into various applications. + + + + + How do I customize the color scheme of components? + + + + + + The Keep React offers a range of color variants for components. To customize the color scheme, you can use the + available color options such as gray,info,error,warning and success. Simply set the desired color variant as a + prop when using the component, and it will reflect the chosen color. + + + + + Can I add additional content to notifications? + + + + + + Yes, the Notification component in the Keep React allows you to include extra content alongside the primary + message. The additionalContent prop can be used to display supplementary information, such as buttons, links, + or icons, within the notification to provide users with more context and options. + + + + ) +} + +const AccordionWithIconCode = ` +"use client"; +import { Accordion } from "keep-react"; +import { Plus } from "phosphor-react"; + +export const AccordionComponent = () => { + return ( + + + + What is the purpose of the Keep React? + + + + + + The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a unified + user experience across our products. It simplifies the design and development process by providing + ready-to-use components that can be easily customized and integrated into various applications. + + + + + How do I customize the color scheme of components? + + + + + + The Keep React offers a range of color variants for components. To customize the color scheme, you can use the + available color options such as gray,info,error,warning and success. Simply set the desired color variant as a + prop when using the component, and it will reflect the chosen color. + + + + + Can I add additional content to notifications? + + + + + + Yes, the Notification component in the Keep React allows you to include extra content alongside the primary + message. The additionalContent prop can be used to display supplementary information, such as buttons, links, + or icons, within the notification to provide users with more context and options. + + + + ) +} +` + +export { AccordionWithIcon, AccordionWithIconCode } diff --git a/app/docs/components/accordion/variant/AccordionWithLeftSideIcon.tsx b/app/docs/components/accordion/variant/AccordionWithLeftSideIcon.tsx deleted file mode 100644 index 9da3233b..00000000 --- a/app/docs/components/accordion/variant/AccordionWithLeftSideIcon.tsx +++ /dev/null @@ -1,95 +0,0 @@ -'use client' -import { Accordion } from '~/src' - -const AccordionWithLeftSideIcon = () => { - return ( - - - What is the purpose of the Keep React? - -

- The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a - unified user experience across our products. It simplifies the design and development process by providing - ready-to-use components that can be easily customized and integrated into various applications. -

-
-
- - How do I customize the color scheme of components? - -

- The Keep React offers a range of color variants for components. To customize the color scheme, you can use - the available color options such as gray,info,error,warning and success. Simply set the desired color - variant as a prop when using the component, and it will reflect the chosen color. -

-
-
- - Can I add additional content to notifications? - -

- Yes, the Notification component in the Keep React allows you to include extra content alongside the primary - message. The additionalContent prop can be used to display supplementary information, such as buttons, - links, or icons, within the notification to provide users with more context and options. -

-
-
-
- ) -} - -const AccordionWithLeftSideIconCode = ` -"use client"; -import { Accordion } from "keep-react"; - -export const AccordionComponent = () => { - return ( - - - - What is the purpose of the Keep React? - - -

- The Keep React is a collection of UI components, styles, and - guidelines that ensure consistency and a unified user experience - across our products. It simplifies the design and development - process by providing ready-to-use components that can be easily - customized and integrated into various applications. -

-
-
- - - How do I customize the color scheme of components? - - -

- The Keep React offers a range of color variants for - components. To customize the color scheme, you can use the available - color options such as gray,info,error,warning and success. Simply - set the desired color variant as a prop when using the component, - and it will reflect the chosen color. -

-
-
- - - Can I add additional content to notifications? - - -

- Yes, the Notification component in the Keep React allows you - to include extra content alongside the primary message. The - additionalContent prop can be used to display supplementary - information, such as buttons, links, or icons, within the - notification to provide users with more context and options. -

-
-
-
- ); -}; -` - -export { AccordionWithLeftSideIcon, AccordionWithLeftSideIconCode } diff --git a/app/docs/components/accordion/variant/CustomizeAccordion.tsx b/app/docs/components/accordion/variant/CustomizeAccordion.tsx new file mode 100644 index 00000000..0e893b04 --- /dev/null +++ b/app/docs/components/accordion/variant/CustomizeAccordion.tsx @@ -0,0 +1,51 @@ +'use client' +import { Plus } from 'phosphor-react' +import { Accordion } from '~/src' + +const CustomizeAccordion = () => { + return ( + + + + What is the of the Keep React? + + + + + + The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a unified + user experience across our products. It simplifies the design and development process by providing + ready-to-use components that can be easily customized and integrated into various applications. + + + + ) +} + +const CustomizeAccordionCode = ` +'use client' +import { Plus } from 'phosphor-react' +import { Accordion } from 'keep-react' + +export const AccordionComponent = () => { + return ( + + + + What is the of the Keep React? + + + + + + The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a unified + user experience across our products. It simplifies the design and development process by providing + ready-to-use components that can be easily customized and integrated into various applications. + + + + ) +} +` + +export { CustomizeAccordion, CustomizeAccordionCode } diff --git a/app/docs/components/accordion/variant/DefaultAccordion.tsx b/app/docs/components/accordion/variant/DefaultAccordion.tsx index 31be7705..809f1a15 100644 --- a/app/docs/components/accordion/variant/DefaultAccordion.tsx +++ b/app/docs/components/accordion/variant/DefaultAccordion.tsx @@ -3,15 +3,15 @@ import { Accordion } from '~/src' const DefaultAccordion = () => { return ( - + - What is the of the Keep React? + + What is the of the Keep React? + -

- The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a - unified user experience across our products. It simplifies the design and development process by providing - ready-to-use components that can be easily customized and integrated into various applications. -

+ The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a unified + user experience across our products. It simplifies the design and development process by providing + ready-to-use components that can be easily customized and integrated into various applications.
@@ -24,22 +24,20 @@ import { Accordion } from "keep-react"; export const AccordionComponent = () => { return ( - + - What is the of the Keep React? + + What is the of the Keep React? + -

- The Keep React is a collection of UI components, styles, and - guidelines that ensure consistency and a unified user experience - across our products. It simplifies the design and development - process by providing ready-to-use components that can be easily - customized and integrated into various applications. -

+ The Keep React is a collection of UI components, styles, and guidelines that ensure consistency and a + unified user experience across our products. It simplifies the design and development process by providing + ready-to-use components that can be easily customized and integrated into various applications.
- ); -}; + ) +} ` export { DefaultAccordion, DefaultAccordionCode } diff --git a/app/docs/components/accordion/variant/DisabledAccordion.tsx b/app/docs/components/accordion/variant/DisabledAccordion.tsx index e6e63c02..bce75982 100644 --- a/app/docs/components/accordion/variant/DisabledAccordion.tsx +++ b/app/docs/components/accordion/variant/DisabledAccordion.tsx @@ -3,22 +3,19 @@ import { Accordion } from '~/src' const DisabledAccordion = () => { return ( - + - What is keep Design? + + What is keep Design? +

keep Design is an open-source library of interactive components built on top of Tailwind CSS including buttons, dropdowns, modals, navbar, and more.

- Check out this guide to learn how to - - get started - - and start developing websites even faster with components on top of Tailwind CSS. + Check out this guide to learn how to and start developing websites even faster with components on top of + Tailwind CSS.

@@ -27,25 +24,30 @@ const DisabledAccordion = () => { } const DisabledAccordionCode = ` -"use client"; -import { Accordion } from "keep-react"; +'use client' +import { Accordion } from 'keep-react' export const AccordionComponent = () => { return ( - + - What is keep Design? + + What is keep Design? +

- keep Design is an open-source library of interactive components - built on top of Tailwind CSS including buttons, dropdowns, modals, - navbar, and more. + keep Design is an open-source library of interactive components built on top of Tailwind CSS including + buttons, dropdowns, modals, navbar, and more. +

+

+ Check out this guide to learn how to and start developing websites even faster with components on top of + Tailwind CSS.

- ); -}; + ) +} ` export { DisabledAccordion, DisabledAccordionCode } diff --git a/app/docs/components/alert/alert.mdx b/app/docs/components/alert/alert.mdx index 73be4739..f9a9fd6d 100644 --- a/app/docs/components/alert/alert.mdx +++ b/app/docs/components/alert/alert.mdx @@ -3,6 +3,7 @@ import { AlertWithDismissIcon, AlertWithDismissIconCode } from './variant/AlertW import { AlertWithRounded, AlertWithRoundedCode } from './variant/AlertWithRounded' import { AlertWithColorVariant, AlertWithColorVariantCode } from './variant/AlertColorVariant' import { AlertWithBorderAccent, AlertWithBorderAccentCode } from './variant/AlertWithBorderAccent' +import { CustomizeAlert, CustomizeAlertCode } from './variant/CustomizeAlert' import CodePreview from '~/components/CodePreview' import CssThemePreview from '~/components/CssThemePreview' @@ -53,6 +54,14 @@ Colors can convey the nature of alerts. While the default color is `info`, you c
+## Customize Alert + +Alert is fully customizable component. You can inject any className from tailwind as your desired. + + + + + ## API Reference Explore the available props for the Alert component diff --git a/app/docs/components/alert/alertApi.ts b/app/docs/components/alert/alertApi.ts index 064c501a..9c46c57b 100644 --- a/app/docs/components/alert/alertApi.ts +++ b/app/docs/components/alert/alertApi.ts @@ -3,8 +3,8 @@ export const alertApiData = [ id: 1, propsName: 'color', propsDescription: 'The color variant of the alert.', - propsType: ['info', 'gray', 'success', 'warning', 'error'], - default: 'info', + propsType: ['primary', 'metal', 'success', 'warning', 'error'], + default: 'primary', }, { id: 2, @@ -34,13 +34,6 @@ export const alertApiData = [ propsType: 'boolean', default: 'false', }, - { - id: 9, - propsName: 'title', - propsDescription: 'Alert title to be displayed in the alert.', - propsType: 'string', - default: 'Default message...', - }, { id: 6, propsName: 'withBorder', @@ -63,23 +56,16 @@ export const alertApiData = [ default: 'left', }, { - id: 10, - propsName: 'className', - propsDescription: 'Injects the class name', - propsType: 'string', - default: 'None', - }, - { - id: 11, - propsName: 'titleStyle', - propsDescription: 'Injects the class name in title', + id: 9, + propsName: 'BtnStyle', + propsDescription: 'Injects the class name in alert dismiss button.', propsType: 'string', default: 'None', }, { - id: 12, - propsName: 'iconStyle', - propsDescription: 'Injects the class name in icon', + id: 10, + propsName: 'className', + propsDescription: 'Injects the class name', propsType: 'string', default: 'None', }, diff --git a/app/docs/components/alert/variant/AlertColorVariant.tsx b/app/docs/components/alert/variant/AlertColorVariant.tsx index 8209e4fb..5cd63819 100644 --- a/app/docs/components/alert/variant/AlertColorVariant.tsx +++ b/app/docs/components/alert/variant/AlertColorVariant.tsx @@ -2,218 +2,258 @@ import Link from 'next/link' import { Alert } from '~/src' import { useState } from 'react' -import { CheckCircle, Info, WarningCircle, XCircle } from 'phosphor-react' +import { CheckCircle, Info, XCircle } from 'phosphor-react' const AlertWithColorVariant = () => { - const [showAlert, setShowAlert] = useState(false) - const onDismiss = () => { - setShowAlert(!showAlert) + const [dismiss, setDismiss] = useState([false, false, false, false, false]) + + const handleDismiss = (index: number) => { + const updatedDismissStates = [...dismiss] + updatedDismissStates[index] = true + setDismiss(updatedDismissStates) } return (
handleDismiss(1)} + dismiss={dismiss[1]} rounded={true} withBorder={true} - withBorderAccent - onDismiss={onDismiss} - withBorderAccentPosition="left" - additionalContent={ -
- Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry - - Link style - -
- } - icon={} - title="Default message - make it short">
+ withBorderAccent={true} + color="primary"> + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + handleDismiss(2)} + dismiss={dismiss[2]} rounded={true} withBorder={true} - withBorderAccent - withBorderAccentPosition="left" - onDismiss={onDismiss} - additionalContent={ -
- Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry - - Link style - -
- } - title="Default message - make it short" - icon={}>
+ withBorderAccent={true} + color="success"> + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + handleDismiss(3)} + dismiss={dismiss[3]} rounded={true} withBorder={true} - withBorderAccent - onDismiss={onDismiss} - withBorderAccentPosition="left" - additionalContent={ -
- Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry - - Link style - -
- } - title="Default message - make it short" - icon={} - /> + withBorderAccent={true} + color="metal"> + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + +
handleDismiss(4)} + dismiss={dismiss[4]} rounded={true} withBorder={true} - withBorderAccent - onDismiss={onDismiss} - withBorderAccentPosition="left" - additionalContent={ -
- Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry - - Link style - -
- } - icon={} - title="Default message - make it short" - /> + withBorderAccent={true} + color="warning"> + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + +
handleDismiss(5)} + dismiss={dismiss[5]} rounded={true} withBorder={true} - withBorderAccent - onDismiss={onDismiss} - withBorderAccentPosition="left" - additionalContent={ -
- Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry - - Link style - -
- } - icon={} - title="Default message - make it short" - /> + withBorderAccent={true} + color="error"> + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + +
) } const AlertWithColorVariantCode = ` -"use client"; -import Link from "next/link"; -import { useState } from "react"; -import { Alert } from "keep-react"; -import { CheckCircle, Info, WarningCircle, XCircle } from "phosphor-react"; +'use client' +import Link from 'next/link' +import { useState } from 'react' +import { Alert } from 'keep-react' +import { CheckCircle, Info, XCircle } from 'phosphor-react' export const AlertComponent = () => { - const [showAlert, setShowAlert] = useState(false); + const [showAlert, setShowAlert] = useState(false) const onDismiss = () => { - setShowAlert(!showAlert); - }; + setShowAlert(!showAlert) + } return (
- Default message - Lorem Ipsum is simply dummy text of the printing - and typesetting industry - - Link style - -
- } - icon={} - title="Default message - make it short" - > + withBorderAccent={true} + color="primary"> + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + - Default message - Lorem Ipsum is simply dummy text of the printing - and typesetting industry - - Link style - - - } - title="Default message - make it short" - icon={} - > + withBorderAccent={true} + color="success"> + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + - Default message - Lorem Ipsum is simply dummy text of the printing - and typesetting industry - - Link style - - - } - title="Default message - make it short" - icon={} - /> + withBorderAccent={true} + color="metal"> + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + - Default message - Lorem Ipsum is simply dummy text of the printing - and typesetting industry - - Link style - - - } - icon={} - title="Default message - make it short" - /> + withBorderAccent={true} + color="warning"> + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + - Default message - Lorem Ipsum is simply dummy text of the printing - and typesetting industry - - Link style - - - } - icon={} - title="Default message - make it short" - /> + withBorderAccent={true} + color="error"> + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + - ); + ) } ` diff --git a/app/docs/components/alert/variant/AlertWithBorderAccent.tsx b/app/docs/components/alert/variant/AlertWithBorderAccent.tsx index 02ec59a1..85ddb216 100644 --- a/app/docs/components/alert/variant/AlertWithBorderAccent.tsx +++ b/app/docs/components/alert/variant/AlertWithBorderAccent.tsx @@ -10,24 +10,22 @@ const AlertWithBorderAccent = () => { setShowAlert(!showAlert) } return ( - - Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry - - Link style - - - } - icon={} - title="Default message - make it short" - /> + + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + ) } @@ -39,32 +37,29 @@ import { Alert } from "keep-react"; import { Info } from "phosphor-react"; export const AlertComponent = () => { - const [showAlert, setShowAlert] = useState(false); + const [showAlert, setShowAlert] = useState(false) const onDismiss = () => { - setShowAlert(!showAlert); - }; + setShowAlert(!showAlert) + } return ( - - Default message - Lorem Ipsum is simply dummy text of the printing and - typesetting industry - - Link style - - - } - icon={} - title="Default message - make it short" - /> - ); -}; + + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + + ) +} ` export { AlertWithBorderAccent, AlertWithBorderAccentCode } diff --git a/app/docs/components/alert/variant/AlertWithDismissIcon.tsx b/app/docs/components/alert/variant/AlertWithDismissIcon.tsx index 4c5fc479..a5089986 100644 --- a/app/docs/components/alert/variant/AlertWithDismissIcon.tsx +++ b/app/docs/components/alert/variant/AlertWithDismissIcon.tsx @@ -2,7 +2,7 @@ import Link from 'next/link' import { Alert } from '~/src' import { useState } from 'react' -import { WarningCircle } from 'phosphor-react' +import { Info } from 'phosphor-react' const AlertWithDismissIcon = () => { const [showAlert, setShowAlert] = useState(false) @@ -10,53 +10,56 @@ const AlertWithDismissIcon = () => { setShowAlert(!showAlert) } return ( - - Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry - - Link style - - - } - icon={} - title="Default message - make it short" - /> + + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + ) } const AlertWithDismissIconCode = ` -"use client"; -import Link from "next/link"; -import { useState } from "react"; -import { Alert } from "keep-react"; -import { WarningCircle } from "phosphor-react"; +'use client' +import Link from 'next/link' +import { useState } from 'react' +import { Alert } from 'keep-react' +import { Info } from 'phosphor-react' -export const AlertComponent = () => { - const [showAlert, setShowAlert] = useState(false); +const AlertComponent = () => { + const [showAlert, setShowAlert] = useState(false) const onDismiss = () => { - setShowAlert(!showAlert); - }; + setShowAlert(!showAlert) + } return ( - - Default message - Lorem Ipsum is simply dummy text of the printing and - typesetting industry - - Link style - - - } - icon={} - title="Default message - make it short" - /> - ); -}; + + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + + ) +} ` export { AlertWithDismissIcon, AlertWithDismissIconCode } diff --git a/app/docs/components/alert/variant/AlertWithRounded.tsx b/app/docs/components/alert/variant/AlertWithRounded.tsx index 08f55684..44f14a74 100644 --- a/app/docs/components/alert/variant/AlertWithRounded.tsx +++ b/app/docs/components/alert/variant/AlertWithRounded.tsx @@ -10,57 +10,56 @@ const AlertWithRounded = () => { setShowAlert(!showAlert) } return ( - - Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry - - Link style - - - } - icon={} - title="Default message - make it short" - /> + + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + ) } const AlertWithRoundedCode = ` -"use client"; -import Link from "next/link"; -import { useState } from "react"; -import { Alert } from "keep-react"; -import { Info } from "phosphor-react"; +'use client' +import Link from 'next/link' +import { useState } from 'react' +import { Alert } from 'keep-react' +import { Info } from 'phosphor-react' -export const AlertComponent = () => { - const [showAlert, setShowAlert] = useState(false); +const AlertComponent = () => { + const [showAlert, setShowAlert] = useState(false) const onDismiss = () => { - setShowAlert(!showAlert); - }; + setShowAlert(!showAlert) + } return ( - - Default message - Lorem Ipsum is simply dummy text of the printing and - typesetting industry - - Link style - - - } - icon={} - title="Default message - make it short" - /> - ); -}; + + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + + ) +} ` export { AlertWithRounded, AlertWithRoundedCode } diff --git a/app/docs/components/alert/variant/CustomizeAlert.tsx b/app/docs/components/alert/variant/CustomizeAlert.tsx new file mode 100644 index 00000000..a3159751 --- /dev/null +++ b/app/docs/components/alert/variant/CustomizeAlert.tsx @@ -0,0 +1,54 @@ +'use client' +import { Alert } from '~/src' +import Link from 'next/link' +import { Info } from 'phosphor-react' + +const CustomizeAlert = () => { + return ( + + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + + ) +} + +const CustomizeAlertCode = ` +'use client' +import Link from 'next/link' +import { Alert } from 'keep-react' +import { Info } from 'phosphor-react' + +export const AlertComponent = () => { + return ( + + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + + ) +} +` +export { CustomizeAlert, CustomizeAlertCode } diff --git a/app/docs/components/alert/variant/DefaultAlert.tsx b/app/docs/components/alert/variant/DefaultAlert.tsx index d8dedb38..e4f51c4f 100644 --- a/app/docs/components/alert/variant/DefaultAlert.tsx +++ b/app/docs/components/alert/variant/DefaultAlert.tsx @@ -5,44 +5,51 @@ import { Info } from 'phosphor-react' const DefaultAlert = () => { return ( - - Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry - - Link style - - - } - icon={} - title="Default message - make it short" - /> + + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + ) } const DefaultAlertCode = ` -"use client"; -import Link from "next/link"; -import { Alert } from "keep-react"; -import { Info } from "phosphor-react"; +'use client' +import Link from 'next/link' +import { Alert } from 'keep-react' +import { Info } from 'phosphor-react' export const AlertComponent = () => { return ( - - Default message - Lorem Ipsum is simply dummy text of the printing and - typesetting industry - - Link style - - - } - icon={} - title="Default message - make it short" - /> - ); -}; + + + + + + + Default message - make it short + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry + + Link style + + + + + + ) +} ` export { DefaultAlert, DefaultAlertCode } diff --git a/app/docs/components/card/variant/CardWithIcon.tsx b/app/docs/components/card/variant/CardWithIcon.tsx index 1089c322..36b50b23 100644 --- a/app/docs/components/card/variant/CardWithIcon.tsx +++ b/app/docs/components/card/variant/CardWithIcon.tsx @@ -39,14 +39,11 @@ const CardWithIcon = () => { - - Keep Design System - - }> - + + Keep Design System + + + @@ -122,19 +119,11 @@ export const CardComponent = () => { - - Keep Design System - - } - > - + + Keep Design System + + + diff --git a/app/docs/components/datePicker/variant/DatePickerWithTwoMonth.tsx b/app/docs/components/datePicker/variant/DatePickerWithTwoMonth.tsx index 315c8148..f632e996 100644 --- a/app/docs/components/datePicker/variant/DatePickerWithTwoMonth.tsx +++ b/app/docs/components/datePicker/variant/DatePickerWithTwoMonth.tsx @@ -7,7 +7,7 @@ const DatePickerWithTwoMonth = () => { return (
- +
@@ -22,7 +22,7 @@ import { DatePicker } from "keep-react"; export const DatePickerComponent = () => { const [date, setDate] = useState(null); return ( - + ); diff --git a/app/docs/components/datePicker/variant/DefaultDatePicker.tsx b/app/docs/components/datePicker/variant/DefaultDatePicker.tsx index 34c2f210..7955a0dc 100644 --- a/app/docs/components/datePicker/variant/DefaultDatePicker.tsx +++ b/app/docs/components/datePicker/variant/DefaultDatePicker.tsx @@ -6,7 +6,7 @@ const DefaultDatePicker = () => { const [_, setDate] = useState(null) return (
- +
@@ -21,7 +21,7 @@ import { DatePicker } from "keep-react"; export const DatePickerComponent = () => { const [date, setDate] = useState(null); return ( - + ); diff --git a/app/docs/components/datePicker/variant/MonthPicker.tsx b/app/docs/components/datePicker/variant/MonthPicker.tsx index 0aee429c..aba75e5f 100644 --- a/app/docs/components/datePicker/variant/MonthPicker.tsx +++ b/app/docs/components/datePicker/variant/MonthPicker.tsx @@ -6,7 +6,7 @@ const MonthPicker = () => { const [_, setMonthPicker] = useState() return (
- +
@@ -21,7 +21,7 @@ import { DatePicker } from "keep-react"; export const MonthComponent = () => { const [monthPicker, setMonthPicker] = useState(null); return ( - + ); diff --git a/app/docs/components/datePicker/variant/TimePicker.tsx b/app/docs/components/datePicker/variant/TimePicker.tsx index f577ac3a..4e028235 100644 --- a/app/docs/components/datePicker/variant/TimePicker.tsx +++ b/app/docs/components/datePicker/variant/TimePicker.tsx @@ -6,7 +6,7 @@ const TimePicker = () => { const [_, setTime] = useState() return (
- +
@@ -21,7 +21,7 @@ import { DatePicker } from "keep-react"; export const TimePickerComponent = () => { const [time, setTime] = useState(null); return ( - + ); diff --git a/app/docs/components/datePicker/variant/YearPicker.tsx b/app/docs/components/datePicker/variant/YearPicker.tsx index cf65003d..9a6dee83 100644 --- a/app/docs/components/datePicker/variant/YearPicker.tsx +++ b/app/docs/components/datePicker/variant/YearPicker.tsx @@ -6,7 +6,7 @@ const YearPicker = () => { const [_, setYearPicker] = useState() return (
- +
@@ -21,7 +21,7 @@ import { DatePicker } from "keep-react"; export const YearPickerComponent = () => { const [yearPicker, setYearPicker] = useState(); return ( - + ); diff --git a/app/docs/components/empty/Empty.mdx b/app/docs/components/empty/Empty.mdx index 361d648d..320388c3 100644 --- a/app/docs/components/empty/Empty.mdx +++ b/app/docs/components/empty/Empty.mdx @@ -3,14 +3,13 @@ import { EmptyFolder, EmptyFolderCode } from './variant/EmptyFolder' import { NoResultPage, NoResultPageCode } from './variant/NoResultPage' import { NotFoundPage, NotFoundPageCode } from './variant/NotFoundPage' import { NoDataFound, NoDataFoundCode } from './variant/NoDataFound' -import { emptyApiData } from './EmptyApi' +import { redirectButtonApi } from './EmptyApi' import { PageNotAvailable, PageNotAvailableCode } from './variant/PageNotAvailable' import CodePreview from '~/components/CodePreview' import CssThemePreview from '~/components/CssThemePreview' import ComponentApi from '~/components/ComponentApi' - ## Table of Contents Empty Component is a user interface element specifically designed to handle situations where a requested page or resource cannot be found. It is often displayed when a user navigates to a URL that doesn't correspond to any existing content within the application or website. @@ -63,8 +62,6 @@ The message No Data Found is commonly displayed to users when a search, query, o ## API Reference -Explore the available props for the empty component - - - +Explore the available props for the `` component + diff --git a/app/docs/components/empty/EmptyApi.ts b/app/docs/components/empty/EmptyApi.ts index f2633742..51ee78ef 100644 --- a/app/docs/components/empty/EmptyApi.ts +++ b/app/docs/components/empty/EmptyApi.ts @@ -1,65 +1,37 @@ -export const emptyApiData = [ +export const redirectButtonApi = [ { id: 1, - propsName: 'title', - propsType: 'string', - propsDescription: 'Title or heading of the empty component.', - default: 'title', - }, - { - id: 2, - propsName: 'content', - propsType: 'string', - propsDescription: 'Additional content or description for the empty component.', - default: 'content', - }, - { - id: 3, propsName: 'redirectUrl', propsType: 'string', propsDescription: 'URL to redirect users when a certain action is taken.', default: '/home', }, { - id: 4, + id: 2, propsName: 'buttonText', propsType: 'string', propsDescription: 'Text for the button that triggers a specific action.', default: 'Go To Home Page', }, { - id: 5, + id: 3, propsName: 'redirectBtnSize', propsType: ['xs', 'sm', 'md', 'lg'], propsDescription: 'Redirects button size', default: 'md', }, { - id: 6, - propsName: 'image', - propsType: 'ReactNode', - propsDescription: 'Image displayed in the empty component.', - default: '', - }, - { - id: 7, - propsName: 'titleStyle', - propsType: 'string', - propsDescription: 'Custom class to style the title.', - default: 'None', - }, - { - id: 8, - propsName: 'contentStyle', - propsType: 'string', - propsDescription: 'Custom class to style the content.', - default: 'None', - }, - { - id: 9, + id: 4, propsName: 'buttonType', propsType: ['primary', 'dashed', 'text', 'linkPrimary', 'linkGray', 'outlineGray', 'outlinePrimary', 'default'], propsDescription: 'Redirect Button type', default: 'primary', }, + { + id: 5, + propsName: 'className', + propsType: 'string', + propsDescription: 'Custom class to style the redirect button.', + default: 'None', + }, ] diff --git a/app/docs/components/empty/variant/DefaultEmpty.tsx b/app/docs/components/empty/variant/DefaultEmpty.tsx index 62979020..ffc929b3 100644 --- a/app/docs/components/empty/variant/DefaultEmpty.tsx +++ b/app/docs/components/empty/variant/DefaultEmpty.tsx @@ -4,21 +4,21 @@ import { Empty } from '~/src' const DefaultEmpty = () => { return ( - + 404 - } - /> + + Oops! You seem to be lost + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry. + + + ) } @@ -29,22 +29,22 @@ import { Empty } from "keep-react"; export const EmptyComponent = () => { return ( - + 404 - } - /> - ); + + Oops! You seem to be lost + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry. + + + + ) } ` diff --git a/app/docs/components/empty/variant/EmptyFolder.tsx b/app/docs/components/empty/variant/EmptyFolder.tsx index 523de39d..5f95abb5 100644 --- a/app/docs/components/empty/variant/EmptyFolder.tsx +++ b/app/docs/components/empty/variant/EmptyFolder.tsx @@ -4,21 +4,21 @@ import { Empty } from '~/src' const EmptyFolder = () => { return ( - + 404 - } - /> + + This folder has gone missing + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry. + + + ) } @@ -29,22 +29,22 @@ import { Empty } from "keep-react"; export const EmptyComponent = () => { return ( - + 404 - } - /> - ); + + This folder has gone missing + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry. + + + + ) } ` diff --git a/app/docs/components/empty/variant/NoDataFound.tsx b/app/docs/components/empty/variant/NoDataFound.tsx index 1135c47a..f19fdf7d 100644 --- a/app/docs/components/empty/variant/NoDataFound.tsx +++ b/app/docs/components/empty/variant/NoDataFound.tsx @@ -4,21 +4,21 @@ import { Empty } from '~/src' const NoDataFound = () => { return ( - + 404 - } - /> + + No Data Found + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry. + + + ) } @@ -29,23 +29,22 @@ import { Empty } from "keep-react"; export const EmptyComponent = () => { return ( - + 404 - } - buttonText="Go Back" - /> - ); + + No Data Found + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry. + + + + ) } ` diff --git a/app/docs/components/empty/variant/NoResultPage.tsx b/app/docs/components/empty/variant/NoResultPage.tsx index 6acd49cd..45dd8054 100644 --- a/app/docs/components/empty/variant/NoResultPage.tsx +++ b/app/docs/components/empty/variant/NoResultPage.tsx @@ -4,21 +4,21 @@ import { Empty } from '~/src' const NoResultPage = () => { return ( - + 404 - } - /> + + Sorry, no result found! + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry. + + + ) } @@ -29,22 +29,22 @@ import { Empty } from "keep-react"; export const EmptyComponent = () => { return ( - + 404 - } - /> - ); + + Sorry, No result found! + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry. + + + + ) } ` diff --git a/app/docs/components/empty/variant/NotFoundPage.tsx b/app/docs/components/empty/variant/NotFoundPage.tsx index d96793c6..48e0563d 100644 --- a/app/docs/components/empty/variant/NotFoundPage.tsx +++ b/app/docs/components/empty/variant/NotFoundPage.tsx @@ -4,21 +4,21 @@ import { Empty } from '~/src' const NotFoundPage = () => { return ( - + 404 - } - /> + + 404 Not Found + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry. + + + ) } @@ -29,22 +29,22 @@ import { Empty } from "keep-react"; export const EmptyComponent = () => { return ( - + 404 - } - /> - ); + + 404 Not Found + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry. + + + + ) } ` diff --git a/app/docs/components/empty/variant/PageNotAvailable.tsx b/app/docs/components/empty/variant/PageNotAvailable.tsx index d9774a67..1da6ecff 100644 --- a/app/docs/components/empty/variant/PageNotAvailable.tsx +++ b/app/docs/components/empty/variant/PageNotAvailable.tsx @@ -4,21 +4,21 @@ import { Empty } from '~/src' const PageNotAvailable = () => { return ( - + 404 - } - /> + + Page isn't available right now + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry. + + + ) } @@ -29,22 +29,22 @@ import { Empty } from "keep-react"; export const EmptyComponent = () => { return ( - + 404 - } - /> - ); + + This page isn't available right now + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry. + + + + ) } ` diff --git a/app/docs/components/notification/notification.mdx b/app/docs/components/notification/notification.mdx index f0786fd9..d2929deb 100644 --- a/app/docs/components/notification/notification.mdx +++ b/app/docs/components/notification/notification.mdx @@ -9,7 +9,6 @@ import CodePreview from '~/components/CodePreview' import CssThemePreview from '~/components/CssThemePreview' import ComponentApi from '~/components/ComponentApi' - ## Table of Contents Notification component in the Keep React allows you to display informative messages or alerts to users. With various styles and options for positioning, you can effectively communicate important updates or messages in a visually appealing manner. diff --git a/app/docs/components/notification/notificationApi.ts b/app/docs/components/notification/notificationApi.ts index 93dedee9..52f18866 100644 --- a/app/docs/components/notification/notificationApi.ts +++ b/app/docs/components/notification/notificationApi.ts @@ -1,51 +1,30 @@ export const notificationApi = [ { id: 1, - propsName: 'additionalContent', - propsType: 'ReactNode', - propsDescription: 'Additional content to include in the notification.', - default: 'Content', - }, - { - id: 2, - propsName: 'infoIcon', - propsType: 'ReactNode', - propsDescription: 'An icon to display as additional information.', - default: '', - }, - { - id: 3, propsName: 'dismiss', propsType: 'boolean', propsDescription: 'Determines whether the notification can be dismissed.', default: 'false', }, { - id: 4, - propsName: 'headerBannerSrc', - propsType: 'string', - propsDescription: 'Source URL for the header banner image.', - default: 'None', - }, - { - id: 5, + id: 2, propsName: 'onDismiss', propsType: 'boolean | (() => void)', propsDescription: 'Function to call when the notification is dismissed.', default: 'false', }, { - id: 6, - propsName: 'showNotification', - propsType: 'boolean', - propsDescription: 'Determines if a notification should be shown.', - default: 'false', - }, - { - id: 7, + id: 3, propsName: 'position', propsType: ['top-left', 'top-right', 'bottom-left', 'bottom-right'], propsDescription: 'Sets the position of the notification.', default: 'top-left', }, + { + id: 4, + propsName: 'className', + propsType: 'string', + propsDescription: 'Custom class name for the notification', + default: 'None', + }, ] diff --git a/app/docs/components/notification/variant/DefaultNotification.tsx b/app/docs/components/notification/variant/DefaultNotification.tsx index 4813c24c..01671f44 100644 --- a/app/docs/components/notification/variant/DefaultNotification.tsx +++ b/app/docs/components/notification/variant/DefaultNotification.tsx @@ -3,95 +3,70 @@ import { useState } from 'react' import { Button, Notification } from '~/src' const DefaultNotification = () => { - const [showNotification, setShowNotification] = useState(false) - const onDismiss = () => { - setShowNotification(!showNotification) - } + const [showNotification, setShowNotification] = useState(true) - const handleShowNotification = () => { + const onDismiss = () => { setShowNotification(!showNotification) } return ( -
- - -

- Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry. -

-
- - -
-
- }> -

Can we store cookies?

+ + + Can we store cookies? + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry. + + + + + + ) } const DefaultNotificationCode = ` -"use client"; -import { useState } from "react"; -import { Button, Notification } from "keep-react"; +'use client' +import { useState } from 'react' +import { Button, Notification } from 'keep-react' export const NotificationComponent = () => { - const [showNotification, setShowNotification] = useState(false); - const onDismiss = () => { - setShowNotification(!showNotification); - }; + const [showNotification, setShowNotification] = useState(true) - const handleShowNotification = () => { - setShowNotification(!showNotification); - }; + const onDismiss = () => { + setShowNotification(!showNotification) + } return ( - <> - - -

- Default message - Lorem Ipsum is simply dummy text of the printing - and typesetting industry. -

-
- - -
- - } - > -

- Can we store cookies? -

+
+ + + + Can we store cookies? + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry. + + + + + + - - ); +
+ ) } ` diff --git a/app/docs/components/notification/variant/NotificationWithAvatar.tsx b/app/docs/components/notification/variant/NotificationWithAvatar.tsx index 2435a058..6126b4a3 100644 --- a/app/docs/components/notification/variant/NotificationWithAvatar.tsx +++ b/app/docs/components/notification/variant/NotificationWithAvatar.tsx @@ -3,117 +3,81 @@ import { useState } from 'react' import { Notification, Button, Avatar } from '~/src' const NotificationWithAvatar = () => { - const [showNotification, setShowNotification] = useState(false) + const [showNotification, setShowNotification] = useState(true) const onDismiss = () => { setShowNotification(!showNotification) } - const handleShowNotification = () => { - setShowNotification(!showNotification) - } - return ( -
- - - Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry. -
- - -
-
- } - infoIcon={ -
- -
- }> -

- Rono Pixel - Product Designer -

+ + +
) } const NotificationWithAvatarCode = ` -"use client"; -import { useState } from "react"; -import { Notification, Button, Avatar } from "keep-react"; +'use client' +import { useState } from 'react' +import { Notification, Button, Avatar } from 'keep-react' export const NotificationComponent = () => { - - const [showNotification, setShowNotification] = useState(false); + const [showNotification, setShowNotification] = useState(true) const onDismiss = () => { - setShowNotification(!showNotification); - }; - - const handleShowNotification = () => { - setShowNotification(!showNotification); - }; + setShowNotification(!showNotification) + } return ( - <> - - - Default message - Lorem Ipsum is simply dummy text of the printing - and typesetting industry. -
- + + + + + + + Kausar Ahmed Pial + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry. + + + - -
- - } - infoIcon={ -
- -
- } - > -

- Rono Pixel - - Product Designer - -

+ + +
- - ); -}; + + ) +} ` export { NotificationWithAvatar, NotificationWithAvatarCode } diff --git a/app/docs/components/notification/variant/NotificationWithCard.tsx b/app/docs/components/notification/variant/NotificationWithCard.tsx index 45db9e45..1b3a2706 100644 --- a/app/docs/components/notification/variant/NotificationWithCard.tsx +++ b/app/docs/components/notification/variant/NotificationWithCard.tsx @@ -1,99 +1,245 @@ 'use client' +import Image from 'next/image' +import { DownloadSimple, FigmaLogo } from 'phosphor-react' import { useState } from 'react' import { Button, Notification } from '~/src' const NotificationWithCard = () => { - const [showNotification, setShowNotification] = useState(false) - const onDismiss = () => { - setShowNotification(!showNotification) - } + const [notificationOne, setNotificationOne] = useState(true) + const [notificationTwo, setNotificationTwo] = useState(true) + const [notificationThree, setNotificationThree] = useState(true) - const handleShowNotification = () => { - setShowNotification(!showNotification) + const onDismissOne = () => { + setNotificationOne(!notificationOne) + setNotificationTwo(true) + setNotificationThree(true) + } + const onDismissTwo = () => { + setNotificationTwo(!notificationTwo) + setNotificationOne(true) + setNotificationThree(true) + } + const onDismissThree = () => { + setNotificationTwo(true) + setNotificationOne(true) + setNotificationThree(!notificationThree) } return ( -
- - +
+ + + + + + + + notification + + + Keep React is awesome + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry. + + + + + + + + + + notification + + + Keep React is awesome + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry. -
- - -
-
- }> -

Welcome Keep Design

+ + + + + + +
+ + + Can we store cookies? + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry. + + + notification + + + + + +
) } const NotificationWithCardCode = ` -"use client"; -import { useState } from "react"; -import { Button, Notification } from "keep-react"; +'use client' +import Image from 'next/image' +import { useState } from 'react' +import { Button, Notification } from 'keep-react' +import { DownloadSimple, FigmaLogo } from 'phosphor-react' export const NotificationComponent = () => { - - const [showNotification, setShowNotification] = useState(false); - const onDismiss = () => { - setShowNotification(!showNotification); - }; + const [notificationOne, setNotificationOne] = useState(true) + const [notificationTwo, setNotificationTwo] = useState(true) + const [notificationThree, setNotificationThree] = useState(true) - const handleShowNotification = () => { - setShowNotification(!showNotification); - }; + const onDismissOne = () => { + setNotificationOne(!notificationOne) + } + const onDismissTwo = () => { + setNotificationTwo(!notificationTwo) + } + const onDismissThree = () => { + setNotificationThree(!notificationThree) + } return ( - <> - - - Default message - Lorem Ipsum is simply dummy text of the printing - and typesetting industry. -
- - -
- - } - > -

- Welcome Keep Design -

+
+ + + + + + + + + notification + + + Keep React is awesome + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry. + + + + + + + + + + notification + + + Keep React is awesome + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry. + + + + + + + + + + Can we store cookies? + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry. + + + notification + + + + + + - - ); +
+ ) } ` diff --git a/app/docs/components/notification/variant/NotificationWithIcon.tsx b/app/docs/components/notification/variant/NotificationWithIcon.tsx index 61f5b56c..32bed960 100644 --- a/app/docs/components/notification/variant/NotificationWithIcon.tsx +++ b/app/docs/components/notification/variant/NotificationWithIcon.tsx @@ -4,109 +4,81 @@ import { Cookie } from 'phosphor-react' import { Notification, Button } from '~/src' const NotificationWithIcon = () => { - const [showNotification, setShowNotification] = useState(false) + const [showNotification, setShowNotification] = useState(true) const onDismiss = () => { setShowNotification(!showNotification) } - const handleShowNotification = () => { - setShowNotification(!showNotification) - } return ( -
- - - - - - - } - additionalContent={ -
- Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry. -
- - -
-
- }> -

Can we store cookies?

+ + +
) } const NotificationWithIconCode = ` -"use client"; -import { useState } from "react"; -import { Cookie } from "phosphor-react"; -import { Notification, Button } from "keep-react"; +'use client' +import { useState } from 'react' +import { Cookie } from 'phosphor-react' +import { Notification, Button } from 'keep-react' export const NotificationComponent = () => { - - const [showNotification, setShowNotification] = useState(false); + const [showNotification, setShowNotification] = useState(true) const onDismiss = () => { - setShowNotification(!showNotification); - }; - const handleShowNotification = () => { - setShowNotification(!showNotification); - }; + setShowNotification(!showNotification) + } return ( - <> - - - - - - - } - additionalContent={ -
- Default message - Lorem Ipsum is simply dummy text of the printing - and typesetting industry. -
- + + + + + + + Can we store cookies? + + Default message - Lorem Ipsum is simply dummy text of the printing and typesetting industry. + + + - -
-
- } - > -

- Can we store cookies? -

+ + +
- - ); + + ) } ` diff --git a/app/docs/components/popover/variant/DefaultPopover.tsx b/app/docs/components/popover/variant/DefaultPopover.tsx index 8cc151fd..b0088d95 100644 --- a/app/docs/components/popover/variant/DefaultPopover.tsx +++ b/app/docs/components/popover/variant/DefaultPopover.tsx @@ -3,49 +3,48 @@ import { Button, Popover } from '~/src' const DefaultPopover = () => { return ( -
- - - -
- }> - +
+ + Popover title here + + There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in + some form, by injected humour + + + + + + +
) } const DefaultPopoverCode = ` -"use client"; -import { Button, Popover } from "keep-react"; +'use client' +import { Button, Popover } from 'keep-react' export const PopoverComponent = () => { return ( - - - - - } - > - + + Popover title here + + There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in + some form, by injected humour + + + + + + + - ); + ) } ` diff --git a/app/docs/components/popover/variant/OneParagraphPopover.tsx b/app/docs/components/popover/variant/OneParagraphPopover.tsx index 7d2992ba..c113756b 100644 --- a/app/docs/components/popover/variant/OneParagraphPopover.tsx +++ b/app/docs/components/popover/variant/OneParagraphPopover.tsx @@ -4,18 +4,16 @@ import { Button, Popover } from '~/src' const OneParagraphPopover = () => { return (
- -

- There are many variations of passages of Lorem Ipsum available. -

- - - }> - + + There are many variations of passages of Lorem Ipsum available. + + + + + +
) @@ -27,21 +25,18 @@ import { Button, Popover } from "keep-react"; export const PopoverComponent = () => { return ( - -

- There are many variations of passages of Lorem Ipsum available. -

- - - } - > - + + There are many variations of passages of Lorem Ipsum available. + + + + + + - ); + ) } ` diff --git a/app/docs/components/popover/variant/PopoverPosition.tsx b/app/docs/components/popover/variant/PopoverPosition.tsx index ff5863a2..7646903e 100644 --- a/app/docs/components/popover/variant/PopoverPosition.tsx +++ b/app/docs/components/popover/variant/PopoverPosition.tsx @@ -3,12 +3,21 @@ import { Button, Popover } from '~/src' const PopoverPosition = () => { return ( -
- - +
+ + Popover title here + + There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in + some form, by injected humour + + + + + + +
) @@ -20,14 +29,22 @@ import { Button, Popover } from "keep-react"; export const PopoverComponent = () => { return ( - - + + Popover title here + + There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in + some form, by injected humour + + + + + + + - ); + ) } ` diff --git a/app/docs/components/popover/variant/SingleLinePopover.tsx b/app/docs/components/popover/variant/SingleLinePopover.tsx index 0f388ac8..d5c6ec7e 100644 --- a/app/docs/components/popover/variant/SingleLinePopover.tsx +++ b/app/docs/components/popover/variant/SingleLinePopover.tsx @@ -3,13 +3,12 @@ import { Button, Popover } from '~/src' const SingleLinePopover = () => { return ( -
- Single line message - }> - +
+ + Single line message + + +
) @@ -21,17 +20,13 @@ import { Button, Popover } from "keep-react"; export const PopoverComponent = () => { return ( - - Single line message - - } - > - + + Single line message + + + - ); + ) } ` export { SingleLinePopover, SingleLinePopoverCode } diff --git a/app/docs/components/popover/variant/TriggerVariant.tsx b/app/docs/components/popover/variant/TriggerVariant.tsx index d85bdcca..9c656616 100644 --- a/app/docs/components/popover/variant/TriggerVariant.tsx +++ b/app/docs/components/popover/variant/TriggerVariant.tsx @@ -3,12 +3,21 @@ import { Button, Popover } from '~/src' const TriggerVariantPopover = () => { return ( -
- - +
+ + Popover title here + + There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in + some form, by injected humour + + + + + + +
) @@ -20,14 +29,22 @@ import { Button, Popover } from "keep-react"; export const PopoverComponent = () => { return ( - - + + Popover title here + + There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in + some form, by injected humour + + + + + + + - ); + ) } ` diff --git a/app/docs/components/table/variant/BorderedTable.tsx b/app/docs/components/table/variant/BorderedTable.tsx index 00978476..81961129 100644 --- a/app/docs/components/table/variant/BorderedTable.tsx +++ b/app/docs/components/table/variant/BorderedTable.tsx @@ -93,12 +93,9 @@ const BorderedTable = () => {
- + + +
- }> - +
+ + +
@@ -173,12 +172,9 @@ const BorderedTable = () => {
- + + +
- }> - +
+ + +
@@ -253,12 +251,9 @@ const BorderedTable = () => {
- + + +
- }> - +
+ + +
@@ -333,12 +330,9 @@ const BorderedTable = () => { - + + +
- }> - +
+ + +
@@ -413,12 +409,9 @@ const BorderedTable = () => { - + + +
- }> - +
+ + +
@@ -450,529 +445,448 @@ const BorderedTable = () => { } const BorderedTableCode = ` -"use client"; -import Image from "next/image"; -import { Avatar, Badge, Button, Popover, Table } from "keep-react"; -import { - ArrowDown, - Cube, - DotsThreeOutline, - Pencil, - Trash, -} from "phosphor-react"; +'use client' +import Image from 'next/image' +import { Avatar, Badge, Button, Popover, Table } from 'keep-react' +import { ArrowDown, Cube, DotsThreeOutline, Pencil, Trash } from 'phosphor-react' export const TableComponent = () => { return ( - - -
-
-

- Team member -

- - 100 Member - -
-
- - -
+
+ +
+
+

Team member

+ + 100 Member +
- - - -

Type

-
- Status - Role - - Email Address - - Team - Performance - -
- - - -
-
-
- -
-

- Ralph Edwards -

- &ralph -
+
+ + +
+
+ + + +

Type

+
+ Status + Role + Email Address + Team + Performance + +
+ + + +
+
+
+ +
+

Ralph Edwards

+ &ralph
- - - - Active +
+
+ + + Active + + + +

UI/UX Designer

+
+ nevaeh.simmons@example.com + +
+ + Product - - -

UI/UX Designer

-
- nevaeh.simmons@example.com - -
- - Product - - - Marketing - - - +3 - + + Marketing + + + +3 + +
+
+ +
+
+
- - -
-
- -
-
- - - - 20% -
+
+ + + + 20%
- - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    - - - -
    -
    -
    - -
    -

    - Wade Warren -

    - &ralph -
    + + + + + + +
    +
    +
    + +
    +

    Wade Warren

    + &ralph
    - - - - Offline +
    +
    + + + Offline + + + +

    Scrum Master

    +
    + curtis.weaver@example.com + +
    + + Product - - -

    Scrum Master

    -
    - curtis.weaver@example.com - -
    - - Product - - - Marketing - - - +3 - + + Marketing + + + +3 + +
    +
    + +
    +
    +
    - - -
    -
    - -
    -
    - - - - 20% -
    +
    + + + + 20%
    - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    - - - -
    -
    -
    - -
    -

    - Eleanor Pena -

    - &ralph -
    + + + + + + +
    +
    +
    + +
    +

    Eleanor Pena

    + &ralph
    - - - - Active +
    +
    + + + Active + + + +

    Software Tester

    +
    + nathan.roberts@example.com + +
    + + Product - - -

    Software Tester

    -
    - nathan.roberts@example.com - -
    - - Product - - - Marketing - - - +3 - + + Marketing + + + +3 + +
    +
    + +
    +
    +
    - - -
    -
    - -
    -
    - - - - 30% -
    +
    + + + + 30%
    - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    - - - -
    -
    -
    - -
    -

    - Jerome Bell -

    - &ralph -
    + + + + + + +
    +
    +
    + +
    +

    Jerome Bell

    + &ralph
    - - - - Offline +
    +
    + + + Offline + + + +

    JS Developer

    +
    + arif.jsdev@example.com + +
    + + Javascript - - -

    JS Developer

    -
    - arif.jsdev@example.com - -
    - - Javascript - - - React - - - +7 - + + React + + + +7 + +
    +
    + +
    +
    +
    - - -
    -
    - -
    -
    - - - - 50% -
    +
    + + + + 50%
    - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    - - - -
    -
    -
    - -
    -

    - Macky Scheman -

    - &ralph -
    + + + + + + +
    +
    +
    + +
    +

    Macky Scheman

    + &ralph
    - - - - Active +
    +
    + + + Active + + + +

    Web Developer

    +
    + macky.jsdev@example.com + +
    + + Adobe - - -

    Web Developer

    -
    - macky.jsdev@example.com - -
    - - Adobe - - - Figma - - - +6 - + + Figma + + + +6 + +
    +
    + +
    +
    +
    - - -
    -
    - -
    -
    - - - - 40% -
    +
    + + + + 40%
    - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    - - -
    - ); + +
    + + + + + ) } ` export { BorderedTable, BorderedTableCode } diff --git a/app/docs/components/table/variant/DefaultTable.tsx b/app/docs/components/table/variant/DefaultTable.tsx index 5711b166..529e3607 100644 --- a/app/docs/components/table/variant/DefaultTable.tsx +++ b/app/docs/components/table/variant/DefaultTable.tsx @@ -93,12 +93,9 @@ const DefaultTable = () => { - + + +
    - }> - +
    + + +
    @@ -173,12 +172,9 @@ const DefaultTable = () => { - + + +
    - }> - +
    + + +
    @@ -253,12 +251,9 @@ const DefaultTable = () => { - + + +
    - }> - +
    + + +
    @@ -333,12 +330,9 @@ const DefaultTable = () => { - + + +
    - }> - +
    + + +
    @@ -413,12 +409,9 @@ const DefaultTable = () => { - + + +
    - }> - +
    + + +
    @@ -463,510 +458,441 @@ import { export const TableComponent = () => { return ( - - -
    -
    -

    - Team member -

    - - 100 Member - -
    -
    - - -
    +
    + +
    +
    +

    Team member

    + + 100 Member +
    - - - -

    Type

    -
    - Status - Role - - Email Address - - Team - Performance - -
    - - - -
    -
    -
    - -
    -

    - Ralph Edwards -

    - &ralph -
    +
    + + +
    +
    + + + +

    Type

    +
    + Status + Role + Email Address + Team + Performance + +
    + + + +
    +
    +
    + +
    +

    Ralph Edwards

    + &ralph
    - - - - Active +
    +
    + + + Active + + + +

    UI/UX Designer

    +
    + nevaeh.simmons@example.com + +
    + + Product - - -

    UI/UX Designer

    -
    - nevaeh.simmons@example.com - -
    - - Product - - - Marketing - - - +3 - + + Marketing + + + +3 + +
    +
    + +
    +
    +
    - - -
    -
    - -
    -
    - - - - 20% -
    +
    + + + + 20%
    - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    - - - -
    -
    -
    - -
    -

    - Wade Warren -

    - &ralph -
    + + + + + + +
    +
    +
    + +
    +

    Wade Warren

    + &ralph
    - - - - Offline +
    +
    + + + Offline + + + +

    Scrum Master

    +
    + curtis.weaver@example.com + +
    + + Product - - -

    Scrum Master

    -
    - curtis.weaver@example.com - -
    - - Product - - - Marketing - - - +3 - + + Marketing + + + +3 + +
    +
    + +
    +
    +
    - - -
    -
    - -
    -
    - - - - 20% -
    +
    + + + + 20%
    - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    - - - -
    -
    -
    - -
    -

    - Eleanor Pena -

    - &ralph -
    + + + + + + +
    +
    +
    + +
    +

    Eleanor Pena

    + &ralph
    - - - - Active +
    +
    + + + Active + + + +

    Software Tester

    +
    + nathan.roberts@example.com + +
    + + Product - - -

    Software Tester

    -
    - nathan.roberts@example.com - -
    - - Product - - - Marketing - - - +3 - + + Marketing + + + +3 + +
    +
    + +
    +
    +
    - - -
    -
    - -
    -
    - - - - 30% -
    +
    + + + + 30%
    - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    - - - -
    -
    -
    - -
    -

    - Jerome Bell -

    - &ralph -
    + + + + + + +
    +
    +
    + +
    +

    Jerome Bell

    + &ralph
    - - - - Offline +
    +
    + + + Offline + + + +

    JS Developer

    +
    + arif.jsdev@example.com + +
    + + Javascript - - -

    JS Developer

    -
    - arif.jsdev@example.com - -
    - - Javascript - - - React - - - +7 - + + React + + + +7 + +
    +
    + +
    +
    +
    - - -
    -
    - -
    -
    - - - - 50% -
    +
    + + + + 50%
    - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    - - - -
    -
    -
    - -
    -

    - Macky Scheman -

    - &ralph -
    + + + + + + +
    +
    +
    + +
    +

    Macky Scheman

    + &ralph
    - - - - Active +
    +
    + + + Active + + + +

    Web Developer

    +
    + macky.jsdev@example.com + +
    + + Adobe - - -

    Web Developer

    -
    - macky.jsdev@example.com - -
    - - Adobe - - - Figma - - - +6 - + + Figma + + + +6 + +
    +
    + +
    +
    +
    - - -
    -
    - -
    -
    - - - - 40% -
    +
    + + + + 40%
    - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    - - -
    - ); + +
    + + + + + ) } ` export { DefaultTable, DefaultTableCode } diff --git a/app/docs/components/table/variant/FilesUploadedTable.tsx b/app/docs/components/table/variant/FilesUploadedTable.tsx index 45caab84..d07d42d8 100644 --- a/app/docs/components/table/variant/FilesUploadedTable.tsx +++ b/app/docs/components/table/variant/FilesUploadedTable.tsx @@ -75,12 +75,9 @@ const FilesUploadedTable = () => { - + + +
    - }> - +
    + + +
    @@ -142,12 +141,9 @@ const FilesUploadedTable = () => { - + + +
    - }> - +
    + + +
    @@ -209,12 +207,9 @@ const FilesUploadedTable = () => { - + + +
    - }> - +
    + + +
    @@ -276,12 +273,9 @@ const FilesUploadedTable = () => { - + + +
    - }> - +
    + + +
    @@ -343,12 +339,9 @@ const FilesUploadedTable = () => { - + + +
    - }> - +
    + + +
    @@ -386,553 +381,372 @@ import { Cube, DotsThreeOutline,Pencil,Trash } from "phosphor-react"; export const TableComponent = () => { return ( - - -
    -
    -

    - Files uploaded -

    -
    -
    - - -
    +
    + +
    +
    +

    Files uploaded

    - - - -

    File no.

    -
    - File size - - Date uploaded - - - Last uploaded - - Team - -
    - - - -
    -
    -
    - -
    -

    - Static Next Plan.pdf -

    -

    - 200 KB -

    -
    +
    + + +
    +
    + + + +

    File no.

    +
    + File size + Date uploaded + Last uploaded + Team + +
    + + + +
    +
    +
    + +
    +

    Static Next Plan.pdf

    +

    200 KB

    - - -

    Total 0.2 MB

    -

    200 KB

    -
    - -

    Jan 10, 2023

    -

    4:45 pm

    -
    - -

    Jan 10, 2023

    -
    - - - - - - - - - - - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Total 0.2 MB

    +

    200 KB

    +
    + +

    Jan 10, 2023

    +

    4:45 pm

    +
    + +

    Jan 10, 2023

    +
    + + + + + + + + + + + + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -
    -
    -
    - -
    -

    - Static Next Plan.pdf -

    -

    - 700 KB -

    -
    + + + + + + +
    +
    +
    + +
    +

    Static Next Plan.pdf

    +

    700 KB

    - - -

    Total 0.7 MB

    -

    700 KB

    -
    - -

    Jan 12, 2023

    -

    4:12 pm

    -
    - -

    Jan 15, 2023

    -
    - - - - - - - - - - - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Total 0.7 MB

    +

    700 KB

    +
    + +

    Jan 12, 2023

    +

    4:12 pm

    +
    + +

    Jan 15, 2023

    +
    + + + + + + + + + + + + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -
    -
    -
    - -
    -

    - Static Next Plan.pdf -

    -

    - 500 KB -

    -
    + + + + + + +
    +
    +
    + +
    +

    Static Next Plan.pdf

    +

    500 KB

    - - -

    Total 0.5 MB

    -

    500 KB

    -
    - -

    Nov 23, 2023

    -

    02:45 pm

    -
    - -

    Nov 10, 2023

    -
    - - - - - - - - - - - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Total 0.5 MB

    +

    500 KB

    +
    + +

    Nov 23, 2023

    +

    02:45 pm

    +
    + +

    Nov 10, 2023

    +
    + + + + + + + + + + + + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -
    -
    -
    - -
    -

    - Static Next Plan.pdf -

    -

    - 900 KB -

    -
    + + + + + + +
    +
    +
    + +
    +

    Static Next Plan.pdf

    +

    900 KB

    - - -

    Total 0.9 MB

    -

    900 KB

    -
    - -

    Feb 21, 2023

    -

    3:45 pm

    -
    - -

    Jan 10, 2023

    -
    - - - - - - - - - - - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Total 0.9 MB

    +

    900 KB

    +
    + +

    Feb 21, 2023

    +

    3:45 pm

    +
    + +

    Jan 10, 2023

    +
    + + + + + + + + + + + + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -
    -
    -
    - -
    -

    - Static Next Plan.pdf -

    -

    - 200 KB -

    -
    + + + + + + +
    +
    +
    + +
    +

    Static Next Plan.pdf

    +

    200 KB

    - - -

    Total 0.1 MB

    -

    100 KB

    -
    - -

    Mar 25, 2023

    -

    8:45 pm

    -
    - -

    Apr 10, 2023

    -
    - - - - - - - - - - - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Total 0.1 MB

    +

    100 KB

    +
    + +

    Mar 25, 2023

    +

    8:45 pm

    +
    + +

    Apr 10, 2023

    +
    + + + + + + + + + + + + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - -
    - ); + + + + + + + ) } ` export { FilesUploadedTable, FilesUploadedTableCode } diff --git a/app/docs/components/table/variant/HoverableTable.tsx b/app/docs/components/table/variant/HoverableTable.tsx index 53e60d50..aab04255 100644 --- a/app/docs/components/table/variant/HoverableTable.tsx +++ b/app/docs/components/table/variant/HoverableTable.tsx @@ -75,12 +75,9 @@ const HoverableTable = () => { - + + +
    - }> - +
    + + +
    @@ -142,12 +141,9 @@ const HoverableTable = () => { - + + +
    - }> - +
    + + +
    @@ -209,12 +207,9 @@ const HoverableTable = () => { - + + +
    - }> - +
    + + +
    @@ -276,12 +273,9 @@ const HoverableTable = () => { - + + +
    - }> - +
    + + +
    @@ -343,12 +339,9 @@ const HoverableTable = () => { - + + +
    - }> - +
    + + +
    @@ -386,556 +381,373 @@ import { Cube, DotsThreeOutline, Trash, Pencil } from "phosphor-react"; export const TableComponent = () => { return ( -
    - - -
    -
    -

    - Files uploaded -

    -
    -
    - - -
    +
    + +
    +
    +

    Files uploaded

    - - - -

    File no.

    -
    - File size - - Date uploaded - - - Last uploaded - - Team - -
    - - - -
    -
    -
    - -
    -

    - Static Next Plan.pdf -

    -

    - 200 KB -

    -
    +
    + + +
    +
    + + + +

    File no.

    +
    + File size + Date uploaded + Last uploaded + Team + +
    + + + +
    +
    +
    + +
    +

    Static Next Plan.pdf

    +

    200 KB

    - - -

    Total 0.2 MB

    -

    200 KB

    -
    - -

    Jan 10, 2023

    -

    4:45 pm

    -
    - -

    Jan 10, 2023

    -
    - - - - - - - - - - - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Total 0.2 MB

    +

    200 KB

    +
    + +

    Jan 10, 2023

    +

    4:45 pm

    +
    + +

    Jan 10, 2023

    +
    + + + + + + + + + + + + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -
    -
    -
    - -
    -

    - Static Next Plan.pdf -

    -

    - 700 KB -

    -
    + + + + + + +
    +
    +
    + +
    +

    Static Next Plan.pdf

    +

    700 KB

    - - -

    Total 0.7 MB

    -

    700 KB

    -
    - -

    Jan 12, 2023

    -

    4:12 pm

    -
    - -

    Jan 15, 2023

    -
    - - - - - - - - - - - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Total 0.7 MB

    +

    700 KB

    +
    + +

    Jan 12, 2023

    +

    4:12 pm

    +
    + +

    Jan 15, 2023

    +
    + + + + + + + + + + + + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -
    -
    -
    - -
    -

    - Static Next Plan.pdf -

    -

    - 500 KB -

    -
    + + + + + + +
    +
    +
    + +
    +

    Static Next Plan.pdf

    +

    500 KB

    - - -

    Total 0.5 MB

    -

    500 KB

    -
    - -

    Nov 23, 2023

    -

    02:45 pm

    -
    - -

    Nov 10, 2023

    -
    - - - - - - - - - - - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Total 0.5 MB

    +

    500 KB

    +
    + +

    Nov 23, 2023

    +

    02:45 pm

    +
    + +

    Nov 10, 2023

    +
    + + + + + + + + + + + + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -
    -
    -
    - -
    -

    - Static Next Plan.pdf -

    -

    - 900 KB -

    -
    + + + + + + +
    +
    +
    + +
    +

    Static Next Plan.pdf

    +

    900 KB

    - - -

    Total 0.9 MB

    -

    900 KB

    -
    - -

    Feb 21, 2023

    -

    3:45 pm

    -
    - -

    Jan 10, 2023

    -
    - - - - - - - - - - - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Total 0.9 MB

    +

    900 KB

    +
    + +

    Feb 21, 2023

    +

    3:45 pm

    +
    + +

    Jan 10, 2023

    +
    + + + + + + + + + + + + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -
    -
    -
    - -
    -

    - Static Next Plan.pdf -

    -

    - 200 KB -

    -
    + + + + + + +
    +
    +
    + +
    +

    Static Next Plan.pdf

    +

    200 KB

    - - -

    Total 0.1 MB

    -

    100 KB

    -
    - -

    Mar 25, 2023

    -

    8:45 pm

    -
    - -

    Apr 10, 2023

    -
    - - - - - - - - - - - - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Total 0.1 MB

    +

    100 KB

    +
    + +

    Mar 25, 2023

    +

    8:45 pm

    +
    + +

    Apr 10, 2023

    +
    + + + + + + + + + + + + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - -
    -
    - ); -}; + + + + + + + ) +} ` export { HoverableTable, HoverableTableCode } diff --git a/app/docs/components/table/variant/OrdersTable.tsx b/app/docs/components/table/variant/OrdersTable.tsx index 138b3248..d12c4133 100644 --- a/app/docs/components/table/variant/OrdersTable.tsx +++ b/app/docs/components/table/variant/OrdersTable.tsx @@ -99,12 +99,9 @@ const OrdersTable = () => {

    285 Great North Road, Grey Lynn.

    - + + +
    - }> - +
    + + +
    @@ -157,12 +156,9 @@ const OrdersTable = () => {

    19 Great North Road, Grey Lynn

    - + + +
    - }> - +
    + + +
    @@ -215,12 +213,9 @@ const OrdersTable = () => {

    19 Great North Road, Grey Lynn

    - + + +
    - }> - +
    + + +
    @@ -273,12 +270,9 @@ const OrdersTable = () => {

    686 Great South Road, Manukau

    - + + +
    - }> - +
    + + +
    @@ -331,12 +327,9 @@ const OrdersTable = () => {

    20 Poland Road, Wairau Valley

    - + + +
    - }> - +
    + + +
    @@ -389,12 +384,9 @@ const OrdersTable = () => {

    285 Great North Road, Grey Lynn.

    - + + +
    - }> - +
    + + +
    @@ -446,517 +440,403 @@ import Image from "next/image"; export const TableComponent = () => { return ( - -
    -
    -

    Orders

    -
    -
    - - -
    + +
    +
    +

    Orders

    - - - -

    Order no.

    -
    - } - iconPosition="left" - > - Date - - } - iconPosition="left" - > - Country - - } - iconPosition="left" - > - State - - } - iconPosition="left" - > - Quant. - - } - iconPosition="left" - > - Total Price - - } - iconPosition="left" - > - Location - - -
    - - - -

    - DL - 19266755 -

    -
    - -

    Jan 19, 2022

    -

    3:45 pm

    -
    - - - - -
    - } - iconPosition="left" - > - Delivered - -
    -
    - -

    3

    -
    - -

    $21,000

    -
    - -

    - 285 Great North Road, Grey Lynn. -

    -
    - - -
  • - -
  • -
  • - -
  • - - } - > +
    + + +
    +
    +
    + + +

    Order no.

    +
    + } + iconPosition="left"> + Date + + } iconPosition="left"> + Country + + } iconPosition="left"> + State + + } iconPosition="left"> + Quant. + + } + iconPosition="left"> + Total Price + + } iconPosition="left"> + Location + + +
    + + + +

    DL - 19266755

    +
    + +

    Jan 19, 2022

    +

    3:45 pm

    +
    + + + + +
    + } iconPosition="left"> + Delivered + +
    +
    + +

    3

    +
    + +

    $21,000

    +
    + +

    285 Great North Road, Grey Lynn.

    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -

    - DL - 34233451 -

    -
    - -

    Jan 23, 2022

    -

    4:45 pm

    -
    - - - - -
    - } - iconPosition="left" - > - Delivered - -
    -
    - -

    6

    -
    - -

    $13,000

    -
    - -

    - 19 Great North Road, Grey Lynn -

    -
    - - -
  • - -
  • -
  • - -
  • - - } - > + +
    +
    +
    + + +

    DL - 34233451

    +
    + +

    Jan 23, 2022

    +

    4:45 pm

    +
    + + + + +
    + } iconPosition="left"> + Delivered + +
    +
    + +

    6

    +
    + +

    $13,000

    +
    + +

    19 Great North Road, Grey Lynn

    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -

    - DL - 19266567 -

    -
    - -

    Jan 31, 2022

    -

    5:45 pm

    -
    - - - - -
    - } - iconPosition="left" - > - Pending - -
    -
    - -

    8

    -
    - -

    $24,000

    -
    - -

    - 19 Great North Road, Grey Lynn -

    -
    - - -
  • - -
  • -
  • - -
  • - - } - > + +
    +
    +
    + + +

    DL - 19266567

    +
    + +

    Jan 31, 2022

    +

    5:45 pm

    +
    + + + + +
    + } iconPosition="left"> + Pending + +
    +
    + +

    8

    +
    + +

    $24,000

    +
    + +

    19 Great North Road, Grey Lynn

    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -

    - DL - 19266755 -

    -
    - -

    Jan 19, 2022

    -

    3:45 pm

    -
    - - - - -
    - } - iconPosition="left" - > - Delivered - -
    -
    - -

    9

    -
    - -

    $82,000

    -
    - -

    - 686 Great South Road, Manukau -

    -
    - - -
  • - -
  • -
  • - -
  • - - } - > + +
    +
    +
    + + +

    DL - 19266755

    +
    + +

    Jan 19, 2022

    +

    3:45 pm

    +
    + + + + +
    + } iconPosition="left"> + Delivered + +
    +
    + +

    9

    +
    + +

    $82,000

    +
    + +

    686 Great South Road, Manukau

    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -

    - DL - 19264155 -

    -
    - -

    Jan 07, 2022

    -

    02:45 pm

    -
    - - - - -
    - } - iconPosition="left" - > - Pending - -
    -
    - -

    3

    -
    - -

    $21,000

    -
    - -

    - 20 Poland Road, Wairau Valley -

    -
    - - -
  • - -
  • -
  • - -
  • - - } - > + +
    +
    +
    + + +

    DL - 19264155

    +
    + +

    Jan 07, 2022

    +

    02:45 pm

    +
    + + + + +
    + } iconPosition="left"> + Pending + +
    +
    + +

    3

    +
    + +

    $21,000

    +
    + +

    20 Poland Road, Wairau Valley

    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -

    - DL - 19266755 -

    -
    - -

    Jan 19, 2022

    -

    3:45 pm

    -
    - - - - -
    - } - iconPosition="left" - > - Delivered - -
    -
    - -

    3

    -
    - -

    $21,000

    -
    - -

    - 285 Great North Road, Grey Lynn. -

    -
    - - -
  • - -
  • -
  • - -
  • - - } - > + +
    +
    +
    + + +

    DL - 19266755

    +
    + +

    Jan 19, 2022

    +

    3:45 pm

    +
    + + + + +
    + } iconPosition="left"> + Delivered + +
    +
    + +

    3

    +
    + +

    $21,000

    +
    + +

    285 Great North Road, Grey Lynn.

    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    -
    -
    - ); + + + + + + + ) } ` diff --git a/app/docs/components/table/variant/StripedTable.tsx b/app/docs/components/table/variant/StripedTable.tsx index d5c04ad7..4b34a7aa 100644 --- a/app/docs/components/table/variant/StripedTable.tsx +++ b/app/docs/components/table/variant/StripedTable.tsx @@ -75,12 +75,9 @@ const StripedTable = () => { - + + +
    - }> - +
    + + +
    @@ -142,12 +141,9 @@ const StripedTable = () => { - + + +
    - }> - +
    + + +
    @@ -209,12 +207,9 @@ const StripedTable = () => { - + + +
    - }> - +
    + + +
    @@ -276,12 +273,9 @@ const StripedTable = () => { - + + +
    - }> - +
    + + +
    @@ -343,12 +339,9 @@ const StripedTable = () => { - + + +
    - }> - +
    + + +
    @@ -390,9 +385,7 @@ export const TableComponent = () => {
    -

    - Files uploaded -

    +

    Files uploaded

    - -
  • - -
  • - - } - > + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    + + @@ -523,9 +487,7 @@ export const TableComponent = () => {
    -

    - Static Next Plan.pdf -

    +

    Static Next Plan.pdf

    700 KB

    @@ -545,70 +507,43 @@ export const TableComponent = () => { - - - - - + + + + + - -
  • - -
  • -
  • - -
  • - - } - > + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    + +
    @@ -618,9 +553,7 @@ export const TableComponent = () => {
    -

    - Static Next Plan.pdf -

    +

    Static Next Plan.pdf

    500 KB

    @@ -640,70 +573,43 @@ export const TableComponent = () => { - - - - - + + + + + - -
  • - -
  • -
  • - -
  • - - } - > + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    + +
    @@ -713,9 +619,7 @@ export const TableComponent = () => {
    -

    - Static Next Plan.pdf -

    +

    Static Next Plan.pdf

    900 KB

    @@ -735,70 +639,43 @@ export const TableComponent = () => { - - - - - + + + + + - -
  • - -
  • -
  • - -
  • - - } - > + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    + +
    @@ -808,9 +685,7 @@ export const TableComponent = () => {
    -

    - Static Next Plan.pdf -

    +

    Static Next Plan.pdf

    200 KB

    @@ -830,75 +705,48 @@ export const TableComponent = () => { - - - - - + + + + + - -
  • - -
  • -
  • - -
  • - - } - > + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    + +
    - ); + ) } ` diff --git a/app/docs/components/table/variant/TransactionsTable.tsx b/app/docs/components/table/variant/TransactionsTable.tsx index 4b0b8bb6..bea7f19b 100644 --- a/app/docs/components/table/variant/TransactionsTable.tsx +++ b/app/docs/components/table/variant/TransactionsTable.tsx @@ -79,12 +79,9 @@ const TransactionsTable = () => {

    3:45 pm

    - + + +
    - }> - +
    + + +
    @@ -142,12 +141,9 @@ const TransactionsTable = () => {

    3:45 pm

    - + + +
    - }> - +
    + + +
    @@ -205,12 +203,9 @@ const TransactionsTable = () => {

    3:45 pm

    - + + +
    - }> - +
    + + +
    @@ -268,12 +265,9 @@ const TransactionsTable = () => {

    3:45 pm

    - + + +
    - }> - +
    + + +
    @@ -331,12 +327,9 @@ const TransactionsTable = () => {

    3:45 pm

    - + + +
    - }> - +
    + + +
    @@ -368,462 +363,366 @@ const TransactionsTable = () => { } const TransactionsTableCode = ` -"use client"; -import { Avatar, Badge, Button, Popover, Table } from "keep-react"; -import { - ArrowsDownUp, - Crown, - Cube, - DotsThreeOutline, - Pencil, - Trash, -} from "phosphor-react"; +'use client' +import { Avatar, Badge, Button, Popover, Table } from 'keep-react' +import { ArrowsDownUp, Crown, Cube, DotsThreeOutline, Pencil, Trash } from 'phosphor-react' export const TableComponent = () => { return ( - - -
    -
    -

    - Cash Out Transactions -

    -
    -
    - - -
    +
    + +
    +
    +

    Cash Out Transactions

    - - - -

    Type

    -
    - } - > - Date - - } - > - Amount - - } - > - Status - - } - > - Received Date - - -
    - - - -
    -
    -
    - -
    -

    - Paypal -

    - - Withdraw - -
    +
    + + +
    +
    + + + +

    Type

    +
    + }> + Date + + }> + Amount + + }> + Status + + }> + Received Date + + +
    + + + +
    +
    +
    + +
    +

    Paypal

    + Withdraw
    - - -

    Jan 19, 2022

    -

    3:45 pm

    -
    - -

    $652.00

    -
    - -
    - } - iconPosition="left" - > - Delivered - -
    -
    - -

    Jan 19, 2022

    -

    3:45 pm

    -
    - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Jan 19, 2022

    +

    3:45 pm

    +
    + +

    $652.00

    +
    + +
    + } iconPosition="left"> + Delivered + +
    +
    + +

    Jan 19, 2022

    +

    3:45 pm

    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -
    -
    -
    - -
    -

    - Visa -

    - - Withdraw - -
    + + + + + + +
    +
    +
    + +
    +

    Visa

    + Withdraw
    - - -

    Jan 10, 2023

    -

    4:45 pm

    -
    - -

    $534.00

    -
    - -
    - } - iconPosition="left" - > - Delivered - -
    -
    - -

    Jan 19, 2022

    -

    3:45 pm

    -
    - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Jan 10, 2023

    +

    4:45 pm

    +
    + +

    $534.00

    +
    + +
    + } iconPosition="left"> + Delivered + +
    +
    + +

    Jan 19, 2022

    +

    3:45 pm

    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -
    -
    -
    - -
    -

    - Stripe -

    - - Withdraw - -
    + + + + + + +
    +
    +
    + +
    +

    Stripe

    + Withdraw
    - - -

    Mar 12, 2023

    -

    4:00 pm

    -
    - -

    $123.00

    -
    - -
    - } - iconPosition="left" - > - Delivered - -
    -
    - -

    Jan 19, 2022

    -

    3:45 pm

    -
    - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Mar 12, 2023

    +

    4:00 pm

    +
    + +

    $123.00

    +
    + +
    + } iconPosition="left"> + Delivered + +
    +
    + +

    Jan 19, 2022

    +

    3:45 pm

    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -
    -
    -
    - -
    -

    - Western Union -

    - - Withdraw - -
    + + + + + + +
    +
    +
    + +
    +

    Western Union

    + Withdraw
    - - -

    Nov 23, 2023

    -

    5:30 pm

    -
    - -

    $434.00

    -
    - -
    - } - iconPosition="left" - > - Delivered - -
    -
    - -

    Jan 19, 2022

    -

    3:45 pm

    -
    - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Nov 23, 2023

    +

    5:30 pm

    +
    + +

    $434.00

    +
    + +
    + } iconPosition="left"> + Delivered + +
    +
    + +

    Jan 19, 2022

    +

    3:45 pm

    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - - -
    -
    -
    - -
    -

    - Mastercard -

    - - Withdraw - -
    + + + + + + +
    +
    +
    + +
    +

    Mastercard

    + Withdraw
    - - -

    Apr 23, 2023

    -

    7:30 pm

    -
    - -

    $786.00

    -
    - -
    - } - iconPosition="left" - > - Delivered - -
    -
    - -

    Jan 19, 2022

    -

    3:45 pm

    -
    - - -
  • - -
  • -
  • - -
  • - - } - > +
    +
    + +

    Apr 23, 2023

    +

    7:30 pm

    +
    + +

    $786.00

    +
    + +
    + } iconPosition="left"> + Delivered + +
    +
    + +

    Jan 19, 2022

    +

    3:45 pm

    +
    + + + +
      +
    • + +
    • +
    • + +
    • +
    +
    + -
    -
    -
    - -
    - ); + + + + + + + ) } ` export { TransactionsTable, TransactionsTableCode } diff --git a/app/docs/components/textInput/variant/InputColorVariant.tsx b/app/docs/components/textInput/variant/InputColorVariant.tsx index db28fd58..60202467 100644 --- a/app/docs/components/textInput/variant/InputColorVariant.tsx +++ b/app/docs/components/textInput/variant/InputColorVariant.tsx @@ -6,7 +6,7 @@ const InputColorVariant = () => { return (
    -
    -
    -
    -
    -