├── DSA_By_Code_Help ├── .vscode │ └── settings.json ├── Array Codes │ ├── Array │ │ ├── 1.cpp │ │ ├── 1.exe │ │ ├── Abstract.cpp │ │ ├── Array-Notes.cpp │ │ ├── Array.cpp │ │ ├── Array.exe │ │ ├── Array2.cpp │ │ ├── Array2.exe │ │ ├── Array3.cpp │ │ ├── Array3.exe │ │ ├── Array_Level-2 │ │ │ ├── 1.exe │ │ │ ├── FindUniqueElement.cpp │ │ │ ├── RIGHTSIFT.cpp │ │ │ ├── RIGHTSIFT.exe │ │ │ ├── Rightshift.cpp │ │ │ ├── ShortZeroAndOne.cpp │ │ │ ├── ShortZeroAndOne.exe │ │ │ ├── vector.cpp │ │ │ └── vector.exe │ │ ├── Array_Level-3 │ │ │ ├── 1.cpp │ │ │ ├── 1.exe │ │ │ ├── 2.cpp │ │ │ ├── 2.exe │ │ │ ├── 2D-Array-Babber.cpp │ │ │ ├── 2D-Array.exe │ │ │ ├── 3.cpp │ │ │ ├── 3.exe │ │ │ ├── 4.cpp │ │ │ ├── 4.exe │ │ │ ├── TransposeMatrix.cpp │ │ │ └── TransposeMatrix.exe │ │ ├── Array_Level-4 │ │ │ ├── 1.cpp │ │ │ └── 1.exe │ │ ├── GetUniqueElement.cpp │ │ ├── GetUniqueElement.exe │ │ ├── Linear-Search-Array.cpp │ │ ├── Linear-Search-Array.exe │ │ ├── Reverse-an-Array.cpp │ │ ├── Reverse-an-Array.exe │ │ ├── Swap.cpp │ │ ├── Swap.exe │ │ └── VectorSTLCodes_Slides.zip │ └── Switch-case │ │ ├── switch-case.cpp │ │ └── switch-case.exe ├── Assignment │ ├── FancyPattern.cpp │ ├── FancyPattern.exe │ ├── kmToMiles.cpp │ └── kmToMiles.exe ├── BitwiseOperators │ ├── Break_Continue.cpp │ ├── Break_Continue.exe │ ├── Lectur1.cpp │ ├── Lectur1.exe │ ├── Pre-Increment.cpp │ ├── Pre-Increment.exe │ ├── Shift.cpp │ └── Shift.exe ├── CallByReferenceValue │ ├── new1.cpp │ └── new1.exe ├── Char Array String │ ├── Shortner.code-workspace │ ├── strings class 2 codes.cpp │ └── strings class1 codes.cpp ├── CountingFrom1toN │ ├── CountingFrom1toN.cpp │ └── CountingFrom1toN.exe ├── Functions │ ├── CallingTwoFun.cpp │ ├── Functions.cpp │ ├── Functions2.cpp │ ├── Part3.cpp │ ├── Part4.cpp │ ├── Part4.exe │ ├── threeCall.cpp │ └── threeCall.exe ├── MaxNumber │ ├── MaxNumber.cpp │ ├── MaxNumber.exe │ ├── MaxNumber2.cpp │ └── MaxNumber2.exe ├── Patterns │ ├── Butterfly-Pattern.cpp │ ├── Butterfly-Pattern.exe │ ├── Dimond_.cpp │ ├── FancyPattern.cpp │ ├── FancyPattern.exe │ ├── Full_Pyramid.cpp │ ├── Full_Pyramid.exe │ ├── Hollow_Dimond.cpp │ ├── Hollow_Dimond.exe │ ├── Hollow_Inverted_Pyramid.cpp │ ├── Hollow_Inverted_Pyramid.exe │ ├── Hollow_half_pyramid.exe │ ├── Inverted_Pyramid.exe │ ├── Inverteds_Pyramid.cpp │ ├── Inverteds_Pyramid.exe │ ├── Number_star.cpp │ ├── Number_star.exe │ ├── Solid-HalfDimond.cpp │ ├── Solid-HalfDimond.exe │ ├── Ulta_Pyramid.cpp │ ├── Ulta_Pyramid.exe │ ├── VS Code.code-workspace │ └── tempCodeRunnerFile.cpp ├── Patterns2 │ ├── 1.html │ ├── Count pairs Sum in matrices.cpp │ ├── Flipped_Solid_Dimond.cpp │ ├── Flow_chart.cpp │ ├── Full_Pyramid.cpp │ ├── Full_Pyramid.exe │ ├── Hollow_Pattern.cpp │ ├── Hollow_Pattern.exe │ ├── Hollow_Pyramid.cpp │ ├── Hollow_Pyramid.exe │ ├── Hollow_dimond_pyramid │ ├── Hollow_dimond_pyramid.cpp │ ├── Hollow_dimond_pyramid.exe │ ├── LICENSE │ ├── Loops_in_C++.cpp │ ├── Only_Pyramid.cpp │ ├── Only_Pyramid.exe │ ├── Pattern_Printing.exe │ ├── Pyramid_Pattern.cpp │ ├── Pyramid_Pattern.exe │ ├── Pyramis_both_side.exe │ ├── README.md │ ├── Reverse_Pyramid.cpp │ ├── Reverse_Pyramid.exe │ ├── SquarePatterns.cpp │ ├── SquarePatterns.exe │ ├── Swastic.cpp │ ├── Swastic.exe │ └── tempCodeRunnerFile.cpp ├── Quiz │ ├── FirstQuiz.cpp │ └── FirstQuiz.exe ├── Recursion │ ├── 2.html │ └── FirstClass.cpp ├── Searching&Sorting │ ├── BasicSortingAlgorithms.cpp │ ├── BubbleSort │ │ ├── first.cpp │ │ └── first.exe │ ├── CustomOperator │ │ ├── CustomComparator.cpp │ │ ├── CustomComparator.exe │ │ ├── new.cpp │ │ ├── new.exe │ │ ├── new1.cpp │ │ ├── new1.exe │ │ └── tempCodeRunnerFile.cpp │ ├── InsertionSort │ │ ├── new.cpp │ │ └── new.exe │ ├── Level-1 │ │ ├── 1.exe │ │ ├── 852. Peak Index in a Mountain Array.cpp │ │ ├── BinarySearchAlgo.cpp │ │ ├── BinarySearchAlgo.exe │ │ ├── Class1-binarySearch.cpp │ │ ├── FindMissingElement.cpp │ │ ├── FindMissingElement.exe │ │ ├── FirstOccurence.cpp │ │ ├── FirstOccurence.exe │ │ ├── LastOccurence.cpp │ │ ├── LoveBabber-binarySearchClass 1.cpp │ │ ├── TotalOccurence.cpp │ │ └── tempCodeRunnerFile.cpp │ ├── Level-2 │ │ ├── 33-FindPivotElement.cpp │ │ ├── A.code-workspace │ │ ├── LoveBaber-binarySearchClass2 Codes.cpp │ │ ├── binary search in a 2D matrix.cpp │ │ └── find square root of a number.cpp │ ├── Level-3 │ │ ├── DivdewithBS.CPP │ │ ├── DivdewithBS.exe │ │ ├── Nearlyshorted.cpp │ │ ├── Nearlyshorted.exe │ │ ├── OddOccurance.cpp │ │ └── OddOccurance.exe │ ├── LoveBabberCodes │ │ └── LoveBaber-binarySearchClass2 Codes.cpp │ └── SelectionSort │ │ ├── new.cpp │ │ └── new.exe ├── Some-Tricks │ ├── Trickone.cpp │ └── Trickone.exe ├── SumOfN │ ├── SumOfN.cpp │ └── SumOfN.exe ├── TypeCasting │ ├── Chartoint.cpp │ ├── Explicit.cpp │ ├── Implicit.cpp │ └── Implicit.exe └── Vector STL Slides.pdf └── Learning React └── React 1 ├── node_modules ├── .package-lock.json ├── @popperjs │ └── core │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── dist │ │ ├── cjs │ │ │ ├── enums.js │ │ │ ├── enums.js.flow │ │ │ ├── enums.js.map │ │ │ ├── popper-base.js │ │ │ ├── popper-base.js.flow │ │ │ ├── popper-base.js.map │ │ │ ├── popper-lite.js │ │ │ ├── popper-lite.js.flow │ │ │ ├── popper-lite.js.map │ │ │ ├── popper.js │ │ │ ├── popper.js.flow │ │ │ └── popper.js.map │ │ ├── esm │ │ │ ├── createPopper.js │ │ │ ├── dom-utils │ │ │ │ ├── contains.js │ │ │ │ ├── getBoundingClientRect.js │ │ │ │ ├── getClippingRect.js │ │ │ │ ├── getCompositeRect.js │ │ │ │ ├── getComputedStyle.js │ │ │ │ ├── getDocumentElement.js │ │ │ │ ├── getDocumentRect.js │ │ │ │ ├── getHTMLElementScroll.js │ │ │ │ ├── getLayoutRect.js │ │ │ │ ├── getNodeName.js │ │ │ │ ├── getNodeScroll.js │ │ │ │ ├── getOffsetParent.js │ │ │ │ ├── getParentNode.js │ │ │ │ ├── getScrollParent.js │ │ │ │ ├── getViewportRect.js │ │ │ │ ├── getWindow.js │ │ │ │ ├── getWindowScroll.js │ │ │ │ ├── getWindowScrollBarX.js │ │ │ │ ├── instanceOf.js │ │ │ │ ├── isLayoutViewport.js │ │ │ │ ├── isScrollParent.js │ │ │ │ ├── isTableElement.js │ │ │ │ └── listScrollParents.js │ │ │ ├── enums.js │ │ │ ├── index.js │ │ │ ├── modifiers │ │ │ │ ├── applyStyles.js │ │ │ │ ├── arrow.js │ │ │ │ ├── computeStyles.js │ │ │ │ ├── eventListeners.js │ │ │ │ ├── flip.js │ │ │ │ ├── hide.js │ │ │ │ ├── index.js │ │ │ │ ├── offset.js │ │ │ │ ├── popperOffsets.js │ │ │ │ └── preventOverflow.js │ │ │ ├── popper-base.js │ │ │ ├── popper-lite.js │ │ │ ├── popper.js │ │ │ ├── types.js │ │ │ └── utils │ │ │ │ ├── computeAutoPlacement.js │ │ │ │ ├── computeOffsets.js │ │ │ │ ├── debounce.js │ │ │ │ ├── detectOverflow.js │ │ │ │ ├── expandToHashMap.js │ │ │ │ ├── getAltAxis.js │ │ │ │ ├── getAltLen.js │ │ │ │ ├── getBasePlacement.js │ │ │ │ ├── getFreshSideObject.js │ │ │ │ ├── getMainAxisFromPlacement.js │ │ │ │ ├── getOppositePlacement.js │ │ │ │ ├── getOppositeVariationPlacement.js │ │ │ │ ├── getVariation.js │ │ │ │ ├── math.js │ │ │ │ ├── mergeByName.js │ │ │ │ ├── mergePaddingObject.js │ │ │ │ ├── orderModifiers.js │ │ │ │ ├── rectToClientRect.js │ │ │ │ ├── uniqueBy.js │ │ │ │ ├── userAgent.js │ │ │ │ └── within.js │ │ └── umd │ │ │ ├── enums.js │ │ │ ├── enums.js.map │ │ │ ├── enums.min.js │ │ │ ├── enums.min.js.flow │ │ │ ├── enums.min.js.map │ │ │ ├── popper-base.js │ │ │ ├── popper-base.js.map │ │ │ ├── popper-base.min.js │ │ │ ├── popper-base.min.js.flow │ │ │ ├── popper-base.min.js.map │ │ │ ├── popper-lite.js │ │ │ ├── popper-lite.js.map │ │ │ ├── popper-lite.min.js │ │ │ ├── popper-lite.min.js.flow │ │ │ ├── popper-lite.min.js.map │ │ │ ├── popper.js │ │ │ ├── popper.js.map │ │ │ ├── popper.min.js │ │ │ ├── popper.min.js.flow │ │ │ └── popper.min.js.map │ │ ├── index.d.ts │ │ ├── lib │ │ ├── createPopper.d.ts │ │ ├── createPopper.js │ │ ├── createPopper.js.flow │ │ ├── dom-utils │ │ │ ├── contains.d.ts │ │ │ ├── contains.js │ │ │ ├── contains.js.flow │ │ │ ├── getBoundingClientRect.d.ts │ │ │ ├── getBoundingClientRect.js │ │ │ ├── getBoundingClientRect.js.flow │ │ │ ├── getClippingRect.d.ts │ │ │ ├── getClippingRect.js │ │ │ ├── getClippingRect.js.flow │ │ │ ├── getCompositeRect.d.ts │ │ │ ├── getCompositeRect.js │ │ │ ├── getCompositeRect.js.flow │ │ │ ├── getComputedStyle.d.ts │ │ │ ├── getComputedStyle.js │ │ │ ├── getComputedStyle.js.flow │ │ │ ├── getDocumentElement.d.ts │ │ │ ├── getDocumentElement.js │ │ │ ├── getDocumentElement.js.flow │ │ │ ├── getDocumentRect.d.ts │ │ │ ├── getDocumentRect.js │ │ │ ├── getDocumentRect.js.flow │ │ │ ├── getHTMLElementScroll.d.ts │ │ │ ├── getHTMLElementScroll.js │ │ │ ├── getHTMLElementScroll.js.flow │ │ │ ├── getLayoutRect.d.ts │ │ │ ├── getLayoutRect.js │ │ │ ├── getLayoutRect.js.flow │ │ │ ├── getNodeName.d.ts │ │ │ ├── getNodeName.js │ │ │ ├── getNodeName.js.flow │ │ │ ├── getNodeScroll.d.ts │ │ │ ├── getNodeScroll.js │ │ │ ├── getNodeScroll.js.flow │ │ │ ├── getOffsetParent.d.ts │ │ │ ├── getOffsetParent.js │ │ │ ├── getOffsetParent.js.flow │ │ │ ├── getParentNode.d.ts │ │ │ ├── getParentNode.js │ │ │ ├── getParentNode.js.flow │ │ │ ├── getScrollParent.d.ts │ │ │ ├── getScrollParent.js │ │ │ ├── getScrollParent.js.flow │ │ │ ├── getViewportRect.d.ts │ │ │ ├── getViewportRect.js │ │ │ ├── getViewportRect.js.flow │ │ │ ├── getWindow.d.ts │ │ │ ├── getWindow.js │ │ │ ├── getWindow.js.flow │ │ │ ├── getWindowScroll.d.ts │ │ │ ├── getWindowScroll.js │ │ │ ├── getWindowScroll.js.flow │ │ │ ├── getWindowScrollBarX.d.ts │ │ │ ├── getWindowScrollBarX.js │ │ │ ├── getWindowScrollBarX.js.flow │ │ │ ├── instanceOf.d.ts │ │ │ ├── instanceOf.js │ │ │ ├── instanceOf.js.flow │ │ │ ├── isLayoutViewport.d.ts │ │ │ ├── isLayoutViewport.js │ │ │ ├── isLayoutViewport.js.flow │ │ │ ├── isScrollParent.d.ts │ │ │ ├── isScrollParent.js │ │ │ ├── isScrollParent.js.flow │ │ │ ├── isTableElement.d.ts │ │ │ ├── isTableElement.js │ │ │ ├── isTableElement.js.flow │ │ │ ├── listScrollParents.d.ts │ │ │ ├── listScrollParents.js │ │ │ └── listScrollParents.js.flow │ │ ├── enums.d.ts │ │ ├── enums.js │ │ ├── enums.js.flow │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── index.js.flow │ │ ├── modifiers │ │ │ ├── applyStyles.d.ts │ │ │ ├── applyStyles.js │ │ │ ├── applyStyles.js.flow │ │ │ ├── arrow.d.ts │ │ │ ├── arrow.js │ │ │ ├── arrow.js.flow │ │ │ ├── computeStyles.d.ts │ │ │ ├── computeStyles.js │ │ │ ├── computeStyles.js.flow │ │ │ ├── eventListeners.d.ts │ │ │ ├── eventListeners.js │ │ │ ├── eventListeners.js.flow │ │ │ ├── flip.d.ts │ │ │ ├── flip.js │ │ │ ├── flip.js.flow │ │ │ ├── hide.d.ts │ │ │ ├── hide.js │ │ │ ├── hide.js.flow │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── index.js.flow │ │ │ ├── offset.d.ts │ │ │ ├── offset.js │ │ │ ├── offset.js.flow │ │ │ ├── popperOffsets.d.ts │ │ │ ├── popperOffsets.js │ │ │ ├── popperOffsets.js.flow │ │ │ ├── preventOverflow.d.ts │ │ │ ├── preventOverflow.js │ │ │ └── preventOverflow.js.flow │ │ ├── popper-base.d.ts │ │ ├── popper-base.js │ │ ├── popper-base.js.flow │ │ ├── popper-lite.d.ts │ │ ├── popper-lite.js │ │ ├── popper-lite.js.flow │ │ ├── popper.d.ts │ │ ├── popper.js │ │ ├── popper.js.flow │ │ ├── types.d.ts │ │ ├── types.js │ │ ├── types.js.flow │ │ └── utils │ │ │ ├── computeAutoPlacement.d.ts │ │ │ ├── computeAutoPlacement.js │ │ │ ├── computeAutoPlacement.js.flow │ │ │ ├── computeOffsets.d.ts │ │ │ ├── computeOffsets.js │ │ │ ├── computeOffsets.js.flow │ │ │ ├── debounce.d.ts │ │ │ ├── debounce.js │ │ │ ├── debounce.js.flow │ │ │ ├── detectOverflow.d.ts │ │ │ ├── detectOverflow.js │ │ │ ├── detectOverflow.js.flow │ │ │ ├── expandToHashMap.d.ts │ │ │ ├── expandToHashMap.js │ │ │ ├── expandToHashMap.js.flow │ │ │ ├── getAltAxis.d.ts │ │ │ ├── getAltAxis.js │ │ │ ├── getAltAxis.js.flow │ │ │ ├── getAltLen.d.ts │ │ │ ├── getAltLen.js │ │ │ ├── getAltLen.js.flow │ │ │ ├── getBasePlacement.d.ts │ │ │ ├── getBasePlacement.js │ │ │ ├── getBasePlacement.js.flow │ │ │ ├── getFreshSideObject.d.ts │ │ │ ├── getFreshSideObject.js │ │ │ ├── getFreshSideObject.js.flow │ │ │ ├── getMainAxisFromPlacement.d.ts │ │ │ ├── getMainAxisFromPlacement.js │ │ │ ├── getMainAxisFromPlacement.js.flow │ │ │ ├── getOppositePlacement.d.ts │ │ │ ├── getOppositePlacement.js │ │ │ ├── getOppositePlacement.js.flow │ │ │ ├── getOppositeVariationPlacement.d.ts │ │ │ ├── getOppositeVariationPlacement.js │ │ │ ├── getOppositeVariationPlacement.js.flow │ │ │ ├── getVariation.d.ts │ │ │ ├── getVariation.js │ │ │ ├── getVariation.js.flow │ │ │ ├── math.d.ts │ │ │ ├── math.js │ │ │ ├── math.js.flow │ │ │ ├── mergeByName.d.ts │ │ │ ├── mergeByName.js │ │ │ ├── mergeByName.js.flow │ │ │ ├── mergePaddingObject.d.ts │ │ │ ├── mergePaddingObject.js │ │ │ ├── mergePaddingObject.js.flow │ │ │ ├── orderModifiers.d.ts │ │ │ ├── orderModifiers.js │ │ │ ├── orderModifiers.js.flow │ │ │ ├── rectToClientRect.d.ts │ │ │ ├── rectToClientRect.js │ │ │ ├── rectToClientRect.js.flow │ │ │ ├── uniqueBy.d.ts │ │ │ ├── uniqueBy.js │ │ │ ├── uniqueBy.js.flow │ │ │ ├── userAgent.d.ts │ │ │ ├── userAgent.js │ │ │ ├── userAgent.js.flow │ │ │ ├── within.d.ts │ │ │ ├── within.js │ │ │ └── within.js.flow │ │ └── package.json └── bootstrap │ ├── LICENSE │ ├── README.md │ ├── dist │ ├── css │ │ ├── bootstrap-grid.css │ │ ├── bootstrap-grid.css.map │ │ ├── bootstrap-grid.min.css │ │ ├── bootstrap-grid.min.css.map │ │ ├── bootstrap-grid.rtl.css │ │ ├── bootstrap-grid.rtl.css.map │ │ ├── bootstrap-grid.rtl.min.css │ │ ├── bootstrap-grid.rtl.min.css.map │ │ ├── bootstrap-reboot.css │ │ ├── bootstrap-reboot.css.map │ │ ├── bootstrap-reboot.min.css │ │ ├── bootstrap-reboot.min.css.map │ │ ├── bootstrap-reboot.rtl.css │ │ ├── bootstrap-reboot.rtl.css.map │ │ ├── bootstrap-reboot.rtl.min.css │ │ ├── bootstrap-reboot.rtl.min.css.map │ │ ├── bootstrap-utilities.css │ │ ├── bootstrap-utilities.css.map │ │ ├── bootstrap-utilities.min.css │ │ ├── bootstrap-utilities.min.css.map │ │ ├── bootstrap-utilities.rtl.css │ │ ├── bootstrap-utilities.rtl.css.map │ │ ├── bootstrap-utilities.rtl.min.css │ │ ├── bootstrap-utilities.rtl.min.css.map │ │ ├── bootstrap.css │ │ ├── bootstrap.css.map │ │ ├── bootstrap.min.css │ │ ├── bootstrap.min.css.map │ │ ├── bootstrap.rtl.css │ │ ├── bootstrap.rtl.css.map │ │ ├── bootstrap.rtl.min.css │ │ └── bootstrap.rtl.min.css.map │ └── js │ │ ├── bootstrap.bundle.js │ │ ├── bootstrap.bundle.js.map │ │ ├── bootstrap.bundle.min.js │ │ ├── bootstrap.bundle.min.js.map │ │ ├── bootstrap.esm.js │ │ ├── bootstrap.esm.js.map │ │ ├── bootstrap.esm.min.js │ │ ├── bootstrap.esm.min.js.map │ │ ├── bootstrap.js │ │ ├── bootstrap.js.map │ │ ├── bootstrap.min.js │ │ └── bootstrap.min.js.map │ ├── js │ ├── dist │ │ ├── alert.js │ │ ├── alert.js.map │ │ ├── base-component.js │ │ ├── base-component.js.map │ │ ├── button.js │ │ ├── button.js.map │ │ ├── carousel.js │ │ ├── carousel.js.map │ │ ├── collapse.js │ │ ├── collapse.js.map │ │ ├── dom │ │ │ ├── data.js │ │ │ ├── data.js.map │ │ │ ├── event-handler.js │ │ │ ├── event-handler.js.map │ │ │ ├── manipulator.js │ │ │ ├── manipulator.js.map │ │ │ ├── selector-engine.js │ │ │ └── selector-engine.js.map │ │ ├── dropdown.js │ │ ├── dropdown.js.map │ │ ├── modal.js │ │ ├── modal.js.map │ │ ├── offcanvas.js │ │ ├── offcanvas.js.map │ │ ├── popover.js │ │ ├── popover.js.map │ │ ├── scrollspy.js │ │ ├── scrollspy.js.map │ │ ├── tab.js │ │ ├── tab.js.map │ │ ├── toast.js │ │ ├── toast.js.map │ │ ├── tooltip.js │ │ ├── tooltip.js.map │ │ └── util │ │ │ ├── backdrop.js │ │ │ ├── backdrop.js.map │ │ │ ├── component-functions.js │ │ │ ├── component-functions.js.map │ │ │ ├── config.js │ │ │ ├── config.js.map │ │ │ ├── focustrap.js │ │ │ ├── focustrap.js.map │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── sanitizer.js │ │ │ ├── sanitizer.js.map │ │ │ ├── scrollbar.js │ │ │ ├── scrollbar.js.map │ │ │ ├── swipe.js │ │ │ ├── swipe.js.map │ │ │ ├── template-factory.js │ │ │ └── template-factory.js.map │ ├── index.esm.js │ ├── index.umd.js │ └── src │ │ ├── alert.js │ │ ├── base-component.js │ │ ├── button.js │ │ ├── carousel.js │ │ ├── collapse.js │ │ ├── dom │ │ ├── data.js │ │ ├── event-handler.js │ │ ├── manipulator.js │ │ └── selector-engine.js │ │ ├── dropdown.js │ │ ├── modal.js │ │ ├── offcanvas.js │ │ ├── popover.js │ │ ├── scrollspy.js │ │ ├── tab.js │ │ ├── toast.js │ │ ├── tooltip.js │ │ └── util │ │ ├── backdrop.js │ │ ├── component-functions.js │ │ ├── config.js │ │ ├── focustrap.js │ │ ├── index.js │ │ ├── sanitizer.js │ │ ├── scrollbar.js │ │ ├── swipe.js │ │ └── template-factory.js │ ├── package.json │ └── scss │ ├── _accordion.scss │ ├── _alert.scss │ ├── _badge.scss │ ├── _breadcrumb.scss │ ├── _button-group.scss │ ├── _buttons.scss │ ├── _card.scss │ ├── _carousel.scss │ ├── _close.scss │ ├── _containers.scss │ ├── _dropdown.scss │ ├── _forms.scss │ ├── _functions.scss │ ├── _grid.scss │ ├── _helpers.scss │ ├── _images.scss │ ├── _list-group.scss │ ├── _maps.scss │ ├── _mixins.scss │ ├── _modal.scss │ ├── _nav.scss │ ├── _navbar.scss │ ├── _offcanvas.scss │ ├── _pagination.scss │ ├── _placeholders.scss │ ├── _popover.scss │ ├── _progress.scss │ ├── _reboot.scss │ ├── _root.scss │ ├── _spinners.scss │ ├── _tables.scss │ ├── _toasts.scss │ ├── _tooltip.scss │ ├── _transitions.scss │ ├── _type.scss │ ├── _utilities.scss │ ├── _variables-dark.scss │ ├── _variables.scss │ ├── bootstrap-grid.scss │ ├── bootstrap-reboot.scss │ ├── bootstrap-utilities.scss │ ├── bootstrap.scss │ ├── forms │ ├── _floating-labels.scss │ ├── _form-check.scss │ ├── _form-control.scss │ ├── _form-range.scss │ ├── _form-select.scss │ ├── _form-text.scss │ ├── _input-group.scss │ ├── _labels.scss │ └── _validation.scss │ ├── helpers │ ├── _clearfix.scss │ ├── _color-bg.scss │ ├── _colored-links.scss │ ├── _focus-ring.scss │ ├── _icon-link.scss │ ├── _position.scss │ ├── _ratio.scss │ ├── _stacks.scss │ ├── _stretched-link.scss │ ├── _text-truncation.scss │ ├── _visually-hidden.scss │ └── _vr.scss │ ├── mixins │ ├── _alert.scss │ ├── _backdrop.scss │ ├── _banner.scss │ ├── _border-radius.scss │ ├── _box-shadow.scss │ ├── _breakpoints.scss │ ├── _buttons.scss │ ├── _caret.scss │ ├── _clearfix.scss │ ├── _color-mode.scss │ ├── _color-scheme.scss │ ├── _container.scss │ ├── _deprecate.scss │ ├── _forms.scss │ ├── _gradients.scss │ ├── _grid.scss │ ├── _image.scss │ ├── _list-group.scss │ ├── _lists.scss │ ├── _pagination.scss │ ├── _reset-text.scss │ ├── _resize.scss │ ├── _table-variants.scss │ ├── _text-truncate.scss │ ├── _transition.scss │ ├── _utilities.scss │ └── _visually-hidden.scss │ ├── utilities │ └── _api.scss │ └── vendor │ └── _rfs.scss ├── package-lock.json ├── package.json └── react1 ├── .gitignore ├── README.md ├── package-lock.json └── package.json /DSA_By_Code_Help/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "vector": "cpp" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/1.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | using namespace std; 4 | 5 | int main() 6 | { 7 | 8 | int a = 10; 9 | 10 | for (int i = 1; i <= a; i++) 11 | { 12 | cout << i << endl; 13 | } 14 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/1.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array-Notes.cpp: -------------------------------------------------------------------------------- 1 | Always initialize minimum number to INT_MAX 2 | 3 | and max number to INT_MIN , this gives the best result -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/Array.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array2.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std ; 4 | 5 | 6 | void printedArray ( int arr[] , int size) { 7 | for (int i = 0 ; i < size; i++) { 8 | cout << arr[i] << endl; 9 | } 10 | } 11 | 12 | 13 | int main() { 14 | 15 | int arr[8] = {2 , 3, 4, 6, 7, 8, 9, 0}; 16 | 17 | int size = 8; 18 | 19 | printedArray(arr , size); 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array2.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/Array2.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array3.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | 5 | using namespace std; 6 | 7 | int main() 8 | { 9 | cout << INT16_MIN << endl; 10 | 11 | cout << INT16_MAX; 12 | } 13 | -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array3.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/Array3.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-2/1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/Array_Level-2/1.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-2/FindUniqueElement.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | 6 | int getUninum(int arr[] , int n){ 7 | int ans = 0 ; 8 | 9 | for( int i = 0 ; i < n ; i++ ){ 10 | ans = ans^arr[i]; 11 | } 12 | return ans; 13 | } 14 | 15 | 16 | int main() { 17 | int arr[] = { 10 , 11 , 12 , 14 , 17 , 10 , 11 , 12 , 14 , 17 , 20}; 18 | int n = 11 ; 19 | 20 | int result = getUninum( arr , n ); 21 | 22 | cout << "The unique element is :" << result << endl; 23 | 24 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-2/RIGHTSIFT.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | void shani (int arr[] , int n ){ 6 | int temp = arr[n - 1]; 7 | 8 | for( int i = n-1 ; i >=1; i--){ 9 | arr[i] = arr[i-1]; 10 | } 11 | arr[0] = temp; 12 | 13 | 14 | } 15 | 16 | int main() { 17 | int arr[] = { 10 , 20 , 30 , 40 , 50 , 60 , 70 , 80 , 90 , 100}; 18 | int n = 10; 19 | 20 | shani(arr , n ); 21 | 22 | for( int i = 0 ; i < n ; i ++){ 23 | cout << arr[i] <<" " ; 24 | } 25 | 26 | 27 | 28 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-2/RIGHTSIFT.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/Array_Level-2/RIGHTSIFT.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-2/Rightshift.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | 6 | int main() { 7 | 8 | 9 | vector v; 10 | 11 | v.push_back(1); 12 | v.push_back(2); 13 | 14 | v.push_back(3); 15 | 16 | for( int i = 0; i < v.size(); i++ ) { 17 | cout << v[i] << endl; 18 | } 19 | 20 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-2/ShortZeroAndOne.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | void shorted( int arr[] , int n ){ 6 | 7 | int CountZero = 0 ; 8 | int CountOne = 0 ; 9 | 10 | for ( int i = 0; i < n ; i ++ ) { 11 | if ( arr[i] == 0 ){ 12 | CountZero++; 13 | } 14 | if( arr[i] == 1){ 15 | CountOne++; 16 | } 17 | } 18 | 19 | int i ; 20 | 21 | for( i = 0 ; i < CountZero ; i++){ 22 | arr[i] = 0 ; 23 | 24 | } 25 | 26 | for ( int j = i ; j < n ; j++){ 27 | arr[j] = 1 ; 28 | } 29 | 30 | } 31 | 32 | int main() { 33 | int arr[] = { 0,0, 0 , 0, 0 ,0 ,0 ,1,0 ,1 ,1,0, 1,0, 1, 1 , 1 , 1 , 1}; 34 | 35 | int n = 19 ; 36 | 37 | shorted(arr , n ); 38 | 39 | for( int i = 0 ; i < n ; i++){ 40 | cout << arr[i] <<" "; 41 | } 42 | 43 | 44 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-2/ShortZeroAndOne.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/Array_Level-2/ShortZeroAndOne.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-2/vector.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/Array_Level-2/vector.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-3/1.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | 5 | 6 | using namespace std ; 7 | 8 | void shanii(int shani[2][3], int row , int col) { 9 | 10 | for( int i = 0 ; i < row ; i ++ ) { 11 | 12 | for( int j = 0 ; j < col ; j++ ) { 13 | 14 | 15 | 16 | 17 | 18 | 19 | cout << shani[i][j] << " " ; 20 | 21 | 22 | 23 | 24 | } 25 | 26 | cout << endl ; 27 | } 28 | } 29 | 30 | 31 | void soni(int shani[2][3], int col ,int row) { 32 | 33 | for( int i = 0 ; i < row ; i ++ ) { 34 | 35 | for( int j = 0 ; j < col ; j++ ) { 36 | 37 | 38 | cout << shani[j][i] << " " ; 39 | } 40 | 41 | cout << endl ; 42 | } 43 | } 44 | 45 | int main () { 46 | 47 | 48 | 49 | 50 | int shani[2][3] = { 51 | {9,2,3}, 52 | 53 | {1,7,6} 54 | 55 | }; 56 | 57 | 58 | int row = 2; 59 | int col = 3; 60 | 61 | 62 | 63 | soni(shani , row , col ) ; 64 | 65 | 66 | 67 | cout << endl; 68 | 69 | 70 | shanii(shani , row , col ) ; 71 | 72 | 73 | 74 | 75 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-3/1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/Array_Level-3/1.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-3/2.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/Array_Level-3/2.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-3/2D-Array-Babber.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std ; 5 | 6 | int main () { 7 | 8 | 9 | vector< vector > shani(5 , vector(10, -1)); 10 | 11 | for( int i = 0 ; i < shani.size() ; i++) { 12 | for( int j = 0 ; j< shani[i].size() ; j++) { 13 | cout << shani[i][j]<< " " ; 14 | } 15 | cout << endl; 16 | } 17 | 18 | 19 | 20 | // vector < vector < int >> shani(5 , vector(10, -1)) 21 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-3/2D-Array.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/Array_Level-3/2D-Array.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-3/3.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std ; 5 | 6 | void shanii(int shani[2][3], int row , int col) { 7 | int sum = 0 ; 8 | for( int i = 0 ; i < row ; i ++ ) { 9 | for( int j = 0 ; j < col ; j++ ) { 10 | sum += shani[i][j]; 11 | 12 | 13 | } 14 | cout << sum < 2 | #include 3 | 4 | using namespace std ; 5 | 6 | void shanii(int shani[3][4], int row , int col) { 7 | 8 | for( int i = 0 ; i < row ; i ++ ) { 9 | for( int j = 0 ; j < col ; j++ ) { 10 | 11 | if( shani[i] == shani[j]){ 12 | cout << shani[i][j] << " " ; 13 | } 14 | 15 | 16 | 17 | } 18 | 19 | 20 | 21 | 22 | } 23 | 24 | } 25 | 26 | 27 | // void soni(int shani[2][3], int col ,int row) { 28 | // for( int i = 0 ; i < row ; i ++ ) { 29 | // for( int j = 0 ; j < col ; j++ ) { 30 | // cout << shani[j][i] << " " ; 31 | // } 32 | 33 | // cout << endl ; 34 | // } 35 | // } 36 | 37 | int main () { 38 | 39 | 40 | 41 | 42 | int shani[3][4] = { 43 | {9,2,3 ,4}, 44 | 45 | {1,7,6,7}, 46 | 47 | {1,7,6,5} , 48 | 49 | 50 | 51 | }; 52 | 53 | 54 | int row = 3; 55 | int col = 4; 56 | 57 | 58 | 59 | // soni(shani , row , col ) ; 60 | 61 | 62 | cout << endl; 63 | 64 | shanii(shani , row , col ) ; 65 | 66 | 67 | 68 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-3/4.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/Array_Level-3/4.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-3/TransposeMatrix.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std ; 5 | 6 | void shanii(int shani[3][4], int row , int col){ 7 | 8 | for( int i = 0 ; i < row ; i ++ ) { 9 | for( int j = 0 ; j < col ; j++ ){ 10 | swap(shani[i][j] , shani[j][i]); 11 | } 12 | 13 | } 14 | 15 | } 16 | 17 | 18 | // void soni(int shani[2][3], int col ,int row) { 19 | // for( int i = 0 ; i < row ; i ++ ) { 20 | // for( int j = 0 ; j < col ; j++ ) { 21 | // cout << shani[j][i] << " " ; 22 | // } 23 | 24 | // cout << endl ; 25 | // } 26 | // } 27 | 28 | int main () { 29 | 30 | 31 | 32 | 33 | int shani[3][4] = { 34 | {9,2,3 ,4}, 35 | 36 | {1,7,6,7}, 37 | 38 | {1,7,6,5} , 39 | 40 | 41 | 42 | }; 43 | 44 | 45 | int row = 3; 46 | int col = 4; 47 | 48 | 49 | 50 | // soni(shani , row , col ) ; 51 | 52 | 53 | // cout << endl; 54 | 55 | shanii(shani , row , col ) ; 56 | 57 | 58 | 59 | 60 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-3/TransposeMatrix.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/Array_Level-3/TransposeMatrix.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-4/1.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | using namespace std ; 6 | 7 | 8 | void ShiftNegative(vector& shani , int n) { 9 | int j = 0 ; 10 | 11 | for ( int index = 0 ; index < n ; index++) { 12 | if ( shani[index] < 0 ) { 13 | swap(shani[index] , shani[j]); 14 | j++ ; 15 | } 16 | 17 | 18 | } 19 | 20 | 21 | } 22 | 23 | 24 | 25 | int main () { 26 | 27 | 28 | vector shani = { 1, -2, 3, -4, 5, -6, 7, -8, 9, -10 } ; 29 | 30 | int n = shani.size(); 31 | `````````````````````````` 32 | ShiftNegative( shani , n) ; 33 | 34 | for ( int i = 0 ; i < n ; i++) { 35 | cout << shani[i] << " " ; 36 | } 37 | 38 | 39 | 40 | 41 | 42 | } 43 | 44 | -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Array_Level-4/1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/Array_Level-4/1.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/GetUniqueElement.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | int chacha(int arr[] , int n){ 6 | int ans = 0; 7 | 8 | for(int i = 0 ; i < n ; i++) { 9 | ans = ans ^ arr[i] ; 10 | } 11 | return ans ; 12 | } 13 | 14 | 15 | 16 | 17 | int main() { 18 | 19 | int arr[] = {2 , 2 ,9, 3 , 3 , 4, 4 , 5 , 5 , 6 , 9 ,}; 20 | 21 | int n = 9 ; 22 | 23 | int result = chacha(arr , n); 24 | 25 | cout << "Final Result is : " << result << endl ; 26 | 27 | 28 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/GetUniqueElement.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Array Codes/Array/GetUniqueElement.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Array Codes/Array/Linear-Search-Array.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std ; 5 | 6 | int minimum( int arr[] , int size) { 7 | 8 | int minAns = INT_MAX; 9 | 10 | for(int i = 0 ; i < size ; i++) { 11 | if( arr[i] < minAns) { 12 | minAns = arr[i] ; 13 | 14 | } 15 | } 16 | 17 | return minAns; 18 | } 19 | 20 | int main() { 21 | 22 | int arr[8] = {1 , 3 , 4 , 6 , 7 , 8, 9 , 0} ; 23 | 24 | int size = 8; 25 | 26 | 27 | 28 | 29 | int anas = minimum(arr , size); 30 | 31 | cout<< anas < 2 | 3 | #include 4 | 5 | using namespace std; 6 | 7 | int main() { 8 | 9 | int arr1[] = { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8} ; 10 | 11 | int size = sizeof(arr1) / sizeof(arr1[0]); 12 | 13 | // int arr2[size] ; 14 | 15 | 16 | // cout< 2 | 3 | #include 4 | 5 | using namespace std; 6 | 7 | 8 | 9 | void swapfunction(int A[] , int size) { 10 | 11 | 12 | 13 | 14 | for( int left = 0, right = size - 1; left <= right; left++ , right--){ 15 | 16 | swap(A[left] , A[right]) ; 17 | 18 | } 19 | 20 | 21 | for(int i = 0; i >op; 17 | 18 | // if(op==0){ 19 | // cout<<(a*a); 20 | 21 | // } 22 | // else if(op==1){ 23 | 24 | // cout<<(a+a); 25 | 26 | // } 27 | // else if(op==2){ 28 | 29 | // } 30 | // else if(op==3){ 31 | // cout<<(a/b); 32 | 33 | // } 34 | 35 | // else{ 36 | // return 0; 37 | // } 38 | 39 | 40 | switch(op){ 41 | 42 | case 0: 43 | cout< 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | int n ; 7 | cin>>n; 8 | 9 | int c =1; 10 | 11 | for(int i = 0; i 2 | 3 | using namespace std; 4 | 5 | float kmToMiles(float km){ 6 | float OneMile = 0.621371; 7 | 8 | km = OneMile * km; 9 | 10 | return km; 11 | 12 | 13 | } 14 | 15 | int main(){ 16 | 17 | float km; 18 | cout<<"Tell me how km"; 19 | cout<>km; 21 | 22 | float start = kmToMiles(km); 23 | 24 | cout< 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | int a = 9; 7 | 8 | for(int i =0; i<9; i++){ 9 | cout< 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | int a =2; 7 | 8 | int b =3; 9 | 10 | // cout<<(a&b)< 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | int a = 9; 7 | 8 | // cout<<(a++); 9 | // cout< 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | 7 | int num = 2; 8 | 9 | int ans = (num>>1); 10 | cout<< ans ; 11 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/BitwiseOperators/Shift.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/BitwiseOperators/Shift.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/CallByReferenceValue/new1.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | int main() { 6 | // int a = 7; 7 | 8 | // int & c = a; 9 | 10 | // cout<< c<< endl; 11 | 12 | // c++; 13 | // cout<< c<< endl; 14 | 15 | 16 | int a ; 17 | 18 | cin>> a ; 19 | 20 | a = incrementBy1(a); 21 | 22 | cout << a << endl; 23 | 24 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/CallByReferenceValue/new1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/CallByReferenceValue/new1.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Char Array String/Shortner.code-workspace: -------------------------------------------------------------------------------- 1 | { 2 | "folders": [ 3 | { 4 | "path": "../../../../../My Projects/Shortner" 5 | }, 6 | { 7 | "path": "../.." 8 | } 9 | ], 10 | "settings": {} 11 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/CountingFrom1toN/CountingFrom1toN.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | void Counting(int n){ 6 | for(int i= 0; i 2 | 3 | using namespace std; 4 | 5 | void Subtraction(){ 6 | for(int i=0; i<9; i++){ 7 | cout<<"Hey I am Shani Soni "; 8 | } 9 | } 10 | 11 | int main(){ 12 | cout<<"Hey"; 13 | 14 | Subtraction(); 15 | 16 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Functions/Functions.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | 6 | void addition(){ 7 | for(int i = 0 ; i<9; i++){ 8 | cout<<"Hey This is me Shani"; 9 | } 10 | } 11 | 12 | int main() { 13 | 14 | addition(); 15 | 16 | return 0; 17 | 18 | } 19 | -------------------------------------------------------------------------------- /DSA_By_Code_Help/Functions/Functions2.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | 6 | void addition(){ 7 | for(int i = 0 ; i<9; i++){ 8 | cout<<"Hey This is me Shani"; 9 | } 10 | } 11 | 12 | int main() { 13 | 14 | addition(); 15 | 16 | return 0; 17 | 18 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Functions/Part3.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | 6 | void addition(){ 7 | for(int i = 0 ; i<9; i++){ 8 | cout<<"Hey This is me Shani"; 9 | } 10 | } 11 | 12 | int main() { 13 | 14 | addition(); 15 | 16 | return 0; 17 | 18 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Functions/Part4.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | 6 | // Here since we dont need a return type hence we will use void type 7 | 8 | // If there were was a condition to return a return type then in this case we will use any return type data type 9 | // void Operation(int a, int b , int c){ 10 | 11 | // int answer = a+b+c; 12 | // cout<<"The answer is :" < 2 | 3 | using namespace std; 4 | 5 | 6 | void addition(){ 7 | for(int i = 0 ; i<9; i++){ 8 | cout<<"Hey This is me Shani"; 9 | cout< 2 | 3 | using namespace std; 4 | 5 | int main (){ 6 | cout<<"Enter num1"<>num1; 10 | 11 | int num2; 12 | cout<<"Enter num2"<>num2; 14 | int num3; 15 | cout<<"Enter num3"<>num3; 18 | 19 | if(num1>num2 && num1>num3){ 20 | cout<< "num1 is bigger"; 21 | } 22 | else if(num2>num1 && num2>num3){ 23 | cout<< "num2 is bigger"; 24 | } 25 | else{ 26 | cout<< "num3 is bigger" ; 27 | } 28 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/MaxNumber/MaxNumber.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/MaxNumber/MaxNumber.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/MaxNumber/MaxNumber2.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | 6 | void Maxnumber(int n1, int n2 , int n3){ 7 | int ans = max(n1,n2); 8 | 9 | int finalans = max(ans,n3); 10 | 11 | cout<<"this is the bigest Number" < 2 | 3 | using namespace std; 4 | 5 | 6 | 7 | int main(){ 8 | int n ; 9 | 10 | cin>> n ; 11 | 12 | 13 | for(int i = 0; i 2 | 3 | using namespace std; 4 | 5 | 6 | int main(){ 7 | int n ; 8 | 9 | cin>> n ; 10 | for(int i = 0; i 2 | 3 | using namespace std ; 4 | 5 | int main(){ 6 | 7 | int n; 8 | 9 | cin>>n; 10 | 11 | for(int i =0; i0){ 17 | cout< 2 | using namespace std; 3 | 4 | 5 | int main(){ 6 | // At first we we will take an input n 7 | int n ; 8 | 9 | cin>> n ; 10 | // then we will initialize a loop for the row 11 | // this loop will run for n-1 , however the indexing will start from 0 12 | for(int i = 0; i 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | 7 | int n; 8 | 9 | cin >> n; 10 | 11 | for(int i = 0; i 2 | 3 | using namespace std; 4 | 5 | 6 | 7 | int main(){ 8 | int n ; 9 | 10 | // int m ; 11 | 12 | // cin>>m; 13 | 14 | cin>> n ; 15 | for(int i = 0; i 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | 7 | 8 | int n ; 9 | 10 | cin>> n ; 11 | 12 | 13 | // As w move down the number of spaces are increasing by 1 initialy the number of spaces are 0 and als0 as we move down the number of 14 | // stars are decreasing by 1 so we say that for spaces 15 | // spaces = nth row 16 | // and for stars 17 | // stars = n(inputs) - row -1(to balance bacuse the indexing s5tars from 0) 18 | for(int i = 0; i 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | int 7 | for() 8 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Patterns2/Flow_chart.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Patterns2/Flow_chart.cpp -------------------------------------------------------------------------------- /DSA_By_Code_Help/Patterns2/Full_Pyramid.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | 7 | int n; 8 | cin>>n; 9 | 10 | for(int i =0; i 2 | using namespace std; 3 | 4 | int main(){ 5 | 6 | 7 | 8 | 9 | int n ; 10 | cin>> n ; 11 | for(int i=0; i 2 | using namespace std; 3 | 4 | int main(){ 5 | 6 | 7 | 8 | int N ; 9 | cin>> N ; 10 | 11 | 12 | for(int i=0; i 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | int n; 7 | cin>>n; 8 | 9 | for(int i = 0; i 2 | using namespace std; 3 | 4 | int main(){ 5 | 6 | for(int i = 1; i<=10; i=i+1) { 7 | 8 | cout<< "Shani Soni"<< endl ; 9 | 10 | } 11 | 12 | cout<< "Raja RAM "<< endl ; 13 | 14 | 15 | 16 | 17 | 18 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Patterns2/Only_Pyramid.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | int main(){ 5 | int n; 6 | cin>>n; 7 | for(int i =0; i 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | 7 | int n; 8 | cin>>n; 9 | 10 | for(int i = 0; i 2 | using namespace std; 3 | 4 | int main(){ 5 | 6 | int n; 7 | cin>> n; 8 | 9 | for(int row = 0; row 2 | using namespace std; 3 | 4 | int main() { 5 | 6 | int n; 7 | cin >> n; 8 | 9 | for(int row=0; row 2 | 3 | using namespace std; 4 | 5 | int main(){ -------------------------------------------------------------------------------- /DSA_By_Code_Help/Quiz/FirstQuiz.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int numCount; 5 | 6 | // Getting the count of numbers 7 | std::cout << "Enter the count of numbers: "; 8 | std::cin >> numCount; 9 | 10 | // Array to store the numbers 11 | int numbers[numCount]; 12 | 13 | // Getting input numbers from the user 14 | std::cout << "Enter " << numCount << " numbers: "; 15 | for(int i = 0; i < numCount; ++i) { 16 | std::cin >> numbers[i]; 17 | } 18 | 19 | // Performing XOR operation on all numbers 20 | int result = numbers[0]; // Initialize result with first number 21 | for(int i = 1; i < numCount; ++i) { 22 | result ^= numbers[i]; // Perform XOR operation with each subsequent number 23 | } 24 | 25 | // Displaying the result 26 | std::cout << "XOR result: " << result << std::endl; 27 | 28 | return 0; 29 | } 30 | -------------------------------------------------------------------------------- /DSA_By_Code_Help/Quiz/FirstQuiz.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Quiz/FirstQuiz.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/BubbleSort/first.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std ; 5 | 6 | void bubblesort( vector &v, int n ) { 7 | 8 | for( int i = 0; i < n-1 ; ++i) { 9 | for( int j = 0; j < n-i-1 ; ++j) { 10 | if( v[j] > v[j+1]) { 11 | swap(v[j] , v[j+1]); 12 | } 13 | } 14 | } 15 | 16 | } 17 | 18 | 19 | int main() { 20 | 21 | vector v = { 1 , 2 , 5 , 8 , 45 , 9 , 10 , 3 , 4 , 7}; 22 | 23 | int n = v.size(); 24 | 25 | bubblesort(v , n); 26 | 27 | 28 | cout <<"Sorted Array is :" << endl; 29 | for( int i = 0; i < n; ++i) { 30 | cout << v[i] << " "; 31 | } 32 | 33 | 34 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/BubbleSort/first.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Searching&Sorting/BubbleSort/first.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/CustomOperator/CustomComparator.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Searching&Sorting/CustomOperator/CustomComparator.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/CustomOperator/new.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | using namespace std ; 5 | 6 | bool mycomp( int a , int b){ 7 | return a > b 8 | ;} 9 | 10 | 11 | int main() { 12 | 13 | vector v = { 2 , 3 , 89 , 0 , 45 , 3 , 87 , 56 ,423 }; 14 | 15 | int n = v.size(); 16 | 17 | sort(v.begin() , v.end() , mycomp); 18 | 19 | // SelectionSort(v , n) ; 20 | 21 | cout << " Sorted Array is : " << endl; 22 | 23 | for ( int i = 0 ; i < n ; i++) { 24 | cout << v[i] << " " ; 25 | } 26 | 27 | 28 | 29 | 30 | 31 | 32 | } 33 | -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/CustomOperator/new.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Searching&Sorting/CustomOperator/new.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/CustomOperator/new1.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | using namespace std ; 5 | 6 | void printvv(vector> &v) { 7 | for (int i = 0; i < v.size(); ++i) { 8 | vector &temp = v[i]; 9 | int a = temp[0]; 10 | int b = temp[1]; 11 | cout << a << " " << b << endl; 12 | } 13 | cout << endl; 14 | } 15 | 16 | bool mycompfor1stIndex(vector &a, vector &b) { 17 | return a[1] > b[1]; // dsc order 18 | // return a[1] < b[1]; // asc order 19 | } 20 | 21 | 22 | int main() { 23 | vector > v ; 24 | cout << "Enter the size of the Array " << endl; 25 | int n ; 26 | cin >> n; 27 | for(int i = 0; i < n; i++) { 28 | 29 | 30 | cout << " Enter the values of a and b " << endl; 31 | 32 | int a , b ; 33 | // cin >> a , b ; 34 | cin >> a >> b ; 35 | vector temp; 36 | temp.push_back(a); 37 | temp.push_back(b); 38 | v.push_back(temp); 39 | 40 | 41 | } 42 | 43 | cout << "Here are the Values" << endl; 44 | printvv(v); 45 | cout << "Sorted by 1st index" << endl; 46 | sort(v.begin(), v.end(), mycompfor1stIndex); 47 | printvv(v); 48 | return 0; 49 | } 50 | 51 | -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/CustomOperator/new1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Searching&Sorting/CustomOperator/new1.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/CustomOperator/tempCodeRunnerFile.cpp: -------------------------------------------------------------------------------- 1 | 2 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/InsertionSort/new.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std ; 5 | 6 | void InsertionSort( vector & v , int n ) { 7 | for( int i = 0 ; i < n-1; i++){ 8 | 9 | int key = v[i]; 10 | 11 | int j = i-1; 12 | 13 | while( j >=0 && v[j] > key) { 14 | v[j+1] = v[j]; 15 | --j; 16 | } 17 | v[j+1] = key; 18 | 19 | } 20 | } 21 | 22 | int main() { 23 | vector v = { 2, 6, 4 , 1 , 8 , 9, 5, 0, 10, 11}; 24 | 25 | int n = v.size(); 26 | 27 | InsertionSort(v , n); 28 | 29 | cout << "Sorted Array is : " << endl; 30 | 31 | for( int i = 0 ; i < n ; i ++ ) { 32 | cout << v[i] << " " ; 33 | } 34 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/InsertionSort/new.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Searching&Sorting/InsertionSort/new.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/Level-1/1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Searching&Sorting/Level-1/1.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/Level-1/BinarySearchAlgo.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Searching&Sorting/Level-1/BinarySearchAlgo.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/Level-1/FindMissingElement.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std ; 4 | 5 | 6 | 7 | int shani( int arr[] , int N) { 8 | 9 | int s = 0 ; 10 | 11 | int e = N - 1 ; 12 | 13 | int ans = 0 ; 14 | 15 | int mid = s + ( e- s) /2 ; 16 | 17 | while( s <= e) { 18 | 19 | int diff = arr[mid] - mid ; 20 | 21 | if ( diff == 1) { 22 | s = mid + 1 ; 23 | 24 | } 25 | 26 | else{ 27 | e = mid - 1 ; 28 | 29 | // Agr hum yha mid use krenge as a index toh hume mid + 1 krna hoga kyuki hume missing element chahiye jo mid se ek chhota hoga 30 | 31 | // Aour agr hum arr[mid ] ko store krte h to hume mid - 1 krna hoga kyuki hume missing element chahiye jo mid se ek bda hoga 32 | ans = mid ; 33 | 34 | } 35 | 36 | mid = s + ( e - s ) / 2 ; 37 | 38 | 39 | } 40 | return ans + 1 ; 41 | } 42 | 43 | 44 | 45 | int main( ) { 46 | 47 | 48 | int arr[] = { 1 , 2 , 3 , 4 , 5 ,6 , 7 , 8 , 9 , 10 , 12 } ; 49 | 50 | int N = 12 ; 51 | 52 | cout << " Missing Element is :" << shani( arr , N) << endl ; 53 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/Level-1/FindMissingElement.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Searching&Sorting/Level-1/FindMissingElement.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/Level-1/FirstOccurence.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Searching&Sorting/Level-1/FirstOccurence.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/Level-1/tempCodeRunnerFile.cpp: -------------------------------------------------------------------------------- 1 | 2 | 3 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/Level-2/A.code-workspace: -------------------------------------------------------------------------------- 1 | { 2 | "folders": [ 3 | { 4 | "path": "../../../.." 5 | }, 6 | { 7 | "path": "C:/Users/ASUS/Downloads/DecisionHub-master/DecisionHub-master" 8 | } 9 | ], 10 | "settings": { 11 | "liveServer.settings.multiRootWorkspaceName": "A" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/Level-2/binary search in a 2D matrix.cpp: -------------------------------------------------------------------------------- 1 | // class Solution { 2 | // public: 3 | // bool searchMatrix(vector>& matrix, int target) { 4 | // int row = matrix.size(); 5 | // int col = matrix[0].size(); 6 | // int n = row*col; 7 | 8 | // int s = 0; 9 | // int e = n-1; 10 | // int mid = s + (e-s)/2; 11 | 12 | // while(s <= e) { 13 | // int rowIndex = mid/col; 14 | // int colIndex = mid % col; 15 | // int currNumber = matrix[rowIndex][colIndex]; 16 | 17 | // if(currNumber == target) 18 | // return true; 19 | // else if(target > currNumber ) { 20 | // //right; 21 | // s = mid + 1; 22 | // } 23 | // else { 24 | // //left; 25 | // e = mid-1; 26 | // } 27 | // mid = s + (e-s)/2; 28 | // } 29 | // return false; 30 | // } 31 | // }; -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/Level-2/find square root of a number.cpp: -------------------------------------------------------------------------------- 1 | // class Solution { 2 | // public: 3 | 4 | 5 | // int mySqrt(int x) { 6 | // int s = 0; 7 | // int e = x; 8 | // long long int mid = s + (e-s)/2; 9 | // int ans = -1; 10 | 11 | // while(s <= e) { 12 | // //kya mid hi toh answer nahi 13 | // if(mid*mid == x) { 14 | // return mid; 15 | // } 16 | // else if(mid*mid < x) { 17 | // //ans store 18 | // //right me jao 19 | // ans = mid; 20 | // s = mid+1; 21 | // } 22 | // else { 23 | // //left me jana h 24 | // e = mid-1; 25 | // } 26 | // mid = s + (e-s)/2; 27 | // } 28 | // return ans; 29 | // } 30 | // }; -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/Level-3/DivdewithBS.CPP: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | 6 | int getQuotient( int divisor , int dividend) { 7 | int s = 0; 8 | 9 | int e = 29; 10 | 11 | 12 | int mid = s + (e - s )/2 ; 13 | 14 | 15 | 16 | int ans = -1 ; 17 | 18 | while(s <= e) { 19 | if(mid*divisor == dividend) 20 | { 21 | return mid; 22 | 23 | } 24 | 25 | if( mid * divisor < dividend){ 26 | ans = mid; 27 | s = mid + 1; 28 | } 29 | 30 | else{ 31 | e = mid - 1; 32 | } 33 | 34 | mid = s + (e -s )/2; 35 | } 36 | return ans; 37 | 38 | } 39 | 40 | 41 | int main() { 42 | 43 | int divisor = 7 ; 44 | 45 | int dividend = 29 ; 46 | 47 | int ans = getQuotient( divisor , dividend); 48 | 49 | cout << "Final ans is :" << ans << endl; 50 | 51 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/Level-3/DivdewithBS.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Searching&Sorting/Level-3/DivdewithBS.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/Level-3/Nearlyshorted.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | int findTargetIndex(int arr[], int n , int target) { 6 | int s = 0 ; 7 | int e = n-1; 8 | int mid = s + (e-s)/2 ; 9 | 10 | while( s<=e) { 11 | if(mid-1 >= 0 && arr[mid-1] == target) { 12 | return mid-1; 13 | 14 | } 15 | if(mid+1 < n && arr[mid+1] == target) { 16 | return mid+1; 17 | 18 | } 19 | if(arr[mid] == target){ 20 | return mid; 21 | } 22 | 23 | if(target > arr[mid]){ 24 | s = mid + 2; 25 | 26 | } 27 | else { 28 | e = mid - 2 ; 29 | } 30 | mid = s + (e-s)/2; 31 | } 32 | return -1; 33 | } 34 | 35 | int main() { 36 | int target = 90; 37 | int arr[] = {5 , 10 , 30 , 20 , 40 , 70 , 80 , 90, 100}; 38 | int n = 9; 39 | 40 | int targetIndex = findTargetIndex(arr, n, target); 41 | 42 | if(targetIndex == -1){ 43 | cout << "Element is not found" << endl; 44 | 45 | } 46 | else { 47 | cout << "Element is found at index:" << targetIndex << endl; 48 | } 49 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/Level-3/Nearlyshorted.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Searching&Sorting/Level-3/Nearlyshorted.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/Level-3/OddOccurance.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std ; 4 | 5 | 6 | int findOddOccuringElement( int arr[] , int n ) { 7 | 8 | int s = 0; 9 | int e = n - 1; 10 | 11 | int mid = s + (e - s ) / 2; 12 | 13 | while ( s <= e) { 14 | if( s==e) { 15 | return s; 16 | } 17 | // even 18 | if ( mid % 2 == 0) { 19 | if( arr[mid] == arr[mid+1]){ 20 | s = mid + 2; 21 | } 22 | else{ 23 | e = mid; 24 | } 25 | } 26 | if( mid % 2 != 0){ 27 | if( arr[mid] == arr[mid-1] ) { 28 | s = mid + 1; 29 | } 30 | else { 31 | e = mid - 1; 32 | } 33 | } 34 | 35 | mid = s + ( e -s) /2 ; 36 | 37 | 38 | 39 | 40 | 41 | } 42 | return -1 ; 43 | 44 | } 45 | 46 | 47 | 48 | int main () { 49 | 50 | int arr[] { 10, 10, 20, 20, 30, 30, 40, 40, 50, 50, 60, 70, 70, }; 51 | int n = 13; 52 | 53 | int ansIndex = findOddOccuringElement(arr, n); 54 | 55 | cout << "Final Ans is :" < 2 | #include 3 | #include 4 | using namespace std ; 5 | 6 | 7 | void SelectionSort( vector & v , int n ) { 8 | for ( int i = 0; i < n-1 ; i++) { 9 | int minIndex = i; 10 | for( int j = i + 1; j < n ; j++) { 11 | if ( v[j] < v[minIndex]){ 12 | 13 | minIndex = j ; 14 | 15 | } 16 | } 17 | 18 | swap(v[i], v[minIndex] ); 19 | } 20 | } 21 | 22 | int main() { 23 | 24 | vector v = { 2 , 3 , 89 , 0 , 45 , 3 , 87 , 56 ,423 }; 25 | 26 | int n = v.size(); 27 | 28 | sort(v.begin() , v.end() ); 29 | 30 | // SelectionSort(v , n) ; 31 | 32 | cout << " Sorted Array is : " << endl; 33 | 34 | for ( int i = 0 ; i < n ; i++) { 35 | cout << v[i] << " " ; 36 | } 37 | 38 | 39 | 40 | 41 | 42 | 43 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/Searching&Sorting/SelectionSort/new.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Searching&Sorting/SelectionSort/new.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Some-Tricks/Trickone.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | using namespace std; 5 | // We use vector for randm memry allocation inteead of using it we can use 6 | 7 | 8 | // or do this by this method 9 | 10 | 11 | 12 | int main() { 13 | int n; 14 | cin >> n; 15 | 16 | int*arr = new int[n]; 17 | 18 | 19 | 20 | 21 | } 22 | 23 | 24 | 25 | // #include 26 | 27 | // using namespace std; 28 | // // We use vector for randm memry allocation inteead of using it we can use 29 | 30 | 31 | // // or do this by this method 32 | 33 | 34 | 35 | // int main() { 36 | // int n; 37 | // cin >> n; 38 | 39 | // int*arr = new int[n]; 40 | 41 | 42 | 43 | 44 | // } 45 | -------------------------------------------------------------------------------- /DSA_By_Code_Help/Some-Tricks/Trickone.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Some-Tricks/Trickone.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/SumOfN/SumOfN.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | 6 | void sum (int n){ 7 | int result = 0 ; 8 | for(int i = 0 ; i<=n; i++){ 9 | 10 | result = result + i; 11 | 12 | } 13 | cout<<"Here is the result"< 24 | 25 | // using namespace std;\\\ 26 | 27 | 28 | // void sum (int n){ 29 | // int result = 0 ; 30 | // for(int i = 0 ; i<=n; i++){ 31 | 32 | // result = result + i; 33 | 34 | // } 35 | // cout<<"Here is the result"< 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | 7 | // Here the value of A is 65 in ASCIII format 8 | 9 | char ch = 'A'; 10 | int chi = 55; 11 | 12 | 13 | // So 65 and 55 will be 120 14 | // int result = ch + chi ; 15 | 16 | // cout<< result; 17 | 18 | // cout< 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | int num1 = 170; 7 | 8 | int num2 = 190.00; 9 | 10 | // float result = (float)num1 + num2; 11 | 12 | // char result = (char)num1 + (char)num2; 13 | 14 | // cout<< result; 15 | 16 | // float result = (float)num1 / (float)num2 ; 17 | 18 | // cout<< result ; 19 | 20 | float result = num1 / (float)num2 ; 21 | 22 | cout<< result ; 23 | 24 | 25 | 26 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/TypeCasting/Implicit.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | 7 | int num1 = 20; 8 | 9 | float num2 = 30.30; 10 | 11 | float result = num1 + num2 ; 12 | 13 | // int result = num1 + num2 ; 14 | 15 | 16 | cout<< result ; 17 | } -------------------------------------------------------------------------------- /DSA_By_Code_Help/TypeCasting/Implicit.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/TypeCasting/Implicit.exe -------------------------------------------------------------------------------- /DSA_By_Code_Help/Vector STL Slides.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/DSA_By_Code_Help/Vector STL Slides.pdf -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/.package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Learning React", 3 | "lockfileVersion": 3, 4 | "requires": true, 5 | "packages": { 6 | "node_modules/@popperjs/core": { 7 | "version": "2.11.8", 8 | "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", 9 | "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", 10 | "peer": true, 11 | "funding": { 12 | "type": "opencollective", 13 | "url": "https://opencollective.com/popperjs" 14 | } 15 | }, 16 | "node_modules/bootstrap": { 17 | "version": "5.3.3", 18 | "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.3.tgz", 19 | "integrity": "sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg==", 20 | "funding": [ 21 | { 22 | "type": "github", 23 | "url": "https://github.com/sponsors/twbs" 24 | }, 25 | { 26 | "type": "opencollective", 27 | "url": "https://opencollective.com/bootstrap" 28 | } 29 | ], 30 | "peerDependencies": { 31 | "@popperjs/core": "^2.11.8" 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2019 Federico Zivolo 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/cjs/enums.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | export * from '../../lib/enums.js' 4 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/cjs/popper-base.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | export * from '../../lib/popper-base.js' 4 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/cjs/popper-lite.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | export * from '../../lib/popper-lite.js' 4 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/cjs/popper.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | export * from '../../lib/popper.js' 4 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/contains.js: -------------------------------------------------------------------------------- 1 | import { isShadowRoot } from "./instanceOf.js"; 2 | export default function contains(parent, child) { 3 | var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method 4 | 5 | if (parent.contains(child)) { 6 | return true; 7 | } // then fallback to custom implementation with Shadow DOM support 8 | else if (rootNode && isShadowRoot(rootNode)) { 9 | var next = child; 10 | 11 | do { 12 | if (next && parent.isSameNode(next)) { 13 | return true; 14 | } // $FlowFixMe[prop-missing]: need a better way to handle this... 15 | 16 | 17 | next = next.parentNode || next.host; 18 | } while (next); 19 | } // Give up, the result is false 20 | 21 | 22 | return false; 23 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/getComputedStyle.js: -------------------------------------------------------------------------------- 1 | import getWindow from "./getWindow.js"; 2 | export default function getComputedStyle(element) { 3 | return getWindow(element).getComputedStyle(element); 4 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/getDocumentElement.js: -------------------------------------------------------------------------------- 1 | import { isElement } from "./instanceOf.js"; 2 | export default function getDocumentElement(element) { 3 | // $FlowFixMe[incompatible-return]: assume body is always available 4 | return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing] 5 | element.document) || window.document).documentElement; 6 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/getHTMLElementScroll.js: -------------------------------------------------------------------------------- 1 | export default function getHTMLElementScroll(element) { 2 | return { 3 | scrollLeft: element.scrollLeft, 4 | scrollTop: element.scrollTop 5 | }; 6 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/getLayoutRect.js: -------------------------------------------------------------------------------- 1 | import getBoundingClientRect from "./getBoundingClientRect.js"; // Returns the layout rect of an element relative to its offsetParent. Layout 2 | // means it doesn't take into account transforms. 3 | 4 | export default function getLayoutRect(element) { 5 | var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed. 6 | // Fixes https://github.com/popperjs/popper-core/issues/1223 7 | 8 | var width = element.offsetWidth; 9 | var height = element.offsetHeight; 10 | 11 | if (Math.abs(clientRect.width - width) <= 1) { 12 | width = clientRect.width; 13 | } 14 | 15 | if (Math.abs(clientRect.height - height) <= 1) { 16 | height = clientRect.height; 17 | } 18 | 19 | return { 20 | x: element.offsetLeft, 21 | y: element.offsetTop, 22 | width: width, 23 | height: height 24 | }; 25 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/getNodeName.js: -------------------------------------------------------------------------------- 1 | export default function getNodeName(element) { 2 | return element ? (element.nodeName || '').toLowerCase() : null; 3 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/getNodeScroll.js: -------------------------------------------------------------------------------- 1 | import getWindowScroll from "./getWindowScroll.js"; 2 | import getWindow from "./getWindow.js"; 3 | import { isHTMLElement } from "./instanceOf.js"; 4 | import getHTMLElementScroll from "./getHTMLElementScroll.js"; 5 | export default function getNodeScroll(node) { 6 | if (node === getWindow(node) || !isHTMLElement(node)) { 7 | return getWindowScroll(node); 8 | } else { 9 | return getHTMLElementScroll(node); 10 | } 11 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/getParentNode.js: -------------------------------------------------------------------------------- 1 | import getNodeName from "./getNodeName.js"; 2 | import getDocumentElement from "./getDocumentElement.js"; 3 | import { isShadowRoot } from "./instanceOf.js"; 4 | export default function getParentNode(element) { 5 | if (getNodeName(element) === 'html') { 6 | return element; 7 | } 8 | 9 | return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle 10 | // $FlowFixMe[incompatible-return] 11 | // $FlowFixMe[prop-missing] 12 | element.assignedSlot || // step into the shadow DOM of the parent of a slotted node 13 | element.parentNode || ( // DOM Element detected 14 | isShadowRoot(element) ? element.host : null) || // ShadowRoot detected 15 | // $FlowFixMe[incompatible-call]: HTMLElement is a Node 16 | getDocumentElement(element) // fallback 17 | 18 | ); 19 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/getScrollParent.js: -------------------------------------------------------------------------------- 1 | import getParentNode from "./getParentNode.js"; 2 | import isScrollParent from "./isScrollParent.js"; 3 | import getNodeName from "./getNodeName.js"; 4 | import { isHTMLElement } from "./instanceOf.js"; 5 | export default function getScrollParent(node) { 6 | if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) { 7 | // $FlowFixMe[incompatible-return]: assume body is always available 8 | return node.ownerDocument.body; 9 | } 10 | 11 | if (isHTMLElement(node) && isScrollParent(node)) { 12 | return node; 13 | } 14 | 15 | return getScrollParent(getParentNode(node)); 16 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/getViewportRect.js: -------------------------------------------------------------------------------- 1 | import getWindow from "./getWindow.js"; 2 | import getDocumentElement from "./getDocumentElement.js"; 3 | import getWindowScrollBarX from "./getWindowScrollBarX.js"; 4 | import isLayoutViewport from "./isLayoutViewport.js"; 5 | export default function getViewportRect(element, strategy) { 6 | var win = getWindow(element); 7 | var html = getDocumentElement(element); 8 | var visualViewport = win.visualViewport; 9 | var width = html.clientWidth; 10 | var height = html.clientHeight; 11 | var x = 0; 12 | var y = 0; 13 | 14 | if (visualViewport) { 15 | width = visualViewport.width; 16 | height = visualViewport.height; 17 | var layoutViewport = isLayoutViewport(); 18 | 19 | if (layoutViewport || !layoutViewport && strategy === 'fixed') { 20 | x = visualViewport.offsetLeft; 21 | y = visualViewport.offsetTop; 22 | } 23 | } 24 | 25 | return { 26 | width: width, 27 | height: height, 28 | x: x + getWindowScrollBarX(element), 29 | y: y 30 | }; 31 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/getWindow.js: -------------------------------------------------------------------------------- 1 | export default function getWindow(node) { 2 | if (node == null) { 3 | return window; 4 | } 5 | 6 | if (node.toString() !== '[object Window]') { 7 | var ownerDocument = node.ownerDocument; 8 | return ownerDocument ? ownerDocument.defaultView || window : window; 9 | } 10 | 11 | return node; 12 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/getWindowScroll.js: -------------------------------------------------------------------------------- 1 | import getWindow from "./getWindow.js"; 2 | export default function getWindowScroll(node) { 3 | var win = getWindow(node); 4 | var scrollLeft = win.pageXOffset; 5 | var scrollTop = win.pageYOffset; 6 | return { 7 | scrollLeft: scrollLeft, 8 | scrollTop: scrollTop 9 | }; 10 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/getWindowScrollBarX.js: -------------------------------------------------------------------------------- 1 | import getBoundingClientRect from "./getBoundingClientRect.js"; 2 | import getDocumentElement from "./getDocumentElement.js"; 3 | import getWindowScroll from "./getWindowScroll.js"; 4 | export default function getWindowScrollBarX(element) { 5 | // If has a CSS width greater than the viewport, then this will be 6 | // incorrect for RTL. 7 | // Popper 1 is broken in this case and never had a bug report so let's assume 8 | // it's not an issue. I don't think anyone ever specifies width on 9 | // anyway. 10 | // Browsers where the left scrollbar doesn't cause an issue report `0` for 11 | // this (e.g. Edge 2019, IE11, Safari) 12 | return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft; 13 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/instanceOf.js: -------------------------------------------------------------------------------- 1 | import getWindow from "./getWindow.js"; 2 | 3 | function isElement(node) { 4 | var OwnElement = getWindow(node).Element; 5 | return node instanceof OwnElement || node instanceof Element; 6 | } 7 | 8 | function isHTMLElement(node) { 9 | var OwnElement = getWindow(node).HTMLElement; 10 | return node instanceof OwnElement || node instanceof HTMLElement; 11 | } 12 | 13 | function isShadowRoot(node) { 14 | // IE 11 has no ShadowRoot 15 | if (typeof ShadowRoot === 'undefined') { 16 | return false; 17 | } 18 | 19 | var OwnElement = getWindow(node).ShadowRoot; 20 | return node instanceof OwnElement || node instanceof ShadowRoot; 21 | } 22 | 23 | export { isElement, isHTMLElement, isShadowRoot }; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/isLayoutViewport.js: -------------------------------------------------------------------------------- 1 | import getUAString from "../utils/userAgent.js"; 2 | export default function isLayoutViewport() { 3 | return !/^((?!chrome|android).)*safari/i.test(getUAString()); 4 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/isScrollParent.js: -------------------------------------------------------------------------------- 1 | import getComputedStyle from "./getComputedStyle.js"; 2 | export default function isScrollParent(element) { 3 | // Firefox wants us to check `-x` and `-y` variations as well 4 | var _getComputedStyle = getComputedStyle(element), 5 | overflow = _getComputedStyle.overflow, 6 | overflowX = _getComputedStyle.overflowX, 7 | overflowY = _getComputedStyle.overflowY; 8 | 9 | return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX); 10 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/dom-utils/isTableElement.js: -------------------------------------------------------------------------------- 1 | import getNodeName from "./getNodeName.js"; 2 | export default function isTableElement(element) { 3 | return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0; 4 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/index.js: -------------------------------------------------------------------------------- 1 | export * from "./enums.js"; 2 | export * from "./modifiers/index.js"; // eslint-disable-next-line import/no-unused-modules 3 | 4 | export { popperGenerator, detectOverflow, createPopper as createPopperBase } from "./createPopper.js"; // eslint-disable-next-line import/no-unused-modules 5 | 6 | export { createPopper } from "./popper.js"; // eslint-disable-next-line import/no-unused-modules 7 | 8 | export { createPopper as createPopperLite } from "./popper-lite.js"; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/modifiers/index.js: -------------------------------------------------------------------------------- 1 | export { default as applyStyles } from "./applyStyles.js"; 2 | export { default as arrow } from "./arrow.js"; 3 | export { default as computeStyles } from "./computeStyles.js"; 4 | export { default as eventListeners } from "./eventListeners.js"; 5 | export { default as flip } from "./flip.js"; 6 | export { default as hide } from "./hide.js"; 7 | export { default as offset } from "./offset.js"; 8 | export { default as popperOffsets } from "./popperOffsets.js"; 9 | export { default as preventOverflow } from "./preventOverflow.js"; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/modifiers/popperOffsets.js: -------------------------------------------------------------------------------- 1 | import computeOffsets from "../utils/computeOffsets.js"; 2 | 3 | function popperOffsets(_ref) { 4 | var state = _ref.state, 5 | name = _ref.name; 6 | // Offsets are the actual position the popper needs to have to be 7 | // properly positioned near its reference element 8 | // This is the most basic placement, and will be adjusted by 9 | // the modifiers in the next step 10 | state.modifiersData[name] = computeOffsets({ 11 | reference: state.rects.reference, 12 | element: state.rects.popper, 13 | strategy: 'absolute', 14 | placement: state.placement 15 | }); 16 | } // eslint-disable-next-line import/no-unused-modules 17 | 18 | 19 | export default { 20 | name: 'popperOffsets', 21 | enabled: true, 22 | phase: 'read', 23 | fn: popperOffsets, 24 | data: {} 25 | }; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/popper-base.js: -------------------------------------------------------------------------------- 1 | import { createPopper, popperGenerator, detectOverflow } from "./createPopper.js"; 2 | // eslint-disable-next-line import/no-unused-modules 3 | export { createPopper, popperGenerator, detectOverflow }; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/popper-lite.js: -------------------------------------------------------------------------------- 1 | import { popperGenerator, detectOverflow } from "./createPopper.js"; 2 | import eventListeners from "./modifiers/eventListeners.js"; 3 | import popperOffsets from "./modifiers/popperOffsets.js"; 4 | import computeStyles from "./modifiers/computeStyles.js"; 5 | import applyStyles from "./modifiers/applyStyles.js"; 6 | var defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles]; 7 | var createPopper = /*#__PURE__*/popperGenerator({ 8 | defaultModifiers: defaultModifiers 9 | }); // eslint-disable-next-line import/no-unused-modules 10 | 11 | export { createPopper, popperGenerator, defaultModifiers, detectOverflow }; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/popper.js: -------------------------------------------------------------------------------- 1 | import { popperGenerator, detectOverflow } from "./createPopper.js"; 2 | import eventListeners from "./modifiers/eventListeners.js"; 3 | import popperOffsets from "./modifiers/popperOffsets.js"; 4 | import computeStyles from "./modifiers/computeStyles.js"; 5 | import applyStyles from "./modifiers/applyStyles.js"; 6 | import offset from "./modifiers/offset.js"; 7 | import flip from "./modifiers/flip.js"; 8 | import preventOverflow from "./modifiers/preventOverflow.js"; 9 | import arrow from "./modifiers/arrow.js"; 10 | import hide from "./modifiers/hide.js"; 11 | var defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide]; 12 | var createPopper = /*#__PURE__*/popperGenerator({ 13 | defaultModifiers: defaultModifiers 14 | }); // eslint-disable-next-line import/no-unused-modules 15 | 16 | export { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules 17 | 18 | export { createPopper as createPopperLite } from "./popper-lite.js"; // eslint-disable-next-line import/no-unused-modules 19 | 20 | export * from "./modifiers/index.js"; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/Learning React/React 1/node_modules/@popperjs/core/dist/esm/types.js -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/debounce.js: -------------------------------------------------------------------------------- 1 | export default function debounce(fn) { 2 | var pending; 3 | return function () { 4 | if (!pending) { 5 | pending = new Promise(function (resolve) { 6 | Promise.resolve().then(function () { 7 | pending = undefined; 8 | resolve(fn()); 9 | }); 10 | }); 11 | } 12 | 13 | return pending; 14 | }; 15 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/expandToHashMap.js: -------------------------------------------------------------------------------- 1 | export default function expandToHashMap(value, keys) { 2 | return keys.reduce(function (hashMap, key) { 3 | hashMap[key] = value; 4 | return hashMap; 5 | }, {}); 6 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/getAltAxis.js: -------------------------------------------------------------------------------- 1 | export default function getAltAxis(axis) { 2 | return axis === 'x' ? 'y' : 'x'; 3 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/getAltLen.js: -------------------------------------------------------------------------------- 1 | export default function getAltLen(len) { 2 | return len === 'width' ? 'height' : 'width'; 3 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/getBasePlacement.js: -------------------------------------------------------------------------------- 1 | import { auto } from "../enums.js"; 2 | export default function getBasePlacement(placement) { 3 | return placement.split('-')[0]; 4 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/getFreshSideObject.js: -------------------------------------------------------------------------------- 1 | export default function getFreshSideObject() { 2 | return { 3 | top: 0, 4 | right: 0, 5 | bottom: 0, 6 | left: 0 7 | }; 8 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/getMainAxisFromPlacement.js: -------------------------------------------------------------------------------- 1 | export default function getMainAxisFromPlacement(placement) { 2 | return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y'; 3 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/getOppositePlacement.js: -------------------------------------------------------------------------------- 1 | var hash = { 2 | left: 'right', 3 | right: 'left', 4 | bottom: 'top', 5 | top: 'bottom' 6 | }; 7 | export default function getOppositePlacement(placement) { 8 | return placement.replace(/left|right|bottom|top/g, function (matched) { 9 | return hash[matched]; 10 | }); 11 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/getOppositeVariationPlacement.js: -------------------------------------------------------------------------------- 1 | var hash = { 2 | start: 'end', 3 | end: 'start' 4 | }; 5 | export default function getOppositeVariationPlacement(placement) { 6 | return placement.replace(/start|end/g, function (matched) { 7 | return hash[matched]; 8 | }); 9 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/getVariation.js: -------------------------------------------------------------------------------- 1 | export default function getVariation(placement) { 2 | return placement.split('-')[1]; 3 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/math.js: -------------------------------------------------------------------------------- 1 | export var max = Math.max; 2 | export var min = Math.min; 3 | export var round = Math.round; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/mergeByName.js: -------------------------------------------------------------------------------- 1 | export default function mergeByName(modifiers) { 2 | var merged = modifiers.reduce(function (merged, current) { 3 | var existing = merged[current.name]; 4 | merged[current.name] = existing ? Object.assign({}, existing, current, { 5 | options: Object.assign({}, existing.options, current.options), 6 | data: Object.assign({}, existing.data, current.data) 7 | }) : current; 8 | return merged; 9 | }, {}); // IE11 does not support Object.values 10 | 11 | return Object.keys(merged).map(function (key) { 12 | return merged[key]; 13 | }); 14 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/mergePaddingObject.js: -------------------------------------------------------------------------------- 1 | import getFreshSideObject from "./getFreshSideObject.js"; 2 | export default function mergePaddingObject(paddingObject) { 3 | return Object.assign({}, getFreshSideObject(), paddingObject); 4 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/rectToClientRect.js: -------------------------------------------------------------------------------- 1 | export default function rectToClientRect(rect) { 2 | return Object.assign({}, rect, { 3 | left: rect.x, 4 | top: rect.y, 5 | right: rect.x + rect.width, 6 | bottom: rect.y + rect.height 7 | }); 8 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/uniqueBy.js: -------------------------------------------------------------------------------- 1 | export default function uniqueBy(arr, fn) { 2 | var identifiers = new Set(); 3 | return arr.filter(function (item) { 4 | var identifier = fn(item); 5 | 6 | if (!identifiers.has(identifier)) { 7 | identifiers.add(identifier); 8 | return true; 9 | } 10 | }); 11 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/userAgent.js: -------------------------------------------------------------------------------- 1 | export default function getUAString() { 2 | var uaData = navigator.userAgentData; 3 | 4 | if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) { 5 | return uaData.brands.map(function (item) { 6 | return item.brand + "/" + item.version; 7 | }).join(' '); 8 | } 9 | 10 | return navigator.userAgent; 11 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/esm/utils/within.js: -------------------------------------------------------------------------------- 1 | import { max as mathMax, min as mathMin } from "./math.js"; 2 | export function within(min, value, max) { 3 | return mathMax(min, mathMin(value, max)); 4 | } 5 | export function withinMaxClamp(min, value, max) { 6 | var v = within(min, value, max); 7 | return v > max ? max : v; 8 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/umd/enums.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @popperjs/core v2.11.8 - MIT License 3 | */ 4 | 5 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,(function(e){"use strict";var t="bottom",r="right",o="left",n="auto",a=["top",t,r,o],i="start",f="end",p=a.reduce((function(e,t){return e.concat([t+"-"+i,t+"-"+f])}),[]),c=[].concat(a,[n]).reduce((function(e,t){return e.concat([t,t+"-"+i,t+"-"+f])}),[]),d="beforeRead",s="read",u="afterRead",l="beforeMain",b="main",m="afterMain",P="beforeWrite",g="write",h="afterWrite",v=[d,s,u,l,b,m,P,g,h];e.afterMain=m,e.afterRead=u,e.afterWrite=h,e.auto=n,e.basePlacements=a,e.beforeMain=l,e.beforeRead=d,e.beforeWrite=P,e.bottom=t,e.clippingParents="clippingParents",e.end=f,e.left=o,e.main=b,e.modifierPhases=v,e.placements=c,e.popper="popper",e.read=s,e.reference="reference",e.right=r,e.start=i,e.top="top",e.variationPlacements=p,e.viewport="viewport",e.write=g,Object.defineProperty(e,"__esModule",{value:!0})})); 6 | //# sourceMappingURL=enums.min.js.map 7 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/umd/enums.min.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | export * from '../../lib/enums.js' 4 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/umd/popper-base.min.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | export * from '../../lib/popper-base.js' 4 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/umd/popper-lite.min.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | export * from '../../lib/popper-lite.js' 4 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/dist/umd/popper.min.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | export * from '../../lib/popper.js' 4 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './lib'; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/createPopper.d.ts: -------------------------------------------------------------------------------- 1 | import type { OptionsGeneric, Modifier, Instance, VirtualElement } from "./types"; 2 | import detectOverflow from "./utils/detectOverflow"; 3 | declare type PopperGeneratorArgs = { 4 | defaultModifiers?: Array>; 5 | defaultOptions?: Partial>; 6 | }; 7 | export declare function popperGenerator(generatorOptions?: PopperGeneratorArgs): >>(reference: Element | VirtualElement, popper: HTMLElement, options?: Partial>) => Instance; 8 | export declare const createPopper: >>(reference: Element | VirtualElement, popper: HTMLElement, options?: Partial>) => Instance; 9 | export { detectOverflow }; 10 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/contains.d.ts: -------------------------------------------------------------------------------- 1 | export default function contains(parent: Element, child: Element): boolean; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/contains.js: -------------------------------------------------------------------------------- 1 | import { isShadowRoot } from "./instanceOf.js"; 2 | export default function contains(parent, child) { 3 | var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method 4 | 5 | if (parent.contains(child)) { 6 | return true; 7 | } // then fallback to custom implementation with Shadow DOM support 8 | else if (rootNode && isShadowRoot(rootNode)) { 9 | var next = child; 10 | 11 | do { 12 | if (next && parent.isSameNode(next)) { 13 | return true; 14 | } // $FlowFixMe[prop-missing]: need a better way to handle this... 15 | 16 | 17 | next = next.parentNode || next.host; 18 | } while (next); 19 | } // Give up, the result is false 20 | 21 | 22 | return false; 23 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/contains.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import { isShadowRoot } from './instanceOf'; 3 | 4 | export default function contains(parent: Element, child: Element) { 5 | const rootNode = child.getRootNode && child.getRootNode(); 6 | 7 | // First, attempt with faster native method 8 | if (parent.contains(child)) { 9 | return true; 10 | } 11 | // then fallback to custom implementation with Shadow DOM support 12 | else if (rootNode && isShadowRoot(rootNode)) { 13 | let next = child; 14 | do { 15 | if (next && parent.isSameNode(next)) { 16 | return true; 17 | } 18 | // $FlowFixMe[prop-missing]: need a better way to handle this... 19 | next = next.parentNode || next.host; 20 | } while (next); 21 | } 22 | 23 | // Give up, the result is false 24 | return false; 25 | } 26 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.d.ts: -------------------------------------------------------------------------------- 1 | import type { ClientRectObject, VirtualElement } from "../types"; 2 | export default function getBoundingClientRect(element: Element | VirtualElement, includeScale?: boolean, isFixedStrategy?: boolean): ClientRectObject; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.d.ts: -------------------------------------------------------------------------------- 1 | import type { ClientRectObject, PositioningStrategy } from "../types"; 2 | import type { Boundary, RootBoundary } from "../enums"; 3 | export default function getClippingRect(element: Element, boundary: Boundary, rootBoundary: RootBoundary, strategy: PositioningStrategy): ClientRectObject; 4 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.d.ts: -------------------------------------------------------------------------------- 1 | import type { Rect, VirtualElement, Window } from "../types"; 2 | export default function getCompositeRect(elementOrVirtualElement: Element | VirtualElement, offsetParent: Element | Window, isFixed?: boolean): Rect; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.d.ts: -------------------------------------------------------------------------------- 1 | export default function getComputedStyle(element: Element): CSSStyleDeclaration; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js: -------------------------------------------------------------------------------- 1 | import getWindow from "./getWindow.js"; 2 | export default function getComputedStyle(element) { 3 | return getWindow(element).getComputedStyle(element); 4 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import getWindow from './getWindow'; 3 | 4 | export default function getComputedStyle( 5 | element: Element 6 | ): CSSStyleDeclaration { 7 | return getWindow(element).getComputedStyle(element); 8 | } 9 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.d.ts: -------------------------------------------------------------------------------- 1 | import type { Window } from "../types"; 2 | export default function getDocumentElement(element: Element | Window): HTMLElement; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js: -------------------------------------------------------------------------------- 1 | import { isElement } from "./instanceOf.js"; 2 | export default function getDocumentElement(element) { 3 | // $FlowFixMe[incompatible-return]: assume body is always available 4 | return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing] 5 | element.document) || window.document).documentElement; 6 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import { isElement } from './instanceOf'; 3 | import type { Window } from '../types'; 4 | 5 | export default function getDocumentElement( 6 | element: Element | Window 7 | ): HTMLElement { 8 | // $FlowFixMe[incompatible-return]: assume body is always available 9 | return ( 10 | (isElement(element) 11 | ? element.ownerDocument 12 | : // $FlowFixMe[prop-missing] 13 | element.document) || window.document 14 | ).documentElement; 15 | } 16 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.d.ts: -------------------------------------------------------------------------------- 1 | import type { Rect } from "../types"; 2 | export default function getDocumentRect(element: HTMLElement): Rect; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.d.ts: -------------------------------------------------------------------------------- 1 | export default function getHTMLElementScroll(element: HTMLElement): { 2 | scrollLeft: number; 3 | scrollTop: number; 4 | }; 5 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js: -------------------------------------------------------------------------------- 1 | export default function getHTMLElementScroll(element) { 2 | return { 3 | scrollLeft: element.scrollLeft, 4 | scrollTop: element.scrollTop 5 | }; 6 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | export default function getHTMLElementScroll(element: HTMLElement) { 4 | return { 5 | scrollLeft: element.scrollLeft, 6 | scrollTop: element.scrollTop, 7 | }; 8 | } 9 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.d.ts: -------------------------------------------------------------------------------- 1 | import type { Rect } from "../types"; 2 | export default function getLayoutRect(element: HTMLElement): Rect; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js: -------------------------------------------------------------------------------- 1 | import getBoundingClientRect from "./getBoundingClientRect.js"; // Returns the layout rect of an element relative to its offsetParent. Layout 2 | // means it doesn't take into account transforms. 3 | 4 | export default function getLayoutRect(element) { 5 | var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed. 6 | // Fixes https://github.com/popperjs/popper-core/issues/1223 7 | 8 | var width = element.offsetWidth; 9 | var height = element.offsetHeight; 10 | 11 | if (Math.abs(clientRect.width - width) <= 1) { 12 | width = clientRect.width; 13 | } 14 | 15 | if (Math.abs(clientRect.height - height) <= 1) { 16 | height = clientRect.height; 17 | } 18 | 19 | return { 20 | x: element.offsetLeft, 21 | y: element.offsetTop, 22 | width: width, 23 | height: height 24 | }; 25 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import type { Rect } from '../types'; 3 | import getBoundingClientRect from './getBoundingClientRect'; 4 | 5 | // Returns the layout rect of an element relative to its offsetParent. Layout 6 | // means it doesn't take into account transforms. 7 | export default function getLayoutRect(element: HTMLElement): Rect { 8 | const clientRect = getBoundingClientRect(element); 9 | 10 | // Use the clientRect sizes if it's not been transformed. 11 | // Fixes https://github.com/popperjs/popper-core/issues/1223 12 | let width = element.offsetWidth; 13 | let height = element.offsetHeight; 14 | 15 | if (Math.abs(clientRect.width - width) <= 1) { 16 | width = clientRect.width; 17 | } 18 | 19 | if (Math.abs(clientRect.height - height) <= 1) { 20 | height = clientRect.height; 21 | } 22 | 23 | return { 24 | x: element.offsetLeft, 25 | y: element.offsetTop, 26 | width, 27 | height, 28 | }; 29 | } 30 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getNodeName.d.ts: -------------------------------------------------------------------------------- 1 | import type { Window } from "../types"; 2 | export default function getNodeName(element: (Node | null | undefined) | Window): string | null | undefined; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js: -------------------------------------------------------------------------------- 1 | export default function getNodeName(element) { 2 | return element ? (element.nodeName || '').toLowerCase() : null; 3 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import type { Window } from '../types'; 3 | 4 | export default function getNodeName(element: ?Node | Window): ?string { 5 | return element ? (element.nodeName || '').toLowerCase() : null; 6 | } 7 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.d.ts: -------------------------------------------------------------------------------- 1 | import type { Window } from "../types"; 2 | export default function getNodeScroll(node: Node | Window): { 3 | scrollLeft: any; 4 | scrollTop: any; 5 | }; 6 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js: -------------------------------------------------------------------------------- 1 | import getWindowScroll from "./getWindowScroll.js"; 2 | import getWindow from "./getWindow.js"; 3 | import { isHTMLElement } from "./instanceOf.js"; 4 | import getHTMLElementScroll from "./getHTMLElementScroll.js"; 5 | export default function getNodeScroll(node) { 6 | if (node === getWindow(node) || !isHTMLElement(node)) { 7 | return getWindowScroll(node); 8 | } else { 9 | return getHTMLElementScroll(node); 10 | } 11 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import getWindowScroll from './getWindowScroll'; 3 | import getWindow from './getWindow'; 4 | import { isHTMLElement } from './instanceOf'; 5 | import getHTMLElementScroll from './getHTMLElementScroll'; 6 | import type { Window } from '../types'; 7 | 8 | export default function getNodeScroll(node: Node | Window) { 9 | if (node === getWindow(node) || !isHTMLElement(node)) { 10 | return getWindowScroll(node); 11 | } else { 12 | return getHTMLElementScroll(node); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.d.ts: -------------------------------------------------------------------------------- 1 | export default function getOffsetParent(element: Element): any; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getParentNode.d.ts: -------------------------------------------------------------------------------- 1 | export default function getParentNode(element: Node | ShadowRoot): Node; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js: -------------------------------------------------------------------------------- 1 | import getNodeName from "./getNodeName.js"; 2 | import getDocumentElement from "./getDocumentElement.js"; 3 | import { isShadowRoot } from "./instanceOf.js"; 4 | export default function getParentNode(element) { 5 | if (getNodeName(element) === 'html') { 6 | return element; 7 | } 8 | 9 | return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle 10 | // $FlowFixMe[incompatible-return] 11 | // $FlowFixMe[prop-missing] 12 | element.assignedSlot || // step into the shadow DOM of the parent of a slotted node 13 | element.parentNode || ( // DOM Element detected 14 | isShadowRoot(element) ? element.host : null) || // ShadowRoot detected 15 | // $FlowFixMe[incompatible-call]: HTMLElement is a Node 16 | getDocumentElement(element) // fallback 17 | 18 | ); 19 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import getNodeName from './getNodeName'; 3 | import getDocumentElement from './getDocumentElement'; 4 | import { isShadowRoot } from './instanceOf'; 5 | 6 | export default function getParentNode(element: Node | ShadowRoot): Node { 7 | if (getNodeName(element) === 'html') { 8 | return element; 9 | } 10 | 11 | return ( 12 | // this is a quicker (but less type safe) way to save quite some bytes from the bundle 13 | // $FlowFixMe[incompatible-return] 14 | // $FlowFixMe[prop-missing] 15 | element.assignedSlot || // step into the shadow DOM of the parent of a slotted node 16 | element.parentNode || // DOM Element detected 17 | (isShadowRoot(element) ? element.host : null) || // ShadowRoot detected 18 | // $FlowFixMe[incompatible-call]: HTMLElement is a Node 19 | getDocumentElement(element) // fallback 20 | ); 21 | } 22 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.d.ts: -------------------------------------------------------------------------------- 1 | export default function getScrollParent(node: Node): HTMLElement; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js: -------------------------------------------------------------------------------- 1 | import getParentNode from "./getParentNode.js"; 2 | import isScrollParent from "./isScrollParent.js"; 3 | import getNodeName from "./getNodeName.js"; 4 | import { isHTMLElement } from "./instanceOf.js"; 5 | export default function getScrollParent(node) { 6 | if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) { 7 | // $FlowFixMe[incompatible-return]: assume body is always available 8 | return node.ownerDocument.body; 9 | } 10 | 11 | if (isHTMLElement(node) && isScrollParent(node)) { 12 | return node; 13 | } 14 | 15 | return getScrollParent(getParentNode(node)); 16 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import getParentNode from './getParentNode'; 3 | import isScrollParent from './isScrollParent'; 4 | import getNodeName from './getNodeName'; 5 | import { isHTMLElement } from './instanceOf'; 6 | 7 | export default function getScrollParent(node: Node): HTMLElement { 8 | if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) { 9 | // $FlowFixMe[incompatible-return]: assume body is always available 10 | return node.ownerDocument.body; 11 | } 12 | 13 | if (isHTMLElement(node) && isScrollParent(node)) { 14 | return node; 15 | } 16 | 17 | return getScrollParent(getParentNode(node)); 18 | } 19 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.d.ts: -------------------------------------------------------------------------------- 1 | import type { PositioningStrategy } from "../types"; 2 | export default function getViewportRect(element: Element, strategy: PositioningStrategy): { 3 | width: number; 4 | height: number; 5 | x: number; 6 | y: number; 7 | }; 8 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js: -------------------------------------------------------------------------------- 1 | import getWindow from "./getWindow.js"; 2 | import getDocumentElement from "./getDocumentElement.js"; 3 | import getWindowScrollBarX from "./getWindowScrollBarX.js"; 4 | import isLayoutViewport from "./isLayoutViewport.js"; 5 | export default function getViewportRect(element, strategy) { 6 | var win = getWindow(element); 7 | var html = getDocumentElement(element); 8 | var visualViewport = win.visualViewport; 9 | var width = html.clientWidth; 10 | var height = html.clientHeight; 11 | var x = 0; 12 | var y = 0; 13 | 14 | if (visualViewport) { 15 | width = visualViewport.width; 16 | height = visualViewport.height; 17 | var layoutViewport = isLayoutViewport(); 18 | 19 | if (layoutViewport || !layoutViewport && strategy === 'fixed') { 20 | x = visualViewport.offsetLeft; 21 | y = visualViewport.offsetTop; 22 | } 23 | } 24 | 25 | return { 26 | width: width, 27 | height: height, 28 | x: x + getWindowScrollBarX(element), 29 | y: y 30 | }; 31 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import getWindow from './getWindow'; 3 | import getDocumentElement from './getDocumentElement'; 4 | import getWindowScrollBarX from './getWindowScrollBarX'; 5 | import isLayoutViewport from './isLayoutViewport'; 6 | import type { PositioningStrategy } from '../types'; 7 | 8 | export default function getViewportRect( 9 | element: Element, 10 | strategy: PositioningStrategy 11 | ) { 12 | const win = getWindow(element); 13 | const html = getDocumentElement(element); 14 | const visualViewport = win.visualViewport; 15 | 16 | let width = html.clientWidth; 17 | let height = html.clientHeight; 18 | let x = 0; 19 | let y = 0; 20 | 21 | if (visualViewport) { 22 | width = visualViewport.width; 23 | height = visualViewport.height; 24 | 25 | const layoutViewport = isLayoutViewport(); 26 | 27 | if (layoutViewport || (!layoutViewport && strategy === 'fixed')) { 28 | x = visualViewport.offsetLeft; 29 | y = visualViewport.offsetTop; 30 | } 31 | } 32 | 33 | return { 34 | width, 35 | height, 36 | x: x + getWindowScrollBarX(element), 37 | y, 38 | }; 39 | } 40 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getWindow.d.ts: -------------------------------------------------------------------------------- 1 | export default function getWindow(node: any): any; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getWindow.js: -------------------------------------------------------------------------------- 1 | export default function getWindow(node) { 2 | if (node == null) { 3 | return window; 4 | } 5 | 6 | if (node.toString() !== '[object Window]') { 7 | var ownerDocument = node.ownerDocument; 8 | return ownerDocument ? ownerDocument.defaultView || window : window; 9 | } 10 | 11 | return node; 12 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getWindow.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import type { Window } from '../types'; 3 | declare function getWindow(node: Node | Window): Window; 4 | 5 | export default function getWindow(node) { 6 | if (node == null) { 7 | return window; 8 | } 9 | 10 | if (node.toString() !== '[object Window]') { 11 | const ownerDocument = node.ownerDocument; 12 | return ownerDocument ? ownerDocument.defaultView || window : window; 13 | } 14 | 15 | return node; 16 | } 17 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.d.ts: -------------------------------------------------------------------------------- 1 | import type { Window } from "../types"; 2 | export default function getWindowScroll(node: Node | Window): { 3 | scrollLeft: any; 4 | scrollTop: any; 5 | }; 6 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js: -------------------------------------------------------------------------------- 1 | import getWindow from "./getWindow.js"; 2 | export default function getWindowScroll(node) { 3 | var win = getWindow(node); 4 | var scrollLeft = win.pageXOffset; 5 | var scrollTop = win.pageYOffset; 6 | return { 7 | scrollLeft: scrollLeft, 8 | scrollTop: scrollTop 9 | }; 10 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import getWindow from './getWindow'; 3 | import type { Window } from '../types'; 4 | 5 | export default function getWindowScroll(node: Node | Window) { 6 | const win = getWindow(node); 7 | const scrollLeft = win.pageXOffset; 8 | const scrollTop = win.pageYOffset; 9 | 10 | return { 11 | scrollLeft, 12 | scrollTop, 13 | }; 14 | } 15 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.d.ts: -------------------------------------------------------------------------------- 1 | export default function getWindowScrollBarX(element: Element): number; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js: -------------------------------------------------------------------------------- 1 | import getBoundingClientRect from "./getBoundingClientRect.js"; 2 | import getDocumentElement from "./getDocumentElement.js"; 3 | import getWindowScroll from "./getWindowScroll.js"; 4 | export default function getWindowScrollBarX(element) { 5 | // If has a CSS width greater than the viewport, then this will be 6 | // incorrect for RTL. 7 | // Popper 1 is broken in this case and never had a bug report so let's assume 8 | // it's not an issue. I don't think anyone ever specifies width on 9 | // anyway. 10 | // Browsers where the left scrollbar doesn't cause an issue report `0` for 11 | // this (e.g. Edge 2019, IE11, Safari) 12 | return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft; 13 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import getBoundingClientRect from './getBoundingClientRect'; 3 | import getDocumentElement from './getDocumentElement'; 4 | import getWindowScroll from './getWindowScroll'; 5 | 6 | export default function getWindowScrollBarX(element: Element): number { 7 | // If has a CSS width greater than the viewport, then this will be 8 | // incorrect for RTL. 9 | // Popper 1 is broken in this case and never had a bug report so let's assume 10 | // it's not an issue. I don't think anyone ever specifies width on 11 | // anyway. 12 | // Browsers where the left scrollbar doesn't cause an issue report `0` for 13 | // this (e.g. Edge 2019, IE11, Safari) 14 | return ( 15 | getBoundingClientRect(getDocumentElement(element)).left + 16 | getWindowScroll(element).scrollLeft 17 | ); 18 | } 19 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/instanceOf.d.ts: -------------------------------------------------------------------------------- 1 | declare function isElement(node: unknown): boolean; 2 | declare function isHTMLElement(node: unknown): boolean; 3 | declare function isShadowRoot(node: unknown): boolean; 4 | export { isElement, isHTMLElement, isShadowRoot }; 5 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js: -------------------------------------------------------------------------------- 1 | import getWindow from "./getWindow.js"; 2 | 3 | function isElement(node) { 4 | var OwnElement = getWindow(node).Element; 5 | return node instanceof OwnElement || node instanceof Element; 6 | } 7 | 8 | function isHTMLElement(node) { 9 | var OwnElement = getWindow(node).HTMLElement; 10 | return node instanceof OwnElement || node instanceof HTMLElement; 11 | } 12 | 13 | function isShadowRoot(node) { 14 | // IE 11 has no ShadowRoot 15 | if (typeof ShadowRoot === 'undefined') { 16 | return false; 17 | } 18 | 19 | var OwnElement = getWindow(node).ShadowRoot; 20 | return node instanceof OwnElement || node instanceof ShadowRoot; 21 | } 22 | 23 | export { isElement, isHTMLElement, isShadowRoot }; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import getWindow from './getWindow'; 3 | 4 | declare function isElement(node: mixed): boolean %checks(node instanceof 5 | Element); 6 | function isElement(node) { 7 | const OwnElement = getWindow(node).Element; 8 | return node instanceof OwnElement || node instanceof Element; 9 | } 10 | 11 | declare function isHTMLElement(node: mixed): boolean %checks(node instanceof 12 | HTMLElement); 13 | function isHTMLElement(node) { 14 | const OwnElement = getWindow(node).HTMLElement; 15 | return node instanceof OwnElement || node instanceof HTMLElement; 16 | } 17 | 18 | declare function isShadowRoot(node: mixed): boolean %checks(node instanceof 19 | ShadowRoot); 20 | function isShadowRoot(node) { 21 | // IE 11 has no ShadowRoot 22 | if (typeof ShadowRoot === 'undefined') { 23 | return false; 24 | } 25 | const OwnElement = getWindow(node).ShadowRoot; 26 | return node instanceof OwnElement || node instanceof ShadowRoot; 27 | } 28 | 29 | export { isElement, isHTMLElement, isShadowRoot }; 30 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.d.ts: -------------------------------------------------------------------------------- 1 | export default function isLayoutViewport(): boolean; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js: -------------------------------------------------------------------------------- 1 | import getUAString from "../utils/userAgent.js"; 2 | export default function isLayoutViewport() { 3 | return !/^((?!chrome|android).)*safari/i.test(getUAString()); 4 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import getUAString from '../utils/userAgent'; 3 | 4 | export default function isLayoutViewport() { 5 | return !/^((?!chrome|android).)*safari/i.test(getUAString()); 6 | } 7 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.d.ts: -------------------------------------------------------------------------------- 1 | export default function isScrollParent(element: HTMLElement): boolean; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js: -------------------------------------------------------------------------------- 1 | import getComputedStyle from "./getComputedStyle.js"; 2 | export default function isScrollParent(element) { 3 | // Firefox wants us to check `-x` and `-y` variations as well 4 | var _getComputedStyle = getComputedStyle(element), 5 | overflow = _getComputedStyle.overflow, 6 | overflowX = _getComputedStyle.overflowX, 7 | overflowY = _getComputedStyle.overflowY; 8 | 9 | return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX); 10 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import getComputedStyle from './getComputedStyle'; 3 | 4 | export default function isScrollParent(element: HTMLElement): boolean { 5 | // Firefox wants us to check `-x` and `-y` variations as well 6 | const { overflow, overflowX, overflowY } = getComputedStyle(element); 7 | return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX); 8 | } 9 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/isTableElement.d.ts: -------------------------------------------------------------------------------- 1 | export default function isTableElement(element: Element): boolean; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js: -------------------------------------------------------------------------------- 1 | import getNodeName from "./getNodeName.js"; 2 | export default function isTableElement(element) { 3 | return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0; 4 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import getNodeName from './getNodeName'; 3 | 4 | export default function isTableElement(element: Element): boolean { 5 | return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0; 6 | } 7 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.d.ts: -------------------------------------------------------------------------------- 1 | import type { Window, VisualViewport } from "../types"; 2 | export default function listScrollParents(element: Node, list?: Array): Array; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./enums"; 3 | export * from "./modifiers"; 4 | export { popperGenerator, detectOverflow, createPopper as createPopperBase } from "./createPopper"; 5 | export { createPopper } from "./popper"; 6 | export { createPopper as createPopperLite } from "./popper-lite"; 7 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/index.js: -------------------------------------------------------------------------------- 1 | export * from "./enums.js"; 2 | export * from "./modifiers/index.js"; // eslint-disable-next-line import/no-unused-modules 3 | 4 | export { popperGenerator, detectOverflow, createPopper as createPopperBase } from "./createPopper.js"; // eslint-disable-next-line import/no-unused-modules 5 | 6 | export { createPopper } from "./popper.js"; // eslint-disable-next-line import/no-unused-modules 7 | 8 | export { createPopper as createPopperLite } from "./popper-lite.js"; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/index.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | export type * from './types'; 3 | export * from './enums'; 4 | export * from './modifiers'; 5 | 6 | // eslint-disable-next-line import/no-unused-modules 7 | export { popperGenerator, detectOverflow, createPopper as createPopperBase } from './createPopper'; 8 | 9 | // eslint-disable-next-line import/no-unused-modules 10 | export { createPopper } from './popper'; 11 | 12 | // eslint-disable-next-line import/no-unused-modules 13 | export { createPopper as createPopperLite } from './popper-lite'; 14 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/modifiers/applyStyles.d.ts: -------------------------------------------------------------------------------- 1 | import type { Modifier } from "../types"; 2 | export declare type ApplyStylesModifier = Modifier<"applyStyles", {}>; 3 | declare const _default: ApplyStylesModifier; 4 | export default _default; 5 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/modifiers/arrow.d.ts: -------------------------------------------------------------------------------- 1 | import type { Modifier, Padding, Rect } from "../types"; 2 | import type { Placement } from "../enums"; 3 | export declare type Options = { 4 | element: HTMLElement | string | null; 5 | padding: Padding | ((arg0: { 6 | popper: Rect; 7 | reference: Rect; 8 | placement: Placement; 9 | }) => Padding); 10 | }; 11 | export declare type ArrowModifier = Modifier<"arrow", Options>; 12 | declare const _default: ArrowModifier; 13 | export default _default; 14 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/modifiers/eventListeners.d.ts: -------------------------------------------------------------------------------- 1 | import type { Modifier } from "../types"; 2 | export declare type Options = { 3 | scroll: boolean; 4 | resize: boolean; 5 | }; 6 | export declare type EventListenersModifier = Modifier<"eventListeners", Options>; 7 | declare const _default: EventListenersModifier; 8 | export default _default; 9 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/modifiers/flip.d.ts: -------------------------------------------------------------------------------- 1 | import type { Placement, Boundary, RootBoundary } from "../enums"; 2 | import type { Modifier, Padding } from "../types"; 3 | export declare type Options = { 4 | mainAxis: boolean; 5 | altAxis: boolean; 6 | fallbackPlacements: Array; 7 | padding: Padding; 8 | boundary: Boundary; 9 | rootBoundary: RootBoundary; 10 | altBoundary: boolean; 11 | flipVariations: boolean; 12 | allowedAutoPlacements: Array; 13 | }; 14 | export declare type FlipModifier = Modifier<"flip", Options>; 15 | declare const _default: FlipModifier; 16 | export default _default; 17 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/modifiers/hide.d.ts: -------------------------------------------------------------------------------- 1 | import type { Modifier } from "../types"; 2 | export declare type HideModifier = Modifier<"hide", {}>; 3 | declare const _default: HideModifier; 4 | export default _default; 5 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/modifiers/index.d.ts: -------------------------------------------------------------------------------- 1 | export { default as applyStyles } from "./applyStyles"; 2 | export { default as arrow } from "./arrow"; 3 | export { default as computeStyles } from "./computeStyles"; 4 | export { default as eventListeners } from "./eventListeners"; 5 | export { default as flip } from "./flip"; 6 | export { default as hide } from "./hide"; 7 | export { default as offset } from "./offset"; 8 | export { default as popperOffsets } from "./popperOffsets"; 9 | export { default as preventOverflow } from "./preventOverflow"; 10 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/modifiers/index.js: -------------------------------------------------------------------------------- 1 | export { default as applyStyles } from "./applyStyles.js"; 2 | export { default as arrow } from "./arrow.js"; 3 | export { default as computeStyles } from "./computeStyles.js"; 4 | export { default as eventListeners } from "./eventListeners.js"; 5 | export { default as flip } from "./flip.js"; 6 | export { default as hide } from "./hide.js"; 7 | export { default as offset } from "./offset.js"; 8 | export { default as popperOffsets } from "./popperOffsets.js"; 9 | export { default as preventOverflow } from "./preventOverflow.js"; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/modifiers/index.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | export { default as applyStyles } from './applyStyles'; 3 | export { default as arrow } from './arrow'; 4 | export { default as computeStyles } from './computeStyles'; 5 | export { default as eventListeners } from './eventListeners'; 6 | export { default as flip } from './flip'; 7 | export { default as hide } from './hide'; 8 | export { default as offset } from './offset'; 9 | export { default as popperOffsets } from './popperOffsets'; 10 | export { default as preventOverflow } from './preventOverflow'; 11 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/modifiers/offset.d.ts: -------------------------------------------------------------------------------- 1 | import type { Placement } from "../enums"; 2 | import type { Modifier, Rect, Offsets } from "../types"; 3 | export declare type OffsetsFunction = (arg0: { 4 | popper: Rect; 5 | reference: Rect; 6 | placement: Placement; 7 | }) => [number | null | undefined, number | null | undefined]; 8 | declare type Offset = OffsetsFunction | [number | null | undefined, number | null | undefined]; 9 | export declare type Options = { 10 | offset: Offset; 11 | }; 12 | export declare function distanceAndSkiddingToXY(placement: Placement, rects: { 13 | popper: Rect; 14 | reference: Rect; 15 | }, offset: Offset): Offsets; 16 | export declare type OffsetModifier = Modifier<"offset", Options>; 17 | declare const _default: OffsetModifier; 18 | export default _default; 19 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/modifiers/popperOffsets.d.ts: -------------------------------------------------------------------------------- 1 | import type { Modifier } from "../types"; 2 | export declare type PopperOffsetsModifier = Modifier<"popperOffsets", {}>; 3 | declare const _default: PopperOffsetsModifier; 4 | export default _default; 5 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js: -------------------------------------------------------------------------------- 1 | import computeOffsets from "../utils/computeOffsets.js"; 2 | 3 | function popperOffsets(_ref) { 4 | var state = _ref.state, 5 | name = _ref.name; 6 | // Offsets are the actual position the popper needs to have to be 7 | // properly positioned near its reference element 8 | // This is the most basic placement, and will be adjusted by 9 | // the modifiers in the next step 10 | state.modifiersData[name] = computeOffsets({ 11 | reference: state.rects.reference, 12 | element: state.rects.popper, 13 | strategy: 'absolute', 14 | placement: state.placement 15 | }); 16 | } // eslint-disable-next-line import/no-unused-modules 17 | 18 | 19 | export default { 20 | name: 'popperOffsets', 21 | enabled: true, 22 | phase: 'read', 23 | fn: popperOffsets, 24 | data: {} 25 | }; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import type { ModifierArguments, Modifier } from '../types'; 3 | import computeOffsets from '../utils/computeOffsets'; 4 | 5 | function popperOffsets({ state, name }: ModifierArguments<{||}>) { 6 | // Offsets are the actual position the popper needs to have to be 7 | // properly positioned near its reference element 8 | // This is the most basic placement, and will be adjusted by 9 | // the modifiers in the next step 10 | state.modifiersData[name] = computeOffsets({ 11 | reference: state.rects.reference, 12 | element: state.rects.popper, 13 | strategy: 'absolute', 14 | placement: state.placement, 15 | }); 16 | } 17 | 18 | // eslint-disable-next-line import/no-unused-modules 19 | export type PopperOffsetsModifier = Modifier<'popperOffsets', {||}>; 20 | export default ({ 21 | name: 'popperOffsets', 22 | enabled: true, 23 | phase: 'read', 24 | fn: popperOffsets, 25 | data: {}, 26 | }: PopperOffsetsModifier); 27 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/modifiers/preventOverflow.d.ts: -------------------------------------------------------------------------------- 1 | import type { Placement, Boundary, RootBoundary } from "../enums"; 2 | import type { Rect, Modifier, Padding } from "../types"; 3 | declare type TetherOffset = ((arg0: { 4 | popper: Rect; 5 | reference: Rect; 6 | placement: Placement; 7 | }) => number | { 8 | mainAxis: number; 9 | altAxis: number; 10 | }) | number | { 11 | mainAxis: number; 12 | altAxis: number; 13 | }; 14 | export declare type Options = { 15 | mainAxis: boolean; 16 | altAxis: boolean; 17 | boundary: Boundary; 18 | rootBoundary: RootBoundary; 19 | altBoundary: boolean; 20 | /** 21 | * Allows the popper to overflow from its boundaries to keep it near its 22 | * reference element 23 | */ 24 | tether: boolean; 25 | tetherOffset: TetherOffset; 26 | padding: Padding; 27 | }; 28 | export declare type PreventOverflowModifier = Modifier<"preventOverflow", Options>; 29 | declare const _default: PreventOverflowModifier; 30 | export default _default; 31 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/popper-base.d.ts: -------------------------------------------------------------------------------- 1 | import { createPopper, popperGenerator, detectOverflow } from "./createPopper"; 2 | export * from "./types"; 3 | export { createPopper, popperGenerator, detectOverflow }; 4 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/popper-base.js: -------------------------------------------------------------------------------- 1 | import { createPopper, popperGenerator, detectOverflow } from "./createPopper.js"; 2 | // eslint-disable-next-line import/no-unused-modules 3 | export { createPopper, popperGenerator, detectOverflow }; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/popper-base.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import { createPopper, popperGenerator, detectOverflow } from './createPopper'; 3 | 4 | export type * from './types'; 5 | 6 | // eslint-disable-next-line import/no-unused-modules 7 | export { createPopper, popperGenerator, detectOverflow }; 8 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/popper-lite.d.ts: -------------------------------------------------------------------------------- 1 | import { popperGenerator, detectOverflow } from "./createPopper"; 2 | export * from "./types"; 3 | declare const defaultModifiers: (import("./modifiers/popperOffsets").PopperOffsetsModifier | import("./modifiers/eventListeners").EventListenersModifier | import("./modifiers/computeStyles").ComputeStylesModifier | import("./modifiers/applyStyles").ApplyStylesModifier)[]; 4 | declare const createPopper: >>(reference: Element | import("./types").VirtualElement, popper: HTMLElement, options?: Partial>) => import("./types").Instance; 5 | export { createPopper, popperGenerator, defaultModifiers, detectOverflow }; 6 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/popper-lite.js: -------------------------------------------------------------------------------- 1 | import { popperGenerator, detectOverflow } from "./createPopper.js"; 2 | import eventListeners from "./modifiers/eventListeners.js"; 3 | import popperOffsets from "./modifiers/popperOffsets.js"; 4 | import computeStyles from "./modifiers/computeStyles.js"; 5 | import applyStyles from "./modifiers/applyStyles.js"; 6 | var defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles]; 7 | var createPopper = /*#__PURE__*/popperGenerator({ 8 | defaultModifiers: defaultModifiers 9 | }); // eslint-disable-next-line import/no-unused-modules 10 | 11 | export { createPopper, popperGenerator, defaultModifiers, detectOverflow }; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/popper-lite.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import { popperGenerator, detectOverflow } from './createPopper'; 3 | 4 | import eventListeners from './modifiers/eventListeners'; 5 | import popperOffsets from './modifiers/popperOffsets'; 6 | import computeStyles from './modifiers/computeStyles'; 7 | import applyStyles from './modifiers/applyStyles'; 8 | 9 | export type * from './types'; 10 | 11 | const defaultModifiers = [ 12 | eventListeners, 13 | popperOffsets, 14 | computeStyles, 15 | applyStyles, 16 | ]; 17 | 18 | const createPopper = popperGenerator({ defaultModifiers }); 19 | 20 | // eslint-disable-next-line import/no-unused-modules 21 | export { createPopper, popperGenerator, defaultModifiers, detectOverflow }; 22 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/popper.d.ts: -------------------------------------------------------------------------------- 1 | import { popperGenerator, detectOverflow } from "./createPopper"; 2 | export * from "./types"; 3 | declare const defaultModifiers: (import("./modifiers/popperOffsets").PopperOffsetsModifier | import("./modifiers/flip").FlipModifier | import("./modifiers/hide").HideModifier | import("./modifiers/offset").OffsetModifier | import("./modifiers/eventListeners").EventListenersModifier | import("./modifiers/computeStyles").ComputeStylesModifier | import("./modifiers/arrow").ArrowModifier | import("./modifiers/preventOverflow").PreventOverflowModifier | import("./modifiers/applyStyles").ApplyStylesModifier)[]; 4 | declare const createPopper: >>(reference: Element | import("./types").VirtualElement, popper: HTMLElement, options?: Partial>) => import("./types").Instance; 5 | export { createPopper, popperGenerator, defaultModifiers, detectOverflow }; 6 | export { createPopper as createPopperLite } from "./popper-lite"; 7 | export * from "./modifiers"; 8 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/popper.js: -------------------------------------------------------------------------------- 1 | import { popperGenerator, detectOverflow } from "./createPopper.js"; 2 | import eventListeners from "./modifiers/eventListeners.js"; 3 | import popperOffsets from "./modifiers/popperOffsets.js"; 4 | import computeStyles from "./modifiers/computeStyles.js"; 5 | import applyStyles from "./modifiers/applyStyles.js"; 6 | import offset from "./modifiers/offset.js"; 7 | import flip from "./modifiers/flip.js"; 8 | import preventOverflow from "./modifiers/preventOverflow.js"; 9 | import arrow from "./modifiers/arrow.js"; 10 | import hide from "./modifiers/hide.js"; 11 | var defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide]; 12 | var createPopper = /*#__PURE__*/popperGenerator({ 13 | defaultModifiers: defaultModifiers 14 | }); // eslint-disable-next-line import/no-unused-modules 15 | 16 | export { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules 17 | 18 | export { createPopper as createPopperLite } from "./popper-lite.js"; // eslint-disable-next-line import/no-unused-modules 19 | 20 | export * from "./modifiers/index.js"; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/popper.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import { popperGenerator, detectOverflow } from './createPopper'; 3 | 4 | import eventListeners from './modifiers/eventListeners'; 5 | import popperOffsets from './modifiers/popperOffsets'; 6 | import computeStyles from './modifiers/computeStyles'; 7 | import applyStyles from './modifiers/applyStyles'; 8 | import offset from './modifiers/offset'; 9 | import flip from './modifiers/flip'; 10 | import preventOverflow from './modifiers/preventOverflow'; 11 | import arrow from './modifiers/arrow'; 12 | import hide from './modifiers/hide'; 13 | 14 | export type * from './types'; 15 | 16 | const defaultModifiers = [ 17 | eventListeners, 18 | popperOffsets, 19 | computeStyles, 20 | applyStyles, 21 | offset, 22 | flip, 23 | preventOverflow, 24 | arrow, 25 | hide, 26 | ]; 27 | 28 | const createPopper = popperGenerator({ defaultModifiers }); 29 | 30 | // eslint-disable-next-line import/no-unused-modules 31 | export { createPopper, popperGenerator, defaultModifiers, detectOverflow }; 32 | // eslint-disable-next-line import/no-unused-modules 33 | export { createPopper as createPopperLite } from './popper-lite'; 34 | // eslint-disable-next-line import/no-unused-modules 35 | export * from './modifiers'; 36 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shanisoni/React-and-DSA-By-Code-Help/fc198c3ffa444310c65f567b69c41573eb5a077b/Learning React/React 1/node_modules/@popperjs/core/lib/types.js -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.d.ts: -------------------------------------------------------------------------------- 1 | import type { State, Padding } from "../types"; 2 | import type { Placement, ComputedPlacement, Boundary, RootBoundary } from "../enums"; 3 | declare type Options = { 4 | placement: Placement; 5 | padding: Padding; 6 | boundary: Boundary; 7 | rootBoundary: RootBoundary; 8 | flipVariations: boolean; 9 | allowedAutoPlacements?: Array; 10 | }; 11 | export default function computeAutoPlacement(state: Partial, options?: Options): Array; 12 | export {}; 13 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/computeOffsets.d.ts: -------------------------------------------------------------------------------- 1 | import type { Rect, PositioningStrategy, Offsets, ClientRectObject } from "../types"; 2 | import { Placement } from "../enums"; 3 | export default function computeOffsets({ reference, element, placement }: { 4 | reference: Rect | ClientRectObject; 5 | element: Rect | ClientRectObject; 6 | strategy: PositioningStrategy; 7 | placement?: Placement; 8 | }): Offsets; 9 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/debounce.d.ts: -------------------------------------------------------------------------------- 1 | export default function debounce(fn: (...args: Array) => any): () => Promise; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/debounce.js: -------------------------------------------------------------------------------- 1 | export default function debounce(fn) { 2 | var pending; 3 | return function () { 4 | if (!pending) { 5 | pending = new Promise(function (resolve) { 6 | Promise.resolve().then(function () { 7 | pending = undefined; 8 | resolve(fn()); 9 | }); 10 | }); 11 | } 12 | 13 | return pending; 14 | }; 15 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/debounce.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | export default function debounce(fn: Function): () => Promise { 4 | let pending; 5 | return () => { 6 | if (!pending) { 7 | pending = new Promise(resolve => { 8 | Promise.resolve().then(() => { 9 | pending = undefined; 10 | resolve(fn()); 11 | }); 12 | }); 13 | } 14 | 15 | return pending; 16 | }; 17 | } 18 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/detectOverflow.d.ts: -------------------------------------------------------------------------------- 1 | import type { State, SideObject, Padding, PositioningStrategy } from "../types"; 2 | import type { Placement, Boundary, RootBoundary, Context } from "../enums"; 3 | export declare type Options = { 4 | placement: Placement; 5 | strategy: PositioningStrategy; 6 | boundary: Boundary; 7 | rootBoundary: RootBoundary; 8 | elementContext: Context; 9 | altBoundary: boolean; 10 | padding: Padding; 11 | }; 12 | export default function detectOverflow(state: State, options?: Partial): SideObject; 13 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/expandToHashMap.d.ts: -------------------------------------------------------------------------------- 1 | export default function expandToHashMap(value: T, keys: Array): { 2 | [key: string]: T; 3 | }; 4 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/expandToHashMap.js: -------------------------------------------------------------------------------- 1 | export default function expandToHashMap(value, keys) { 2 | return keys.reduce(function (hashMap, key) { 3 | hashMap[key] = value; 4 | return hashMap; 5 | }, {}); 6 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/expandToHashMap.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | export default function expandToHashMap< 4 | T: number | string | boolean, 5 | K: string 6 | >(value: T, keys: Array): { [key: string]: T } { 7 | return keys.reduce((hashMap, key) => { 8 | hashMap[key] = value; 9 | return hashMap; 10 | }, {}); 11 | } 12 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getAltAxis.d.ts: -------------------------------------------------------------------------------- 1 | export default function getAltAxis(axis: "x" | "y"): "x" | "y"; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getAltAxis.js: -------------------------------------------------------------------------------- 1 | export default function getAltAxis(axis) { 2 | return axis === 'x' ? 'y' : 'x'; 3 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getAltAxis.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | export default function getAltAxis(axis: 'x' | 'y'): 'x' | 'y' { 4 | return axis === 'x' ? 'y' : 'x'; 5 | } 6 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getAltLen.d.ts: -------------------------------------------------------------------------------- 1 | export default function getAltLen(len: "width" | "height"): "width" | "height"; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getAltLen.js: -------------------------------------------------------------------------------- 1 | export default function getAltLen(len) { 2 | return len === 'width' ? 'height' : 'width'; 3 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getAltLen.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | export default function getAltLen(len: 'width' | 'height'): 'width' | 'height' { 4 | return len === 'width' ? 'height' : 'width'; 5 | } 6 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getBasePlacement.d.ts: -------------------------------------------------------------------------------- 1 | import { BasePlacement, Placement, auto } from "../enums"; 2 | export default function getBasePlacement(placement: Placement | typeof auto): BasePlacement; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getBasePlacement.js: -------------------------------------------------------------------------------- 1 | import { auto } from "../enums.js"; 2 | export default function getBasePlacement(placement) { 3 | return placement.split('-')[0]; 4 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getBasePlacement.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import { type BasePlacement, type Placement, auto } from '../enums'; 3 | 4 | export default function getBasePlacement( 5 | placement: Placement | typeof auto 6 | ): BasePlacement { 7 | return (placement.split('-')[0]: any); 8 | } 9 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getFreshSideObject.d.ts: -------------------------------------------------------------------------------- 1 | import type { SideObject } from "../types"; 2 | export default function getFreshSideObject(): SideObject; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js: -------------------------------------------------------------------------------- 1 | export default function getFreshSideObject() { 2 | return { 3 | top: 0, 4 | right: 0, 5 | bottom: 0, 6 | left: 0 7 | }; 8 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import type { SideObject } from '../types'; 3 | 4 | export default function getFreshSideObject(): SideObject { 5 | return { 6 | top: 0, 7 | right: 0, 8 | bottom: 0, 9 | left: 0, 10 | }; 11 | } 12 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.d.ts: -------------------------------------------------------------------------------- 1 | import type { Placement } from "../enums"; 2 | export default function getMainAxisFromPlacement(placement: Placement): "x" | "y"; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js: -------------------------------------------------------------------------------- 1 | export default function getMainAxisFromPlacement(placement) { 2 | return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y'; 3 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import type { Placement } from '../enums'; 3 | 4 | export default function getMainAxisFromPlacement( 5 | placement: Placement 6 | ): 'x' | 'y' { 7 | return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y'; 8 | } 9 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getOppositePlacement.d.ts: -------------------------------------------------------------------------------- 1 | import type { Placement } from "../enums"; 2 | export default function getOppositePlacement(placement: Placement): Placement; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js: -------------------------------------------------------------------------------- 1 | var hash = { 2 | left: 'right', 3 | right: 'left', 4 | bottom: 'top', 5 | top: 'bottom' 6 | }; 7 | export default function getOppositePlacement(placement) { 8 | return placement.replace(/left|right|bottom|top/g, function (matched) { 9 | return hash[matched]; 10 | }); 11 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import type { Placement } from '../enums'; 3 | 4 | const hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; 5 | 6 | export default function getOppositePlacement(placement: Placement): Placement { 7 | return (placement.replace( 8 | /left|right|bottom|top/g, 9 | matched => hash[matched] 10 | ): any); 11 | } 12 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.d.ts: -------------------------------------------------------------------------------- 1 | import type { Placement } from "../enums"; 2 | export default function getOppositeVariationPlacement(placement: Placement): Placement; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js: -------------------------------------------------------------------------------- 1 | var hash = { 2 | start: 'end', 3 | end: 'start' 4 | }; 5 | export default function getOppositeVariationPlacement(placement) { 6 | return placement.replace(/start|end/g, function (matched) { 7 | return hash[matched]; 8 | }); 9 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import type { Placement } from '../enums'; 3 | 4 | const hash = { start: 'end', end: 'start' }; 5 | 6 | export default function getOppositeVariationPlacement( 7 | placement: Placement 8 | ): Placement { 9 | return (placement.replace(/start|end/g, matched => hash[matched]): any); 10 | } 11 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getVariation.d.ts: -------------------------------------------------------------------------------- 1 | import { Variation, Placement } from "../enums"; 2 | export default function getVariation(placement: Placement): Variation | null | undefined; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getVariation.js: -------------------------------------------------------------------------------- 1 | export default function getVariation(placement) { 2 | return placement.split('-')[1]; 3 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/getVariation.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import { type Variation, type Placement } from '../enums'; 3 | 4 | export default function getVariation(placement: Placement): ?Variation { 5 | return (placement.split('-')[1]: any); 6 | } 7 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/math.d.ts: -------------------------------------------------------------------------------- 1 | export declare const max: (...values: number[]) => number; 2 | export declare const min: (...values: number[]) => number; 3 | export declare const round: (x: number) => number; 4 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/math.js: -------------------------------------------------------------------------------- 1 | export var max = Math.max; 2 | export var min = Math.min; 3 | export var round = Math.round; -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/math.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | export const max = Math.max; 3 | export const min = Math.min; 4 | export const round = Math.round; 5 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/mergeByName.d.ts: -------------------------------------------------------------------------------- 1 | import type { Modifier } from "../types"; 2 | export default function mergeByName(modifiers: Array>>): Array>>; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/mergeByName.js: -------------------------------------------------------------------------------- 1 | export default function mergeByName(modifiers) { 2 | var merged = modifiers.reduce(function (merged, current) { 3 | var existing = merged[current.name]; 4 | merged[current.name] = existing ? Object.assign({}, existing, current, { 5 | options: Object.assign({}, existing.options, current.options), 6 | data: Object.assign({}, existing.data, current.data) 7 | }) : current; 8 | return merged; 9 | }, {}); // IE11 does not support Object.values 10 | 11 | return Object.keys(merged).map(function (key) { 12 | return merged[key]; 13 | }); 14 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/mergeByName.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import type { Modifier } from '../types'; 3 | 4 | export default function mergeByName( 5 | modifiers: Array<$Shape>> 6 | ): Array<$Shape>> { 7 | const merged = modifiers.reduce((merged, current) => { 8 | const existing = merged[current.name]; 9 | merged[current.name] = existing 10 | ? { 11 | ...existing, 12 | ...current, 13 | options: { ...existing.options, ...current.options }, 14 | data: { ...existing.data, ...current.data }, 15 | } 16 | : current; 17 | return merged; 18 | }, {}); 19 | 20 | // IE11 does not support Object.values 21 | return Object.keys(merged).map(key => merged[key]); 22 | } 23 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/mergePaddingObject.d.ts: -------------------------------------------------------------------------------- 1 | import type { SideObject } from "../types"; 2 | export default function mergePaddingObject(paddingObject: Partial): SideObject; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js: -------------------------------------------------------------------------------- 1 | import getFreshSideObject from "./getFreshSideObject.js"; 2 | export default function mergePaddingObject(paddingObject) { 3 | return Object.assign({}, getFreshSideObject(), paddingObject); 4 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import type { SideObject } from '../types'; 3 | import getFreshSideObject from './getFreshSideObject'; 4 | 5 | export default function mergePaddingObject( 6 | paddingObject: $Shape 7 | ): SideObject { 8 | return { 9 | ...getFreshSideObject(), 10 | ...paddingObject, 11 | }; 12 | } 13 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/orderModifiers.d.ts: -------------------------------------------------------------------------------- 1 | import type { Modifier } from "../types"; 2 | export default function orderModifiers(modifiers: Array>): Array>; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/rectToClientRect.d.ts: -------------------------------------------------------------------------------- 1 | import type { Rect, ClientRectObject } from "../types"; 2 | export default function rectToClientRect(rect: Rect): ClientRectObject; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/rectToClientRect.js: -------------------------------------------------------------------------------- 1 | export default function rectToClientRect(rect) { 2 | return Object.assign({}, rect, { 3 | left: rect.x, 4 | top: rect.y, 5 | right: rect.x + rect.width, 6 | bottom: rect.y + rect.height 7 | }); 8 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/rectToClientRect.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import type { Rect, ClientRectObject } from '../types'; 3 | 4 | export default function rectToClientRect(rect: Rect): ClientRectObject { 5 | return { 6 | ...rect, 7 | left: rect.x, 8 | top: rect.y, 9 | right: rect.x + rect.width, 10 | bottom: rect.y + rect.height, 11 | }; 12 | } 13 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/uniqueBy.d.ts: -------------------------------------------------------------------------------- 1 | export default function uniqueBy(arr: Array, fn: (arg0: T) => any): Array; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/uniqueBy.js: -------------------------------------------------------------------------------- 1 | export default function uniqueBy(arr, fn) { 2 | var identifiers = new Set(); 3 | return arr.filter(function (item) { 4 | var identifier = fn(item); 5 | 6 | if (!identifiers.has(identifier)) { 7 | identifiers.add(identifier); 8 | return true; 9 | } 10 | }); 11 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/uniqueBy.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | export default function uniqueBy(arr: Array, fn: T => any): Array { 4 | const identifiers = new Set(); 5 | 6 | return arr.filter(item => { 7 | const identifier = fn(item); 8 | 9 | if (!identifiers.has(identifier)) { 10 | identifiers.add(identifier); 11 | return true; 12 | } 13 | }); 14 | } 15 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/userAgent.d.ts: -------------------------------------------------------------------------------- 1 | export default function getUAString(): string; 2 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/userAgent.js: -------------------------------------------------------------------------------- 1 | export default function getUAString() { 2 | var uaData = navigator.userAgentData; 3 | 4 | if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) { 5 | return uaData.brands.map(function (item) { 6 | return item.brand + "/" + item.version; 7 | }).join(' '); 8 | } 9 | 10 | return navigator.userAgent; 11 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/userAgent.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | type Navigator = Navigator & { userAgentData?: NavigatorUAData }; 3 | 4 | interface NavigatorUAData { 5 | brands: Array<{ brand: string, version: string }>; 6 | mobile: boolean; 7 | platform: string; 8 | } 9 | 10 | export default function getUAString(): string { 11 | const uaData = (navigator: Navigator).userAgentData; 12 | 13 | if (uaData?.brands && Array.isArray(uaData.brands)) { 14 | return uaData.brands 15 | .map((item) => `${item.brand}/${item.version}`) 16 | .join(' '); 17 | } 18 | 19 | return navigator.userAgent; 20 | } 21 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/within.d.ts: -------------------------------------------------------------------------------- 1 | export declare function within(min: number, value: number, max: number): number; 2 | export declare function withinMaxClamp(min: number, value: number, max: number): number; 3 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/within.js: -------------------------------------------------------------------------------- 1 | import { max as mathMax, min as mathMin } from "./math.js"; 2 | export function within(min, value, max) { 3 | return mathMax(min, mathMin(value, max)); 4 | } 5 | export function withinMaxClamp(min, value, max) { 6 | var v = within(min, value, max); 7 | return v > max ? max : v; 8 | } -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/@popperjs/core/lib/utils/within.js.flow: -------------------------------------------------------------------------------- 1 | // @flow 2 | import { max as mathMax, min as mathMin } from './math'; 3 | 4 | export function within(min: number, value: number, max: number): number { 5 | return mathMax(min, mathMin(value, max)); 6 | } 7 | 8 | export function withinMaxClamp(min: number, value: number, max: number) { 9 | const v = within(min, value, max); 10 | return v > max ? max : v; 11 | } 12 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2024 The Bootstrap Authors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/js/index.esm.js: -------------------------------------------------------------------------------- 1 | /** 2 | * -------------------------------------------------------------------------- 3 | * Bootstrap index.esm.js 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 5 | * -------------------------------------------------------------------------- 6 | */ 7 | 8 | export { default as Alert } from './src/alert.js' 9 | export { default as Button } from './src/button.js' 10 | export { default as Carousel } from './src/carousel.js' 11 | export { default as Collapse } from './src/collapse.js' 12 | export { default as Dropdown } from './src/dropdown.js' 13 | export { default as Modal } from './src/modal.js' 14 | export { default as Offcanvas } from './src/offcanvas.js' 15 | export { default as Popover } from './src/popover.js' 16 | export { default as ScrollSpy } from './src/scrollspy.js' 17 | export { default as Tab } from './src/tab.js' 18 | export { default as Toast } from './src/toast.js' 19 | export { default as Tooltip } from './src/tooltip.js' 20 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/js/index.umd.js: -------------------------------------------------------------------------------- 1 | /** 2 | * -------------------------------------------------------------------------- 3 | * Bootstrap index.umd.js 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 5 | * -------------------------------------------------------------------------- 6 | */ 7 | 8 | import Alert from './src/alert.js' 9 | import Button from './src/button.js' 10 | import Carousel from './src/carousel.js' 11 | import Collapse from './src/collapse.js' 12 | import Dropdown from './src/dropdown.js' 13 | import Modal from './src/modal.js' 14 | import Offcanvas from './src/offcanvas.js' 15 | import Popover from './src/popover.js' 16 | import ScrollSpy from './src/scrollspy.js' 17 | import Tab from './src/tab.js' 18 | import Toast from './src/toast.js' 19 | import Tooltip from './src/tooltip.js' 20 | 21 | export default { 22 | Alert, 23 | Button, 24 | Carousel, 25 | Collapse, 26 | Dropdown, 27 | Modal, 28 | Offcanvas, 29 | Popover, 30 | ScrollSpy, 31 | Tab, 32 | Toast, 33 | Tooltip 34 | } 35 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/js/src/util/component-functions.js: -------------------------------------------------------------------------------- 1 | /** 2 | * -------------------------------------------------------------------------- 3 | * Bootstrap util/component-functions.js 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 5 | * -------------------------------------------------------------------------- 6 | */ 7 | 8 | import EventHandler from '../dom/event-handler.js' 9 | import SelectorEngine from '../dom/selector-engine.js' 10 | import { isDisabled } from './index.js' 11 | 12 | const enableDismissTrigger = (component, method = 'hide') => { 13 | const clickEvent = `click.dismiss${component.EVENT_KEY}` 14 | const name = component.NAME 15 | 16 | EventHandler.on(document, clickEvent, `[data-bs-dismiss="${name}"]`, function (event) { 17 | if (['A', 'AREA'].includes(this.tagName)) { 18 | event.preventDefault() 19 | } 20 | 21 | if (isDisabled(this)) { 22 | return 23 | } 24 | 25 | const target = SelectorEngine.getElementFromSelector(this) || this.closest(`.${name}`) 26 | const instance = component.getOrCreateInstance(target) 27 | 28 | // Method argument is left, for Alert and only, as it doesn't implement the 'hide' method 29 | instance[method]() 30 | }) 31 | } 32 | 33 | export { 34 | enableDismissTrigger 35 | } 36 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/_forms.scss: -------------------------------------------------------------------------------- 1 | @import "forms/labels"; 2 | @import "forms/form-text"; 3 | @import "forms/form-control"; 4 | @import "forms/form-select"; 5 | @import "forms/form-check"; 6 | @import "forms/form-range"; 7 | @import "forms/floating-labels"; 8 | @import "forms/input-group"; 9 | @import "forms/validation"; 10 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/_grid.scss: -------------------------------------------------------------------------------- 1 | // Row 2 | // 3 | // Rows contain your columns. 4 | 5 | :root { 6 | @each $name, $value in $grid-breakpoints { 7 | --#{$prefix}breakpoint-#{$name}: #{$value}; 8 | } 9 | } 10 | 11 | @if $enable-grid-classes { 12 | .row { 13 | @include make-row(); 14 | 15 | > * { 16 | @include make-col-ready(); 17 | } 18 | } 19 | } 20 | 21 | @if $enable-cssgrid { 22 | .grid { 23 | display: grid; 24 | grid-template-rows: repeat(var(--#{$prefix}rows, 1), 1fr); 25 | grid-template-columns: repeat(var(--#{$prefix}columns, #{$grid-columns}), 1fr); 26 | gap: var(--#{$prefix}gap, #{$grid-gutter-width}); 27 | 28 | @include make-cssgrid(); 29 | } 30 | } 31 | 32 | 33 | // Columns 34 | // 35 | // Common styles for small and large grid columns 36 | 37 | @if $enable-grid-classes { 38 | @include make-grid-columns(); 39 | } 40 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/_helpers.scss: -------------------------------------------------------------------------------- 1 | @import "helpers/clearfix"; 2 | @import "helpers/color-bg"; 3 | @import "helpers/colored-links"; 4 | @import "helpers/focus-ring"; 5 | @import "helpers/icon-link"; 6 | @import "helpers/ratio"; 7 | @import "helpers/position"; 8 | @import "helpers/stacks"; 9 | @import "helpers/visually-hidden"; 10 | @import "helpers/stretched-link"; 11 | @import "helpers/text-truncation"; 12 | @import "helpers/vr"; 13 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/_mixins.scss: -------------------------------------------------------------------------------- 1 | // Toggles 2 | // 3 | // Used in conjunction with global variables to enable certain theme features. 4 | 5 | // Vendor 6 | @import "vendor/rfs"; 7 | 8 | // Deprecate 9 | @import "mixins/deprecate"; 10 | 11 | // Helpers 12 | @import "mixins/breakpoints"; 13 | @import "mixins/color-mode"; 14 | @import "mixins/color-scheme"; 15 | @import "mixins/image"; 16 | @import "mixins/resize"; 17 | @import "mixins/visually-hidden"; 18 | @import "mixins/reset-text"; 19 | @import "mixins/text-truncate"; 20 | 21 | // Utilities 22 | @import "mixins/utilities"; 23 | 24 | // Components 25 | @import "mixins/backdrop"; 26 | @import "mixins/buttons"; 27 | @import "mixins/caret"; 28 | @import "mixins/pagination"; 29 | @import "mixins/lists"; 30 | @import "mixins/forms"; 31 | @import "mixins/table-variants"; 32 | 33 | // Skins 34 | @import "mixins/border-radius"; 35 | @import "mixins/box-shadow"; 36 | @import "mixins/gradients"; 37 | @import "mixins/transition"; 38 | 39 | // Layout 40 | @import "mixins/clearfix"; 41 | @import "mixins/container"; 42 | @import "mixins/grid"; 43 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/_placeholders.scss: -------------------------------------------------------------------------------- 1 | .placeholder { 2 | display: inline-block; 3 | min-height: 1em; 4 | vertical-align: middle; 5 | cursor: wait; 6 | background-color: currentcolor; 7 | opacity: $placeholder-opacity-max; 8 | 9 | &.btn::before { 10 | display: inline-block; 11 | content: ""; 12 | } 13 | } 14 | 15 | // Sizing 16 | .placeholder-xs { 17 | min-height: .6em; 18 | } 19 | 20 | .placeholder-sm { 21 | min-height: .8em; 22 | } 23 | 24 | .placeholder-lg { 25 | min-height: 1.2em; 26 | } 27 | 28 | // Animation 29 | .placeholder-glow { 30 | .placeholder { 31 | animation: placeholder-glow 2s ease-in-out infinite; 32 | } 33 | } 34 | 35 | @keyframes placeholder-glow { 36 | 50% { 37 | opacity: $placeholder-opacity-min; 38 | } 39 | } 40 | 41 | .placeholder-wave { 42 | mask-image: linear-gradient(130deg, $black 55%, rgba(0, 0, 0, (1 - $placeholder-opacity-min)) 75%, $black 95%); 43 | mask-size: 200% 100%; 44 | animation: placeholder-wave 2s linear infinite; 45 | } 46 | 47 | @keyframes placeholder-wave { 48 | 100% { 49 | mask-position: -200% 0%; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/_transitions.scss: -------------------------------------------------------------------------------- 1 | .fade { 2 | @include transition($transition-fade); 3 | 4 | &:not(.show) { 5 | opacity: 0; 6 | } 7 | } 8 | 9 | // scss-docs-start collapse-classes 10 | .collapse { 11 | &:not(.show) { 12 | display: none; 13 | } 14 | } 15 | 16 | .collapsing { 17 | height: 0; 18 | overflow: hidden; 19 | @include transition($transition-collapse); 20 | 21 | &.collapse-horizontal { 22 | width: 0; 23 | height: auto; 24 | @include transition($transition-collapse-width); 25 | } 26 | } 27 | // scss-docs-end collapse-classes 28 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/bootstrap-reboot.scss: -------------------------------------------------------------------------------- 1 | @import "mixins/banner"; 2 | @include bsBanner(Reboot); 3 | 4 | @import "functions"; 5 | @import "variables"; 6 | @import "variables-dark"; 7 | @import "maps"; 8 | @import "mixins"; 9 | @import "root"; 10 | @import "reboot"; 11 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/bootstrap-utilities.scss: -------------------------------------------------------------------------------- 1 | @import "mixins/banner"; 2 | @include bsBanner(Utilities); 3 | 4 | // Configuration 5 | @import "functions"; 6 | @import "variables"; 7 | @import "variables-dark"; 8 | @import "maps"; 9 | @import "mixins"; 10 | @import "utilities"; 11 | 12 | // Layout & components 13 | @import "root"; 14 | 15 | // Helpers 16 | @import "helpers"; 17 | 18 | // Utilities 19 | @import "utilities/api"; 20 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/bootstrap.scss: -------------------------------------------------------------------------------- 1 | @import "mixins/banner"; 2 | @include bsBanner(""); 3 | 4 | 5 | // scss-docs-start import-stack 6 | // Configuration 7 | @import "functions"; 8 | @import "variables"; 9 | @import "variables-dark"; 10 | @import "maps"; 11 | @import "mixins"; 12 | @import "utilities"; 13 | 14 | // Layout & components 15 | @import "root"; 16 | @import "reboot"; 17 | @import "type"; 18 | @import "images"; 19 | @import "containers"; 20 | @import "grid"; 21 | @import "tables"; 22 | @import "forms"; 23 | @import "buttons"; 24 | @import "transitions"; 25 | @import "dropdown"; 26 | @import "button-group"; 27 | @import "nav"; 28 | @import "navbar"; 29 | @import "card"; 30 | @import "accordion"; 31 | @import "breadcrumb"; 32 | @import "pagination"; 33 | @import "badge"; 34 | @import "alert"; 35 | @import "progress"; 36 | @import "list-group"; 37 | @import "close"; 38 | @import "toasts"; 39 | @import "modal"; 40 | @import "tooltip"; 41 | @import "popover"; 42 | @import "carousel"; 43 | @import "spinners"; 44 | @import "offcanvas"; 45 | @import "placeholders"; 46 | 47 | // Helpers 48 | @import "helpers"; 49 | 50 | // Utilities 51 | @import "utilities/api"; 52 | // scss-docs-end import-stack 53 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/forms/_form-text.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Form text 3 | // 4 | 5 | .form-text { 6 | margin-top: $form-text-margin-top; 7 | @include font-size($form-text-font-size); 8 | font-style: $form-text-font-style; 9 | font-weight: $form-text-font-weight; 10 | color: $form-text-color; 11 | } 12 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/forms/_validation.scss: -------------------------------------------------------------------------------- 1 | // Form validation 2 | // 3 | // Provide feedback to users when form field values are valid or invalid. Works 4 | // primarily for client-side validation via scoped `:invalid` and `:valid` 5 | // pseudo-classes but also includes `.is-invalid` and `.is-valid` classes for 6 | // server-side validation. 7 | 8 | // scss-docs-start form-validation-states-loop 9 | @each $state, $data in $form-validation-states { 10 | @include form-validation-state($state, $data...); 11 | } 12 | // scss-docs-end form-validation-states-loop 13 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/helpers/_clearfix.scss: -------------------------------------------------------------------------------- 1 | .clearfix { 2 | @include clearfix(); 3 | } 4 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/helpers/_color-bg.scss: -------------------------------------------------------------------------------- 1 | // All-caps `RGBA()` function used because of this Sass bug: https://github.com/sass/node-sass/issues/2251 2 | @each $color, $value in $theme-colors { 3 | .text-bg-#{$color} { 4 | color: color-contrast($value) if($enable-important-utilities, !important, null); 5 | background-color: RGBA(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}bg-opacity, 1)) if($enable-important-utilities, !important, null); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/helpers/_focus-ring.scss: -------------------------------------------------------------------------------- 1 | .focus-ring:focus { 2 | outline: 0; 3 | // By default, there is no `--bs-focus-ring-x`, `--bs-focus-ring-y`, or `--bs-focus-ring-blur`, but we provide CSS variables with fallbacks to initial `0` values 4 | box-shadow: var(--#{$prefix}focus-ring-x, 0) var(--#{$prefix}focus-ring-y, 0) var(--#{$prefix}focus-ring-blur, 0) var(--#{$prefix}focus-ring-width) var(--#{$prefix}focus-ring-color); 5 | } 6 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/helpers/_icon-link.scss: -------------------------------------------------------------------------------- 1 | .icon-link { 2 | display: inline-flex; 3 | gap: $icon-link-gap; 4 | align-items: center; 5 | text-decoration-color: rgba(var(--#{$prefix}link-color-rgb), var(--#{$prefix}link-opacity, .5)); 6 | text-underline-offset: $icon-link-underline-offset; 7 | backface-visibility: hidden; 8 | 9 | > .bi { 10 | flex-shrink: 0; 11 | width: $icon-link-icon-size; 12 | height: $icon-link-icon-size; 13 | fill: currentcolor; 14 | @include transition($icon-link-icon-transition); 15 | } 16 | } 17 | 18 | .icon-link-hover { 19 | &:hover, 20 | &:focus-visible { 21 | > .bi { 22 | transform: var(--#{$prefix}icon-link-transform, $icon-link-icon-transform); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/helpers/_position.scss: -------------------------------------------------------------------------------- 1 | // Shorthand 2 | 3 | .fixed-top { 4 | position: fixed; 5 | top: 0; 6 | right: 0; 7 | left: 0; 8 | z-index: $zindex-fixed; 9 | } 10 | 11 | .fixed-bottom { 12 | position: fixed; 13 | right: 0; 14 | bottom: 0; 15 | left: 0; 16 | z-index: $zindex-fixed; 17 | } 18 | 19 | // Responsive sticky top and bottom 20 | @each $breakpoint in map-keys($grid-breakpoints) { 21 | @include media-breakpoint-up($breakpoint) { 22 | $infix: breakpoint-infix($breakpoint, $grid-breakpoints); 23 | 24 | .sticky#{$infix}-top { 25 | position: sticky; 26 | top: 0; 27 | z-index: $zindex-sticky; 28 | } 29 | 30 | .sticky#{$infix}-bottom { 31 | position: sticky; 32 | bottom: 0; 33 | z-index: $zindex-sticky; 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/helpers/_ratio.scss: -------------------------------------------------------------------------------- 1 | // Credit: Nicolas Gallagher and SUIT CSS. 2 | 3 | .ratio { 4 | position: relative; 5 | width: 100%; 6 | 7 | &::before { 8 | display: block; 9 | padding-top: var(--#{$prefix}aspect-ratio); 10 | content: ""; 11 | } 12 | 13 | > * { 14 | position: absolute; 15 | top: 0; 16 | left: 0; 17 | width: 100%; 18 | height: 100%; 19 | } 20 | } 21 | 22 | @each $key, $ratio in $aspect-ratios { 23 | .ratio-#{$key} { 24 | --#{$prefix}aspect-ratio: #{$ratio}; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/helpers/_stacks.scss: -------------------------------------------------------------------------------- 1 | // scss-docs-start stacks 2 | .hstack { 3 | display: flex; 4 | flex-direction: row; 5 | align-items: center; 6 | align-self: stretch; 7 | } 8 | 9 | .vstack { 10 | display: flex; 11 | flex: 1 1 auto; 12 | flex-direction: column; 13 | align-self: stretch; 14 | } 15 | // scss-docs-end stacks 16 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/helpers/_stretched-link.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Stretched link 3 | // 4 | 5 | .stretched-link { 6 | &::#{$stretched-link-pseudo-element} { 7 | position: absolute; 8 | top: 0; 9 | right: 0; 10 | bottom: 0; 11 | left: 0; 12 | z-index: $stretched-link-z-index; 13 | content: ""; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/helpers/_text-truncation.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Text truncation 3 | // 4 | 5 | .text-truncate { 6 | @include text-truncate(); 7 | } 8 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/helpers/_visually-hidden.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Visually hidden 3 | // 4 | 5 | .visually-hidden, 6 | .visually-hidden-focusable:not(:focus):not(:focus-within) { 7 | @include visually-hidden(); 8 | } 9 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/helpers/_vr.scss: -------------------------------------------------------------------------------- 1 | .vr { 2 | display: inline-block; 3 | align-self: stretch; 4 | width: $vr-border-width; 5 | min-height: 1em; 6 | background-color: currentcolor; 7 | opacity: $hr-opacity; 8 | } 9 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_alert.scss: -------------------------------------------------------------------------------- 1 | @include deprecate("`alert-variant()`", "v5.3.0", "v6.0.0"); 2 | 3 | // scss-docs-start alert-variant-mixin 4 | @mixin alert-variant($background, $border, $color) { 5 | --#{$prefix}alert-color: #{$color}; 6 | --#{$prefix}alert-bg: #{$background}; 7 | --#{$prefix}alert-border-color: #{$border}; 8 | --#{$prefix}alert-link-color: #{shade-color($color, 20%)}; 9 | 10 | @if $enable-gradients { 11 | background-image: var(--#{$prefix}gradient); 12 | } 13 | 14 | .alert-link { 15 | color: var(--#{$prefix}alert-link-color); 16 | } 17 | } 18 | // scss-docs-end alert-variant-mixin 19 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_backdrop.scss: -------------------------------------------------------------------------------- 1 | // Shared between modals and offcanvases 2 | @mixin overlay-backdrop($zindex, $backdrop-bg, $backdrop-opacity) { 3 | position: fixed; 4 | top: 0; 5 | left: 0; 6 | z-index: $zindex; 7 | width: 100vw; 8 | height: 100vh; 9 | background-color: $backdrop-bg; 10 | 11 | // Fade for backdrop 12 | &.fade { opacity: 0; } 13 | &.show { opacity: $backdrop-opacity; } 14 | } 15 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_banner.scss: -------------------------------------------------------------------------------- 1 | @mixin bsBanner($file) { 2 | /*! 3 | * Bootstrap #{$file} v5.3.3 (https://getbootstrap.com/) 4 | * Copyright 2011-2024 The Bootstrap Authors 5 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 6 | */ 7 | } 8 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_box-shadow.scss: -------------------------------------------------------------------------------- 1 | @mixin box-shadow($shadow...) { 2 | @if $enable-shadows { 3 | $result: (); 4 | 5 | @each $value in $shadow { 6 | @if $value != null { 7 | $result: append($result, $value, "comma"); 8 | } 9 | @if $value == none and length($shadow) > 1 { 10 | @warn "The keyword 'none' must be used as a single argument."; 11 | } 12 | } 13 | 14 | @if (length($result) > 0) { 15 | box-shadow: $result; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_clearfix.scss: -------------------------------------------------------------------------------- 1 | // scss-docs-start clearfix 2 | @mixin clearfix() { 3 | &::after { 4 | display: block; 5 | clear: both; 6 | content: ""; 7 | } 8 | } 9 | // scss-docs-end clearfix 10 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_color-mode.scss: -------------------------------------------------------------------------------- 1 | // scss-docs-start color-mode-mixin 2 | @mixin color-mode($mode: light, $root: false) { 3 | @if $color-mode-type == "media-query" { 4 | @if $root == true { 5 | @media (prefers-color-scheme: $mode) { 6 | :root { 7 | @content; 8 | } 9 | } 10 | } @else { 11 | @media (prefers-color-scheme: $mode) { 12 | @content; 13 | } 14 | } 15 | } @else { 16 | [data-bs-theme="#{$mode}"] { 17 | @content; 18 | } 19 | } 20 | } 21 | // scss-docs-end color-mode-mixin 22 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_color-scheme.scss: -------------------------------------------------------------------------------- 1 | // scss-docs-start mixin-color-scheme 2 | @mixin color-scheme($name) { 3 | @media (prefers-color-scheme: #{$name}) { 4 | @content; 5 | } 6 | } 7 | // scss-docs-end mixin-color-scheme 8 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_container.scss: -------------------------------------------------------------------------------- 1 | // Container mixins 2 | 3 | @mixin make-container($gutter: $container-padding-x) { 4 | --#{$prefix}gutter-x: #{$gutter}; 5 | --#{$prefix}gutter-y: 0; 6 | width: 100%; 7 | padding-right: calc(var(--#{$prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list 8 | padding-left: calc(var(--#{$prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list 9 | margin-right: auto; 10 | margin-left: auto; 11 | } 12 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_deprecate.scss: -------------------------------------------------------------------------------- 1 | // Deprecate mixin 2 | // 3 | // This mixin can be used to deprecate mixins or functions. 4 | // `$enable-deprecation-messages` is a global variable, `$ignore-warning` is a variable that can be passed to 5 | // some deprecated mixins to suppress the warning (for example if the mixin is still be used in the current version of Bootstrap) 6 | @mixin deprecate($name, $deprecate-version, $remove-version, $ignore-warning: false) { 7 | @if ($enable-deprecation-messages != false and $ignore-warning != true) { 8 | @warn "#{$name} has been deprecated as of #{$deprecate-version}. It will be removed entirely in #{$remove-version}."; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_image.scss: -------------------------------------------------------------------------------- 1 | // Image Mixins 2 | // - Responsive image 3 | // - Retina image 4 | 5 | 6 | // Responsive image 7 | // 8 | // Keep images from scaling beyond the width of their parents. 9 | 10 | @mixin img-fluid { 11 | // Part 1: Set a maximum relative to the parent 12 | max-width: 100%; 13 | // Part 2: Override the height to auto, otherwise images will be stretched 14 | // when setting a width and height attribute on the img element. 15 | height: auto; 16 | } 17 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_list-group.scss: -------------------------------------------------------------------------------- 1 | @include deprecate("`list-group-item-variant()`", "v5.3.0", "v6.0.0"); 2 | 3 | // List Groups 4 | 5 | // scss-docs-start list-group-mixin 6 | @mixin list-group-item-variant($state, $background, $color) { 7 | .list-group-item-#{$state} { 8 | color: $color; 9 | background-color: $background; 10 | 11 | &.list-group-item-action { 12 | &:hover, 13 | &:focus { 14 | color: $color; 15 | background-color: shade-color($background, 10%); 16 | } 17 | 18 | &.active { 19 | color: $white; 20 | background-color: $color; 21 | border-color: $color; 22 | } 23 | } 24 | } 25 | } 26 | // scss-docs-end list-group-mixin 27 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_lists.scss: -------------------------------------------------------------------------------- 1 | // Lists 2 | 3 | // Unstyled keeps list items block level, just removes default browser padding and list-style 4 | @mixin list-unstyled { 5 | padding-left: 0; 6 | list-style: none; 7 | } 8 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_pagination.scss: -------------------------------------------------------------------------------- 1 | // Pagination 2 | 3 | // scss-docs-start pagination-mixin 4 | @mixin pagination-size($padding-y, $padding-x, $font-size, $border-radius) { 5 | --#{$prefix}pagination-padding-x: #{$padding-x}; 6 | --#{$prefix}pagination-padding-y: #{$padding-y}; 7 | @include rfs($font-size, --#{$prefix}pagination-font-size); 8 | --#{$prefix}pagination-border-radius: #{$border-radius}; 9 | } 10 | // scss-docs-end pagination-mixin 11 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_reset-text.scss: -------------------------------------------------------------------------------- 1 | @mixin reset-text { 2 | font-family: $font-family-base; 3 | // We deliberately do NOT reset font-size or overflow-wrap / word-wrap. 4 | font-style: normal; 5 | font-weight: $font-weight-normal; 6 | line-height: $line-height-base; 7 | text-align: left; // Fallback for where `start` is not supported 8 | text-align: start; 9 | text-decoration: none; 10 | text-shadow: none; 11 | text-transform: none; 12 | letter-spacing: normal; 13 | word-break: normal; 14 | white-space: normal; 15 | word-spacing: normal; 16 | line-break: auto; 17 | } 18 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_resize.scss: -------------------------------------------------------------------------------- 1 | // Resize anything 2 | 3 | @mixin resizable($direction) { 4 | overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible` 5 | resize: $direction; // Options: horizontal, vertical, both 6 | } 7 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_table-variants.scss: -------------------------------------------------------------------------------- 1 | // scss-docs-start table-variant 2 | @mixin table-variant($state, $background) { 3 | .table-#{$state} { 4 | $color: color-contrast(opaque($body-bg, $background)); 5 | $hover-bg: mix($color, $background, percentage($table-hover-bg-factor)); 6 | $striped-bg: mix($color, $background, percentage($table-striped-bg-factor)); 7 | $active-bg: mix($color, $background, percentage($table-active-bg-factor)); 8 | $table-border-color: mix($color, $background, percentage($table-border-factor)); 9 | 10 | --#{$prefix}table-color: #{$color}; 11 | --#{$prefix}table-bg: #{$background}; 12 | --#{$prefix}table-border-color: #{$table-border-color}; 13 | --#{$prefix}table-striped-bg: #{$striped-bg}; 14 | --#{$prefix}table-striped-color: #{color-contrast($striped-bg)}; 15 | --#{$prefix}table-active-bg: #{$active-bg}; 16 | --#{$prefix}table-active-color: #{color-contrast($active-bg)}; 17 | --#{$prefix}table-hover-bg: #{$hover-bg}; 18 | --#{$prefix}table-hover-color: #{color-contrast($hover-bg)}; 19 | 20 | color: var(--#{$prefix}table-color); 21 | border-color: var(--#{$prefix}table-border-color); 22 | } 23 | } 24 | // scss-docs-end table-variant 25 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_text-truncate.scss: -------------------------------------------------------------------------------- 1 | // Text truncate 2 | // Requires inline-block or block for proper styling 3 | 4 | @mixin text-truncate() { 5 | overflow: hidden; 6 | text-overflow: ellipsis; 7 | white-space: nowrap; 8 | } 9 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_transition.scss: -------------------------------------------------------------------------------- 1 | // stylelint-disable property-disallowed-list 2 | @mixin transition($transition...) { 3 | @if length($transition) == 0 { 4 | $transition: $transition-base; 5 | } 6 | 7 | @if length($transition) > 1 { 8 | @each $value in $transition { 9 | @if $value == null or $value == none { 10 | @warn "The keyword 'none' or 'null' must be used as a single argument."; 11 | } 12 | } 13 | } 14 | 15 | @if $enable-transitions { 16 | @if nth($transition, 1) != null { 17 | transition: $transition; 18 | } 19 | 20 | @if $enable-reduced-motion and nth($transition, 1) != null and nth($transition, 1) != none { 21 | @media (prefers-reduced-motion: reduce) { 22 | transition: none; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Learning React/React 1/node_modules/bootstrap/scss/mixins/_visually-hidden.scss: -------------------------------------------------------------------------------- 1 | // stylelint-disable declaration-no-important 2 | 3 | // Hide content visually while keeping it accessible to assistive technologies 4 | // 5 | // See: https://www.a11yproject.com/posts/2013-01-11-how-to-hide-content/ 6 | // See: https://kittygiraudel.com/2016/10/13/css-hide-and-seek/ 7 | 8 | @mixin visually-hidden() { 9 | width: 1px !important; 10 | height: 1px !important; 11 | padding: 0 !important; 12 | margin: -1px !important; // Fix for https://github.com/twbs/bootstrap/issues/25686 13 | overflow: hidden !important; 14 | clip: rect(0, 0, 0, 0) !important; 15 | white-space: nowrap !important; 16 | border: 0 !important; 17 | 18 | // Fix for positioned table caption that could become anonymous cells 19 | &:not(caption) { 20 | position: absolute !important; 21 | } 22 | } 23 | 24 | // Use to only display content when it's focused, or one of its child elements is focused 25 | // (i.e. when focus is within the element/container that the class was applied to) 26 | // 27 | // Useful for "Skip to main content" links; see https://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1 28 | 29 | @mixin visually-hidden-focusable() { 30 | &:not(:focus):not(:focus-within) { 31 | @include visually-hidden(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Learning React/React 1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "bootstrap": "^5.3.3" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /Learning React/React 1/react1/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /Learning React/React 1/react1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react1", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.17.0", 7 | "@testing-library/react": "^13.4.0", 8 | "@testing-library/user-event": "^13.5.0", 9 | "bootstrap": "^5.3.3", 10 | "react": "^18.3.1", 11 | "react-dom": "^18.3.1", 12 | "react-scripts": "^3.0.1", 13 | "web-vitals": "^2.1.4" 14 | }, 15 | "scripts": { 16 | "start": "react-scripts start", 17 | "build": "react-scripts build", 18 | "test": "react-scripts test", 19 | "eject": "react-scripts eject" 20 | }, 21 | "eslintConfig": { 22 | "extends": [ 23 | "react-app", 24 | "react-app/jest" 25 | ] 26 | }, 27 | "browserslist": { 28 | "production": [ 29 | ">0.2%", 30 | "not dead", 31 | "not op_mini all" 32 | ], 33 | "development": [ 34 | "last 1 chrome version", 35 | "last 1 firefox version", 36 | "last 1 safari version" 37 | ] 38 | } 39 | } 40 | --------------------------------------------------------------------------------