-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make React examples work; Improving components and data attribute int…
…erface
- Loading branch information
1 parent
727993e
commit b21b83a
Showing
40 changed files
with
344 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,14 @@ | ||
import { create } from './index' | ||
import Popper from './popper' | ||
import * as components from './components' | ||
|
||
// These can be imported individually | ||
import Alert from './components/alert' | ||
import Button from './components/button' | ||
import Carousel from './components/carousel' | ||
import Collapse from './components/collapse' | ||
import Dropdown from './components/dropdown' | ||
import Modal from './components/modal' | ||
import Offcanvas from './components/offcanvas' | ||
import Popover from './components/popover' | ||
import ScrollSpy from './components/scrollspy' | ||
import Tab from './components/tab' | ||
import Toast from './components/toast' | ||
import Tooltip from './components/tooltip' | ||
const design = | ||
typeof window === 'undefined' | ||
? {} | ||
: create({ | ||
components: Object.assign(components, { | ||
Popper, | ||
}), | ||
}) | ||
|
||
create({ | ||
components: { | ||
Alert, | ||
Button, | ||
Carousel, | ||
Collapse, | ||
Dropdown, | ||
Modal, | ||
Offcanvas, | ||
Popover, | ||
ScrollSpy, | ||
Tab, | ||
Toast, | ||
Tooltip, | ||
}, | ||
}) | ||
export default design |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export { default as Alert } from './alert' | ||
export { default as Button } from './button' | ||
export { default as Carousel } from './carousel' | ||
export { default as Collapse } from './collapse' | ||
export { default as Dropdown } from './dropdown' | ||
export { default as Modal } from './modal' | ||
export { default as Offcanvas } from './offcanvas' | ||
export { default as Popover } from './popover' | ||
export { default as ScrollSpy } from './scrollspy' | ||
export { default as Tab } from './tab' | ||
export { default as Toast } from './toast' | ||
export { default as Tooltip } from './tooltip' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// | ||
// Basic Bootstrap table | ||
// Basic table | ||
// | ||
|
||
.#{$class-prefix}table { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { create } from './index' | ||
|
||
const design = create({ | ||
// data- attributes are still prefixed | ||
classPrefix: '', | ||
components: {}, | ||
}) | ||
|
||
export default design |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { create } from './index' | ||
|
||
const design = create({ | ||
components: {}, | ||
}) | ||
|
||
export default design |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.