├── .github └── workflows │ └── codeql-analysis.yml ├── .gitignore ├── demo ├── bootstrap-polaris.js ├── bootstrap-polaris.min.css ├── bulk-edit-layout.html ├── index.html ├── order-page-layout.html ├── page-layout.html └── retail.svg ├── dist ├── assets │ ├── icons │ │ ├── add.svg │ │ ├── alert.svg │ │ ├── arrowDown.svg │ │ ├── arrowLeft.svg │ │ ├── arrowRight.svg │ │ ├── arrowUp.svg │ │ ├── calendar.svg │ │ ├── cancel.svg │ │ ├── cancelSmall.svg │ │ ├── caretDown.svg │ │ ├── caretUp.svg │ │ ├── check-scratch.svg │ │ ├── check.svg │ │ ├── chevronDown.svg │ │ ├── chevronLeft.svg │ │ ├── chevronRight.svg │ │ ├── chevronUp.svg │ │ ├── circleCancel.svg │ │ ├── circleChevronDown.svg │ │ ├── circleChevronLeft.svg │ │ ├── circleChevronRight.svg │ │ ├── circleChevronUp.svg │ │ ├── circlePlus.svg │ │ ├── conversation.svg │ │ ├── critical.svg │ │ ├── default-banner.svg │ │ ├── delete.svg │ │ ├── disable.svg │ │ ├── dispute.svg │ │ ├── duplicate.svg │ │ ├── embed.svg │ │ ├── export.svg │ │ ├── external.svg │ │ ├── help.svg │ │ ├── horizontalDots.svg │ │ ├── import.svg │ │ ├── info.svg │ │ ├── next.svg │ │ ├── notes.svg │ │ ├── notification.svg │ │ ├── previous.svg │ │ ├── print.svg │ │ ├── radio.svg │ │ ├── refresh.svg │ │ ├── risk.svg │ │ ├── save.svg │ │ ├── search.svg │ │ ├── select.svg │ │ ├── subtract.svg │ │ ├── success.svg │ │ ├── view.svg │ │ └── warning.svg │ └── images │ │ └── empty-state.svg └── bootstrap-polaris.min.css ├── gulpfile.js ├── package-lock.json ├── package.json ├── readme.md └── scss ├── _alert.scss ├── _badge.scss ├── _banner.scss ├── _breadcrumb.scss ├── _button-group.scss ├── _buttons.scss ├── _card.scss ├── _carousel.scss ├── _close.scss ├── _code.scss ├── _custom-forms.scss ├── _dropdown.scss ├── _footer-help.scss ├── _forms.scss ├── _functions.scss ├── _grid.scss ├── _images.scss ├── _input-group.scss ├── _jumbotron.scss ├── _list-group.scss ├── _media.scss ├── _mixins.scss ├── _modal.scss ├── _nav.scss ├── _navbar.scss ├── _pagination.scss ├── _polaris-avatar.scss ├── _polaris-bulk-edit.scss ├── _polaris-caption.scss ├── _polaris-checkbox.scss ├── _polaris-empty-results.scss ├── _polaris-icons.scss ├── _polaris-lists.scss ├── _polaris-page-actions.scss ├── _polaris-page-header.scss ├── _polaris-progress-bar.scss ├── _polaris-radio.scss ├── _polaris-resource-list.scss ├── _popover.scss ├── _print.scss ├── _reboot.scss ├── _spinner.scss ├── _tables.scss ├── _toast.scss ├── _tooltip.scss ├── _transitions.scss ├── _type.scss ├── _utilities.scss ├── _variables.scss ├── bootstrap-grid.scss ├── bootstrap-reboot.scss ├── bootstrap.scss ├── mixins ├── _Polaris-color.scss ├── _alert.scss ├── _background-variant.scss ├── _badge.scss ├── _border-radius.scss ├── _box-shadow.scss ├── _breakpoints.scss ├── _buttons.scss ├── _clearfix.scss ├── _float.scss ├── _forms.scss ├── _gradients.scss ├── _grid-framework.scss ├── _grid.scss ├── _hover.scss ├── _image.scss ├── _list-group.scss ├── _lists.scss ├── _nav-divider.scss ├── _navbar-align.scss ├── _pagination.scss ├── _reset-text.scss ├── _resize.scss ├── _screen-reader.scss ├── _size.scss ├── _table-row.scss ├── _text-emphasis.scss ├── _text-hide.scss ├── _text-truncate.scss ├── _transition.scss ├── _type.scss └── _visibility.scss └── utilities ├── _align.scss ├── _background.scss ├── _borders.scss ├── _clearfix.scss ├── _display.scss ├── _embed.scss ├── _flex.scss ├── _float.scss ├── _position.scss ├── _screenreaders.scss ├── _sizing.scss ├── _spacing.scss ├── _text.scss └── _visibility.scss /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- 1 | # For most projects, this workflow file will not need changing; you simply need 2 | # to commit it to your repository. 3 | # 4 | # You may wish to alter this file to override the set of languages analyzed, 5 | # or to provide custom queries or build logic. 6 | # 7 | # ******** NOTE ******** 8 | # We have attempted to detect the languages in your repository. Please check 9 | # the `language` matrix defined below to confirm you have the correct set of 10 | # supported CodeQL languages. 11 | # 12 | name: "CodeQL" 13 | 14 | on: 15 | push: 16 | branches: [ master ] 17 | pull_request: 18 | # The branches below must be a subset of the branches above 19 | branches: [ master ] 20 | schedule: 21 | - cron: '39 16 * * 0' 22 | 23 | jobs: 24 | analyze: 25 | name: Analyze 26 | runs-on: ubuntu-latest 27 | permissions: 28 | actions: read 29 | contents: read 30 | security-events: write 31 | 32 | strategy: 33 | fail-fast: false 34 | matrix: 35 | language: [ 'javascript' ] 36 | # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] 37 | # Learn more about CodeQL language support at https://git.io/codeql-language-support 38 | 39 | steps: 40 | - name: Checkout repository 41 | uses: actions/checkout@v2 42 | 43 | # Initializes the CodeQL tools for scanning. 44 | - name: Initialize CodeQL 45 | uses: github/codeql-action/init@v1 46 | with: 47 | languages: ${{ matrix.language }} 48 | # If you wish to specify custom queries, you can do so here or in a config file. 49 | # By default, queries listed here will override any specified in a config file. 50 | # Prefix the list here with "+" to use these queries and those in the config file. 51 | # queries: ./path/to/local/query, your-org/your-repo/queries@main 52 | 53 | # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). 54 | # If this step fails, then you should remove it and run the build manually (see below) 55 | - name: Autobuild 56 | uses: github/codeql-action/autobuild@v1 57 | 58 | # ℹ️ Command-line programs to run using the OS shell. 59 | # 📚 https://git.io/JvXDl 60 | 61 | # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines 62 | # and modify them (or add more) to build your code if your project 63 | # uses a compiled language 64 | 65 | #- run: | 66 | # make bootstrap 67 | # make release 68 | 69 | - name: Perform CodeQL Analysis 70 | uses: github/codeql-action/analyze@v1 71 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | npm-debug.log 4 | .vscode/ 5 | -------------------------------------------------------------------------------- /demo/bootstrap-polaris.js: -------------------------------------------------------------------------------- 1 | /* This javascript isn't meant for production 2 | * rather examples of how to extend functionality of components 3 | */ 4 | 5 | (function () { 6 | /* 7 | * Add/Subtract functionality for quantity selectors 8 | */ 9 | let quantitySelectors = document.querySelectorAll('.quantity-selector'); 10 | 11 | quantitySelectors.forEach(function (selector) { 12 | let input = selector.querySelector('.quantity-selector__input'); 13 | let add = selector.querySelector('.quantity-selector__add'); 14 | let subtract = selector.querySelector('.quantity-selector__subtract'); 15 | 16 | let min = +input.getAttribute('min') || 0; 17 | let max = +input.getAttribute('max') || Infinity; 18 | 19 | add.addEventListener('click', function () { 20 | input.value = (+input.value < max) ? +input.value + 1 : max; 21 | }); 22 | subtract.addEventListener('click', function () { 23 | input.value = (+input.value > min) ? input.value - 1 : min; 24 | }); 25 | }); 26 | 27 | document.getElementById('toastButton').addEventListener('click', function(e) { 28 | var showText = "Show Toast" 29 | var hideText = "Hide Toast" 30 | 31 | var toast = document.getElementById('sampleToast'); 32 | 33 | if (e.target.innerHTML == showText) { 34 | e.target.innerHTML = hideText; 35 | toast.classList.add('show'); 36 | } else { 37 | e.target.innerHTML = showText; 38 | toast.classList.remove('show'); 39 | } 40 | }); 41 | 42 | document.querySelector('#sampleToast button').addEventListener('click', function(e) { 43 | document.getElementById('toastButton').click(); 44 | }); 45 | 46 | })(); 47 | -------------------------------------------------------------------------------- /demo/bulk-edit-layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 |81 | 85 | | 86 |87 | Order 88 | | 89 |90 | 91 | Date 92 | 93 | 94 | | 95 |96 | Customer 97 | | 98 |99 | Payment Status 100 | | 101 |102 | Fulfillment Status 103 | | 104 |105 | Total 106 | | 107 |
---|---|---|---|---|---|---|
112 | 116 | | 117 |#1001 | 118 |Yesterday, 4:06pm | 119 |Derek morash | 120 |Authorized | 121 |Unfulfilled | 122 |$19.16 | 123 |
126 | 130 | | 131 |#1001 | 132 |Yesterday, 4:06pm | 133 |Derek morash | 134 |Authorized | 135 |Unfulfilled | 136 |$19.16 | 137 |
140 | 144 | | 145 |#1001 | 146 |Yesterday, 4:06pm | 147 |Derek morash | 148 |Paid | 149 |Fulfilled | 150 |$19.16 | 151 |
Online Store
130 |There are five tiers to the Bootstrap grid system, one for each range of devices we support. Each tier starts at a minimum
137 | 138 | 144 | 145 |There are five tiers to the Bootstrap grid system.
146 | 147 |