Skip to content

Commit

Permalink
feat: export tag for shadow npm compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe-gsilva committed Oct 4, 2024
1 parent bf83370 commit ff9a234
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/mockingbird/components/filedropdown.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

(def styles {})

(defnc filedropdown
(defnc ^:export filedropdown
[{:keys [class theme label
children]
:or {theme :mockingbird
Expand Down
2 changes: 1 addition & 1 deletion src/mockingbird/components/form.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(def styles
{})

(defnc form
(defnc ^:export form
[{:keys [class theme label
children]
:or {theme :mockingbird
Expand Down
2 changes: 1 addition & 1 deletion src/mockingbird/components/hero.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[mockingbird.components.button :refer [button]]
[mockingbird.components.image :refer [image]]))

(defnc hero []
(defnc ^:export hero []
(d/div {:class "group w-screen h-screen bg-gray-50 flex items-center justify-left pl-16 flex-row md:flex-row sm:flex-col md:h-screen sm:h-[calc(600px)]"}
(d/div {:class "flex justify-center lg:w-1/3 sm:w-full"}
($ image {:theme :mockingbird
Expand Down
2 changes: 1 addition & 1 deletion src/mockingbird/components/icon.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(def styles
{:mockingbird {}})

(defnc icon
(defnc ^:export icon
[{:keys [class theme label href
children]
:or {theme :mockingbird
Expand Down
2 changes: 1 addition & 1 deletion src/mockingbird/components/message.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
(d/br)
($ text {:message message :index (inc index)}))))))

(defnc message
(defnc ^:export message
[{:keys [image children author title message email]
:or {image ""
author "Team Mockingbird"}}]
Expand Down
2 changes: 1 addition & 1 deletion src/mockingbird/components/pfp.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:rounded "w-8 h-8 rounded-full opacity-100"
:loading "w-8 h-8 rounded-full opacity-30 animate-pulse"}})

(defnc pfp
(defnc ^:export pfp
[{:keys [class theme style src
alt size roundness
shadow margin padding
Expand Down
2 changes: 1 addition & 1 deletion src/mockingbird/components/selectdropdown.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
;; TODO
(def styles {})

(defnc selectdropdown
(defnc ^:export selectdropdown
[{:keys [class theme label
children]
:or {theme :mockingbird
Expand Down
2 changes: 1 addition & 1 deletion src/mockingbird/components/status.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[helix.dom :as d]
[refx.alpha :as refx]))

(defnc status-card
(defnc ^:export status-card
[{:keys [status loading? title
offline publishing published]
:or {status false}}]
Expand Down
17 changes: 0 additions & 17 deletions src/mockingbird/components/texteditor.cljs

This file was deleted.

0 comments on commit ff9a234

Please sign in to comment.