@openedx/paragon 22.4.0 → 23.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -5
- package/bin/paragon-scripts.js +128 -9
- package/dist/ActionRow/_index.scss +2 -4
- package/dist/Alert/index.scss +41 -32
- package/dist/Annotation/_mixins.scss +104 -0
- package/dist/Annotation/index.scss +130 -103
- package/dist/Avatar/index.scss +18 -20
- package/dist/AvatarButton/index.scss +3 -5
- package/dist/Badge/index.scss +112 -2
- package/dist/Breadcrumb/index.scss +14 -16
- package/dist/Bubble/index.scss +25 -12
- package/dist/Button/_mixins.scss +14 -0
- package/dist/Button/button-group.scss +126 -0
- package/dist/Button/index.js +0 -2
- package/dist/Button/index.js.map +1 -1
- package/dist/Button/index.scss +855 -370
- package/dist/Card/card-bootstrap.scss +168 -0
- package/dist/Card/index.scss +78 -79
- package/dist/Carousel/index.scss +168 -2
- package/dist/Chip/index.scss +46 -37
- package/dist/Chip/mixins.scss +8 -3
- package/dist/ChipCarousel/index.scss +4 -4
- package/dist/CloseButton/index.scss +31 -2
- package/dist/Code/index.scss +47 -2
- package/dist/Collapsible/index.scss +15 -15
- package/dist/ColorPicker/index.scss +9 -11
- package/dist/DataTable/CollapsibleButtonGroup.js +2 -2
- package/dist/DataTable/CollapsibleButtonGroup.js.map +1 -1
- package/dist/DataTable/index.scss +48 -50
- package/dist/Dropdown/dropdown-bootstrap.scss +181 -0
- package/dist/Dropdown/index.js +0 -2
- package/dist/Dropdown/index.js.map +1 -1
- package/dist/Dropdown/index.scss +11 -12
- package/dist/Dropzone/index.scss +12 -14
- package/dist/Form/_FormText.scss +8 -8
- package/dist/Form/_bootstrap-custom-forms.scss +551 -0
- package/dist/Form/_bootstrap-forms.scss +381 -0
- package/dist/Form/_index.scss +168 -146
- package/dist/Form/_input-group.scss +188 -0
- package/dist/Form/_mixins.scss +216 -3
- package/dist/Hyperlink/index.scss +1 -1
- package/dist/Icon/index.scss +10 -12
- package/dist/IconButton/_mixins.scss +4 -0
- package/dist/IconButton/index.js +5 -11
- package/dist/IconButton/index.js.map +1 -1
- package/dist/IconButton/index.scss +387 -74
- package/dist/IconButtonToggle/index.scss +1 -1
- package/dist/Image/index.scss +53 -2
- package/dist/Menu/index.scss +25 -27
- package/dist/Modal/_ModalDialog.scss +52 -50
- package/dist/Modal/index.scss +6 -73
- package/dist/Nav/_mixins.scss +4 -4
- package/dist/Nav/index.scss +70 -66
- package/dist/Navbar/index.scss +276 -2
- package/dist/OverflowScroll/data/useOverflowScrollElementAttributes.js +3 -3
- package/dist/Overlay/index.js +2 -3
- package/dist/Overlay/index.js.map +1 -1
- package/dist/PageBanner/index.scss +17 -21
- package/dist/Pagination/index.scss +32 -34
- package/dist/Pagination/pagination-bootstrap.scss +83 -0
- package/dist/Popover/index.scss +9 -10
- package/dist/Popover/popover-bootstrap.scss +198 -0
- package/dist/ProductTour/Checkpoint.scss +71 -43
- package/dist/ProgressBar/_mixins.scss +22 -0
- package/dist/ProgressBar/bootstrap-progress.scss +49 -0
- package/dist/ProgressBar/index.scss +28 -36
- package/dist/Scrollable/index.scss +2 -2
- package/dist/SearchField/SearchFieldInput.js +2 -2
- package/dist/SearchField/SearchFieldInput.js.map +1 -1
- package/dist/SearchField/index.scss +15 -17
- package/dist/SelectableBox/index.scss +11 -13
- package/dist/Sheet/index.scss +10 -10
- package/dist/Spinner/index.scss +57 -2
- package/dist/Stack/index.scss +1 -3
- package/dist/Stepper/index.scss +19 -20
- package/dist/Sticky/index.scss +4 -6
- package/dist/Tabs/index.js +0 -2
- package/dist/Tabs/index.js.map +1 -1
- package/dist/Tabs/index.scss +26 -25
- package/dist/Toast/ToastContainer.scss +9 -11
- package/dist/Toast/bootstrap-toast.scss +46 -0
- package/dist/Toast/index.scss +9 -10
- package/dist/Tooltip/index.scss +136 -10
- package/dist/ValidationMessage/index.scss +1 -1
- package/dist/core.css +16788 -0
- package/dist/core.css.map +1 -0
- package/dist/core.min.css +2 -0
- package/dist/index.js +0 -14
- package/dist/index.scss +0 -4
- package/dist/light.css +4098 -0
- package/dist/light.css.map +1 -0
- package/dist/light.min.css +2 -0
- package/dist/theme-urls.json +21 -0
- package/dist/utils/breakpoints.js +1 -1
- package/lib/build-scss.js +188 -0
- package/lib/build-tokens.js +119 -0
- package/lib/help.js +36 -23
- package/lib/replace-variables.js +38 -0
- package/lib/utils.js +30 -0
- package/package.json +25 -10
- package/src/ActionRow/_index.scss +2 -4
- package/src/Alert/index.scss +41 -32
- package/src/Annotation/_mixins.scss +104 -0
- package/src/Annotation/index.scss +130 -103
- package/src/Avatar/index.scss +18 -20
- package/src/AvatarButton/index.scss +3 -5
- package/src/Badge/index.scss +112 -2
- package/src/Breadcrumb/index.scss +14 -16
- package/src/Bubble/index.scss +25 -12
- package/src/Button/README.md +0 -84
- package/src/Button/_mixins.scss +14 -0
- package/src/Button/button-group.scss +126 -0
- package/src/Button/index.jsx +0 -3
- package/src/Button/index.scss +855 -370
- package/src/Card/card-bootstrap.scss +168 -0
- package/src/Card/index.scss +78 -79
- package/src/Carousel/index.scss +168 -2
- package/src/Chip/index.scss +46 -37
- package/src/Chip/mixins.scss +8 -3
- package/src/ChipCarousel/index.scss +4 -4
- package/src/CloseButton/index.scss +31 -2
- package/src/Code/index.scss +47 -2
- package/src/Collapsible/index.scss +15 -15
- package/src/ColorPicker/index.scss +9 -11
- package/src/DataTable/CollapsibleButtonGroup.jsx +2 -2
- package/src/DataTable/index.scss +48 -50
- package/src/Dropdown/README.md +0 -93
- package/src/Dropdown/dropdown-bootstrap.scss +181 -0
- package/src/Dropdown/index.jsx +0 -2
- package/src/Dropdown/index.scss +11 -12
- package/src/Dropzone/index.scss +12 -14
- package/src/Form/_FormText.scss +8 -8
- package/src/Form/_bootstrap-custom-forms.scss +551 -0
- package/src/Form/_bootstrap-forms.scss +381 -0
- package/src/Form/_index.scss +168 -146
- package/src/Form/_input-group.scss +188 -0
- package/src/Form/_mixins.scss +216 -3
- package/src/Hyperlink/index.scss +1 -1
- package/src/Icon/index.scss +10 -12
- package/src/IconButton/README.md +1 -15
- package/src/IconButton/__snapshots__/IconButton.test.jsx.snap +5 -28
- package/src/IconButton/_mixins.scss +4 -0
- package/src/IconButton/index.jsx +6 -13
- package/src/IconButton/index.scss +387 -74
- package/src/IconButtonToggle/index.scss +1 -1
- package/src/Image/index.scss +53 -2
- package/src/Menu/index.scss +25 -27
- package/src/Modal/_ModalDialog.scss +52 -50
- package/src/Modal/index.scss +6 -73
- package/src/Nav/_mixins.scss +4 -4
- package/src/Nav/index.scss +70 -66
- package/src/Navbar/index.scss +276 -2
- package/src/OverflowScroll/data/useOverflowScrollElementAttributes.js +3 -3
- package/src/Overlay/index.jsx +2 -3
- package/src/PageBanner/index.scss +17 -21
- package/src/Pagination/index.scss +32 -34
- package/src/Pagination/pagination-bootstrap.scss +83 -0
- package/src/Popover/index.scss +9 -10
- package/src/Popover/popover-bootstrap.scss +198 -0
- package/src/ProductTour/Checkpoint.scss +71 -43
- package/src/ProgressBar/_mixins.scss +22 -0
- package/src/ProgressBar/bootstrap-progress.scss +49 -0
- package/src/ProgressBar/index.scss +28 -36
- package/src/Scrollable/index.scss +2 -2
- package/src/SearchField/SearchFieldInput.jsx +2 -2
- package/src/SearchField/__snapshots__/SearchField.test.jsx.snap +12 -8
- package/src/SearchField/index.scss +15 -17
- package/src/SelectableBox/index.scss +11 -13
- package/src/Sheet/index.scss +10 -10
- package/src/Spinner/index.scss +57 -2
- package/src/Stack/index.scss +1 -3
- package/src/Stepper/index.scss +19 -20
- package/src/Sticky/index.scss +4 -6
- package/src/Tabs/README.md +1 -23
- package/src/Tabs/index.jsx +0 -3
- package/src/Tabs/index.scss +26 -25
- package/src/Toast/ToastContainer.scss +9 -11
- package/src/Toast/bootstrap-toast.scss +46 -0
- package/src/Toast/index.scss +9 -10
- package/src/Tooltip/index.scss +136 -10
- package/src/TransitionReplace/README.md +4 -4
- package/src/ValidationMessage/index.scss +1 -1
- package/src/index.js +0 -14
- package/src/index.scss +0 -4
- package/src/setupTest.js +0 -6
- package/src/utils/breakpoints.js +1 -1
- package/styles/css/core/custom-media-breakpoints.css +17 -0
- package/styles/css/core/index.css +2 -0
- package/styles/css/core/variables.css +614 -0
- package/styles/css/themes/light/index.css +2 -0
- package/styles/css/themes/light/utility-classes.css +2454 -0
- package/styles/css/themes/light/variables.css +1644 -0
- package/{scss → styles/scss}/core/_functions.scss +1 -1
- package/styles/scss/core/_grid.scss +21 -0
- package/{scss → styles/scss}/core/_utilities.scss +17 -11
- package/styles/scss/core/_variables.scss +869 -0
- package/styles/scss/core/bootstrap-override/_functions.scss +104 -0
- package/styles/scss/core/bootstrap-override/_mixins.scss +4 -0
- package/styles/scss/core/bootstrap-override/_utilities.scss +4 -0
- package/styles/scss/core/bootstrap-override/bootstrap.scss +2 -0
- package/styles/scss/core/bootstrap-override/mixins/_grid-framework.scss +80 -0
- package/styles/scss/core/bootstrap-override/mixins/_grid.scss +69 -0
- package/styles/scss/core/bootstrap-override/mixins/_list-group.scss +22 -0
- package/styles/scss/core/bootstrap-override/utilities/_background.scss +7 -0
- package/styles/scss/core/bootstrap-override/utilities/_borders.scss +67 -0
- package/styles/scss/core/bootstrap-override/utilities/_spacing.scss +70 -0
- package/styles/scss/core/bootstrap-override/utilities/_text.scss +68 -0
- package/styles/scss/core/core.scss +21 -0
- package/{scss → styles/scss}/core/utilities-only.scss +1 -0
- package/tokens/README.md +158 -0
- package/tokens/css-utilities.js +56 -0
- package/tokens/map-scss-to-css.js +24 -0
- package/tokens/replace-variables.js +32 -0
- package/tokens/sass-helpers.js +98 -0
- package/tokens/src/core/alias/size.json +15 -0
- package/tokens/src/core/components/ActionRow.json +10 -0
- package/tokens/src/core/components/Alert.json +30 -0
- package/tokens/src/core/components/Annotation.json +25 -0
- package/tokens/src/core/components/Avatar.json +17 -0
- package/tokens/src/core/components/AvatarButton.json +11 -0
- package/tokens/src/core/components/Badge.json +33 -0
- package/tokens/src/core/components/Breadcrumb.json +37 -0
- package/tokens/src/core/components/Bubble.json +10 -0
- package/tokens/src/core/components/Button/core.json +105 -0
- package/tokens/src/core/components/Card.json +91 -0
- package/tokens/src/core/components/Carousel.json +37 -0
- package/tokens/src/core/components/Chip.json +43 -0
- package/tokens/src/core/components/ChipCarousel.json +15 -0
- package/tokens/src/core/components/CloseButton.json +14 -0
- package/tokens/src/core/components/Code.json +34 -0
- package/tokens/src/core/components/Collapsible.json +29 -0
- package/tokens/src/core/components/ColorPicker.json +8 -0
- package/tokens/src/core/components/Container.json +13 -0
- package/tokens/src/core/components/DataTable.json +27 -0
- package/tokens/src/core/components/Dropdown.json +67 -0
- package/tokens/src/core/components/Dropzone.json +21 -0
- package/tokens/src/core/components/Form/other.json +14 -0
- package/tokens/src/core/components/Form/size.json +233 -0
- package/tokens/src/core/components/Form/spacing.json +155 -0
- package/tokens/src/core/components/Form/transition.json +16 -0
- package/tokens/src/core/components/Form/typography.json +122 -0
- package/tokens/src/core/components/Icon.json +11 -0
- package/tokens/src/core/components/IconButton.json +15 -0
- package/tokens/src/core/components/Image.json +28 -0
- package/tokens/src/core/components/Menu.json +48 -0
- package/tokens/src/core/components/Modal.json +47 -0
- package/tokens/src/core/components/Nav.json +55 -0
- package/tokens/src/core/components/Navbar.json +70 -0
- package/tokens/src/core/components/Pagination.json +70 -0
- package/tokens/src/core/components/Popover.json +48 -0
- package/tokens/src/core/components/ProductTour.json +37 -0
- package/tokens/src/core/components/ProgressBar.json +39 -0
- package/tokens/src/core/components/SearchField.json +23 -0
- package/tokens/src/core/components/SelectableBox.json +9 -0
- package/tokens/src/core/components/Sheet.json +10 -0
- package/tokens/src/core/components/Spinner.json +19 -0
- package/tokens/src/core/components/Stack.json +7 -0
- package/tokens/src/core/components/Stepper.json +42 -0
- package/tokens/src/core/components/Sticky.json +7 -0
- package/tokens/src/core/components/Tab.json +19 -0
- package/tokens/src/core/components/Tabs.json +19 -0
- package/tokens/src/core/components/Toast.json +30 -0
- package/tokens/src/core/components/Tooltip.json +33 -0
- package/tokens/src/core/components/general/caret.json +13 -0
- package/tokens/src/core/components/general/headings.json +16 -0
- package/tokens/src/core/components/general/hr.json +10 -0
- package/tokens/src/core/components/general/input.json +51 -0
- package/tokens/src/core/components/general/link.json +30 -0
- package/tokens/src/core/components/general/list.json +26 -0
- package/tokens/src/core/components/general/text.json +24 -0
- package/tokens/src/core/global/breakpoints.json +12 -0
- package/tokens/src/core/global/display.json +21 -0
- package/tokens/src/core/global/elevation.json +19 -0
- package/tokens/src/core/global/other.json +4 -0
- package/tokens/src/core/global/spacing.json +35 -0
- package/tokens/src/core/global/transition.json +14 -0
- package/tokens/src/core/global/typography.json +91 -0
- package/tokens/src/core/utilities/color.json +12 -0
- package/tokens/src/themes/light/alias/color.json +114 -0
- package/tokens/src/themes/light/components/Alert.json +47 -0
- package/tokens/src/themes/light/components/Annotation.json +29 -0
- package/tokens/src/themes/light/components/Avatar.json +7 -0
- package/tokens/src/themes/light/components/Badge.json +186 -0
- package/tokens/src/themes/light/components/Breadcrumb.json +14 -0
- package/tokens/src/themes/light/components/Bubble.json +18 -0
- package/tokens/src/themes/light/components/Button/brand.json +260 -0
- package/tokens/src/themes/light/components/Button/core.json +24 -0
- package/tokens/src/themes/light/components/Button/danger.json +247 -0
- package/tokens/src/themes/light/components/Button/dark.json +230 -0
- package/tokens/src/themes/light/components/Button/info.json +238 -0
- package/tokens/src/themes/light/components/Button/light.json +236 -0
- package/tokens/src/themes/light/components/Button/primary.json +250 -0
- package/tokens/src/themes/light/components/Button/secondary.json +278 -0
- package/tokens/src/themes/light/components/Button/success.json +253 -0
- package/tokens/src/themes/light/components/Button/tertiary.json +109 -0
- package/tokens/src/themes/light/components/Button/warning.json +276 -0
- package/tokens/src/themes/light/components/Card.json +40 -0
- package/tokens/src/themes/light/components/Carousel.json +45 -0
- package/tokens/src/themes/light/components/Chip.json +50 -0
- package/tokens/src/themes/light/components/CloseButton.json +10 -0
- package/tokens/src/themes/light/components/Code.json +23 -0
- package/tokens/src/themes/light/components/DataTable.json +26 -0
- package/tokens/src/themes/light/components/Dropdown.json +41 -0
- package/tokens/src/themes/light/components/Dropzone.json +23 -0
- package/tokens/src/themes/light/components/Form/color.json +270 -0
- package/tokens/src/themes/light/components/Form/elevation.json +76 -0
- package/tokens/src/themes/light/components/Form/other.json +131 -0
- package/tokens/src/themes/light/components/IconButton.json +451 -0
- package/tokens/src/themes/light/components/Image.json +18 -0
- package/tokens/src/themes/light/components/Menu.json +30 -0
- package/tokens/src/themes/light/components/Modal.json +37 -0
- package/tokens/src/themes/light/components/Nav.json +166 -0
- package/tokens/src/themes/light/components/Navbar.json +136 -0
- package/tokens/src/themes/light/components/OverflowScroll.json +9 -0
- package/tokens/src/themes/light/components/PageBanner.json +24 -0
- package/tokens/src/themes/light/components/Pagination.json +45 -0
- package/tokens/src/themes/light/components/Popover.json +55 -0
- package/tokens/src/themes/light/components/ProductTour.json +35 -0
- package/tokens/src/themes/light/components/ProgressBar.json +20 -0
- package/tokens/src/themes/light/components/Scrollable.json +14 -0
- package/tokens/src/themes/light/components/SearchField.json +25 -0
- package/tokens/src/themes/light/components/Sheet.json +22 -0
- package/tokens/src/themes/light/components/Stepper.json +34 -0
- package/tokens/src/themes/light/components/Sticky.json +18 -0
- package/tokens/src/themes/light/components/Tab.json +62 -0
- package/tokens/src/themes/light/components/Toast.json +33 -0
- package/tokens/src/themes/light/components/Tooltip.json +30 -0
- package/tokens/src/themes/light/components/general/body.json +8 -0
- package/tokens/src/themes/light/components/general/headings.json +7 -0
- package/tokens/src/themes/light/components/general/hr.json +15 -0
- package/tokens/src/themes/light/components/general/input.json +18 -0
- package/tokens/src/themes/light/components/general/link.json +109 -0
- package/tokens/src/themes/light/components/general/list.json +38 -0
- package/tokens/src/themes/light/components/general/text.json +6 -0
- package/tokens/src/themes/light/global/color.json +1661 -0
- package/tokens/src/themes/light/global/elevation.json +201 -0
- package/tokens/src/themes/light/global/other.json +4 -0
- package/tokens/style-dictionary.js +223 -0
- package/tokens/utils.js +210 -0
- package/dist/ActionRow/_variables.scss +0 -2
- package/dist/Alert/_variables.scss +0 -24
- package/dist/Annotation/_variables.scss +0 -18
- package/dist/Avatar/_variables.scss +0 -10
- package/dist/AvatarButton/_variables.scss +0 -3
- package/dist/Badge/_variables.scss +0 -16
- package/dist/Breadcrumb/_variables.scss +0 -27
- package/dist/Bubble/_variables.scss +0 -8
- package/dist/Button/_variables.scss +0 -52
- package/dist/Button/deprecated/index.js +0 -149
- package/dist/Button/deprecated/index.js.map +0 -1
- package/dist/Card/_variables.scss +0 -55
- package/dist/Carousel/_variables.scss +0 -27
- package/dist/CheckBox/index.js +0 -102
- package/dist/CheckBox/index.js.map +0 -1
- package/dist/CheckBoxGroup/index.js +0 -15
- package/dist/CheckBoxGroup/index.js.map +0 -1
- package/dist/Chip/_variables.scss +0 -28
- package/dist/ChipCarousel/_variables.scss +0 -3
- package/dist/CloseButton/_variables.scss +0 -6
- package/dist/Code/_variables.scss +0 -17
- package/dist/Collapsible/_variables.scss +0 -12
- package/dist/ColorPicker/_variables.scss +0 -2
- package/dist/Container/_variables.scss +0 -5
- package/dist/DataTable/_variables.scss +0 -11
- package/dist/Dropdown/_variables.scss +0 -33
- package/dist/Dropdown/deprecated/DropdownButton.js +0 -44
- package/dist/Dropdown/deprecated/DropdownButton.js.map +0 -1
- package/dist/Dropdown/deprecated/DropdownItem.js +0 -33
- package/dist/Dropdown/deprecated/DropdownItem.js.map +0 -1
- package/dist/Dropdown/deprecated/DropdownMenu.js +0 -46
- package/dist/Dropdown/deprecated/DropdownMenu.js.map +0 -1
- package/dist/Dropdown/deprecated/index.js +0 -241
- package/dist/Dropdown/deprecated/index.js.map +0 -1
- package/dist/Dropzone/_variables.scss +0 -9
- package/dist/Fieldset/index.js +0 -117
- package/dist/Fieldset/index.js.map +0 -1
- package/dist/Fieldset/index.scss +0 -12
- package/dist/Form/_variables.scss +0 -267
- package/dist/Icon/_variables.scss +0 -7
- package/dist/Image/_variables.scss +0 -13
- package/dist/Input/index.js +0 -166
- package/dist/Input/index.js.map +0 -1
- package/dist/InputSelect/index.js +0 -105
- package/dist/InputSelect/index.js.map +0 -1
- package/dist/InputText/index.js +0 -45
- package/dist/InputText/index.js.map +0 -1
- package/dist/ListBox/index.js +0 -148
- package/dist/ListBox/index.js.map +0 -1
- package/dist/ListBoxOption/index.js +0 -94
- package/dist/ListBoxOption/index.js.map +0 -1
- package/dist/Menu/_variables.scss +0 -24
- package/dist/Modal/_variables.scss +0 -50
- package/dist/Modal/index.js +0 -292
- package/dist/Modal/index.js.map +0 -1
- package/dist/Nav/_variables.scss +0 -58
- package/dist/Navbar/_variables.scss +0 -40
- package/dist/OverflowScroll/_variables.scss +0 -5
- package/dist/OverflowScroll/index.scss +0 -1
- package/dist/Pagination/_variables.scss +0 -19
- package/dist/Popover/_variables.scss +0 -36
- package/dist/ProductTour/_variables.scss +0 -15
- package/dist/ProgressBar/_variables.scss +0 -23
- package/dist/RadioButtonGroup/index.js +0 -188
- package/dist/RadioButtonGroup/index.js.map +0 -1
- package/dist/SearchField/_variables.scss +0 -14
- package/dist/SelectableBox/_variables.scss +0 -5
- package/dist/Spinner/_variables.scss +0 -9
- package/dist/Stack/_variables.scss +0 -1
- package/dist/StatusAlert/index.js +0 -168
- package/dist/StatusAlert/index.js.map +0 -1
- package/dist/Stepper/_variables.scss +0 -18
- package/dist/Sticky/_variables.scss +0 -3
- package/dist/Table/_variables.scss +0 -34
- package/dist/Table/index.js +0 -267
- package/dist/Table/index.js.map +0 -1
- package/dist/Table/index.scss +0 -12
- package/dist/Tabs/_variables.scss +0 -24
- package/dist/Tabs/deprecated/Tabs.scss +0 -3
- package/dist/Tabs/deprecated/index.js +0 -123
- package/dist/Tabs/deprecated/index.js.map +0 -1
- package/dist/TextArea/index.js +0 -44
- package/dist/TextArea/index.js.map +0 -1
- package/dist/Toast/_variables.scss +0 -19
- package/dist/Tooltip/_variables.scss +0 -21
- package/dist/ValidationFormGroup/index.js +0 -106
- package/dist/ValidationFormGroup/index.js.map +0 -1
- package/dist/paragon.css +0 -45
- package/scss/core/_grid.scss +0 -21
- package/scss/core/_variables.scss +0 -875
- package/scss/core/core.scss +0 -21
- package/src/ActionRow/_variables.scss +0 -2
- package/src/Alert/_variables.scss +0 -24
- package/src/Annotation/_variables.scss +0 -18
- package/src/Avatar/_variables.scss +0 -10
- package/src/AvatarButton/_variables.scss +0 -3
- package/src/Badge/_variables.scss +0 -16
- package/src/Breadcrumb/_variables.scss +0 -27
- package/src/Bubble/_variables.scss +0 -8
- package/src/Button/_variables.scss +0 -52
- package/src/Button/deprecated/Button.test.jsx +0 -34
- package/src/Button/deprecated/index.jsx +0 -145
- package/src/Card/_variables.scss +0 -55
- package/src/Carousel/_variables.scss +0 -27
- package/src/CheckBox/CheckBox.test.jsx +0 -65
- package/src/CheckBox/README.md +0 -93
- package/src/CheckBox/index.jsx +0 -80
- package/src/CheckBoxGroup/CheckBoxGroup.test.jsx +0 -33
- package/src/CheckBoxGroup/README.md +0 -35
- package/src/CheckBoxGroup/index.jsx +0 -19
- package/src/Chip/_variables.scss +0 -28
- package/src/ChipCarousel/_variables.scss +0 -3
- package/src/CloseButton/_variables.scss +0 -6
- package/src/Code/_variables.scss +0 -17
- package/src/Collapsible/_variables.scss +0 -12
- package/src/ColorPicker/_variables.scss +0 -2
- package/src/Container/_variables.scss +0 -5
- package/src/DataTable/_variables.scss +0 -11
- package/src/Dropdown/_variables.scss +0 -33
- package/src/Dropdown/deprecated/Dropdown.test.jsx +0 -238
- package/src/Dropdown/deprecated/DropdownButton.jsx +0 -52
- package/src/Dropdown/deprecated/DropdownItem.jsx +0 -34
- package/src/Dropdown/deprecated/DropdownMenu.jsx +0 -50
- package/src/Dropdown/deprecated/__snapshots__/Dropdown.test.jsx.snap +0 -229
- package/src/Dropdown/deprecated/index.jsx +0 -222
- package/src/Dropzone/_variables.scss +0 -9
- package/src/Fieldset/Fieldset.test.jsx +0 -101
- package/src/Fieldset/README.md +0 -146
- package/src/Fieldset/index.jsx +0 -107
- package/src/Fieldset/index.scss +0 -12
- package/src/Form/_variables.scss +0 -267
- package/src/Icon/_variables.scss +0 -7
- package/src/Image/_variables.scss +0 -13
- package/src/Input/README.md +0 -74
- package/src/Input/__snapshots__/input.test.jsx.snap +0 -53
- package/src/Input/index.jsx +0 -151
- package/src/Input/input.test.jsx +0 -85
- package/src/InputSelect/README.md +0 -136
- package/src/InputSelect/index.jsx +0 -92
- package/src/InputText/InputText.test.jsx +0 -74
- package/src/InputText/README.md +0 -293
- package/src/InputText/index.jsx +0 -49
- package/src/ListBox/ListBox.test.jsx +0 -161
- package/src/ListBox/README.md +0 -185
- package/src/ListBox/index.jsx +0 -115
- package/src/ListBoxOption/ListBoxOption.test.jsx +0 -154
- package/src/ListBoxOption/index.jsx +0 -78
- package/src/Menu/_variables.scss +0 -24
- package/src/Modal/README.md +0 -148
- package/src/Modal/_variables.scss +0 -50
- package/src/Modal/index.jsx +0 -319
- package/src/Modal/tests/Modal.test.jsx +0 -261
- package/src/Nav/_variables.scss +0 -58
- package/src/Navbar/_variables.scss +0 -40
- package/src/OverflowScroll/_variables.scss +0 -5
- package/src/OverflowScroll/index.scss +0 -1
- package/src/Pagination/_variables.scss +0 -19
- package/src/Popover/_variables.scss +0 -36
- package/src/ProductTour/_variables.scss +0 -15
- package/src/ProgressBar/_variables.scss +0 -23
- package/src/RadioButtonGroup/README.md +0 -50
- package/src/RadioButtonGroup/RadioButtonGroup.test.jsx +0 -127
- package/src/RadioButtonGroup/index.jsx +0 -185
- package/src/SearchField/_variables.scss +0 -14
- package/src/SelectableBox/_variables.scss +0 -5
- package/src/Spinner/_variables.scss +0 -9
- package/src/Stack/_variables.scss +0 -1
- package/src/StatusAlert/README.md +0 -149
- package/src/StatusAlert/StatusAlert.test.jsx +0 -150
- package/src/StatusAlert/index.jsx +0 -144
- package/src/Stepper/_variables.scss +0 -18
- package/src/Sticky/_variables.scss +0 -3
- package/src/Table/README.md +0 -506
- package/src/Table/Table.test.jsx +0 -367
- package/src/Table/_variables.scss +0 -34
- package/src/Table/index.jsx +0 -264
- package/src/Table/index.scss +0 -12
- package/src/Tabs/_variables.scss +0 -24
- package/src/Tabs/deprecated/Tabs.scss +0 -3
- package/src/Tabs/deprecated/Tabs.test.jsx +0 -50
- package/src/Tabs/deprecated/index.jsx +0 -117
- package/src/TextArea/README.md +0 -63
- package/src/TextArea/index.jsx +0 -48
- package/src/Toast/_variables.scss +0 -19
- package/src/Tooltip/_variables.scss +0 -21
- package/src/ValidationFormGroup/README.md +0 -116
- package/src/ValidationFormGroup/ValidationFormGroup.test.jsx +0 -146
- package/src/ValidationFormGroup/__snapshots__/ValidationFormGroup.test.jsx.snap +0 -161
- package/src/ValidationFormGroup/index.jsx +0 -114
- /package/{scss → styles/scss}/core/_exports.module.scss +0 -0
- /package/{scss → styles/scss}/core/_typography.scss +0 -0
package/src/Fieldset/index.jsx
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
|
|
5
|
-
import newId from '../utils/newId';
|
|
6
|
-
|
|
7
|
-
import ValidationMessage from '../ValidationMessage/index';
|
|
8
|
-
import Variant from '../utils/constants';
|
|
9
|
-
|
|
10
|
-
const inputProps = {
|
|
11
|
-
legend: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,
|
|
12
|
-
|
|
13
|
-
children: PropTypes.node,
|
|
14
|
-
className: PropTypes.string,
|
|
15
|
-
id: PropTypes.string,
|
|
16
|
-
isValid: PropTypes.bool,
|
|
17
|
-
invalidMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
18
|
-
variant: PropTypes.shape({
|
|
19
|
-
status: PropTypes.oneOf(Object.keys(Variant.status).map(k => Variant.status[k])),
|
|
20
|
-
}),
|
|
21
|
-
variantIconDescription: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const defaultProps = {
|
|
25
|
-
children: null,
|
|
26
|
-
className: undefined,
|
|
27
|
-
id: '',
|
|
28
|
-
isValid: true,
|
|
29
|
-
invalidMessage: '',
|
|
30
|
-
variant: {
|
|
31
|
-
status: Variant.status.INFO,
|
|
32
|
-
},
|
|
33
|
-
variantIconDescription: '',
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
class Fieldset extends React.Component {
|
|
37
|
-
constructor(props) {
|
|
38
|
-
super(props);
|
|
39
|
-
this.state = { id: props.id || newId('fieldset') };
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
static getDerivedStateFromProps(nextProps, prevState) {
|
|
43
|
-
if (nextProps.id !== prevState.id) {
|
|
44
|
-
return { id: nextProps.id || newId('fieldset') };
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return null;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
getVariantClassName() {
|
|
51
|
-
const { variant } = this.props;
|
|
52
|
-
let className;
|
|
53
|
-
|
|
54
|
-
switch (variant.status) {
|
|
55
|
-
case Variant.status.INFO:
|
|
56
|
-
className = 'is-invalid-nodanger';
|
|
57
|
-
break;
|
|
58
|
-
default:
|
|
59
|
-
break;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return className;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
render() {
|
|
66
|
-
const {
|
|
67
|
-
className,
|
|
68
|
-
children,
|
|
69
|
-
variantIconDescription,
|
|
70
|
-
invalidMessage,
|
|
71
|
-
isValid,
|
|
72
|
-
legend,
|
|
73
|
-
variant,
|
|
74
|
-
} = this.props;
|
|
75
|
-
const errorId = `error-${this.state.id}`;
|
|
76
|
-
return (
|
|
77
|
-
<div className="paragon-fieldset">
|
|
78
|
-
<fieldset
|
|
79
|
-
className={classNames(
|
|
80
|
-
'form-control',
|
|
81
|
-
'p-3',
|
|
82
|
-
{ 'is-invalid': !isValid },
|
|
83
|
-
this.getVariantClassName(),
|
|
84
|
-
className,
|
|
85
|
-
)}
|
|
86
|
-
aria-describedby={errorId}
|
|
87
|
-
data-testid="fieldset"
|
|
88
|
-
>
|
|
89
|
-
<legend className="p-1">{legend}</legend>
|
|
90
|
-
{children}
|
|
91
|
-
</fieldset>
|
|
92
|
-
<ValidationMessage
|
|
93
|
-
id={errorId}
|
|
94
|
-
isValid={isValid}
|
|
95
|
-
invalidMessage={invalidMessage}
|
|
96
|
-
variant={variant}
|
|
97
|
-
variantIconDescription={variantIconDescription}
|
|
98
|
-
/>
|
|
99
|
-
</div>
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
Fieldset.propTypes = inputProps;
|
|
105
|
-
Fieldset.defaultProps = defaultProps;
|
|
106
|
-
|
|
107
|
-
export default Fieldset;
|
package/src/Fieldset/index.scss
DELETED
package/src/Form/_variables.scss
DELETED
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
$input-padding-y: $input-btn-padding-y !default;
|
|
2
|
-
$input-padding-x: $input-btn-padding-x !default;
|
|
3
|
-
$input-font-family: $input-btn-font-family !default;
|
|
4
|
-
$input-font-size: $input-btn-font-size !default;
|
|
5
|
-
$input-font-weight: $font-weight-base !default;
|
|
6
|
-
$input-line-height: $input-btn-line-height !default;
|
|
7
|
-
|
|
8
|
-
$input-padding-y-sm: $input-btn-padding-y-sm !default;
|
|
9
|
-
$input-padding-x-sm: $input-btn-padding-x-sm !default;
|
|
10
|
-
$input-font-size-sm: $input-btn-font-size-sm !default;
|
|
11
|
-
$input-line-height-sm: $input-btn-line-height-sm !default;
|
|
12
|
-
|
|
13
|
-
$input-padding-y-lg: $input-btn-padding-y-lg !default;
|
|
14
|
-
$input-padding-x-lg: $input-btn-padding-x-lg !default;
|
|
15
|
-
$input-font-size-lg: $input-btn-font-size-lg !default;
|
|
16
|
-
$input-line-height-lg: $input-btn-line-height-lg !default;
|
|
17
|
-
|
|
18
|
-
$input-bg: $white !default;
|
|
19
|
-
$input-disabled-bg: theme-color("gray", "background") !default;
|
|
20
|
-
|
|
21
|
-
$input-color: theme-color("gray", "text") !default;
|
|
22
|
-
$input-border-color: $gray-500 !default;
|
|
23
|
-
$input-border-width: $input-btn-border-width !default;
|
|
24
|
-
$input-box-shadow: inset 0 1px 1px rgba($black, .075) !default;
|
|
25
|
-
|
|
26
|
-
$input-border-radius: $border-radius !default;
|
|
27
|
-
$input-border-radius-lg: $border-radius-lg !default;
|
|
28
|
-
$input-border-radius-sm: $border-radius-sm !default;
|
|
29
|
-
|
|
30
|
-
$input-focus-bg: $input-bg !default;
|
|
31
|
-
$input-focus-border-color: $component-active-bg !default;
|
|
32
|
-
$input-focus-color: $input-color !default;
|
|
33
|
-
$input-focus-width: 1px !default;
|
|
34
|
-
$input-focus-box-shadow: $input-btn-focus-box-shadow !default;
|
|
35
|
-
|
|
36
|
-
$input-placeholder-color: theme-color("gray", "light-text") !default;
|
|
37
|
-
$input-plaintext-color: $body-color !default;
|
|
38
|
-
|
|
39
|
-
$input-height-border: $input-border-width * 2 !default;
|
|
40
|
-
|
|
41
|
-
$input-height-inner: calc(#{$input-line-height * 1em} + #{$input-padding-y * 2}) !default;
|
|
42
|
-
$input-height-inner-half: calc(#{$input-line-height * .5em} + #{$input-padding-y}) !default;
|
|
43
|
-
$input-height-inner-quarter: calc(#{$input-line-height * .25em} + #{calc($input-padding-y / 2)}) !default;
|
|
44
|
-
|
|
45
|
-
$input-height: calc(
|
|
46
|
-
#{$input-line-height * 1em} + #{$input-padding-y * 2} + #{$input-height-border}
|
|
47
|
-
) !default;
|
|
48
|
-
$input-height-sm: calc(
|
|
49
|
-
#{$input-line-height-sm * 1em} + #{$input-btn-padding-y-sm * 2} + #{$input-height-border}
|
|
50
|
-
) !default;
|
|
51
|
-
$input-height-lg: calc(
|
|
52
|
-
#{$input-line-height-lg * 1em} + #{$input-btn-padding-y-lg * 2} + #{$input-height-border}
|
|
53
|
-
) !default;
|
|
54
|
-
|
|
55
|
-
$input-hover-width: 1px !default;
|
|
56
|
-
$input-transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;
|
|
57
|
-
|
|
58
|
-
$form-text-margin-top: .25rem !default;
|
|
59
|
-
|
|
60
|
-
$form-check-input-gutter: 1.25rem !default;
|
|
61
|
-
$form-check-input-margin-y: .3rem !default;
|
|
62
|
-
$form-check-input-margin-x: .25rem !default;
|
|
63
|
-
|
|
64
|
-
$form-check-inline-margin-x: .75rem !default;
|
|
65
|
-
$form-check-inline-input-margin-x: .3125rem !default;
|
|
66
|
-
|
|
67
|
-
$form-check-position-axis: .375rem !default;
|
|
68
|
-
$form-check-focus-border-radius: .0625rem !default;
|
|
69
|
-
$form-check-border-width: .125rem !default;
|
|
70
|
-
|
|
71
|
-
$form-grid-gutter-width: 10px !default;
|
|
72
|
-
$form-group-margin-bottom: 1rem !default;
|
|
73
|
-
|
|
74
|
-
$input-group-addon-color: $input-color !default;
|
|
75
|
-
$input-group-addon-bg: theme-color("gray", "background") !default;
|
|
76
|
-
$input-group-addon-border-color: $input-border-color !default;
|
|
77
|
-
|
|
78
|
-
$custom-forms-transition: background-color .15s ease-in-out,
|
|
79
|
-
border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;
|
|
80
|
-
|
|
81
|
-
$custom-control-gutter: .5rem !default;
|
|
82
|
-
$custom-control-spacer-x: 1rem !default;
|
|
83
|
-
$custom-control-cursor: null !default;
|
|
84
|
-
|
|
85
|
-
$custom-control-indicator-size: 1.25rem !default;
|
|
86
|
-
$custom-control-indicator-bg: $input-bg !default;
|
|
87
|
-
|
|
88
|
-
$custom-control-indicator-bg-size: 100% !default;
|
|
89
|
-
$custom-control-indicator-box-shadow: $input-box-shadow !default;
|
|
90
|
-
$custom-control-indicator-border-color: $gray-700 !default;
|
|
91
|
-
$custom-control-indicator-border-width: 2px !default;
|
|
92
|
-
|
|
93
|
-
$custom-control-label-color: null !default;
|
|
94
|
-
$custom-control-indicator-disabled-bg: $input-disabled-bg !default;
|
|
95
|
-
$custom-control-label-disabled-color: theme-color("gray", "light-text") !default;
|
|
96
|
-
|
|
97
|
-
$custom-control-indicator-checked-color: $component-active-bg !default;
|
|
98
|
-
$custom-control-indicator-checked-valid-color: theme-color("success") !default;
|
|
99
|
-
$custom-control-indicator-checked-invalid-color: theme-color("danger") !default;
|
|
100
|
-
$custom-control-indicator-checked-bg: $component-active-bg !default;
|
|
101
|
-
$custom-control-indicator-checked-disabled-bg: rgba($primary, .5) !default;
|
|
102
|
-
$custom-control-indicator-checked-box-shadow: none !default;
|
|
103
|
-
$custom-control-indicator-checked-border-color: $custom-control-indicator-checked-bg !default;
|
|
104
|
-
|
|
105
|
-
$custom-control-indicator-focus-box-shadow: 0 0 0 4px rgba(0, 0, 0, .1) !default;
|
|
106
|
-
$custom-control-indicator-focus-border-color: $input-focus-border-color !default;
|
|
107
|
-
|
|
108
|
-
$custom-control-indicator-active-color: $component-active-color !default;
|
|
109
|
-
$custom-control-indicator-active-bg: $component-active-bg !default;
|
|
110
|
-
$custom-control-indicator-active-box-shadow: none !default;
|
|
111
|
-
$custom-control-indicator-active-border-color: $custom-control-indicator-active-bg !default;
|
|
112
|
-
$custom-checkbox-indicator-border-radius: 0 !default;
|
|
113
|
-
$custom-checkbox-indicator-icon-checked: str-replace(url("data:image/svg+xml,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M21 3H3V21H21V3ZM10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z' fill='#{$custom-control-indicator-checked-color}'/></svg>"), "#", "%23") !default;
|
|
114
|
-
$custom-checkbox-indicator-icon-valid-checked: str-replace(url("data:image/svg+xml,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M21 3H3V21H21V3ZM10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z' fill='#{$custom-control-indicator-checked-valid-color}'/></svg>"), "#", "%23") !default;
|
|
115
|
-
$custom-checkbox-indicator-icon-invalid-checked: str-replace(url("data:image/svg+xml,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M21 3H3V21H21V3ZM10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z' fill='#{$custom-control-indicator-checked-invalid-color}'/></svg>"), "#", "%23") !default;
|
|
116
|
-
|
|
117
|
-
$custom-checkbox-indicator-indeterminate-bg: $component-active-bg !default;
|
|
118
|
-
$custom-checkbox-indicator-indeterminate-color: $custom-control-indicator-checked-color !default;
|
|
119
|
-
$custom-checkbox-indicator-icon-indeterminate: str-replace(url("data:image/svg+xml,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M21 3H3V21H21V3ZM17 13H7V11H17V13Z' fill='#{$custom-checkbox-indicator-indeterminate-color}'/></svg>"), "#", "%23") !default;
|
|
120
|
-
$custom-checkbox-indicator-indeterminate-box-shadow: none !default;
|
|
121
|
-
$custom-checkbox-indicator-indeterminate-border-color: $custom-checkbox-indicator-indeterminate-bg !default;
|
|
122
|
-
|
|
123
|
-
$custom-radio-indicator-border-radius: 50% !default;
|
|
124
|
-
$custom-radio-indicator-icon-checked: str-replace(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='#{$custom-control-indicator-checked-bg}'/%3e%3c/svg%3e"), "#", "%23") !default;
|
|
125
|
-
$custom-radio-indicator-icon-valid-checked: str-replace(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='#{$custom-control-indicator-checked-valid-color}'/%3e%3c/svg%3e"), "#", "%23") !default;
|
|
126
|
-
$custom-radio-indicator-icon-invalid-checked: str-replace(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='#{$custom-control-indicator-checked-invalid-color}'/%3e%3c/svg%3e"), "#", "%23") !default;
|
|
127
|
-
|
|
128
|
-
$custom-switch-indicator-icon-off: str-replace(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='#{$custom-control-indicator-checked-bg}'/%3e%3c/svg%3e"), "#", "%23") !default;
|
|
129
|
-
$custom-switch-indicator-icon-on: str-replace(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='#{$custom-control-indicator-active-color}'/%3e%3c/svg%3e"), "#", "%23") !default;
|
|
130
|
-
$custom-switch-width: $custom-control-indicator-size * 1.75 !default;
|
|
131
|
-
$custom-switch-indicator-border-radius: calc($custom-control-indicator-size / 2) !default;
|
|
132
|
-
$custom-switch-indicator-size: calc(
|
|
133
|
-
#{$custom-control-indicator-size} - #{$custom-control-indicator-border-width * 4}
|
|
134
|
-
) !default;
|
|
135
|
-
$custom-switch-indicator-checked-bg: theme-color("success") !default;
|
|
136
|
-
|
|
137
|
-
$custom-select-padding-y: $input-padding-y !default;
|
|
138
|
-
$custom-select-padding-x: $input-padding-x !default;
|
|
139
|
-
$custom-select-font-family: $input-font-family !default;
|
|
140
|
-
$custom-select-font-size: $input-font-size !default;
|
|
141
|
-
$custom-select-height: $input-height !default;
|
|
142
|
-
|
|
143
|
-
// Extra padding to account for the presence of the background-image based indicator
|
|
144
|
-
$custom-select-indicator-padding: 1rem !default;
|
|
145
|
-
$custom-select-font-weight: $input-font-weight !default;
|
|
146
|
-
$custom-select-line-height: $input-line-height !default;
|
|
147
|
-
$custom-select-color: $input-color !default;
|
|
148
|
-
$custom-select-disabled-color: theme-color("gray", "light-text") !default;
|
|
149
|
-
$custom-select-bg: $input-bg !default;
|
|
150
|
-
$custom-select-disabled-bg: theme-color("gray", "background") !default;
|
|
151
|
-
$custom-select-bg-size: 24px 24px !default; // In pixels because image dimensions
|
|
152
|
-
$custom-select-indicator-color: theme-color("gray", "hover") !default;
|
|
153
|
-
|
|
154
|
-
$custom-select-indicator: str-replace(url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.59 8.58984L12 13.1698L7.41 8.58984L6 9.99984L12 15.9998L18 9.99984L16.59 8.58984Z" fill="#{$custom-select-indicator-color}"/></svg>'), "#", "%23") !default;
|
|
155
|
-
|
|
156
|
-
// Used so we can have multiple background elements (e.g., arrow and feedback icon)
|
|
157
|
-
$custom-select-background: $custom-select-indicator no-repeat right
|
|
158
|
-
$input-padding-y center / $custom-select-bg-size !default;
|
|
159
|
-
|
|
160
|
-
$custom-select-feedback-icon-padding-right: calc(
|
|
161
|
-
(1em + #{2 * $custom-select-padding-y}) * 3 / 4 + #{$custom-select-padding-x + $custom-select-indicator-padding}
|
|
162
|
-
) !default;
|
|
163
|
-
$custom-select-feedback-icon-position: center right
|
|
164
|
-
($custom-select-padding-x + $custom-select-indicator-padding) !default;
|
|
165
|
-
$custom-select-feedback-icon-size: $input-height-inner-half $input-height-inner-half !default;
|
|
166
|
-
|
|
167
|
-
$custom-select-border-width: $input-border-width !default;
|
|
168
|
-
$custom-select-border-color: $input-border-color !default;
|
|
169
|
-
$custom-select-border-radius: $border-radius !default;
|
|
170
|
-
$custom-select-box-shadow: inset 0 1px 2px rgba($black, .075) !default;
|
|
171
|
-
|
|
172
|
-
$custom-select-focus-border-color: $input-focus-border-color !default;
|
|
173
|
-
$custom-select-focus-width: $input-focus-width !default;
|
|
174
|
-
$custom-select-focus-box-shadow: $input-btn-focus-box-shadow !default;
|
|
175
|
-
|
|
176
|
-
$custom-select-padding-y-sm: $input-padding-y-sm !default;
|
|
177
|
-
$custom-select-padding-x-sm: $input-padding-x-sm !default;
|
|
178
|
-
$custom-select-font-size-sm: $input-font-size-sm !default;
|
|
179
|
-
$custom-select-height-sm: $input-height-sm !default;
|
|
180
|
-
|
|
181
|
-
$custom-select-padding-y-lg: $input-padding-y-lg !default;
|
|
182
|
-
$custom-select-padding-x-lg: $input-padding-x-lg !default;
|
|
183
|
-
$custom-select-font-size-lg: $input-font-size-lg !default;
|
|
184
|
-
$custom-select-height-lg: $input-height-lg !default;
|
|
185
|
-
|
|
186
|
-
$custom-range-track-width: 100% !default;
|
|
187
|
-
$custom-range-track-height: .5rem !default;
|
|
188
|
-
$custom-range-track-cursor: pointer !default;
|
|
189
|
-
$custom-range-track-bg: theme-color("gray", "graphic") !default;
|
|
190
|
-
$custom-range-track-border-radius: 1rem !default;
|
|
191
|
-
$custom-range-track-box-shadow: inset 0 .25rem .25rem rgba($black, .1) !default;
|
|
192
|
-
|
|
193
|
-
$custom-range-thumb-width: 1rem !default;
|
|
194
|
-
$custom-range-thumb-height: $custom-range-thumb-width !default;
|
|
195
|
-
$custom-range-thumb-bg: $component-active-bg !default;
|
|
196
|
-
$custom-range-thumb-border: 0 !default;
|
|
197
|
-
$custom-range-thumb-border-radius: 1rem !default;
|
|
198
|
-
$custom-range-thumb-box-shadow: 0 .1rem .25rem rgba($black, .1) !default;
|
|
199
|
-
$custom-range-thumb-focus-box-shadow: 0 0 0 1px $body-bg, $input-focus-box-shadow !default;
|
|
200
|
-
$custom-range-thumb-focus-box-shadow-width: $input-focus-width !default; // For focus box shadow issue in IE/Edge
|
|
201
|
-
$custom-range-thumb-active-bg: lighten($component-active-bg, 35%) !default;
|
|
202
|
-
$custom-range-thumb-disabled-bg: theme-color("gray", "default") !default;
|
|
203
|
-
|
|
204
|
-
$custom-file-height: $input-height !default;
|
|
205
|
-
$custom-file-height-inner: $input-height-inner !default;
|
|
206
|
-
$custom-file-focus-border-color: $input-focus-border-color !default;
|
|
207
|
-
$custom-file-focus-box-shadow: $input-focus-box-shadow !default;
|
|
208
|
-
$custom-file-disabled-bg: $input-disabled-bg !default;
|
|
209
|
-
|
|
210
|
-
$custom-file-padding-y: $input-padding-y !default;
|
|
211
|
-
$custom-file-padding-x: $input-padding-x !default;
|
|
212
|
-
$custom-file-line-height: $input-line-height !default;
|
|
213
|
-
$custom-file-font-family: $input-font-family !default;
|
|
214
|
-
$custom-file-font-weight: $input-font-weight !default;
|
|
215
|
-
$custom-file-color: $input-color !default;
|
|
216
|
-
$custom-file-bg: $input-bg !default;
|
|
217
|
-
$custom-file-border-width: $input-border-width !default;
|
|
218
|
-
$custom-file-border-color: $input-border-color !default;
|
|
219
|
-
$custom-file-border-radius: $input-border-radius !default;
|
|
220
|
-
$custom-file-box-shadow: $input-box-shadow !default;
|
|
221
|
-
$custom-file-button-color: $custom-file-color !default;
|
|
222
|
-
$custom-file-button-bg: $input-group-addon-bg !default;
|
|
223
|
-
$custom-file-text: (
|
|
224
|
-
en: "Browse"
|
|
225
|
-
) !default;
|
|
226
|
-
|
|
227
|
-
// Form validation
|
|
228
|
-
|
|
229
|
-
$form-feedback-margin-top: $form-text-margin-top !default;
|
|
230
|
-
$form-feedback-font-size: $small-font-size !default;
|
|
231
|
-
$form-feedback-valid-color: theme-color("success") !default;
|
|
232
|
-
$form-feedback-invalid-color: theme-color("danger") !default;
|
|
233
|
-
|
|
234
|
-
$form-feedback-icon-valid-color: $form-feedback-valid-color !default;
|
|
235
|
-
$form-feedback-icon-valid: str-replace(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='#{$form-feedback-icon-valid-color}' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e"), "#", "%23") !default;
|
|
236
|
-
$form-feedback-icon-invalid-color: $form-feedback-invalid-color !default;
|
|
237
|
-
$form-feedback-icon-invalid: str-replace(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='#{$form-feedback-icon-invalid-color}' viewBox='-2 -2 7 7'%3e%3cpath stroke='#{$form-feedback-icon-invalid-color}' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E"), "#", "%23") !default;
|
|
238
|
-
|
|
239
|
-
$form-validation-states: () !default;
|
|
240
|
-
// stylelint-disable-next-line scss/dollar-variable-default
|
|
241
|
-
$form-validation-states: map-merge(
|
|
242
|
-
(
|
|
243
|
-
"valid": (
|
|
244
|
-
"color": $form-feedback-valid-color,
|
|
245
|
-
"icon": $form-feedback-icon-valid
|
|
246
|
-
),
|
|
247
|
-
"invalid": (
|
|
248
|
-
"color": $form-feedback-invalid-color,
|
|
249
|
-
"icon": $form-feedback-icon-invalid
|
|
250
|
-
),
|
|
251
|
-
),
|
|
252
|
-
$form-validation-states
|
|
253
|
-
);
|
|
254
|
-
|
|
255
|
-
// Form tooltips must come after regular tooltips
|
|
256
|
-
$form-feedback-tooltip-padding-y: .25rem !default;
|
|
257
|
-
$form-feedback-tooltip-padding-x: .5rem !default;
|
|
258
|
-
$form-feedback-tooltip-font-size: $font-size-sm !default;
|
|
259
|
-
$form-feedback-tooltip-line-height: $line-height-base !default;
|
|
260
|
-
$form-feedback-tooltip-opacity: .9 !default;
|
|
261
|
-
$form-feedback-tooltip-border-radius: $border-radius !default;
|
|
262
|
-
|
|
263
|
-
$form-autosuggest-icon-width: 2.4rem;
|
|
264
|
-
$form-autosuggest-icon-height: $form-autosuggest-icon-width;
|
|
265
|
-
$form-autosuggest-spinner-width: 1.25rem;
|
|
266
|
-
$form-autosuggest-spinner-height: $form-autosuggest-spinner-width;
|
|
267
|
-
$form-autosuggest-border-width: .125rem;
|
package/src/Icon/_variables.scss
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Image thumbnails
|
|
2
|
-
|
|
3
|
-
$thumbnail-padding: .25rem !default;
|
|
4
|
-
$thumbnail-bg: $body-bg !default;
|
|
5
|
-
$thumbnail-border-width: $border-width !default;
|
|
6
|
-
$thumbnail-border-color: theme-color("gray", "border") !default;
|
|
7
|
-
$thumbnail-border-radius: $border-radius !default;
|
|
8
|
-
$thumbnail-box-shadow: 0 1px 2px rgba($black, .075) !default;
|
|
9
|
-
|
|
10
|
-
// Figures
|
|
11
|
-
|
|
12
|
-
$figure-caption-font-size: 90% !default;
|
|
13
|
-
$figure-caption-color: theme-color("gray", "light-text") !default;
|
package/src/Input/README.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'Input'
|
|
3
|
-
type: 'component'
|
|
4
|
-
components:
|
|
5
|
-
- Input
|
|
6
|
-
categories:
|
|
7
|
-
- Forms (deprecated)
|
|
8
|
-
status: 'Deprecate Soon'
|
|
9
|
-
designStatus: 'Done'
|
|
10
|
-
devStatus: 'Done'
|
|
11
|
-
notes: |
|
|
12
|
-
Replaced by Form.Control
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
A component for all user input. It is responsible for rendering select, textarea, and inputs of any type with the appropriate bootstrap class name.
|
|
16
|
-
|
|
17
|
-
Extra props supplied to Input will be passed through to the html node.
|
|
18
|
-
|
|
19
|
-
## Text
|
|
20
|
-
|
|
21
|
-
```jsx live
|
|
22
|
-
<Input type="text" defaultValue="Some text input" />
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Select
|
|
26
|
-
|
|
27
|
-
```jsx live
|
|
28
|
-
<Input
|
|
29
|
-
type="select"
|
|
30
|
-
defaultValue="Foo Bar"
|
|
31
|
-
options={[
|
|
32
|
-
{ value: 'Foo Bar', label: 'Foo Bar' },
|
|
33
|
-
{ value: 'Foos Bar', label: 'Bar foo' },
|
|
34
|
-
{ value: 'Foo sBar', label: 'FoBaro' },
|
|
35
|
-
{ value: 'Foo ssBar', label: 'Farboo' },
|
|
36
|
-
{
|
|
37
|
-
label: 'But there is more',
|
|
38
|
-
group: [
|
|
39
|
-
{ value: 'vFoo Bar', label: 'Foov Bar' },
|
|
40
|
-
{ value: 'vFoos Bar', label: 'Barv foo' },
|
|
41
|
-
{ value: 'vFoo sBar', label: 'FoBarov' },
|
|
42
|
-
{ value: 'vFoo ssBar', label: 'Farboov' },
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
]}
|
|
46
|
-
/>
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Textarea
|
|
50
|
-
|
|
51
|
-
```jsx live
|
|
52
|
-
<Input
|
|
53
|
-
type="textarea"
|
|
54
|
-
defaultValue="Hammock semiotics pok pok jianbing venmo, crucifix taiyaki stumptown irony ennui knausgaard bitters synth slow-carb iPhone."
|
|
55
|
-
/>
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## Date
|
|
59
|
-
|
|
60
|
-
```jsx live
|
|
61
|
-
<Input type="date" />
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### File
|
|
65
|
-
|
|
66
|
-
```jsx live
|
|
67
|
-
<Input type="file" />
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### Range
|
|
71
|
-
|
|
72
|
-
```jsx live
|
|
73
|
-
<Input type="range" />
|
|
74
|
-
```
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`<Input /> rendering properly renders groups 1`] = `
|
|
4
|
-
<select
|
|
5
|
-
className="form-control"
|
|
6
|
-
defaultValue="Foo Bar"
|
|
7
|
-
>
|
|
8
|
-
<option
|
|
9
|
-
value="Foo Bar"
|
|
10
|
-
>
|
|
11
|
-
Foo Bar
|
|
12
|
-
</option>
|
|
13
|
-
<option
|
|
14
|
-
value="Foos Bar"
|
|
15
|
-
>
|
|
16
|
-
Bar foo
|
|
17
|
-
</option>
|
|
18
|
-
<option
|
|
19
|
-
value="Foo sBar"
|
|
20
|
-
>
|
|
21
|
-
FoBaro
|
|
22
|
-
</option>
|
|
23
|
-
<option
|
|
24
|
-
value="Foo ssBar"
|
|
25
|
-
>
|
|
26
|
-
Farboo
|
|
27
|
-
</option>
|
|
28
|
-
<optgroup
|
|
29
|
-
label="But there is more"
|
|
30
|
-
>
|
|
31
|
-
<option
|
|
32
|
-
value="vFoo Bar"
|
|
33
|
-
>
|
|
34
|
-
Foov Bar
|
|
35
|
-
</option>
|
|
36
|
-
<option
|
|
37
|
-
value="vFoos Bar"
|
|
38
|
-
>
|
|
39
|
-
Barv foo
|
|
40
|
-
</option>
|
|
41
|
-
<option
|
|
42
|
-
value="vFoo sBar"
|
|
43
|
-
>
|
|
44
|
-
FoBarov
|
|
45
|
-
</option>
|
|
46
|
-
<option
|
|
47
|
-
value="vFoo ssBar"
|
|
48
|
-
>
|
|
49
|
-
Farboov
|
|
50
|
-
</option>
|
|
51
|
-
</optgroup>
|
|
52
|
-
</select>
|
|
53
|
-
`;
|