-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `<.dropdown_item>` * Make the ellipsis menu functional again * Upgrade deps so that storybook can be added * Add storybook and dropdown story * Remove lingering warnings/errors * Add color mode to storybook * Use new liveview used_input? function * Alpine improvements * Add select input to storybook * Bring back `render_form` for CRM * Configure eslint so it can see deps * Remove LiveViewTest patch * Fix test for phoenix liveview 1.0 * Build assets in prod * Fix tests * Attempt to fix lint error * Add explicit text color to input * mix format * Format after merge master * Add moduledocs * Only run storybook in production * Update storybook dependency * Mix format
- Loading branch information
Showing
148 changed files
with
683 additions
and
587 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
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,14 @@ | ||
@import "tailwindcss/base"; | ||
@import "tailwindcss/components"; | ||
@import "tailwindcss/utilities"; | ||
|
||
/* | ||
* Put your component styling within the Tailwind utilities layer. | ||
* See the https://hexdocs.pm/phoenix_storybook/sandboxing.html guide for more info. | ||
*/ | ||
|
||
@layer utilities { | ||
* { | ||
font-family: system-ui; | ||
} | ||
} |
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,39 @@ | ||
import Alpine from 'alpinejs' | ||
import dropdown from "./liveview/dropdown" | ||
|
||
// If your components require any hooks or custom uploaders, or if your pages | ||
// require connect parameters, uncomment the following lines and declare them as | ||
// such: | ||
// | ||
// import * as Hooks from "./hooks"; | ||
// import * as Params from "./params"; | ||
// import * as Uploaders from "./uploaders"; | ||
|
||
// (function () { | ||
// window.storybook = { Hooks, Params, Uploaders }; | ||
// })(); | ||
|
||
|
||
window.Alpine = Alpine | ||
document.addEventListener('DOMContentLoaded', () => { | ||
window.Alpine.start(); | ||
}); | ||
|
||
document.addEventListener('alpine:init', () => { | ||
window.Alpine.data('dropdown', dropdown) | ||
}); | ||
|
||
|
||
(function () { | ||
window.storybook = { | ||
LiveSocketOptions: { | ||
dom: { | ||
onBeforeElUpdated(from, to) { | ||
if (from._x_dataStack) { | ||
window.Alpine.clone(from, to) | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
})(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.