Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update elixir to 1.17 #7

Open
wants to merge 82 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
2c27bc1
Updated dependency versions
suranyami Jan 23, 2024
db79c1e
Merge pull request #1 from suranyami/deps_version_bump
suranyami Jan 23, 2024
f8dc597
Initial attempts at upgrading to phoenix_storybook
suranyami Jan 23, 2024
9cb3d70
Starting from scratch with the storybook
suranyami Jan 24, 2024
689cd89
Merge branch 'main' into deps_version_bump
suranyami Feb 19, 2024
54a3690
Merge pull request #2 from suranyami/deps_version_bump
suranyami Feb 19, 2024
32e8399
Add components for buttons, icons, table and module for colors
suranyami Feb 19, 2024
390a124
Add missing scss file for storybook
suranyami Feb 19, 2024
8cb7f72
Add my fontawesome free kit details
suranyami Feb 19, 2024
57fa7cc
made formatting consistent
suranyami Feb 19, 2024
2c9cc1a
Added more variations for buttons
suranyami Feb 19, 2024
3c9f5ba
Add icon story
suranyami Feb 19, 2024
d40eb47
Somewhat improved table story
suranyami Feb 19, 2024
fcae98c
Haven't started modal yet
suranyami Feb 19, 2024
e0b3201
Add color to action button
suranyami Feb 19, 2024
1cdf3f9
add gettext dependency outside of phoenix
suranyami Feb 19, 2024
aff1d82
Add credo
suranyami Feb 19, 2024
c65f4c7
Added missing `disabled` attr
suranyami Feb 19, 2024
6bd33a4
Add components for buttons, icons, table and module for colors
suranyami Feb 19, 2024
2474c87
Add missing scss file for storybook
suranyami Feb 19, 2024
1a51019
Add my fontawesome free kit details
suranyami Feb 19, 2024
2caf13b
made formatting consistent
suranyami Feb 19, 2024
6c14e51
Added more variations for buttons
suranyami Feb 19, 2024
8f8d397
Add icon story
suranyami Feb 19, 2024
e8e9054
Somewhat improved table story
suranyami Feb 19, 2024
f7643c3
Haven't started modal yet
suranyami Feb 19, 2024
5cb042f
Add color to action button
suranyami Feb 19, 2024
7f70d30
add gettext dependency outside of phoenix
suranyami Feb 19, 2024
c53e4a4
Add credo
suranyami Feb 19, 2024
2e84832
Added missing `disabled` attr
suranyami Feb 19, 2024
1894a6f
refactor Colors.rgb to Colors.theme
suranyami Feb 21, 2024
0182c81
Add `align` attr to icons for `is-right`, `is-left`
suranyami Feb 21, 2024
26680ce
remove tailwind markup from `simple_form`
suranyami Feb 21, 2024
14d5e4b
First attempt at checkbox, select, text inputs
suranyami Feb 21, 2024
8c13cd8
credo config, coz it's a good idea
suranyami Feb 21, 2024
478f8b9
removed vendor/assets/heroicons
suranyami Feb 21, 2024
c194af4
Fixed module names `Components` -> `CoreComponents`
suranyami Feb 21, 2024
2f78b14
remove unneeded `x` icon in close button
suranyami Feb 21, 2024
b8f89c1
fix checkbox nesting of label/input to match bulma (and best practice…
suranyami Feb 21, 2024
410e444
replace tailwind classes in inputs, icons and errors with bulma class…
suranyami Feb 21, 2024
1310e7c
use BulmaComponents instead of built-in Tailwind CoreComponents for I…
suranyami Feb 21, 2024
b01335d
Add email input type
suranyami Feb 21, 2024
9d4c21b
first attempt at getting modal to work: it doesn't
suranyami Feb 21, 2024
3e3cfce
Use `BulmaComponents` instead of Tailwind-based `CoreComponents`
suranyami Feb 21, 2024
7af5f2b
Merge branch 'more-stories' of github.com:suranyami/bulma_components …
suranyami Feb 21, 2024
210561d
Merge pull request #4 from suranyami/more-stories
suranyami Feb 22, 2024
5b94d5b
fix class for checkbox
suranyami Feb 22, 2024
2f6e630
Merge pull request #5 from suranyami/checkbox
suranyami Feb 22, 2024
bca30bc
Add missing <div class="select"> element
suranyami Feb 22, 2024
24f821d
only add icon classes if we have an icon or an error
suranyami Feb 22, 2024
76d5835
Add error icons only if needed
suranyami Feb 22, 2024
881eb53
Add color attr to inputs
suranyami Feb 22, 2024
a31348c
Remove unneeded import
suranyami Feb 22, 2024
30d9b93
add custom class field to icons
suranyami Feb 22, 2024
5d53324
move label to correct nesting in generic input
suranyami Feb 22, 2024
9b60e54
add icon_color and icon_size attributes to input
suranyami Feb 22, 2024
4601dc2
make error_icon and icon usage consistent
suranyami Feb 22, 2024
6197c79
checkbox should use standard input_classes
suranyami Feb 22, 2024
c6ffd7c
add conditional rendering of error_icon
suranyami Feb 22, 2024
1b95819
input class is a bit fiddly: checkbox and textarea are different to t…
suranyami Feb 22, 2024
1159c9e
add icon_align_class and icon_size_class functions
suranyami Feb 22, 2024
6d26bd1
add more detailed input examples
suranyami Feb 22, 2024
a826367
add uuid for making unique identifiers in input story
suranyami Feb 22, 2024
dad9180
add aliases for the storybook webapp
suranyami Feb 22, 2024
1b7427a
Merge pull request #6 from suranyami/input-details
suranyami Feb 22, 2024
082fe85
remove unused attribute
suranyami Feb 22, 2024
4de7ff4
Merge branch 'main' of github.com:suranyami/bulma_components
suranyami Feb 22, 2024
010f146
update
suranyami Jul 24, 2024
1ec331f
update
suranyami Jul 24, 2024
1eeafd5
removed irrelevant text in navbar, footer
suranyami Sep 16, 2024
7b051db
adds components for flash and flash_group notifications
suranyami Oct 11, 2024
c519666
Commented out definition_list for now
suranyami Oct 11, 2024
c7d16be
adds __using__ function for easy inclusion of library
suranyami Oct 11, 2024
d458bd2
fixed @import of bulma from @use
suranyami Oct 11, 2024
3bb9147
removed no longer needed `font: $family-primary !important`
suranyami Oct 11, 2024
c98c19c
add `gettext` config
suranyami Oct 11, 2024
c63e587
deletes `core_components`
suranyami Oct 11, 2024
c6ba913
adds `use` include
suranyami Oct 11, 2024
a088a9b
Revert "deletes `core_components`"
suranyami Oct 11, 2024
d77dff4
mostly working, but list and modal broken with duplicate import
suranyami Oct 13, 2024
e3f5191
experiencing very strange behaviour
suranyami Oct 13, 2024
3f00466
adds header size variants
suranyami Oct 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
experiencing very strange behaviour
  • Loading branch information
suranyami committed Oct 13, 2024
commit e3f5191363ccd5cf6c0eae5c631ca90df784a4a0
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
erlang 27.0.1
elixir 1.17.2
erlang 27.1.1
elixir 1.17.3
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule BulmaComponents.MixProject do
use Mix.Project

@version "0.2.0"
@version "0.2.1"

@source_url "https://github.com/mcrumm/bulma_components"

Expand Down
19 changes: 9 additions & 10 deletions mix.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
%{
"bulma": {:git, "https://github.com/suranyami/bulma-elixir.git", "8bd27e77af3d731bc9ca047c3939fb0d0a663b32", []},
"bulma": {:git, "https://github.com/suranyami/bulma-elixir.git", "eedf5f376095cf912b6a25d96bfaa6c92097278a", []},
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},
"castore": {:hex, :castore, "1.0.8", "dedcf20ea746694647f883590b82d9e96014057aff1d44d03ec90f36a5c0dc6e", [:mix], [], "hexpm", "0b2b66d2ee742cb1d9cb8c8be3b43c3a70ee8651f37b75a8b982e036752983f1"},
"credo": {:hex, :credo, "1.7.7", "771445037228f763f9b2afd612b6aa2fd8e28432a95dbbc60d8e03ce71ba4446", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "8bc87496c9aaacdc3f90f01b7b0582467b69b4bd2441fe8aae3109d843cc2f2e"},
"castore": {:hex, :castore, "1.0.9", "5cc77474afadf02c7c017823f460a17daa7908e991b0cc917febc90e466a375c", [:mix], [], "hexpm", "5ea956504f1ba6f2b4eb707061d8e17870de2bee95fb59d512872c2ef06925e7"},
"credo": {:hex, :credo, "1.7.8", "9722ba1681e973025908d542ec3d95db5f9c549251ba5b028e251ad8c24ab8c5", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "cb9e87cc64f152f3ed1c6e325e7b894dea8f5ef2e41123bd864e3cd5ceb44968"},
"earmark_parser": {:hex, :earmark_parser, "1.4.41", "ab34711c9dc6212dda44fcd20ecb87ac3f3fce6f0ca2f28d4a00e4154f8cd599", [:mix], [], "hexpm", "a81a04c7e34b6617c2792e291b5a2e57ab316365c2644ddc553bb9ed863ebefa"},
"ex_doc": {:hex, :ex_doc, "0.34.2", "13eedf3844ccdce25cfd837b99bea9ad92c4e511233199440488d217c92571e8", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "5ce5f16b41208a50106afed3de6a2ed34f4acfd65715b82a0b84b49d995f95c1"},
"expo": {:hex, :expo, "0.5.2", "beba786aab8e3c5431813d7a44b828e7b922bfa431d6bfbada0904535342efe2", [:mix], [], "hexpm", "8c9bfa06ca017c9cb4020fabe980bc7fdb1aaec059fd004c2ab3bff03b1c599c"},
"file_system": {:hex, :file_system, "1.0.0", "b689cc7dcee665f774de94b5a832e578bd7963c8e637ef940cd44327db7de2cd", [:mix], [], "hexpm", "6752092d66aec5a10e662aefeed8ddb9531d79db0bc145bb8c40325ca1d8536d"},
"gettext": {:hex, :gettext, "0.24.0", "6f4d90ac5f3111673cbefc4ebee96fe5f37a114861ab8c7b7d5b30a1108ce6d8", [:mix], [{:expo, "~> 0.5.1", [hex: :expo, repo: "hexpm", optional: false]}], "hexpm", "bdf75cdfcbe9e4622dd18e034b227d77dd17f0f133853a1c73b97b3d6c770e8b"},
"heroicons": {:git, "https://github.com/tailwindlabs/heroicons.git", "88ab3a0d790e6a47404cba02800a6b25d2afae50", [tag: "v2.1.1", sparse: "optimized", depth: 1]},
"jason": {:hex, :jason, "1.4.3", "d3f984eeb96fe53b85d20e0b049f03e57d075b5acda3ac8d465c969a2536c17b", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "9a90e868927f7c777689baa16d86f4d0e086d968db5c05d917ccff6d443e58a3"},
"expo": {:hex, :expo, "1.1.0", "f7b9ed7fb5745ebe1eeedf3d6f29226c5dd52897ac67c0f8af62a07e661e5c75", [:mix], [], "hexpm", "fbadf93f4700fb44c331362177bdca9eeb8097e8b0ef525c9cc501cb9917c960"},
"file_system": {:hex, :file_system, "1.0.1", "79e8ceaddb0416f8b8cd02a0127bdbababe7bf4a23d2a395b983c1f8b3f73edd", [:mix], [], "hexpm", "4414d1f38863ddf9120720cd976fce5bdde8e91d8283353f0e31850fa89feb9e"},
"gettext": {:hex, :gettext, "0.26.1", "38e14ea5dcf962d1fc9f361b63ea07c0ce715a8ef1f9e82d3dfb8e67e0416715", [:mix], [{:expo, "~> 0.5.1 or ~> 1.0", [hex: :expo, repo: "hexpm", optional: false]}], "hexpm", "01ce56f188b9dc28780a52783d6529ad2bc7124f9744e571e1ee4ea88bf08734"},
"jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"},
"makeup": {:hex, :makeup, "1.1.2", "9ba8837913bdf757787e71c1581c21f9d2455f4dd04cfca785c70bbfff1a76a3", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "cce1566b81fbcbd21eca8ffe808f33b221f9eee2cbc7a1706fc3da9ff18e6cac"},
"makeup_elixir": {:hex, :makeup_elixir, "0.16.2", "627e84b8e8bf22e60a2579dad15067c755531fea049ae26ef1020cad58fe9578", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "41193978704763f6bbe6cc2758b84909e62984c7752b3784bd3c218bb341706b"},
"makeup_erlang": {:hex, :makeup_erlang, "1.0.1", "c7f58c120b2b5aa5fd80d540a89fdf866ed42f1f3994e4fe189abebeab610839", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "8a89a1eeccc2d798d6ea15496a6e4870b75e014d1af514b1b71fa33134f57814"},
Expand All @@ -22,7 +21,7 @@
"phoenix_template": {:hex, :phoenix_template, "1.0.4", "e2092c132f3b5e5b2d49c96695342eb36d0ed514c5b252a77048d5969330d639", [:mix], [{:phoenix_html, "~> 2.14.2 or ~> 3.0 or ~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}], "hexpm", "2c0c81f0e5c6753faf5cca2f229c9709919aba34fab866d3bc05060c9c444206"},
"plug": {:hex, :plug, "1.16.1", "40c74619c12f82736d2214557dedec2e9762029b2438d6d175c5074c933edc9d", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.3 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "a13ff6b9006b03d7e33874945b2755253841b238c34071ed85b0e86057f8cddc"},
"plug_crypto": {:hex, :plug_crypto, "2.1.0", "f44309c2b06d249c27c8d3f65cfe08158ade08418cf540fd4f72d4d6863abb7b", [:mix], [], "hexpm", "131216a4b030b8f8ce0f26038bc4421ae60e4bb95c5cf5395e1421437824c4fa"},
"telemetry": {:hex, :telemetry, "1.2.1", "68fdfe8d8f05a8428483a97d7aab2f268aaff24b49e0f599faa091f1d4e7f61c", [:rebar3], [], "hexpm", "dad9ce9d8effc621708f99eac538ef1cbe05d6a874dd741de2e689c47feafed5"},
"telemetry": {:hex, :telemetry, "1.3.0", "fedebbae410d715cf8e7062c96a1ef32ec22e764197f70cda73d82778d61e7a2", [:rebar3], [], "hexpm", "7015fc8919dbe63764f4b4b87a95b7c0996bd539e0d499be6ec9d7f3875b79e6"},
"websock": {:hex, :websock, "0.5.3", "2f69a6ebe810328555b6fe5c831a851f485e303a7c8ce6c5f675abeb20ebdadc", [:mix], [], "hexpm", "6105453d7fac22c712ad66fab1d45abdf049868f253cf719b625151460b8b453"},
"websock_adapter": {:hex, :websock_adapter, "0.5.6", "0437fe56e093fd4ac422de33bf8fc89f7bc1416a3f2d732d8b2c8fd54792fe60", [:mix], [{:bandit, ">= 0.6.0", [hex: :bandit, repo: "hexpm", optional: true]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.6", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "e04378d26b0af627817ae84c92083b7e97aca3121196679b73c73b99d0d133ea"},
"websock_adapter": {:hex, :websock_adapter, "0.5.7", "65fa74042530064ef0570b75b43f5c49bb8b235d6515671b3d250022cb8a1f9e", [:mix], [{:bandit, ">= 0.6.0", [hex: :bandit, repo: "hexpm", optional: true]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.6", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "d0f478ee64deddfec64b800673fd6e0c8888b079d9f3444dd96d2a98383bdbd1"},
}
2 changes: 2 additions & 0 deletions storybook/.tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
erlang 27.1.1
elixir 1.17.3
2 changes: 1 addition & 1 deletion storybook/lib/storybook_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ defmodule StorybookWeb do
# HTML escaping functionality
import Phoenix.HTML
# Core UI components and translation
# import StorybookWeb.CoreComponents
import StorybookWeb.CoreComponents
import StorybookWeb.Gettext

# Shortcut for generating JS commands
Expand Down
16 changes: 16 additions & 0 deletions storybook/lib/storybook_web/components/core_components.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
defmodule StorybookWeb.CoreComponents do
use Phoenix.Component
use Gettext, backend: StorybookWeb.Gettext

import BulmaComponents.BackLink
import BulmaComponents.Button
import BulmaComponents.Colors
import BulmaComponents.Flash
import BulmaComponents.Footer
import BulmaComponents.Form
import BulmaComponents.Header
import BulmaComponents.Hero
import BulmaComponents.Icon
import BulmaComponents.Input
import BulmaComponents.JsCommands
import BulmaComponents.List
import BulmaComponents.Modal
import BulmaComponents.Navbar
import BulmaComponents.Table
end
2 changes: 1 addition & 1 deletion storybook/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule Storybook.MixProject do
# Type `mix help deps` for examples and options.
defp deps do
[
{:bulma_components, path: "../"},
{:bulma_components, path: Path.expand("../", __DIR__)},
{:credo, "~> 1.7"},
{:dart_sass, "~> 0.7", runtime: Mix.env() == :dev},
{:dns_cluster, "~> 0.1.1"},
Expand Down
Loading