From 1eaca4d071a244c6166e71f87b30d12ab5b69fee Mon Sep 17 00:00:00 2001 From: Florian Arens <60519307+Flo0807@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:49:21 +0200 Subject: [PATCH 1/3] Format tailwind.config.js --- demo/assets/tailwind.config.js | 46 +++++++++++++++++----------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/demo/assets/tailwind.config.js b/demo/assets/tailwind.config.js index 65247eeb..f9e9742d 100644 --- a/demo/assets/tailwind.config.js +++ b/demo/assets/tailwind.config.js @@ -48,39 +48,39 @@ module.exports = { // See your `CoreComponents.icon/1` for more information. // plugin(function ({ matchComponents, theme }) { - let iconsDir = path.join(__dirname, "../deps/heroicons/optimized") - let values = {} - let icons = [ - ["", "/24/outline"], - ["-solid", "/24/solid"], - ["-mini", "/20/solid"], - ["-micro", "/16/solid"] + const iconsDir = path.join(__dirname, '../deps/heroicons/optimized') + const values = {} + const icons = [ + ['', '/24/outline'], + ['-solid', '/24/solid'], + ['-mini', '/20/solid'], + ['-micro', '/16/solid'] ] icons.forEach(([suffix, dir]) => { fs.readdirSync(path.join(iconsDir, dir)).forEach(file => { - let name = path.basename(file, ".svg") + suffix + const name = path.basename(file, '.svg') + suffix values[name] = { name, fullPath: path.join(iconsDir, dir, file) } }) }) matchComponents({ - "hero": ({ name, fullPath }) => { - let content = fs.readFileSync(fullPath).toString().replace(/\r?\n|\r/g, "") - let size = theme("spacing.6") - if (name.endsWith("-mini")) { - size = theme("spacing.5") - } else if (name.endsWith("-micro")) { - size = theme("spacing.4") + hero: ({ name, fullPath }) => { + const content = fs.readFileSync(fullPath).toString().replace(/\r?\n|\r/g, '') + let size = theme('spacing.6') + if (name.endsWith('-mini')) { + size = theme('spacing.5') + } else if (name.endsWith('-micro')) { + size = theme('spacing.4') } return { [`--hero-${name}`]: `url('data:image/svg+xml;utf8,${content}')`, - "-webkit-mask": `var(--hero-${name})`, - "mask": `var(--hero-${name})`, - "mask-repeat": "no-repeat", - "background-color": "currentColor", - "vertical-align": "middle", - "display": "inline-block", - "width": size, - "height": size + '-webkit-mask': `var(--hero-${name})`, + mask: `var(--hero-${name})`, + 'mask-repeat': 'no-repeat', + 'background-color': 'currentColor', + 'vertical-align': 'middle', + display: 'inline-block', + width: size, + height: size } } }, { values }) From 1242dff3555e5912bd46f8f3525caa199c0fb753 Mon Sep 17 00:00:00 2001 From: Florian Arens <60519307+Flo0807@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:56:37 +0200 Subject: [PATCH 2/3] Bump version in installation guide --- guides/get_started/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/get_started/installation.md b/guides/get_started/installation.md index c294fc71..bc6b3415 100644 --- a/guides/get_started/installation.md +++ b/guides/get_started/installation.md @@ -12,7 +12,7 @@ In your `mix.exs`: defp deps do [ ... - {:backpex, "~> 0.3.1"} + {:backpex, "~> 0.5.1"} ] end ``` From 0bbb5dfebaec6b00729f3b64a24d5db971c24a27 Mon Sep 17 00:00:00 2001 From: Florian Arens <60519307+Flo0807@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:59:59 +0200 Subject: [PATCH 3/3] Bump version in mix.exs --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index c5d76576..dd7309c0 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Backpex.MixProject do use Mix.Project - @version "0.5.0" + @version "0.5.1" @source_url "https://github.com/naymspace/backpex" def project do