- Add header to file output of
mix dog.classes
.
- Fix deprecation warning in Phoenix LiveView 1.0.7-rc.7.
- Rename
Doggo.modifier_classes/1
toDoggo.classes/1
andmix dog.modifiers
tomix dog.classes
. The function and mix task return all base classes, nested classes, and additional customizable classes in addition to the modifier classes now. - Wrap inner block of
box
component intodiv
. - Add example styles for box and tag components.
- The
fab
component was removed. It might have made sense to have it as a separate component before components could be customized, but since the semantics are the same as a regular button, you can just make one withbuild_button(name: :fab, base_class: "fab")
if you need it.
- Ensure storybook module and components module are loaded before checking whether module exports function.
- Fix menu stories not compiling under certain circumstances.
- Declare
phoenix_storybook
as required dependency.
- Set up design tokens and CSS for demo application based on Barker. Styles for all components will be added in the future.
- Add documentation for the compile-time options of the builder macros.
- Add styles to demo application.
- Improve story and documentation.
- Mark components as
stable
.
- Add styles to demo application.
- Improve story and documentation.
- Mark component as
refining
.
- Add styles to demo application.
- Add story for icon sprite.
- Rename
label
attribute totext
. - Rename
label_placement
attribute totext_position
. - Change type of
label_placement
attribute from atom to string for consistency. - Use
before
andafter
as values fortext_position
instead ofleft
andright
to better apply to right-to-left languages. Rename default classes tohas-text-before
andhas-text-after
accordingly. - Make
text_position
classes configurable. - Add
right-to-left
variation group to icon story. - Set
sprite_url
as a compile time option. - Mark both components as
refining
.
- Improve story and documentation.
- Mark components as
refining
.
attributes
for modifier variations weren't set correctly when map was lacking key.
- Use private
field_description
,field_errors
, andlabel
components infield
component. Apply base class tofield_description
andfield_errors
components. - Use plain
div
with{base_class}-frame
class instead of nestedframe
component inimage
component. Thisdiv
does not receive theratio
attribute anymore. Apply the ratio with a CSS selector on the root div instead (e.g..image.is-4-by-3 > .image-frame
).
field_description
component.field_errors
component.label
component.
- Add
Doggo.Storybook
andmix dog.gen.stories
for generatingPhoenix.Storybook
stories for the configured components. The generated stories automatically render variation groups for all configured modifiers. - Add
Doggo.modifier_classes/1
. - Add
Doggo.modifier_class_name/2
.
- Replace all function components defined in
Doggo
with build macros inDoggo.Components
. This allows you to customize the modifier attributes, component names, base classes, and some other options at compile time. - Make modifier class name builder configurable.
- Rename build macro for former
input
component tofield
. - Configure
Gettext
module forfield
component (formerlyinput
) via compile-time option instead of global attribute. - Allow to set required text and required title attributes for input and label.
- Add
module
argument tomix dog.modifiers
that points to the module in which the Doggo components are configured. - Replace
placeholder
attribute withplaceholder_src
andplaceholder_content
attributes inavatar
component. - Replace
phx-feedback-for
attribute in favor ofPhoenix.Component.used_input?/1
. - Don't use
h2
forDoggo.page_header/1
sub title. - Nest
vertical_nav_nested
component into<div>
. - Rename
drawer-nav-title
class invertical_nav_nested
component to be based on configured component name (default:vertical-nav-nested-title
). - Better consistency, various improvements and optimizations in all components.
- Revise The component type classification.
- Add maturity levels for all components (experimental, developing, refining, stable).
- Require
live_view ~> 1.0.0-rc.6
.
- Remove
Phoenix.Storybook
stories bundled in thepriv
folder in favor ofmix dog.gen.stories
andDoggo.Storybook
. - Remove
Doggo.flash_group/1
.
- For all Doggo components you were using, call the corresponding
build
macros inDoggo.Components
in one of your modules and update your HEEx templates to call the generated functions instead of the ones from theDoggo
module. See readme for installation details. - The previous Doggo version instructed you to configure a separate Storybook
that reads the stories from the
priv
folder of the dependency. Remove that second Storybook and runmix dog.gen.stories -m [component-module] -o [storybook-folder] -a
to generate stories for the configured Doggo components in the primary Storybook. - If you use
mix dog.modifiers
in a script, add the--module
argument. - If you were setting the
gettext
attribute on theinput
component, pass thegettext_module
option toDoggo.Components.build_field/1
instead.
- New component:
Doggo.alert_dialog/1
. - New component:
Doggo.carousel/1
. - New component:
Doggo.combobox/1
. - New component:
Doggo.disclosure_button/1
. - New component:
Doggo.menu/1
. - New component:
Doggo.menu_bar/1
. - New component:
Doggo.menu_button/1
. - New component:
Doggo.menu_group/1
. - New component:
Doggo.menu_item/1
. - New component:
Doggo.menu_item_checkbox/1
. - New component:
Doggo.menu_item_radio_group/1
. - New component:
Doggo.radio_group/1
. - New component:
Doggo.split_pane/1
. - New component:
Doggo.tabs/1
. - New component:
Doggo.toolbar/1
. - New component:
Doggo.tree/1
. - Storybook page about modifier classes.
- Mix task
mix dog.modifiers
to list all modifier classes.
- Set
aria-invalid
andaria-errormessage
attributes inDoggo.input/1
component. - Use buttons instead of links in
Doggo.action_bar/1
. - Add
toolbar
role toDoggo.action_bar/1
. - Use
section
instead ofarticle
inDoggo.modal/1
. - Use
button
for close button inDoggo.modal/1
. - Add
dismissable
attribute toDoggo.modal/1
. - Remove
role
frombutton_link/1
, addclass
. - Rename
Doggo.drawer/1
slots toheader
,main
, andfooter
. - Rename
Doggo.drawer_nav/1
,Doggo.drawer_nav_nested/1
andDoggo.drawer_nav_section
toDoggo.vertical_nav/1
,Doggo.vertical_nav_nested/1
andDoggo.vertical_nav_section/1
. - Depend on
phoenix_storybook ~> 0.6.0
.
- New component:
Doggo.cluster/1
. - New component:
Doggo.toggle_button/1
.
- Significant changes to
Doggo.alert/1
andDoggo.flash_group/1
. - Require
id
attribute forDoggo.callout/1
. - Add
:normal
as size forDoggo.icon_sprite/1
. - Remove
:error
variant in favor of:danger
. - Add
<span>
around text placeholder forDoggo.avatar/1
. - Add base class to
Doggo.image/1
, addclass
attribute. - Rename
Doggo.frame/1
ratio classes fromx-to-x
tox-by-x
. - Add required
label
attribute toDoggo.navbar/1
. - Add
class
attribute to:item
slot ofDoggo.navbar_items/1
. - Add
required_title
attribute toDoggo.label/1
. - Change
description
attribute ofDoggo.field_description/1
to inner block. - Require
id
attribute forDoggo.drawer_section/1
. - Add
aria-labelledby
attribute toDoggo.drawer_section/1
. - Require
id
andlabel
attributes forDoggo.drawer_nav/1
. - Add
class
attribute toDoggo.drawer_nav
item slot. - Require
id
attribute forDoggo.drawer_nested_nav/1
. - Add
class
attribute toDoggo.drawer_nested_nav
item slot. - Add
close_label
attribute toDoggo.modal/1
.
- Box header not rendered if only action slot is used without banner or title.
- Aria label of breadcrumb component not overridable.
- Radio groups and checkbox groups always marked as required.
- Missing datalist option text.
- Allow event name as string in
on_click
attributes of app bar and steps.
- Faulty application of the
on_click
attribute inDoggo.steps/1
.
- New component:
Doggo.avatar/1
. - New component:
Doggo.badge/1
. - New component:
Doggo.bottom_navigation/1
. - New component:
Doggo.box/1
. - New component:
Doggo.callout/1
. - New component:
Doggo.fab/1
. - New component:
Doggo.field_group/1
. - New component:
Doggo.page_header/1
. - New component:
Doggo.skeleton/1
. - New component:
Doggo.steps/1
. - New component:
Doggo.tag/1
. - New component:
Doggo.tooltip/1
. - Allow to visually hide labels.
- Support autocomplete via
<datalist>
ininput/1
component. addon_left
andaddon_right
slots on theinput/1
component.gettext
attribute onDoggo.input/1
, giving you the choice to set the Gettext module locally.
- Ensure compatibility with Phoenix.HTML 4.0.
- New
tab_navigation/1
component. - New
frame/1
component. - New
image/1
component.
- Remove default value for
errors
attribute oninput
component.
- Added storybook stories for the remaining components.
- Errors passed as an attribute to the
input/1
component were overridden. - The
field_description/1
component had a stray<li>
tag.
- Added
priv/storybook
folder to package configuration.
- Added more storybook stories.
- Fixed attribute name for table rows.
- Storybook stories for more components and documentation improvements.
Initial release.