├── .gitignore
├── CHANGELOG.md
├── README.adoc
├── project.clj
├── resources
└── public
│ ├── css
│ ├── semantic.min.css
│ └── themes
│ │ └── default
│ │ └── assets
│ │ ├── fonts
│ │ ├── icons.eot
│ │ ├── icons.otf
│ │ ├── icons.svg
│ │ ├── icons.ttf
│ │ ├── icons.woff
│ │ └── icons.woff2
│ │ └── images
│ │ └── flags.png
│ └── index.html
├── semantic-ui-wrappers-common
├── project.clj
└── src
│ └── main
│ └── fulcrologic
│ └── semantic_ui
│ ├── factory_helpers.cljs
│ └── icons.cljs
├── semantic-ui-wrappers-shadow
├── .gitignore
├── package.json
├── project.clj
├── resources
│ └── public
│ │ ├── css
│ │ ├── semantic.min.css
│ │ └── themes
│ │ │ └── default
│ │ │ └── assets
│ │ │ ├── fonts
│ │ │ ├── icons.eot
│ │ │ ├── icons.otf
│ │ │ ├── icons.svg
│ │ │ ├── icons.ttf
│ │ │ ├── icons.woff
│ │ │ └── icons.woff2
│ │ │ └── images
│ │ │ └── flags.png
│ │ └── index.html
├── shadow-cljs.edn
└── src
│ ├── main
│ └── fulcrologic
│ │ └── semantic_ui
│ │ ├── addons
│ │ ├── confirm
│ │ │ └── ui_confirm.cljs
│ │ ├── mountnode
│ │ │ └── ui_mount_node.cljs
│ │ ├── pagination
│ │ │ ├── ui_pagination.cljs
│ │ │ └── ui_pagination_item.cljs
│ │ ├── portal
│ │ │ ├── ui_portal.cljs
│ │ │ └── ui_portal_inner.cljs
│ │ ├── radio
│ │ │ └── ui_radio.cljs
│ │ ├── ref
│ │ │ └── ui_ref.cljs
│ │ ├── responsive
│ │ │ └── ui_responsive.cljs
│ │ ├── select
│ │ │ └── ui_select.cljs
│ │ ├── textarea
│ │ │ └── ui_text_area.cljs
│ │ └── transitionableportal
│ │ │ └── ui_transitionable_portal.cljs
│ │ ├── behaviors
│ │ └── visibility
│ │ │ └── ui_visibility.cljs
│ │ ├── collections
│ │ ├── breadcrumb
│ │ │ ├── ui_breadcrumb.cljs
│ │ │ ├── ui_breadcrumb_divider.cljs
│ │ │ └── ui_breadcrumb_section.cljs
│ │ ├── form
│ │ │ ├── ui_form.cljs
│ │ │ ├── ui_form_button.cljs
│ │ │ ├── ui_form_checkbox.cljs
│ │ │ ├── ui_form_dropdown.cljs
│ │ │ ├── ui_form_field.cljs
│ │ │ ├── ui_form_group.cljs
│ │ │ ├── ui_form_input.cljs
│ │ │ ├── ui_form_radio.cljs
│ │ │ ├── ui_form_select.cljs
│ │ │ └── ui_form_text_area.cljs
│ │ ├── grid
│ │ │ ├── ui_grid.cljs
│ │ │ ├── ui_grid_column.cljs
│ │ │ └── ui_grid_row.cljs
│ │ ├── menu
│ │ │ ├── ui_menu.cljs
│ │ │ ├── ui_menu_header.cljs
│ │ │ ├── ui_menu_item.cljs
│ │ │ └── ui_menu_menu.cljs
│ │ ├── message
│ │ │ ├── ui_message.cljs
│ │ │ ├── ui_message_content.cljs
│ │ │ ├── ui_message_header.cljs
│ │ │ ├── ui_message_item.cljs
│ │ │ └── ui_message_list.cljs
│ │ └── table
│ │ │ ├── ui_table.cljs
│ │ │ ├── ui_table_body.cljs
│ │ │ ├── ui_table_cell.cljs
│ │ │ ├── ui_table_footer.cljs
│ │ │ ├── ui_table_header.cljs
│ │ │ ├── ui_table_header_cell.cljs
│ │ │ └── ui_table_row.cljs
│ │ ├── elements
│ │ ├── button
│ │ │ ├── ui_button.cljs
│ │ │ ├── ui_button_content.cljs
│ │ │ ├── ui_button_group.cljs
│ │ │ └── ui_button_or.cljs
│ │ ├── container
│ │ │ └── ui_container.cljs
│ │ ├── divider
│ │ │ └── ui_divider.cljs
│ │ ├── flag
│ │ │ └── ui_flag.cljs
│ │ ├── header
│ │ │ ├── ui_header.cljs
│ │ │ ├── ui_header_content.cljs
│ │ │ └── ui_header_subheader.cljs
│ │ ├── icon
│ │ │ ├── ui_icon.cljs
│ │ │ └── ui_icon_group.cljs
│ │ ├── image
│ │ │ ├── ui_image.cljs
│ │ │ └── ui_image_group.cljs
│ │ ├── input
│ │ │ └── ui_input.cljs
│ │ ├── label
│ │ │ ├── ui_label.cljs
│ │ │ ├── ui_label_detail.cljs
│ │ │ └── ui_label_group.cljs
│ │ ├── list
│ │ │ ├── ui_list.cljs
│ │ │ ├── ui_list_content.cljs
│ │ │ ├── ui_list_description.cljs
│ │ │ ├── ui_list_header.cljs
│ │ │ ├── ui_list_icon.cljs
│ │ │ ├── ui_list_item.cljs
│ │ │ └── ui_list_list.cljs
│ │ ├── loader
│ │ │ └── ui_loader.cljs
│ │ ├── placeholder
│ │ │ ├── ui_placeholder.cljs
│ │ │ ├── ui_placeholder_header.cljs
│ │ │ ├── ui_placeholder_image.cljs
│ │ │ ├── ui_placeholder_line.cljs
│ │ │ └── ui_placeholder_paragraph.cljs
│ │ ├── rail
│ │ │ └── ui_rail.cljs
│ │ ├── reveal
│ │ │ ├── ui_reveal.cljs
│ │ │ └── ui_reveal_content.cljs
│ │ ├── segment
│ │ │ ├── ui_segment.cljs
│ │ │ ├── ui_segment_group.cljs
│ │ │ └── ui_segment_inline.cljs
│ │ └── step
│ │ │ ├── ui_step.cljs
│ │ │ ├── ui_step_content.cljs
│ │ │ ├── ui_step_description.cljs
│ │ │ ├── ui_step_group.cljs
│ │ │ └── ui_step_title.cljs
│ │ ├── modules
│ │ ├── accordion
│ │ │ ├── ui_accordion.cljs
│ │ │ ├── ui_accordion_accordion.cljs
│ │ │ ├── ui_accordion_content.cljs
│ │ │ ├── ui_accordion_panel.cljs
│ │ │ └── ui_accordion_title.cljs
│ │ ├── checkbox
│ │ │ └── ui_checkbox.cljs
│ │ ├── dimmer
│ │ │ ├── ui_dimmer.cljs
│ │ │ ├── ui_dimmer_dimmable.cljs
│ │ │ └── ui_dimmer_inner.cljs
│ │ ├── dropdown
│ │ │ ├── ui_dropdown.cljs
│ │ │ ├── ui_dropdown_divider.cljs
│ │ │ ├── ui_dropdown_header.cljs
│ │ │ ├── ui_dropdown_item.cljs
│ │ │ ├── ui_dropdown_menu.cljs
│ │ │ └── ui_dropdown_search_input.cljs
│ │ ├── embed
│ │ │ └── ui_embed.cljs
│ │ ├── modal
│ │ │ ├── ui_modal.cljs
│ │ │ ├── ui_modal_actions.cljs
│ │ │ ├── ui_modal_content.cljs
│ │ │ ├── ui_modal_description.cljs
│ │ │ └── ui_modal_header.cljs
│ │ ├── popup
│ │ │ ├── ui_popup.cljs
│ │ │ ├── ui_popup_content.cljs
│ │ │ └── ui_popup_header.cljs
│ │ ├── progress
│ │ │ └── ui_progress.cljs
│ │ ├── rating
│ │ │ ├── ui_rating.cljs
│ │ │ └── ui_rating_icon.cljs
│ │ ├── search
│ │ │ ├── ui_search.cljs
│ │ │ ├── ui_search_category.cljs
│ │ │ ├── ui_search_result.cljs
│ │ │ └── ui_search_results.cljs
│ │ ├── sidebar
│ │ │ ├── ui_sidebar.cljs
│ │ │ ├── ui_sidebar_pushable.cljs
│ │ │ └── ui_sidebar_pusher.cljs
│ │ ├── sticky
│ │ │ └── ui_sticky.cljs
│ │ ├── tab
│ │ │ ├── ui_tab.cljs
│ │ │ └── ui_tab_pane.cljs
│ │ └── transition
│ │ │ ├── ui_transition.cljs
│ │ │ └── ui_transition_group.cljs
│ │ └── views
│ │ ├── advertisement
│ │ └── ui_advertisement.cljs
│ │ ├── card
│ │ ├── ui_card.cljs
│ │ ├── ui_card_content.cljs
│ │ ├── ui_card_description.cljs
│ │ ├── ui_card_group.cljs
│ │ ├── ui_card_header.cljs
│ │ └── ui_card_meta.cljs
│ │ ├── comment
│ │ ├── ui_comment.cljs
│ │ ├── ui_comment_action.cljs
│ │ ├── ui_comment_actions.cljs
│ │ ├── ui_comment_author.cljs
│ │ ├── ui_comment_avatar.cljs
│ │ ├── ui_comment_content.cljs
│ │ ├── ui_comment_group.cljs
│ │ ├── ui_comment_metadata.cljs
│ │ └── ui_comment_text.cljs
│ │ ├── feed
│ │ ├── ui_feed.cljs
│ │ ├── ui_feed_content.cljs
│ │ ├── ui_feed_date.cljs
│ │ ├── ui_feed_event.cljs
│ │ ├── ui_feed_extra.cljs
│ │ ├── ui_feed_label.cljs
│ │ ├── ui_feed_like.cljs
│ │ ├── ui_feed_meta.cljs
│ │ ├── ui_feed_summary.cljs
│ │ └── ui_feed_user.cljs
│ │ ├── item
│ │ ├── ui_item.cljs
│ │ ├── ui_item_content.cljs
│ │ ├── ui_item_description.cljs
│ │ ├── ui_item_extra.cljs
│ │ ├── ui_item_group.cljs
│ │ ├── ui_item_header.cljs
│ │ ├── ui_item_image.cljs
│ │ └── ui_item_meta.cljs
│ │ └── statistic
│ │ ├── ui_statistic.cljs
│ │ ├── ui_statistic_group.cljs
│ │ ├── ui_statistic_label.cljs
│ │ └── ui_statistic_value.cljs
│ └── workspaces
│ └── fulcrologic
│ └── semantic_ui
│ ├── workspaces
│ ├── button.cljs
│ ├── dropdown.cljs
│ ├── form.cljs
│ ├── icon.cljs
│ └── input.cljs
│ └── workspaces_main.cljs
├── semantic-ui-wrappers
├── .gitignore
├── project.clj
├── resources
│ └── public
│ │ ├── css
│ │ ├── semantic.min.css
│ │ └── themes
│ │ │ └── default
│ │ │ └── assets
│ │ │ ├── fonts
│ │ │ ├── icons.eot
│ │ │ ├── icons.otf
│ │ │ ├── icons.svg
│ │ │ ├── icons.ttf
│ │ │ ├── icons.woff
│ │ │ └── icons.woff2
│ │ │ └── images
│ │ │ └── flags.png
│ │ └── index.html
├── script
│ └── figwheel.clj
└── src
│ ├── cards
│ └── fulcrologic
│ │ └── semantic_ui
│ │ ├── cards.cljs
│ │ └── cards
│ │ ├── button.cljs
│ │ ├── dropdown.cljs
│ │ ├── form.cljs
│ │ ├── icon.cljs
│ │ └── input.cljs
│ ├── dev
│ └── user.clj
│ └── main
│ └── fulcrologic
│ └── semantic_ui
│ └── factories.cljs
└── src
└── dev
└── user.clj
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | *.iml
3 | .nrepl-port
4 | figwheel_server.log
5 | resources/public/js
6 | target
7 | componentInfo
8 | pom.xml
9 | pom.xml.asc
10 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | 2.0.4
2 | -----
3 | - Updated version and factories
4 |
5 | 2.0.3
6 | -----
7 | - Unwrapped dropdown and search dropdown so events work right
8 |
9 | 2.0.2
10 | -----
11 | - Fixed dropdown not recognizing children
12 |
13 | 2.0.0
14 | -----
15 | - Updated to latest versions.
16 | - Factories get regenerated from docs, so there can be breakage.
17 | - Removed support for cljc files, since they just simply did nothing anyhow.
18 | - Added wrapped logic to inputs to prevent cursor jumps
19 | - Fulcro is now really a hard dependency, as we're leveraging it to do the input wrapping.
20 |
21 | 1.0.0
22 | -----
23 | - Initial release
24 |
--------------------------------------------------------------------------------
/project.clj:
--------------------------------------------------------------------------------
1 | (defproject fulcrologic/semantic-ui-react-wrappers-root "2.0.5-SNAPSHOT"
2 | :plugins [[lein-modules "0.3.11"]]
3 |
4 | :description "Semantic UI React Wrappers"
5 | :license {:name "MIT" :url "https://opensource.org/licenses/MIT"}
6 | :url "https://github.com/fulcrologic/semantic-ui-wrapper"
7 | :min-lein-version "2.7.0"
8 |
9 | :dependencies [[org.clojure/clojure "_" :scope "provided"]
10 | [fulcrologic/fulcro "_" :scope "provided"]]
11 |
12 | :profiles {:dev {:source-paths ["src/dev"]
13 | :jvm-opts ["-XX:-OmitStackTraceInFastThrow"]
14 | :dependencies [[binaryage/devtools "0.9.10"]
15 | [org.clojure/data.json "0.2.6"]]}}
16 |
17 | :modules {:versions {org.clojure/clojure "1.9.0"
18 | fulcrologic/fulcro "2.8.0-SNAPSHOT"}})
19 |
20 |
--------------------------------------------------------------------------------
/resources/public/css/themes/default/assets/fonts/icons.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/resources/public/css/themes/default/assets/fonts/icons.eot
--------------------------------------------------------------------------------
/resources/public/css/themes/default/assets/fonts/icons.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/resources/public/css/themes/default/assets/fonts/icons.otf
--------------------------------------------------------------------------------
/resources/public/css/themes/default/assets/fonts/icons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/resources/public/css/themes/default/assets/fonts/icons.ttf
--------------------------------------------------------------------------------
/resources/public/css/themes/default/assets/fonts/icons.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/resources/public/css/themes/default/assets/fonts/icons.woff
--------------------------------------------------------------------------------
/resources/public/css/themes/default/assets/fonts/icons.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/resources/public/css/themes/default/assets/fonts/icons.woff2
--------------------------------------------------------------------------------
/resources/public/css/themes/default/assets/images/flags.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/resources/public/css/themes/default/assets/images/flags.png
--------------------------------------------------------------------------------
/resources/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Template Devcards
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-common/project.clj:
--------------------------------------------------------------------------------
1 | (defproject fulcrologic/semantic-ui-react-wrappers-common "2.0.5-SNAPSHOT"
2 | :plugins [[lein-modules "0.3.11"]]
3 |
4 | :description "Semantic UI React Wrappers - Common components"
5 | :license {:name "MIT" :url "https://opensource.org/licenses/MIT"}
6 | :url "https://github.com/fulcrologic/semantic-ui-wrapper"
7 | :min-lein-version "2.7.0"
8 |
9 | :dependencies [[org.clojure/clojure "_" :scope "provided"]
10 | [fulcrologic/fulcro "_" :scope "provided"]]
11 |
12 | :source-paths ["src/main"]
13 | :clean-targets ^{:protect false} ["target" "resources/public/js"]
14 | :jar-exclusions [#"public/.*"]
15 |
16 | :profiles {:jar {}
17 | :dev {:source-paths ["src/main"]
18 | :jvm-opts ["-XX:-OmitStackTraceInFastThrow"]
19 | :dependencies [[binaryage/devtools "0.9.10"]
20 | [org.clojure/clojurescript "1.10.439"]
21 | [org.clojure/tools.namespace "0.3.0-alpha4"]]}})
22 |
23 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-common/src/main/fulcrologic/semantic_ui/factory_helpers.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.factory-helpers
2 | (:require [fulcro.client.dom :as dom]
3 | [goog.object :as gobj]))
4 |
5 | (defn factory-apply
6 | [class]
7 | (fn [props & children]
8 | (apply js/React.createElement class (clj->js props) children)))
9 |
10 | (defn wrapped-factory-apply
11 | "Returns a factory that wraps the given class as an input. Requires that the target item support `:value` as a prop."
12 | [class]
13 | (let [factory (dom/wrap-form-element class)]
14 | (fn [props & children]
15 | (apply factory (clj->js props) children))))
16 |
17 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | *.iml
3 | .nrepl-port
4 | resources/public/js
5 | target
6 | pom.xml
7 | pom.xml.asc
8 | .shadow-cljs
9 | node_modules
10 | package-lock.json
11 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "semantic-ui-wrapper",
3 | "version": "1.0.0",
4 | "main": "index.js",
5 | "license": "MIT",
6 | "dependencies": {
7 | "highlight.js": "^9.13.1",
8 | "react-grid-layout": "^0.16.6",
9 | "react-icons": "^2.2.7",
10 | "reakit": "^0.11.2",
11 | "semantic-ui-react": "^0.84.0"
12 | },
13 | "devDependencies": {
14 | "react": "^16.3.0",
15 | "react-dom": "^16.3.0",
16 | "shadow-cljs": "^2.7.9"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/project.clj:
--------------------------------------------------------------------------------
1 | (defproject fulcrologic/semantic-ui-react-wrappers-shadow "2.0.5-SNAPSHOT"
2 | :plugins [[lein-modules "0.3.11"]]
3 |
4 | :description "Semantic UI React Wrappers - Optimised for shadow-cljs"
5 | :license {:name "MIT" :url "https://opensource.org/licenses/MIT"}
6 | :url "https://github.com/fulcrologic/semantic-ui-wrapper"
7 | :min-lein-version "2.7.0"
8 |
9 | :dependencies [[org.clojure/clojure "_" :scope "provided"]
10 | [fulcrologic/fulcro "_" :scope "provided"]
11 | [fulcrologic/semantic-ui-react-wrappers-common :version]]
12 |
13 | :source-paths ["src/main"]
14 | :clean-targets ^{:protect false} ["target" "resources/public/js"]
15 | :jar-exclusions [#"public/.*"]
16 |
17 | :profiles {:jar {}
18 | :dev {:source-paths ["src/main" "src/workspaces" "src/dev"]
19 | :jvm-opts ["-XX:-OmitStackTraceInFastThrow"]
20 | :dependencies [[thheller/shadow-cljs "2.7.15"]
21 | [org.clojure/tools.namespace "0.3.0-alpha4"]
22 | [org.clojure/tools.nrepl "0.2.13"]
23 | [nubank/workspaces "1.0.2"]
24 | [cider/piggieback "0.3.10"]]
25 | :repl-options {:init-ns user
26 | :nrepl-middleware [cider.piggieback/wrap-cljs-repl]}}})
27 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/resources/public/css/themes/default/assets/fonts/icons.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/resources/public/css/themes/default/assets/fonts/icons.eot
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/resources/public/css/themes/default/assets/fonts/icons.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/resources/public/css/themes/default/assets/fonts/icons.otf
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/resources/public/css/themes/default/assets/fonts/icons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/resources/public/css/themes/default/assets/fonts/icons.ttf
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/resources/public/css/themes/default/assets/fonts/icons.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/resources/public/css/themes/default/assets/fonts/icons.woff
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/resources/public/css/themes/default/assets/fonts/icons.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/resources/public/css/themes/default/assets/fonts/icons.woff2
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/resources/public/css/themes/default/assets/images/flags.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/resources/public/css/themes/default/assets/images/flags.png
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/resources/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Semantic-UI-React Workspaces
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/shadow-cljs.edn:
--------------------------------------------------------------------------------
1 | {:lein {:profile "dev"}
2 | :nrepl {:port 9000}
3 | :builds {:workspaces {:target :browser
4 | :output-dir "resources/public/js/workspaces"
5 | :asset-path "/js/workspaces"
6 | :devtools {:preloads [fulcro.inspect.preload]
7 | :http-root "resources/public"
8 | :http-port 8023
9 | :http-resource-root "."}
10 | :modules {:main {:entries [fulcrologic.semantic-ui.workspaces-main]}}}}}
11 |
12 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/addons/confirm/ui_confirm.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.addons.confirm.ui-confirm
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/addons/Confirm/Confirm" :default Confirm]))
5 |
6 | (def ui-confirm
7 | "A Confirm modal gives the user a choice to confirm or cancel an action/
8 |
9 | Props:
10 | - cancelButton (custom): The cancel button text.
11 | - confirmButton (custom): The OK button text.
12 | - content (custom): The ModalContent text.
13 | - header (custom): The ModalHeader text.
14 | - onCancel (func): Called when the Modal is closed without clicking confirm.
15 | - onConfirm (func): Called when the OK button is clicked.
16 | - open (bool): Whether or not the modal is visible.
17 | - size (enum): A Confirm can vary in size (mini, tiny, small, large, fullscreen)"
18 | (h/factory-apply Confirm))
19 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/addons/mountnode/ui_mount_node.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.addons.mountnode.ui-mount-node
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/addons/MountNode/MountNode" :default MountNode]))
5 |
6 | (def ui-mount-node
7 | "A component that allows to manage classNames on a DOM node in declarative manner.
8 |
9 | Props:
10 | - className (string): Additional classes.
11 | - node (custom): The DOM node where we will apply class names. Defaults to document.body."
12 | (h/factory-apply MountNode))
13 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/addons/pagination/ui_pagination.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.addons.pagination.ui-pagination
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/addons/Pagination/Pagination" :default Pagination]))
5 |
6 | (def ui-pagination
7 | "A component to render a pagination.
8 |
9 | Props:
10 | - activePage (number|string): Index of the currently active page. ()
11 | - aria-label (string): A pagination item can have an aria label.
12 | - boundaryRange (number|string): Number of always visible pages at the beginning and end. ()
13 | - defaultActivePage (number|string): Initial activePage value. ()
14 | - disabled (bool): A pagination can be disabled.
15 | - ellipsisItem (custom): A shorthand for PaginationItem.
16 | - firstItem (custom): A shorthand for PaginationItem.
17 | - lastItem (custom): A shorthand for PaginationItem.
18 | - nextItem (custom): A shorthand for PaginationItem.
19 | - onPageChange (func): Called on change of an active page.
20 | - pageItem (custom): A shorthand for PaginationItem.
21 | - prevItem (custom): A shorthand for PaginationItem.
22 | - siblingRange (number|string): Number of always visible pages before and after the current one. ()
23 | - totalPages (number|string): Total number of pages. ()"
24 | (h/factory-apply Pagination))
25 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/addons/pagination/ui_pagination_item.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.addons.pagination.ui-pagination-item
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/addons/Pagination/PaginationItem" :default PaginationItem]))
5 |
6 | (def ui-pagination-item
7 | "An item of a pagination.
8 |
9 | Props:
10 | - active (bool): A pagination item can be active.
11 | - disabled (bool): A pagination item can be disabled.
12 | - onClick (func): Called on click.
13 | - onKeyDown (func): Called on key down.
14 | - type (enum): A pagination should have a type. (ellipsisItem, firstItem, prevItem, pageItem, nextItem, lastItem)"
15 | (h/factory-apply PaginationItem))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/addons/portal/ui_portal.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.addons.portal.ui-portal
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/addons/Portal/Portal" :default Portal]))
5 |
6 | (def ui-portal
7 | "A component that allows you to render children outside their parent.
8 |
9 | Props:
10 | - children (node): Primary content.
11 | - closeOnDocumentClick (bool): Controls whether or not the portal should close when the document is clicked.
12 | - closeOnEscape (bool): Controls whether or not the portal should close when escape is pressed is displayed.
13 | - closeOnPortalMouseLeave (bool): Controls whether or not the portal should close when mousing out of the portal.
14 | - closeOnTriggerBlur (bool): Controls whether or not the portal should close on blur of the trigger.
15 | - closeOnTriggerClick (bool): Controls whether or not the portal should close on click of the trigger.
16 | - closeOnTriggerMouseLeave (bool): Controls whether or not the portal should close when mousing out of the trigger.
17 | - defaultOpen (bool): Initial value of open.
18 | - eventPool (string): Event pool namespace that is used to handle component events
19 | - mountNode (any): The node where the portal should mount.
20 | - mouseEnterDelay (number): Milliseconds to wait before opening on mouse over
21 | - mouseLeaveDelay (number): Milliseconds to wait before closing on mouse leave
22 | - onClose (func): Called when a close event happens
23 | - onMount (func): Called when the portal is mounted on the DOM.
24 | - onOpen (func): Called when an open event happens
25 | - onUnmount (func): Called when the portal is unmounted from the DOM.
26 | - open (bool): Controls whether or not the portal is displayed.
27 | - openOnTriggerClick (bool): Controls whether or not the portal should open when the trigger is clicked.
28 | - openOnTriggerFocus (bool): Controls whether or not the portal should open on focus of the trigger.
29 | - openOnTriggerMouseEnter (bool): Controls whether or not the portal should open when mousing over the trigger.
30 | - trigger (node): Element to be rendered in-place where the portal is defined.
31 | - triggerRef (func|object): Called with a ref to the trigger node. ()"
32 | (h/factory-apply Portal))
33 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/addons/portal/ui_portal_inner.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.addons.portal.ui-portal-inner
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/addons/Portal/PortalInner" :default PortalInner]))
5 |
6 | (def ui-portal-inner
7 | "An inner component that allows you to render children outside their parent.
8 |
9 | Props:
10 | - children (node): Primary content.
11 | - mountNode (any): The node where the portal should mount.
12 | - onMount (func): Called when the portal is mounted on the DOM
13 | - onUnmount (func): Called when the portal is unmounted from the DOM"
14 | (h/factory-apply PortalInner))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/addons/radio/ui_radio.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.addons.radio.ui-radio
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/addons/Radio/Radio" :default Radio]))
5 |
6 | (def ui-radio
7 | "A Radio is sugar for .
8 | Useful for exclusive groups of sliders or toggles.
9 |
10 | Props:
11 | - slider (custom): Format to emphasize the current selection state.
12 | - toggle (custom): Format to show an on or off choice.
13 | - type (custom): HTML input type, either checkbox or radio."
14 | (h/factory-apply Radio))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/addons/ref/ui_ref.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.addons.ref.ui-ref
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/addons/Ref/Ref" :default Ref]))
5 |
6 | (def ui-ref
7 | "This component exposes a callback prop that always returns the DOM node of both functional and class component
8 | children.
9 |
10 | Props:
11 | - children (element): Primary content.
12 | - innerRef (func|object): Called when a child component will be mounted or updated. ()"
13 | (h/factory-apply Ref))
14 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/addons/responsive/ui_responsive.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.addons.responsive.ui-responsive
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/addons/Responsive/Responsive" :default Responsive]))
5 |
6 | (def ui-responsive
7 | "Responsive can control visibility of content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - fireOnMount (bool): Fires callbacks immediately after mount.
13 | - getWidth (func): Called to get width of screen. Defaults to using `window.innerWidth` when in a browser;
14 | - maxWidth (number|string): The maximum width at which content will be displayed. ()
15 | - minWidth (number|string): The minimum width at which content will be displayed. ()
16 | - onUpdate (func): Called on update."
17 | (h/factory-apply Responsive))
18 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/addons/select/ui_select.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.addons.select.ui-select
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/addons/Select/Select" :default Select]))
5 |
6 | (def ui-select
7 | "A Select is sugar for .
8 |
9 | Props:
10 | - options (arrayOf): Array of Dropdown.Item props e.g. `{ text: '', value: '' }` ([:name \"shape\"], [:value \"Dropdown.Item.propTypes\"], [:computed true])"
11 | (h/factory-apply Select))
12 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/addons/textarea/ui_text_area.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.addons.textarea.ui-text-area
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/addons/TextArea/TextArea" :default TextArea]))
5 |
6 | (def ui-text-area
7 | "A TextArea can be used to allow for extended user input.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - autoHeight (bool): Indicates whether height of the textarea fits the content or not.
12 | - onChange (func): Called on change.
13 | - onInput (func): Called on input.
14 | - rows (number|string): Indicates row count for a TextArea. ()
15 | - style (object): Custom TextArea style.
16 | - value (number|string): The value of the textarea. ()"
17 | (h/wrapped-factory-apply TextArea))
18 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/addons/transitionableportal/ui_transitionable_portal.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.addons.transitionableportal.ui-transitionable-portal
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/addons/TransitionablePortal/TransitionablePortal" :default TransitionablePortal]))
5 |
6 | (def ui-transitionable-portal
7 | "A sugar for `Portal` and `Transition`.
8 |
9 | Props:
10 | - children (node): Primary content.
11 | - onClose (func): Called when a close event happens.
12 | - onHide (func): Callback on each transition that changes visibility to hidden.
13 | - onOpen (func): Called when an open event happens.
14 | - onStart (func): Callback on animation start.
15 | - open (bool): Controls whether or not the portal is displayed.
16 | - transition (object): Transition props."
17 | (h/factory-apply TransitionablePortal))
18 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/behaviors/visibility/ui_visibility.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.behaviors.visibility.ui-visibility
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/behaviors/Visibility/Visibility" :default Visibility]))
5 |
6 | (def ui-visibility
7 | "Visibility provides a set of callbacks for when a content appears in the viewport.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - context (object): Context which visibility should attach onscroll events.
13 | - continuous (bool): When set to true a callback will occur anytime an element passes a condition not just immediately after the
14 | - fireOnMount (bool): Fires callbacks immediately after mount.
15 | - offset (number|string|arrayOf): Value that context should be adjusted in pixels. Useful for making content appear below content fixed to the ()
16 | - onBottomPassed (func): Element's bottom edge has passed top of screen.
17 | - onBottomPassedReverse (func): Element's bottom edge has not passed top of screen.
18 | - onBottomVisible (func): Element's bottom edge has passed bottom of screen
19 | - onBottomVisibleReverse (func): Element's bottom edge has not passed bottom of screen.
20 | - onOffScreen (func): Element is not visible on the screen.
21 | - onOnScreen (func): Element is visible on the screen.
22 | - onPassed (object): Element is not visible on the screen.
23 | - onPassing (func): Any part of an element is visible on screen.
24 | - onPassingReverse (func): Element's top has not passed top of screen but bottom has.
25 | - onTopPassed (func): Element's top edge has passed top of the screen.
26 | - onTopPassedReverse (func): Element's top edge has not passed top of the screen.
27 | - onTopVisible (func): Element's top edge has passed bottom of screen.
28 | - onTopVisibleReverse (func): Element's top edge has not passed bottom of screen.
29 | - onUpdate (func): Element's top edge has passed bottom of screen.
30 | - once (bool): When set to false a callback will occur each time an element passes the threshold for a condition.
31 | - updateOn (enum): Allows to choose the mode of the position calculations: (events, repaint)"
32 | (h/factory-apply Visibility))
33 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/breadcrumb/ui_breadcrumb.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.breadcrumb.ui-breadcrumb
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Breadcrumb/Breadcrumb" :default Breadcrumb]))
5 |
6 | (def ui-breadcrumb
7 | "A breadcrumb is used to show hierarchy between content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - divider (custom): Shorthand for primary content of the Breadcrumb.Divider. ()
14 | - icon (custom): For use with the sections prop. Render as an `Icon` component with `divider` class instead of a `div` in ()
15 | - sections (custom): Shorthand array of props for Breadcrumb.Section.
16 | - size (enum): Size of Breadcrumb. (mini, tiny, small, large, big, huge, massive)"
17 | (h/factory-apply Breadcrumb))
18 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/breadcrumb/ui_breadcrumb_divider.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.breadcrumb.ui-breadcrumb-divider
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Breadcrumb/BreadcrumbDivider" :default BreadcrumbDivider]))
5 |
6 | (def ui-breadcrumb-divider
7 | "A divider sub-component for Breadcrumb component.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - icon (custom): Render as an `Icon` component with `divider` class instead of a `div`."
15 | (h/factory-apply BreadcrumbDivider))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/breadcrumb/ui_breadcrumb_section.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.breadcrumb.ui-breadcrumb-section
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Breadcrumb/BreadcrumbSection" :default BreadcrumbSection]))
5 |
6 | (def ui-breadcrumb-section
7 | "A section sub-component for Breadcrumb component.
8 |
9 | Props:
10 | - active (bool): Style as the currently active section.
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content.
15 | - href (string): Render as an `a` tag instead of a `div` and adds the href attribute. ()
16 | - link (bool): Render as an `a` tag instead of a `div`. ()
17 | - onClick (func): Called on click. When passed, the component will render as an `a`"
18 | (h/factory-apply BreadcrumbSection))
19 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/form/ui_form.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.form.ui-form
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Form/Form" :default Form]))
5 |
6 | (def ui-form
7 | "A Form displays a set of related user input fields in a structured way.
8 |
9 | Props:
10 | - action (string): The HTML form action
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - error (bool): Automatically show any error Message children.
15 | - inverted (bool): A form can have its color inverted for contrast.
16 | - loading (bool): Automatically show a loading indicator.
17 | - onSubmit (func): The HTML form submit handler.
18 | - reply (bool): A comment can contain a form to reply to a comment. This may have arbitrary content.
19 | - size (enum): A form can vary in size. (mini, tiny, small, large, big, huge, massive)
20 | - success (bool): Automatically show any success Message children.
21 | - unstackable (bool): A form can prevent itself from stacking on mobile.
22 | - warning (bool): Automatically show any warning Message children.
23 | - widths (enum): Forms can automatically divide fields to be equal width. (equal)"
24 | (h/factory-apply Form))
25 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/form/ui_form_button.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.form.ui-form-button
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Form/FormButton" :default FormButton]))
5 |
6 | (def ui-form-button
7 | "Sugar for .
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - control (custom): A FormField control prop."
12 | (h/factory-apply FormButton))
13 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/form/ui_form_checkbox.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.form.ui-form-checkbox
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Form/FormCheckbox" :default FormCheckbox]))
5 |
6 | (def ui-form-checkbox
7 | "Sugar for .
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - control (custom): A FormField control prop."
12 | (h/factory-apply FormCheckbox))
13 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/form/ui_form_dropdown.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.form.ui-form-dropdown
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Form/FormDropdown" :default FormDropdown]))
5 |
6 | (def ui-form-dropdown
7 | "Sugar for .
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - control (custom): A FormField control prop."
12 | (h/factory-apply FormDropdown))
13 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/form/ui_form_field.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.form.ui-form-field
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Form/FormField" :default FormField]))
5 |
6 | (def ui-form-field
7 | "A field is a form element containing a label and an input.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - control (custom): A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input').
15 | - disabled (bool): Individual fields may be disabled.
16 | - error (bool): Individual fields may display an error state.
17 | - inline (bool): A field can have its label next to instead of above it.
18 | - label (node|object): Mutually exclusive with children. ()
19 | - required (bool): A field can show that input is mandatory.
20 | - type (): Passed to the control component (i.e. ) ()
21 | - width (enum): A field can specify its width in grid columns (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen)"
22 | (h/factory-apply FormField))
23 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/form/ui_form_group.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.form.ui-form-group
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Form/FormGroup" :default FormGroup]))
5 |
6 | (def ui-form-group
7 | "A set of fields can appear grouped together.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - grouped (bool): Fields can show related choices. ()
14 | - inline (bool): Multiple fields may be inline in a row. ()
15 | - unstackable (bool): A form group can prevent itself from stacking on mobile.
16 | - widths (enum): Fields Groups can specify their width in grid columns or automatically divide fields to be equal width. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen, equal)"
17 | (h/factory-apply FormGroup))
18 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/form/ui_form_input.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.form.ui-form-input
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Form/FormInput" :default FormInput]))
5 |
6 | (def ui-form-input
7 | "Sugar for .
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - control (custom): A FormField control prop."
12 | (h/wrapped-factory-apply FormInput))
13 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/form/ui_form_radio.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.form.ui-form-radio
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Form/FormRadio" :default FormRadio]))
5 |
6 | (def ui-form-radio
7 | "Sugar for .
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - control (custom): A FormField control prop."
12 | (h/factory-apply FormRadio))
13 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/form/ui_form_select.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.form.ui-form-select
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Form/FormSelect" :default FormSelect]))
5 |
6 | (def ui-form-select
7 | "Sugar for .
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - control (custom): A FormField control prop.
12 | - options (arrayOf): Array of Dropdown.Item props e.g. `{ text: '', value: '' }` ([:name \"shape\"], [:value \"Dropdown.Item.propTypes\"], [:computed true])"
13 | (h/factory-apply FormSelect))
14 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/form/ui_form_text_area.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.form.ui-form-text-area
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Form/FormTextArea" :default FormTextArea]))
5 |
6 | (def ui-form-text-area
7 | "Sugar for .
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - control (custom): A FormField control prop."
12 | (h/factory-apply FormTextArea))
13 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/grid/ui_grid.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.grid.ui-grid
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Grid/Grid" :default Grid]))
5 |
6 | (def ui-grid
7 | "A grid is used to harmonize negative space in a layout.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - celled (bool|enum): A grid can have rows divided into cells. (internally)
12 | - centered (bool): A grid can have its columns centered.
13 | - children (node): Primary content.
14 | - className (string): Additional classes.
15 | - columns (enum): Represents column count per row in Grid. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen, equal)
16 | - container (bool): A grid can be combined with a container to use the available layout and alignment.
17 | - divided (bool|enum): A grid can have dividers between its columns. (vertically)
18 | - doubling (bool): A grid can double its column width on tablet and mobile sizes.
19 | - inverted (bool): A grid's colors can be inverted.
20 | - padded (bool|enum): A grid can preserve its vertical and horizontal gutters on first and last columns. (horizontally, vertically)
21 | - relaxed (bool|enum): A grid can increase its gutters to allow for more negative space. (very)
22 | - reversed (custom): A grid can specify that its columns should reverse order at different device sizes.
23 | - stackable (bool): A grid can have its columns stack on-top of each other after reaching mobile breakpoints.
24 | - stretched (bool): A grid can stretch its contents to take up the entire grid height.
25 | - textAlign (enum): A grid can specify its text alignment. (left, center, right, justified)
26 | - verticalAlign (enum): A grid can specify its vertical alignment to have all its columns vertically centered. (bottom, middle, top)"
27 | (h/factory-apply Grid))
28 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/grid/ui_grid_column.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.grid.ui-grid-column
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Grid/GridColumn" :default GridColumn]))
5 |
6 | (def ui-grid-column
7 | "A column sub-component for Grid.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - color (enum): A grid column can be colored. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
14 | - computer (enum): A column can specify a width for a computer. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen)
15 | - floated (enum): A column can sit flush against the left or right edge of a row. (left, right)
16 | - largeScreen (enum): A column can specify a width for a large screen device. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen)
17 | - mobile (enum): A column can specify a width for a mobile device. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen)
18 | - only (custom): A column can appear only for a specific device, or screen sizes.
19 | - stretched (bool): A column can stretch its contents to take up the entire grid or row height.
20 | - tablet (enum): A column can specify a width for a tablet device. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen)
21 | - textAlign (enum): A column can specify its text alignment. (left, center, right, justified)
22 | - verticalAlign (enum): A column can specify its vertical alignment to have all its columns vertically centered. (bottom, middle, top)
23 | - widescreen (enum): A column can specify a width for a wide screen device. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen)
24 | - width (enum): Represents width of column. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen)"
25 | (h/factory-apply GridColumn))
26 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/grid/ui_grid_row.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.grid.ui-grid-row
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Grid/GridRow" :default GridRow]))
5 |
6 | (def ui-grid-row
7 | "A row sub-component for Grid.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - centered (bool): A row can have its columns centered.
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - color (enum): A grid row can be colored. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
15 | - columns (enum): Represents column count per line in Row. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen, equal)
16 | - divided (bool): A row can have dividers between its columns.
17 | - only (custom): A row can appear only for a specific device, or screen sizes.
18 | - reversed (custom): A row can specify that its columns should reverse order at different device sizes.
19 | - stretched (bool): A row can stretch its contents to take up the entire column height.
20 | - textAlign (enum): A row can specify its text alignment. (left, center, right, justified)
21 | - verticalAlign (enum): A row can specify its vertical alignment to have all its columns vertically centered. (bottom, middle, top)"
22 | (h/factory-apply GridRow))
23 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/menu/ui_menu.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.menu.ui-menu
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Menu/Menu" :default Menu]))
5 |
6 | (def ui-menu
7 | "A menu displays grouped navigation actions.
8 |
9 | Props:
10 | - activeIndex (number|string): Index of the currently active item. ()
11 | - as (custom): An element type to render as (string or function).
12 | - attached (bool|enum): A menu may be attached to other content segments. (top, bottom)
13 | - borderless (bool): A menu item or menu can have no borders.
14 | - children (node): Primary content.
15 | - className (string): Additional classes.
16 | - color (enum): Additional colors can be specified. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
17 | - compact (bool): A menu can take up only the space necessary to fit its content.
18 | - defaultActiveIndex (number|string): Initial activeIndex value. ()
19 | - fixed (enum): A menu can be fixed to a side of its context. (left, right, bottom, top)
20 | - floated (bool|enum): A menu can be floated. (right)
21 | - fluid (bool): A vertical menu may take the size of its container.
22 | - icon (bool|enum): A menu may have just icons (bool) or labeled icons. (labeled)
23 | - inverted (bool): A menu may have its colors inverted to show greater contrast.
24 | - items (custom): Shorthand array of props for Menu.
25 | - onItemClick (func): onClick handler for MenuItem. Mutually exclusive with children. ()
26 | - pagination (bool): A pagination menu is specially formatted to present links to pages of content.
27 | - pointing (bool): A menu can point to show its relationship to nearby content.
28 | - secondary (bool): A menu can adjust its appearance to de-emphasize its contents.
29 | - size (enum): A menu can vary in size. (mini, tiny, small, large, huge, massive)
30 | - stackable (bool): A menu can stack at mobile resolutions.
31 | - tabular (bool|enum): A menu can be formatted to show tabs of information. (right)
32 | - text (bool): A menu can be formatted for text content.
33 | - vertical (bool): A vertical menu displays elements vertically.
34 | - widths (enum): A menu can have its items divided evenly. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen)"
35 | (h/factory-apply Menu))
36 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/menu/ui_menu_header.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.menu.ui-menu-header
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Menu/MenuHeader" :default MenuHeader]))
5 |
6 | (def ui-menu-header
7 | "A menu item may include a header or may itself be a header.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply MenuHeader))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/menu/ui_menu_item.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.menu.ui-menu-item
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Menu/MenuItem" :default MenuItem]))
5 |
6 | (def ui-menu-item
7 | "A menu can contain an item.
8 |
9 | Props:
10 | - active (bool): A menu item can be active.
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - color (enum): Additional colors can be specified. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
15 | - content (custom): Shorthand for primary content.
16 | - disabled (bool): A menu item can be disabled.
17 | - fitted (bool|enum): A menu item or menu can remove element padding, vertically or horizontally. (horizontally, vertically)
18 | - header (bool): A menu item may include a header or may itself be a header.
19 | - icon (bool|custom): MenuItem can be only icon. ()
20 | - index (number): MenuItem index inside Menu.
21 | - link (bool): A menu item can be link.
22 | - name (string): Internal name of the MenuItem.
23 | - onClick (func): Called on click. When passed, the component will render as an `a`
24 | - position (enum): A menu item can take left or right position. (left, right)"
25 | (h/factory-apply MenuItem))
26 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/menu/ui_menu_menu.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.menu.ui-menu-menu
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Menu/MenuMenu" :default MenuMenu]))
5 |
6 | (def ui-menu-menu
7 | "A menu can contain a sub menu.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - position (enum): A sub menu can take left or right position. (left, right)"
15 | (h/factory-apply MenuMenu))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/message/ui_message.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.message.ui-message
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Message/Message" :default Message]))
5 |
6 | (def ui-message
7 | "A message displays information that explains nearby content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - attached (bool|enum): A message can be formatted to attach itself to other content. (bottom, top)
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - color (enum): A message can be formatted to be different colors. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
15 | - compact (bool): A message can only take up the width of its content.
16 | - content (custom): Shorthand for primary content.
17 | - error (bool): A message may be formatted to display a negative message. Same as `negative`.
18 | - floating (bool): A message can float above content that it is related to.
19 | - header (custom): Shorthand for MessageHeader.
20 | - hidden (bool): A message can be hidden.
21 | - icon (custom|bool): A message can contain an icon. ()
22 | - info (bool): A message may be formatted to display information.
23 | - list (custom): Array shorthand items for the MessageList. Mutually exclusive with children.
24 | - negative (bool): A message may be formatted to display a negative message. Same as `error`.
25 | - onDismiss (func): A message that the user can choose to hide.
26 | - positive (bool): A message may be formatted to display a positive message. Same as `success`.
27 | - size (enum): A message can have different sizes. (mini, tiny, small, large, big, huge, massive)
28 | - success (bool): A message may be formatted to display a positive message. Same as `positive`.
29 | - visible (bool): A message can be set to visible to force itself to be shown.
30 | - warning (bool): A message may be formatted to display warning messages."
31 | (h/factory-apply Message))
32 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/message/ui_message_content.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.message.ui-message-content
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Message/MessageContent" :default MessageContent]))
5 |
6 | (def ui-message-content
7 | "A message can contain a content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply MessageContent))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/message/ui_message_header.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.message.ui-message-header
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Message/MessageHeader" :default MessageHeader]))
5 |
6 | (def ui-message-header
7 | "A message can contain a header.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply MessageHeader))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/message/ui_message_item.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.message.ui-message-item
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Message/MessageItem" :default MessageItem]))
5 |
6 | (def ui-message-item
7 | "A message list can contain an item.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply MessageItem))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/message/ui_message_list.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.message.ui-message-list
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Message/MessageList" :default MessageList]))
5 |
6 | (def ui-message-list
7 | "A message can contain a list of items.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - items (custom): Shorthand Message.Items."
14 | (h/factory-apply MessageList))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/table/ui_table.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.table.ui-table
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Table/Table" :default Table]))
5 |
6 | (def ui-table
7 | "A table displays a collections of data grouped into rows.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - attached (bool|enum): Attach table to other content (top, bottom)
12 | - basic (enum|bool): A table can reduce its complexity to increase readability. (very)
13 | - celled (bool): A table may be divided each row into separate cells.
14 | - children (node): Primary content.
15 | - className (string): Additional classes.
16 | - collapsing (bool): A table can be collapsing, taking up only as much space as its rows.
17 | - color (enum): A table can be given a color to distinguish it from other tables. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
18 | - columns (enum): A table can specify its column count to divide its content evenly. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen)
19 | - compact (bool|enum): A table may sometimes need to be more compact to make more rows visible at a time. (very)
20 | - definition (bool): A table may be formatted to emphasize a first column that defines a rows content.
21 | - fixed (bool): A table can use fixed a special faster form of table rendering that does not resize table cells based on content
22 | - footerRow (custom): Shorthand for a TableRow to be placed within Table.Footer.
23 | - headerRow (custom): Shorthand for a TableRow to be placed within Table.Header.
24 | - inverted (bool): A table's colors can be inverted.
25 | - padded (bool|enum): A table may sometimes need to be more padded for legibility. (very)
26 | - renderBodyRow (func): Mapped over `tableData` and should return shorthand for each Table.Row to be placed within Table.Body. ()
27 | - selectable (bool): A table can have its rows appear selectable.
28 | - singleLine (bool): A table can specify that its cell contents should remain on a single line and not wrap.
29 | - size (enum): A table can also be small or large. (small, large)
30 | - sortable (bool): A table may allow a user to sort contents by clicking on a table header.
31 | - stackable (bool): A table can specify how it stacks table content responsively.
32 | - striped (bool): A table can stripe alternate rows of content with a darker color to increase contrast.
33 | - structured (bool): A table can be formatted to display complex structured data.
34 | - tableData (array): Data to be passed to the renderBodyRow function. ()
35 | - textAlign (enum): A table can adjust its text alignment. (left, center, right)
36 | - unstackable (bool): A table can specify how it stacks table content responsively.
37 | - verticalAlign (enum): A table can adjust its text alignment. (bottom, middle, top)"
38 | (h/factory-apply Table))
39 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/table/ui_table_body.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.table.ui-table-body
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Table/TableBody" :default TableBody]))
5 |
6 | (def ui-table-body
7 | "
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes."
13 | (h/factory-apply TableBody))
14 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/table/ui_table_cell.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.table.ui-table-cell
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Table/TableCell" :default TableCell]))
5 |
6 | (def ui-table-cell
7 | "A table row can have cells.
8 |
9 | Props:
10 | - active (bool): A cell can be active or selected by a user.
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - collapsing (bool): A cell can be collapsing so that it only uses as much space as required.
15 | - content (custom): Shorthand for primary content.
16 | - disabled (bool): A cell can be disabled.
17 | - error (bool): A cell may call attention to an error or a negative value.
18 | - icon (custom): Add an Icon by name, props object, or pass an
19 | - negative (bool): A cell may let a user know whether a value is bad.
20 | - positive (bool): A cell may let a user know whether a value is good.
21 | - selectable (bool): A cell can be selectable.
22 | - singleLine (bool): A cell can specify that its contents should remain on a single line and not wrap.
23 | - textAlign (enum): A table cell can adjust its text alignment. (left, center, right)
24 | - verticalAlign (enum): A table cell can adjust its text alignment. (bottom, middle, top)
25 | - warning (bool): A cell may warn a user.
26 | - width (enum): A table can specify the width of individual columns independently. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen)"
27 | (h/factory-apply TableCell))
28 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/table/ui_table_footer.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.table.ui-table-footer
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Table/TableFooter" :default TableFooter]))
5 |
6 | (def ui-table-footer
7 | "A table can have a footer.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function)."
11 | (h/factory-apply TableFooter))
12 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/table/ui_table_header.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.table.ui-table-header
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Table/TableHeader" :default TableHeader]))
5 |
6 | (def ui-table-header
7 | "A table can have a header.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - fullWidth (bool): A definition table can have a full width header or footer, filling in the gap left by the first column."
15 | (h/factory-apply TableHeader))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/table/ui_table_header_cell.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.table.ui-table-header-cell
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Table/TableHeaderCell" :default TableHeaderCell]))
5 |
6 | (def ui-table-header-cell
7 | "A table can have a header cell.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - className (string): Additional classes.
12 | - sorted (enum): A header cell can be sorted in ascending or descending order. (ascending, descending)"
13 | (h/factory-apply TableHeaderCell))
14 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/table/ui_table_row.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.collections.table.ui-table-row
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/collections/Table/TableRow" :default TableRow]))
5 |
6 | (def ui-table-row
7 | "A table can have rows.
8 |
9 | Props:
10 | - active (bool): A row can be active or selected by a user.
11 | - as (custom): An element type to render as (string or function).
12 | - cellAs (custom): An element type to render as (string or function).
13 | - cells (custom): Shorthand array of props for TableCell.
14 | - children (node): Primary content.
15 | - className (string): Additional classes.
16 | - disabled (bool): A row can be disabled.
17 | - error (bool): A row may call attention to an error or a negative value.
18 | - negative (bool): A row may let a user know whether a value is bad.
19 | - positive (bool): A row may let a user know whether a value is good.
20 | - textAlign (enum): A table row can adjust its text alignment. (left, center, right)
21 | - verticalAlign (enum): A table row can adjust its vertical alignment. (bottom, middle, top)
22 | - warning (bool): A row may warn a user."
23 | (h/factory-apply TableRow))
24 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/button/ui_button.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.button.ui-button
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Button/Button" :default Button]))
5 |
6 | (def ui-button
7 | "A Button indicates a possible user action.
8 |
9 | Props:
10 | - active (bool): A button can show it is currently the active user selection.
11 | - animated (bool|enum): A button can animate to show hidden content. (fade, vertical)
12 | - as (custom): An element type to render as (string or function).
13 | - attached (bool|enum): A button can be attached to other content. (left, right, top, bottom)
14 | - basic (bool): A basic button is less pronounced.
15 | - children (node): Primary content. ()
16 | - circular (bool): A button can be circular.
17 | - className (string): Additional classes.
18 | - color (enum): A button can have different colors (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black, facebook, google plus, instagram, linkedin, twitter, vk, youtube)
19 | - compact (bool): A button can reduce its padding to fit into tighter spaces.
20 | - content (custom): Shorthand for primary content.
21 | - disabled (bool): A button can show it is currently unable to be interacted with.
22 | - floated (enum): A button can be aligned to the left or right of its container. (left, right)
23 | - fluid (bool): A button can take the width of its container.
24 | - icon (custom): Add an Icon by name, props object, or pass an .
25 | - inverted (bool): A button can be formatted to appear on dark backgrounds.
26 | - label (custom): Add a Label by text, props object, or pass a .
27 | - labelPosition (enum): A labeled button can format a Label or Icon to appear on the left or right. (right, left)
28 | - loading (bool): A button can show a loading indicator.
29 | - negative (bool): A button can hint towards a negative consequence.
30 | - onClick (func): Called after user's click.
31 | - positive (bool): A button can hint towards a positive consequence.
32 | - primary (bool): A button can be formatted to show different levels of emphasis.
33 | - role (string): The role of the HTML element.
34 | - secondary (bool): A button can be formatted to show different levels of emphasis.
35 | - size (enum): A button can have different sizes. (mini, tiny, small, medium, large, big, huge, massive)
36 | - tabIndex (number|string): A button can receive focus. ()
37 | - toggle (bool): A button can be formatted to toggle on and off."
38 | (h/factory-apply Button))
39 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/button/ui_button_content.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.button.ui-button-content
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Button/ButtonContent" :default ButtonContent]))
5 |
6 | (def ui-button-content
7 | "Used in some Button types, such as `animated`.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - hidden (bool): Initially hidden, visible on hover.
15 | - visible (bool): Initially visible, hidden on hover."
16 | (h/factory-apply ButtonContent))
17 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/button/ui_button_group.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.button.ui-button-group
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Button/ButtonGroup" :default ButtonGroup]))
5 |
6 | (def ui-button-group
7 | "Buttons can be grouped.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - attached (bool|enum): Groups can be attached to other content. (left, right, top, bottom)
12 | - basic (bool): Groups can be less pronounced.
13 | - buttons (custom): Array of shorthand Button values.
14 | - children (node): Primary content.
15 | - className (string): Additional classes.
16 | - color (enum): Groups can have a shared color. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
17 | - compact (bool): Groups can reduce their padding to fit into tighter spaces.
18 | - content (custom): Shorthand for primary content.
19 | - floated (enum): Groups can be aligned to the left or right of its container. (left, right)
20 | - fluid (bool): Groups can take the width of their container.
21 | - icon (bool): Groups can be formatted as icons.
22 | - inverted (bool): Groups can be formatted to appear on dark backgrounds.
23 | - labeled (bool): Groups can be formatted as labeled icon buttons.
24 | - negative (bool): Groups can hint towards a negative consequence.
25 | - positive (bool): Groups can hint towards a positive consequence.
26 | - primary (bool): Groups can be formatted to show different levels of emphasis.
27 | - secondary (bool): Groups can be formatted to show different levels of emphasis.
28 | - size (enum): Groups can have different sizes. (mini, tiny, small, medium, large, big, huge, massive)
29 | - toggle (bool): Groups can be formatted to toggle on and off.
30 | - vertical (bool): Groups can be formatted to appear vertically.
31 | - widths (enum): Groups can have their widths divided evenly. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen)"
32 | (h/factory-apply ButtonGroup))
33 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/button/ui_button_or.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.button.ui-button-or
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Button/ButtonOr" :default ButtonOr]))
5 |
6 | (def ui-button-or
7 | "Button groups can contain conditionals.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - className (string): Additional classes.
12 | - text (number|string): Or buttons can have their text localized, or adjusted by using the text prop. ()"
13 | (h/factory-apply ButtonOr))
14 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/container/ui_container.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.container.ui-container
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Container/Container" :default Container]))
5 |
6 | (def ui-container
7 | "A container limits content to a maximum width.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - fluid (bool): Container has no maximum width.
15 | - text (bool): Reduce maximum width to more naturally accommodate text.
16 | - textAlign (enum): Align container text. (left, center, right, justified)"
17 | (h/factory-apply Container))
18 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/divider/ui_divider.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.divider.ui-divider
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Divider/Divider" :default Divider]))
5 |
6 | (def ui-divider
7 | "A divider visually segments content into groups.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - clearing (bool): Divider can clear the content above it.
14 | - content (custom): Shorthand for primary content.
15 | - fitted (bool): Divider can be fitted without any space above or below it.
16 | - hidden (bool): Divider can divide content without creating a dividing line.
17 | - horizontal (bool): Divider can segment content horizontally.
18 | - inverted (bool): Divider can have its colours inverted.
19 | - section (bool): Divider can provide greater margins to divide sections of content.
20 | - vertical (bool): Divider can segment content vertically."
21 | (h/factory-apply Divider))
22 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/flag/ui_flag.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.flag.ui-flag
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Flag/Flag" :default Flag]))
5 |
6 | (def ui-flag
7 | "A flag is is used to represent a political state.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - className (string): Additional classes.
12 | - name (enum): Flag name, can use the two digit country code, the full name, or a common alias. (ad, andorra, ae, united arab emirates, uae, af, afghanistan, ag, antigua, ai, anguilla, al, albania, am, armenia, an, netherlands antilles, ao, angola, ar, argentina, as, american samoa, at, austria, au, australia, aw, aruba, ax, aland islands, az, azerbaijan, ba, bosnia, bb, barbados, bd, bangladesh, be, belgium, bf, burkina faso, bg, bulgaria, bh, bahrain, bi, burundi, bj, benin, bm, bermuda, bn, brunei, bo, bolivia, br, brazil, bs, bahamas, bt, bhutan, bv, bouvet island, bw, botswana, by, belarus, bz, belize, ca, canada, cc, cocos islands, cd, congo, cf, central african republic, cg, congo brazzaville, ch, switzerland, ci, cote divoire, ck, cook islands, cl, chile, cm, cameroon, cn, china, co, colombia, cr, costa rica, cs, cu, cuba ...)"
13 | (h/factory-apply Flag))
14 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/header/ui_header.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.header.ui-header
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Header/Header" :default Header]))
5 |
6 | (def ui-header
7 | "A header provides a short summary of content
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - attached (bool|enum): Attach header to other content, like a segment. (top, bottom)
12 | - block (bool): Format header to appear inside a content block.
13 | - children (node): Primary content.
14 | - className (string): Additional classes.
15 | - color (enum): Color of the header. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
16 | - content (custom): Shorthand for primary content.
17 | - disabled (bool): Show that the header is inactive.
18 | - dividing (bool): Divide header from the content below it.
19 | - floated (enum): Header can sit to the left or right of other content. (left, right)
20 | - icon (union): Add an icon by icon name or pass an Icon. ()
21 | - image (union): Add an image by img src or pass an Image. ()
22 | - inverted (bool): Inverts the color of the header for dark backgrounds.
23 | - size (enum): Content headings are sized with em and are based on the font-size of their container. (tiny, small, medium, large, huge)
24 | - sub (bool): Headers may be formatted to label smaller or de-emphasized content.
25 | - subheader (custom): Shorthand for Header.Subheader.
26 | - textAlign (enum): Align header content. (left, center, right, justified)"
27 | (h/factory-apply Header))
28 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/header/ui_header_content.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.header.ui-header-content
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Header/HeaderContent" :default HeaderContent]))
5 |
6 | (def ui-header-content
7 | "Header content wraps the main content when there is an adjacent Icon or Image.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply HeaderContent))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/header/ui_header_subheader.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.header.ui-header-subheader
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Header/HeaderSubheader" :default HeaderSubheader]))
5 |
6 | (def ui-header-subheader
7 | "Headers may contain subheaders.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply HeaderSubheader))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/icon/ui_icon_group.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.icon.ui-icon-group
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Icon/IconGroup" :default IconGroup]))
5 |
6 | (def ui-icon-group
7 | "Several icons can be used together as a group.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - size (enum): Size of the icon group. (mini, tiny, small, large, big, huge, massive)"
15 | (h/factory-apply IconGroup))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/image/ui_image.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.image.ui-image
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Image/Image" :default Image]))
5 |
6 | (def ui-image
7 | "An image is a graphic representation of something.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - avatar (bool): An image may be formatted to appear inline with text as an avatar.
12 | - bordered (bool): An image may include a border to emphasize the edges of white or transparent content.
13 | - centered (bool): An image can appear centered in a content block.
14 | - children (node): Primary content.
15 | - circular (bool): An image may appear circular.
16 | - className (string): Additional classes.
17 | - content (custom): Shorthand for primary content.
18 | - dimmer (custom): Shorthand for Dimmer.
19 | - disabled (bool): An image can show that it is disabled and cannot be selected.
20 | - floated (enum): An image can sit to the left or right of other content. (left, right)
21 | - fluid (bool): An image can take up the width of its container. ()
22 | - hidden (bool): An image can be hidden.
23 | - href (string): Renders the Image as an tag with this href.
24 | - inline (bool): An image may appear inline.
25 | - label (custom): Shorthand for Label.
26 | - rounded (bool): An image may appear rounded.
27 | - size (enum): An image may appear at different sizes. (mini, tiny, small, medium, large, big, huge, massive)
28 | - spaced (bool|enum): An image can specify that it needs an additional spacing to separate it from nearby content. (left, right)
29 | - ui (bool): Whether or not to add the ui className.
30 | - verticalAlign (enum): An image can specify its vertical alignment. (bottom, middle, top)
31 | - wrapped (bool): An image can render wrapped in a `div.ui.image` as alternative HTML markup."
32 | (h/factory-apply Image))
33 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/image/ui_image_group.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.image.ui-image-group
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Image/ImageGroup" :default ImageGroup]))
5 |
6 | (def ui-image-group
7 | "A group of images.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - size (enum): A group of images can be formatted to have the same size. (mini, tiny, small, medium, large, big, huge, massive)"
15 | (h/factory-apply ImageGroup))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/input/ui_input.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.input.ui-input
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Input/Input" :default Input]))
5 |
6 | (def ui-input
7 | "An Input is a field used to elicit a response from a user.
8 |
9 | Props:
10 | - action (bool|custom): An Input can be formatted to alert the user to an action they may perform. ()
11 | - actionPosition (enum): An action can appear along side an Input on the left or right. (left)
12 | - as (custom): An element type to render as (string or function).
13 | - children (node): Primary content.
14 | - className (string): Additional classes.
15 | - disabled (bool): An Input field can show that it is disabled.
16 | - error (bool): An Input field can show the data contains errors.
17 | - fluid (bool): Take on the size of its container.
18 | - focus (bool): An Input field can show a user is currently interacting with it.
19 | - icon (bool|custom): Optional Icon to display inside the Input. ()
20 | - iconPosition (enum): An Icon can appear inside an Input on the left or right. (left)
21 | - input (custom): Shorthand for creating the HTML Input.
22 | - inverted (bool): Format to appear on dark backgrounds.
23 | - label (custom): Optional Label to display along side the Input.
24 | - labelPosition (enum): A Label can appear outside an Input on the left or right. (left, right, left corner, right corner)
25 | - loading (bool): An Icon Input field can show that it is currently loading data.
26 | - onChange (func): Called on change.
27 | - size (enum): An Input can vary in size. (mini, tiny, small, medium, large, big, huge, massive)
28 | - tabIndex (number|string): An Input can receive focus. ()
29 | - transparent (bool): Transparent Input has no background.
30 | - type (string): The HTML input type."
31 | (h/wrapped-factory-apply Input))
32 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/label/ui_label.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.label.ui-label
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Label/Label" :default Label]))
5 |
6 | (def ui-label
7 | "A label displays content classification.
8 |
9 | Props:
10 | - active (bool): A label can be active.
11 | - as (custom): An element type to render as (string or function).
12 | - attached (enum): A label can attach to a content segment. (top, bottom, top right, top left, bottom left, bottom right)
13 | - basic (bool): A label can reduce its complexity.
14 | - children (node): Primary content.
15 | - circular (bool): A label can be circular.
16 | - className (string): Additional classes.
17 | - color (enum): Color of the label. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
18 | - content (custom): Shorthand for primary content.
19 | - corner (bool|enum): A label can position itself in the corner of an element. (left, right)
20 | - detail (custom): Shorthand for LabelDetail.
21 | - empty (bool): Formats the label as a dot. ()
22 | - floating (bool): Float above another element in the upper right corner.
23 | - horizontal (bool): A horizontal label is formatted to label content along-side it horizontally.
24 | - icon (custom): Shorthand for Icon.
25 | - image (bool|custom): A label can be formatted to emphasize an image or prop can be used as shorthand for Image. ()
26 | - onClick (func): Called on click.
27 | - onRemove (func): Adds an \"x\" icon, called when \"x\" is clicked.
28 | - pointing (bool|enum): A label can point to content next to it. (above, below, left, right)
29 | - removeIcon (custom): Shorthand for Icon to appear as the last child and trigger onRemove.
30 | - ribbon (bool|enum): A label can appear as a ribbon attaching itself to an element. (right)
31 | - size (enum): A label can have different sizes. (mini, tiny, small, medium, large, big, huge, massive)
32 | - tag (bool): A label can appear as a tag."
33 | (h/factory-apply Label))
34 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/label/ui_label_detail.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.label.ui-label-detail
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Label/LabelDetail" :default LabelDetail]))
5 |
6 | (def ui-label-detail
7 | "
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply LabelDetail))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/label/ui_label_group.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.label.ui-label-group
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Label/LabelGroup" :default LabelGroup]))
5 |
6 | (def ui-label-group
7 | "A label can be grouped.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - circular (bool): Labels can share shapes.
13 | - className (string): Additional classes.
14 | - color (enum): Label group can share colors together. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
15 | - content (custom): Shorthand for primary content.
16 | - size (enum): Label group can share sizes together. (mini, tiny, small, medium, large, big, huge, massive)
17 | - tag (bool): Label group can share tag formatting."
18 | (h/factory-apply LabelGroup))
19 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/list/ui_list.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.list.ui-list
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/List/List" :default List]))
5 |
6 | (def ui-list
7 | "A list groups related content.
8 |
9 | Props:
10 | - animated (bool): A list can animate to set the current item apart from the list.
11 | - as (custom): An element type to render as (string or function).
12 | - bulleted (bool): A list can mark items with a bullet.
13 | - celled (bool): A list can divide its items into cells.
14 | - children (node): Primary content.
15 | - className (string): Additional classes.
16 | - content (custom): Shorthand for primary content.
17 | - divided (bool): A list can show divisions between content.
18 | - floated (enum): An list can be floated left or right. (left, right)
19 | - horizontal (bool): A list can be formatted to have items appear horizontally.
20 | - inverted (bool): A list can be inverted to appear on a dark background.
21 | - items (custom): Shorthand array of props for ListItem.
22 | - link (bool): A list can be specially formatted for navigation links.
23 | - onItemClick (func): onClick handler for ListItem. Mutually exclusive with children. ()
24 | - ordered (bool): A list can be ordered numerically.
25 | - relaxed (bool|enum): A list can relax its padding to provide more negative space. (very)
26 | - selection (bool): A selection list formats list items as possible choices.
27 | - size (enum): A list can vary in size. (mini, tiny, small, medium, large, big, huge, massive)
28 | - verticalAlign (enum): An element inside a list can be vertically aligned. (bottom, middle, top)"
29 | (h/factory-apply List))
30 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/list/ui_list_content.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.list.ui-list-content
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/List/ListContent" :default ListContent]))
5 |
6 | (def ui-list-content
7 | "A list item can contain a content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - description (custom): Shorthand for ListDescription.
15 | - floated (enum): An list content can be floated left or right. (left, right)
16 | - header (custom): Shorthand for ListHeader.
17 | - verticalAlign (enum): An element inside a list can be vertically aligned. (bottom, middle, top)"
18 | (h/factory-apply ListContent))
19 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/list/ui_list_description.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.list.ui-list-description
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/List/ListDescription" :default ListDescription]))
5 |
6 | (def ui-list-description
7 | "A list item can contain a description.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply ListDescription))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/list/ui_list_header.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.list.ui-list-header
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/List/ListHeader" :default ListHeader]))
5 |
6 | (def ui-list-header
7 | "A list item can contain a header.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply ListHeader))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/list/ui_list_icon.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.list.ui-list-icon
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/List/ListIcon" :default ListIcon]))
5 |
6 | (def ui-list-icon
7 | "A list item can contain an icon.
8 |
9 | Props:
10 | - className (string): Additional classes.
11 | - verticalAlign (enum): An element inside a list can be vertically aligned. (bottom, middle, top)"
12 | (h/factory-apply ListIcon))
13 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/list/ui_list_item.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.list.ui-list-item
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/List/ListItem" :default ListItem]))
5 |
6 | (def ui-list-item
7 | "A list item can contain a set of items.
8 |
9 | Props:
10 | - active (bool): A list item can active.
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content.
15 | - description (custom): Shorthand for ListDescription.
16 | - disabled (bool): A list item can disabled.
17 | - header (custom): Shorthand for ListHeader.
18 | - icon (custom): Shorthand for ListIcon. ()
19 | - image (custom): Shorthand for Image. ()
20 | - onClick (func): A ListItem can be clicked
21 | - value (string): A value for an ordered list."
22 | (h/factory-apply ListItem))
23 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/list/ui_list_list.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.list.ui-list-list
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/List/ListList" :default ListList]))
5 |
6 | (def ui-list-list
7 | "A list can contain a sub list.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply ListList))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/loader/ui_loader.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.loader.ui-loader
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Loader/Loader" :default Loader]))
5 |
6 | (def ui-loader
7 | "A loader alerts a user to wait for an activity to complete.
8 |
9 | Props:
10 | - active (bool): A loader can be active or visible.
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content.
15 | - disabled (bool): A loader can be disabled or hidden.
16 | - indeterminate (bool): A loader can show it's unsure of how long a task will take.
17 | - inline (bool|enum): Loaders can appear inline with content. (centered)
18 | - inverted (bool): Loaders can have their colors inverted.
19 | - size (enum): Loaders can have different sizes. (mini, tiny, small, medium, large, big, huge, massive)"
20 | (h/factory-apply Loader))
21 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/placeholder/ui_placeholder.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.placeholder.ui-placeholder
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Placeholder/Placeholder" :default Placeholder]))
5 |
6 | (def ui-placeholder
7 | "A placeholder is used to reserve splace for content that soon will appear in a layout.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - fluid (bool): A fluid placeholder takes up the width of its container.
15 | - inverted (bool): A placeholder can have their colors inverted."
16 | (h/factory-apply Placeholder))
17 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/placeholder/ui_placeholder_header.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.placeholder.ui-placeholder-header
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Placeholder/PlaceholderHeader" :default PlaceholderHeader]))
5 |
6 | (def ui-placeholder-header
7 | "A placeholder can contain a header.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - image (bool): A placeholder can contain an image."
15 | (h/factory-apply PlaceholderHeader))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/placeholder/ui_placeholder_image.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.placeholder.ui-placeholder-image
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Placeholder/PlaceholderImage" :default PlaceholderImage]))
5 |
6 | (def ui-placeholder-image
7 | "A placeholder can contain an image.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - className (string): Additional classes.
12 | - rectangular (bool): An image can modify size correctly with responsive styles. ()
13 | - square (bool): An image can modify size correctly with responsive styles. ()"
14 | (h/factory-apply PlaceholderImage))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/placeholder/ui_placeholder_line.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.placeholder.ui-placeholder-line
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Placeholder/PlaceholderLine" :default PlaceholderLine]))
5 |
6 | (def ui-placeholder-line
7 | "A placeholder can contain have lines of text.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - className (string): Additional classes.
12 | - length (enum): A line can specify how long its contents should appear. (full, very long, long, medium, short, very short)"
13 | (h/factory-apply PlaceholderLine))
14 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/placeholder/ui_placeholder_paragraph.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.placeholder.ui-placeholder-paragraph
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Placeholder/PlaceholderParagraph" :default PlaceholderParagraph]))
5 |
6 | (def ui-placeholder-paragraph
7 | "A placeholder can contain a paragraph.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply PlaceholderParagraph))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/rail/ui_rail.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.rail.ui-rail
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Rail/Rail" :default Rail]))
5 |
6 | (def ui-rail
7 | "A rail is used to show accompanying content outside the boundaries of the main view of a site.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - attached (bool): A rail can appear attached to the main viewport.
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - close (bool|enum): A rail can appear closer to the main viewport. (very)
15 | - content (custom): Shorthand for primary content.
16 | - dividing (bool): A rail can create a division between itself and a container.
17 | - internal (bool): A rail can attach itself to the inside of a container.
18 | - position (enum): A rail can be presented on the left or right side of a container. (left, right)
19 | - size (enum): A rail can have different sizes. (mini, tiny, small, large, big, huge, massive)"
20 | (h/factory-apply Rail))
21 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/reveal/ui_reveal.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.reveal.ui-reveal
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Reveal/Reveal" :default Reveal]))
5 |
6 | (def ui-reveal
7 | "A reveal displays additional content in place of previous content when activated.
8 |
9 | Props:
10 | - active (bool): An active reveal displays its hidden content.
11 | - animated (enum): An animation name that will be applied to Reveal. (fade, small fade, move, move right, move up, move down, rotate, rotate left)
12 | - as (custom): An element type to render as (string or function).
13 | - children (node): Primary content.
14 | - className (string): Additional classes.
15 | - content (custom): Shorthand for primary content.
16 | - disabled (bool): A disabled reveal will not animate when hovered.
17 | - instant (bool): An element can show its content without delay."
18 | (h/factory-apply Reveal))
19 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/reveal/ui_reveal_content.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.reveal.ui-reveal-content
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Reveal/RevealContent" :default RevealContent]))
5 |
6 | (def ui-reveal-content
7 | "A content sub-component for the Reveal.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - hidden (bool): A reveal may contain content that is visible before interaction.
15 | - visible (bool): A reveal may contain content that is hidden before user interaction."
16 | (h/factory-apply RevealContent))
17 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/segment/ui_segment.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.segment.ui-segment
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Segment/Segment" :default Segment]))
5 |
6 | (def ui-segment
7 | "A segment is used to create a grouping of related content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - attached (bool|enum): Attach segment to other content, like a header. (top, bottom)
12 | - basic (bool): A basic segment has no special formatting.
13 | - children (node): Primary content.
14 | - circular (bool): A segment can be circular.
15 | - className (string): Additional classes.
16 | - clearing (bool): A segment can clear floated content.
17 | - color (enum): Segment can be colored. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
18 | - compact (bool): A segment may take up only as much space as is necessary.
19 | - content (custom): Shorthand for primary content.
20 | - disabled (bool): A segment may show its content is disabled.
21 | - floated (enum): Segment content can be floated to the left or right. (left, right)
22 | - inverted (bool): A segment can have its colors inverted for contrast.
23 | - loading (bool): A segment may show its content is being loaded.
24 | - padded (bool|enum): A segment can increase its padding. (very)
25 | - piled (bool): Formatted to look like a pile of pages.
26 | - placeholder (bool): A segment can be used to reserve space for conditionally displayed content.
27 | - raised (bool): A segment may be formatted to raise above the page.
28 | - secondary (bool): A segment can be formatted to appear less noticeable.
29 | - size (enum): A segment can have different sizes. (mini, tiny, small, large, big, huge, massive)
30 | - stacked (bool): Formatted to show it contains multiple pages.
31 | - tertiary (bool): A segment can be formatted to appear even less noticeable.
32 | - textAlign (enum): Formats content to be aligned as part of a vertical group. (left, center, right)
33 | - vertical (bool): Formats content to be aligned vertically."
34 | (h/factory-apply Segment))
35 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/segment/ui_segment_group.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.segment.ui-segment-group
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Segment/SegmentGroup" :default SegmentGroup]))
5 |
6 | (def ui-segment-group
7 | "A group of segments can be formatted to appear together.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - compact (bool): A segment may take up only as much space as is necessary.
14 | - content (custom): Shorthand for primary content.
15 | - horizontal (bool): Formats content to be aligned horizontally.
16 | - piled (bool): Formatted to look like a pile of pages.
17 | - raised (bool): A segment group may be formatted to raise above the page.
18 | - size (enum): A segment group can have different sizes. (mini, tiny, small, large, big, huge, massive)
19 | - stacked (bool): Formatted to show it contains multiple pages."
20 | (h/factory-apply SegmentGroup))
21 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/segment/ui_segment_inline.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.segment.ui-segment-inline
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Segment/SegmentInline" :default SegmentInline]))
5 |
6 | (def ui-segment-inline
7 | "A placeholder segment can be inline.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply SegmentInline))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/step/ui_step.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.step.ui-step
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Step/Step" :default Step]))
5 |
6 | (def ui-step
7 | "A step shows the completion status of an activity in a series of activities.
8 |
9 | Props:
10 | - active (bool): A step can be highlighted as active.
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - completed (bool): A step can show that a user has completed it.
15 | - content (custom): Shorthand for primary content.
16 | - description (custom): Shorthand for StepDescription.
17 | - disabled (bool): Show that the Loader is inactive.
18 | - href (string): Render as an `a` tag instead of a `div` and adds the href attribute.
19 | - icon (custom): Shorthand for Icon.
20 | - link (bool): A step can be link.
21 | - onClick (func): Called on click. When passed, the component will render as an `a`
22 | - ordered (bool): A step can show a ordered sequence of steps. Passed from StepGroup.
23 | - title (custom): Shorthand for StepTitle."
24 | (h/factory-apply Step))
25 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/step/ui_step_content.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.step.ui-step-content
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Step/StepContent" :default StepContent]))
5 |
6 | (def ui-step-content
7 | "A step can contain a content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - description (custom): Shorthand for StepDescription.
15 | - title (custom): Shorthand for StepTitle."
16 | (h/factory-apply StepContent))
17 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/step/ui_step_description.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.step.ui-step-description
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Step/StepDescription" :default StepDescription]))
5 |
6 | (def ui-step-description
7 | "
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply StepDescription))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/step/ui_step_group.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.step.ui-step-group
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Step/StepGroup" :default StepGroup]))
5 |
6 | (def ui-step-group
7 | "A set of steps.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - attached (bool|enum): Steps can be attached to other elements. (top, bottom)
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content.
15 | - fluid (bool): A fluid step takes up the width of its container.
16 | - items (custom): Shorthand array of props for Step.
17 | - ordered (bool): A step can show a ordered sequence of steps.
18 | - size (enum): Steps can have different sizes. (mini, tiny, small, large, big, huge, massive)
19 | - stackable (enum): A step can stack vertically only on smaller screens. (tablet)
20 | - unstackable (bool): A step can prevent itself from stacking on mobile.
21 | - vertical (bool): A step can be displayed stacked vertically.
22 | - widths (enum): Steps can be divided evenly inside their parent. (..._.keys(numberMap), ..._.keys(numberMap).map(Number), ..._.values(numberMap))"
23 | (h/factory-apply StepGroup))
24 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/step/ui_step_title.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.elements.step.ui-step-title
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/elements/Step/StepTitle" :default StepTitle]))
5 |
6 | (def ui-step-title
7 | "A step can contain a title.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply StepTitle))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/accordion/ui_accordion.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.accordion.ui-accordion
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Accordion/Accordion" :default Accordion]))
5 |
6 | (def ui-accordion
7 | "An accordion allows users to toggle the display of sections of content.
8 |
9 | Props:
10 | - className (string): Additional classes.
11 | - fluid (bool): Format to take up the width of its container.
12 | - inverted (bool): Format for dark backgrounds.
13 | - styled (bool): Adds some basic styling to accordion panels."
14 | (h/factory-apply Accordion))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/accordion/ui_accordion_accordion.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.accordion.ui-accordion-accordion
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Accordion/AccordionAccordion" :default AccordionAccordion]))
5 |
6 | (def ui-accordion-accordion
7 | "An Accordion can contain sub-accordions.
8 |
9 | Props:
10 | - activeIndex (union): Index of the currently active panel. ()
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - defaultActiveIndex (union): Initial activeIndex value. ()
15 | - exclusive (bool): Only allow one panel open at a time.
16 | - onTitleClick (func): Called when a panel title is clicked. ()
17 | - panels (arrayOf): Shorthand array of props for Accordion. ()"
18 | (h/factory-apply AccordionAccordion))
19 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/accordion/ui_accordion_content.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.accordion.ui-accordion-content
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Accordion/AccordionContent" :default AccordionContent]))
5 |
6 | (def ui-accordion-content
7 | "A content sub-component for Accordion component.
8 |
9 | Props:
10 | - active (bool): Whether or not the content is visible.
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content."
15 | (h/factory-apply AccordionContent))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/accordion/ui_accordion_panel.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.accordion.ui-accordion-panel
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Accordion/AccordionPanel" :default AccordionPanel]))
5 |
6 | (def ui-accordion-panel
7 | "A panel sub-component for Accordion component.
8 |
9 | Props:
10 | - active (bool): Whether or not the title is in the open state.
11 | - content (custom): A shorthand for Accordion.Content.
12 | - index (number|string): A panel index. ()
13 | - onTitleClick (func): Called when a panel title is clicked.
14 | - title (custom): A shorthand for Accordion.Title."
15 | (h/factory-apply AccordionPanel))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/accordion/ui_accordion_title.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.accordion.ui-accordion-title
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Accordion/AccordionTitle" :default AccordionTitle]))
5 |
6 | (def ui-accordion-title
7 | "A title sub-component for Accordion component.
8 |
9 | Props:
10 | - active (bool): Whether or not the title is in the open state.
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content.
15 | - index (string|number): AccordionTitle index inside Accordion. ()
16 | - onClick (func): Called on click."
17 | (h/factory-apply AccordionTitle))
18 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/checkbox/ui_checkbox.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.checkbox.ui-checkbox
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Checkbox/Checkbox" :default Checkbox]))
5 |
6 | (def ui-checkbox
7 | "A checkbox allows a user to select a value from a small set of options, often binary.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - checked (bool): Whether or not checkbox is checked.
12 | - className (string): Additional classes.
13 | - defaultChecked (bool): The initial value of checked.
14 | - defaultIndeterminate (bool): Whether or not checkbox is indeterminate.
15 | - disabled (bool): A checkbox can appear disabled and be unable to change states
16 | - fitted (bool): Removes padding for a label. Auto applied when there is no label.
17 | - id (number|string): A unique identifier. ()
18 | - indeterminate (bool): Whether or not checkbox is indeterminate.
19 | - label (custom): The text of the associated label element.
20 | - name (string): The HTML input name.
21 | - onChange (func): Called when the user attempts to change the checked state.
22 | - onClick (func): Called when the checkbox or label is clicked.
23 | - onMouseDown (func): Called when the user presses down on the mouse.
24 | - onMouseUp (func): Called when the user releases the mouse.
25 | - radio (bool): Format as a radio element. This means it is an exclusive option. ()
26 | - readOnly (bool): A checkbox can be read-only and unable to change states.
27 | - slider (bool): Format to emphasize the current selection state. ()
28 | - tabIndex (number|string): A checkbox can receive focus. ()
29 | - toggle (bool): Format to show an on or off choice. ()
30 | - type (enum): HTML input type, either checkbox or radio. (checkbox, radio)
31 | - value (string|number): The HTML input value. ()"
32 | (h/wrapped-factory-apply Checkbox))
33 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/dimmer/ui_dimmer.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.dimmer.ui-dimmer
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Dimmer/Dimmer" :default Dimmer]))
5 |
6 | (def ui-dimmer
7 | "A dimmer hides distractions to focus attention on particular content.
8 |
9 | Props:
10 | - active (bool): An active dimmer will dim its parent container.
11 | - page (bool): A dimmer can be formatted to be fixed to the page."
12 | (h/factory-apply Dimmer))
13 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/dimmer/ui_dimmer_dimmable.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.dimmer.ui-dimmer-dimmable
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Dimmer/DimmerDimmable" :default DimmerDimmable]))
5 |
6 | (def ui-dimmer-dimmable
7 | "A dimmable sub-component for Dimmer.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - blurring (bool): A dimmable element can blur its contents.
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content.
15 | - dimmed (bool): Controls whether or not the dim is displayed."
16 | (h/factory-apply DimmerDimmable))
17 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/dimmer/ui_dimmer_inner.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.dimmer.ui-dimmer-inner
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Dimmer/DimmerInner" :default DimmerInner]))
5 |
6 | (def ui-dimmer-inner
7 | "An inner element for a Dimmer.
8 |
9 | Props:
10 | - active (bool): An active dimmer will dim its parent container.
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content.
15 | - disabled (bool): A disabled dimmer cannot be activated
16 | - inverted (bool): A dimmer can be formatted to have its colors inverted.
17 | - onClick (func): Called on click.
18 | - onClickOutside (func): Handles click outside Dimmer's content, but inside Dimmer area.
19 | - page (bool): A dimmer can be formatted to be fixed to the page.
20 | - simple (bool): A dimmer can be controlled with simple prop.
21 | - verticalAlign (enum): A dimmer can have its content top or bottom aligned. (bottom, top)"
22 | (h/factory-apply DimmerInner))
23 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/dropdown/ui_dropdown_divider.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.dropdown.ui-dropdown-divider
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Dropdown/DropdownDivider" :default DropdownDivider]))
5 |
6 | (def ui-dropdown-divider
7 | "A dropdown menu can contain dividers to separate related content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - className (string): Additional classes."
12 | (h/factory-apply DropdownDivider))
13 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/dropdown/ui_dropdown_header.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.dropdown.ui-dropdown-header
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Dropdown/DropdownHeader" :default DropdownHeader]))
5 |
6 | (def ui-dropdown-header
7 | "A dropdown menu can contain a header.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function)
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - icon (custom): Shorthand for Icon."
15 | (h/factory-apply DropdownHeader))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/dropdown/ui_dropdown_item.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.dropdown.ui-dropdown-item
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Dropdown/DropdownItem" :default DropdownItem]))
5 |
6 | (def ui-dropdown-item
7 | "An item sub-component for Dropdown component.
8 |
9 | Props:
10 | - active (bool): Style as the currently chosen item.
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content.
15 | - description (custom): Additional text with less emphasis.
16 | - disabled (bool): A dropdown item can be disabled.
17 | - flag (custom): Shorthand for Flag.
18 | - icon (custom): Shorthand for Icon.
19 | - image (custom): Shorthand for Image.
20 | - label (custom): Shorthand for Label.
21 | - onClick (func): Called on click.
22 | - selected (bool): The item currently selected by keyboard shortcut.
23 | - text (custom): Display text.
24 | - value (bool|number|string): Stored value. ()"
25 | (h/factory-apply DropdownItem))
26 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/dropdown/ui_dropdown_menu.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.dropdown.ui-dropdown-menu
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Dropdown/DropdownMenu" :default DropdownMenu]))
5 |
6 | (def ui-dropdown-menu
7 | "A dropdown menu can contain a menu.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - direction (enum): A dropdown menu can open to the left or to the right. (left, right)
15 | - open (bool): Whether or not the dropdown menu is displayed.
16 | - scrolling (bool): A dropdown menu can scroll."
17 | (h/factory-apply DropdownMenu))
18 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/dropdown/ui_dropdown_search_input.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.dropdown.ui-dropdown-search-input
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Dropdown/DropdownSearchInput" :default DropdownSearchInput]))
5 |
6 | (def ui-dropdown-search-input
7 | "A search item sub-component for Dropdown component.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - autoComplete (string): An input can have the auto complete.
12 | - className (string): Additional classes.
13 | - inputRef (func|object): A ref handler for input. ()
14 | - tabIndex (number|string): An input can receive focus. ()
15 | - type (string): The HTML input type.
16 | - value (number|string): Stored value. ()"
17 | (h/wrapped-factory-apply DropdownSearchInput))
18 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/embed/ui_embed.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.embed.ui-embed
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Embed/Embed" :default Embed]))
5 |
6 | (def ui-embed
7 | "An embed displays content from other websites like YouTube videos or Google Maps.
8 |
9 | Props:
10 | - active (bool): An embed can be active.
11 | - as (custom): An element type to render as (string or function).
12 | - aspectRatio (enum): An embed can specify an alternative aspect ratio. (4:3, 16:9, 21:9)
13 | - autoplay (bool): Setting to true or false will force autoplay. ()
14 | - brandedUI (bool): Whether to show networks branded UI like title cards, or after video calls to action. ()
15 | - children (node): Primary content.
16 | - className (string): Additional classes.
17 | - color (string): Specifies a default chrome color with Vimeo or YouTube. ()
18 | - content (custom): Shorthand for primary content.
19 | - defaultActive (bool): Initial value of active.
20 | - hd (bool): Whether to prefer HD content. ()
21 | - icon (custom): Specifies an icon to use with placeholder content.
22 | - id (string): Specifies an id for source. ()
23 | - iframe (custom): Shorthand for HTML iframe. ()
24 | - onClick (func): Сalled on click.
25 | - placeholder (string): A placeholder image for embed.
26 | - source (enum): Specifies a source to use. (youtube, vimeo)
27 | - url (string): Specifies a url to use for embed. ()"
28 | (h/factory-apply Embed))
29 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/modal/ui_modal.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.modal.ui-modal
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Modal/Modal" :default Modal]))
5 |
6 | (def ui-modal
7 | "A modal displays content that temporarily blocks interactions with the main view of a site.
8 |
9 | Props:
10 | - actions (custom): Shorthand for Modal.Actions. Typically an array of button shorthand.
11 | - as (custom): An element type to render as (string or function).
12 | - basic (bool): A modal can reduce its complexity
13 | - centered (bool): A modal can be vertically centered in the viewport
14 | - children (node): Primary content.
15 | - className (string): Additional classes.
16 | - closeIcon (node|object|bool): Shorthand for the close icon. Closes the modal on click. ()
17 | - closeOnDimmerClick (bool): Whether or not the Modal should close when the dimmer is clicked.
18 | - closeOnDocumentClick (bool): Whether or not the Modal should close when the document is clicked.
19 | - content (custom): Simple text content for the Modal.
20 | - defaultOpen (bool): Initial value of open.
21 | - dimmer (enum): A Modal can appear in a dimmer. (true, inverted, blurring)
22 | - eventPool (string): Event pool namespace that is used to handle component events
23 | - header (custom): Modal displayed above the content in bold.
24 | - mountNode (any): The node where the modal should mount. Defaults to document.body.
25 | - onActionClick (func): Action onClick handler when using shorthand `actions`.
26 | - onClose (func): Called when a close event happens.
27 | - onMount (func): Called when the portal is mounted on the DOM.
28 | - onOpen (func): Called when an open event happens.
29 | - onUnmount (func): Called when the portal is unmounted from the DOM.
30 | - open (bool): Controls whether or not the Modal is displayed.
31 | - size (enum): A modal can vary in size (mini, tiny, small, large, fullscreen)
32 | - style (object): Custom styles.
33 | - trigger (node): Element to be rendered in-place where the portal is defined."
34 | (h/factory-apply Modal))
35 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/modal/ui_modal_actions.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.modal.ui-modal-actions
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Modal/ModalActions" :default ModalActions]))
5 |
6 | (def ui-modal-actions
7 | "A modal can contain a row of actions.
8 |
9 | Props:
10 | - actions (custom): Array of shorthand buttons.
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content.
15 | - onActionClick (func): Action onClick handler when using shorthand `actions`. ()"
16 | (h/factory-apply ModalActions))
17 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/modal/ui_modal_content.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.modal.ui-modal-content
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Modal/ModalContent" :default ModalContent]))
5 |
6 | (def ui-modal-content
7 | "A modal can contain content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - image (bool): A modal can contain image content.
15 | - scrolling (bool): A modal can use the entire size of the screen."
16 | (h/factory-apply ModalContent))
17 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/modal/ui_modal_description.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.modal.ui-modal-description
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Modal/ModalDescription" :default ModalDescription]))
5 |
6 | (def ui-modal-description
7 | "A modal can have a header.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply ModalDescription))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/modal/ui_modal_header.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.modal.ui-modal-header
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Modal/ModalHeader" :default ModalHeader]))
5 |
6 | (def ui-modal-header
7 | "A modal can have a header.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply ModalHeader))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/popup/ui_popup.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.popup.ui-popup
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Popup/Popup" :default Popup]))
5 |
6 | (def ui-popup
7 | "A Popup displays additional information on top of a page.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - basic (bool): Display the popup without the pointing arrow.
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Simple text content for the popover.
15 | - context (object): Existing element the pop-up should be bound to.
16 | - flowing (bool): A flowing Popup has no maximum width and continues to flow to fit its content.
17 | - header (custom): Header displayed above the content in bold.
18 | - hideOnScroll (bool): Hide the Popup when scrolling the window.
19 | - horizontalOffset (number): Horizontal offset in pixels to be applied to the Popup.
20 | - hoverable (bool): Whether the popup should not close on hover.
21 | - inverted (bool): Invert the colors of the Popup.
22 | - keepInViewPort (bool): Element to be rendered within the confines of the viewport whenever possible.
23 | - on (enum|arrayOf): Events triggering the popup. (hover, click, focus)
24 | - onClose (func): Called when a close event happens.
25 | - onMount (func): Called when the portal is mounted on the DOM.
26 | - onOpen (func): Called when an open event happens.
27 | - onUnmount (func): Called when the portal is unmounted from the DOM.
28 | - position (enum): Position for the popover. (top left, top right, bottom right, bottom left, right center, left center, top center, bottom center)
29 | - size (enum): Popup size. (mini, tiny, small, large, huge)
30 | - style (object): Custom Popup style.
31 | - trigger (node): Element to be rendered in-place where the popup is defined.
32 | - verticalOffset (number): Vertical offset in pixels to be applied to the Popup.
33 | - wide (bool|enum): Popup width. (very)"
34 | (h/factory-apply Popup))
35 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/popup/ui_popup_content.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.popup.ui-popup-content
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Popup/PopupContent" :default PopupContent]))
5 |
6 | (def ui-popup-content
7 | "A PopupContent displays the content body of a Popover.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): The content of the Popup
12 | - className (string): Classes to add to the Popup content className.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply PopupContent))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/popup/ui_popup_header.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.popup.ui-popup-header
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Popup/PopupHeader" :default PopupHeader]))
5 |
6 | (def ui-popup-header
7 | "A PopupHeader displays a header in a Popover.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply PopupHeader))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/progress/ui_progress.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.progress.ui-progress
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Progress/Progress" :default Progress]))
5 |
6 | (def ui-progress
7 | "A progress bar shows the progression of a task.
8 |
9 | Props:
10 | - active (bool): A progress bar can show activity.
11 | - as (custom): An element type to render as (string or function).
12 | - attached (enum): A progress bar can attach to and show the progress of an element (i.e. Card or Segment). (top, bottom)
13 | - autoSuccess (bool): Whether success state should automatically trigger when progress completes.
14 | - children (node): Primary content.
15 | - className (string): Additional classes.
16 | - color (enum): A progress bar can have different colors. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
17 | - content (custom): Shorthand for primary content.
18 | - disabled (bool): A progress bar be disabled.
19 | - error (bool): A progress bar can show a error state.
20 | - indicating (bool): An indicating progress bar visually indicates the current level of progress of a task.
21 | - inverted (bool): A progress bar can have its colors inverted.
22 | - label (custom): Can be set to either to display progress as percent or ratio.
23 | - percent (union): Current percent complete. ()
24 | - precision (number): Decimal point precision for calculated progress.
25 | - progress (bool|enum): A progress bar can contain a text value indicating current progress. (percent, ratio, value)
26 | - size (enum): A progress bar can vary in size. (tiny, small, medium, large, big)
27 | - success (bool): A progress bar can show a success state.
28 | - total (union): For use with value. Together, these will calculate the percent. Mutually excludes percent. ()
29 | - value (union): For use with total. Together, these will calculate the percent. Mutually excludes percent. ()
30 | - warning (bool): A progress bar can show a warning state."
31 | (h/factory-apply Progress))
32 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/rating/ui_rating.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.rating.ui-rating
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Rating/Rating" :default Rating]))
5 |
6 | (def ui-rating
7 | "A rating indicates user interest in content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - className (string): Additional classes.
12 | - clearable (bool|enum): You can clear the rating by clicking on the current start rating. (auto)
13 | - defaultRating (number|string): The initial rating value. ()
14 | - disabled (bool): You can disable or enable interactive rating. Makes a read-only rating.
15 | - icon (enum): A rating can use a set of star or heart icons. (star, heart)
16 | - maxRating (number|string): The total number of icons. ()
17 | - onRate (func): Called after user selects a new rating.
18 | - rating (number|string): The current number of active icons. ()
19 | - size (enum): A progress bar can vary in size. (mini, tiny, small, large, huge, massive)"
20 | (h/factory-apply Rating))
21 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/rating/ui_rating_icon.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.rating.ui-rating-icon
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Rating/RatingIcon" :default RatingIcon]))
5 |
6 | (def ui-rating-icon
7 | "An internal icon sub-component for Rating component
8 |
9 | Props:
10 | - active (bool): Indicates activity of an icon.
11 | - as (custom): An element type to render as (string or function).
12 | - className (string): Additional classes.
13 | - index (number): An index of icon inside Rating.
14 | - onClick (func): Called on click.
15 | - onKeyUp (func): Called on keyup.
16 | - onMouseEnter (func): Called on mouseenter.
17 | - selected (bool): Indicates selection of an icon."
18 | (h/factory-apply RatingIcon))
19 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/search/ui_search.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.search.ui-search
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Search/Search" :default Search]))
5 |
6 | (def ui-search
7 | "A search module allows a user to query for results from a selection of data
8 |
9 | Props:
10 | - aligned (string): A search can have its results aligned to its left or right container edge.
11 | - as (custom): An element type to render as (string or function).
12 | - category (bool): A search can display results from remote content ordered by categories.
13 | - categoryRenderer (func): Renders the SearchCategory contents.
14 | - className (string): Additional classes.
15 | - defaultOpen (bool): Initial value of open.
16 | - defaultValue (string): Initial value.
17 | - fluid (bool): A search can have its results take up the width of its container.
18 | - icon (node|object): Shorthand for Icon. ()
19 | - input (custom): A search input can take up the width of its container.
20 | - loading (bool): A search can show a loading indicator.
21 | - minCharacters (number): Minimum characters to query for results
22 | - noResultsDescription (node): Additional text for \"No Results\" message with less emphasis.
23 | - noResultsMessage (node): Message to display when there are no results.
24 | - onBlur (func): Called on blur.
25 | - onFocus (func): Called on focus.
26 | - onMouseDown (func): Called on mousedown.
27 | - onResultSelect (func): Called when a result is selected.
28 | - onSearchChange (func): Called on search input change.
29 | - onSelectionChange (func): Called when the active selection index is changed.
30 | - open (bool): Controls whether or not the results menu is displayed.
31 | - resultRenderer (func): Renders the SearchResult contents.
32 | - results (arrayOf|shape): One of: ()
33 | - selectFirstResult (bool): Whether the search should automatically select the first result after searching.
34 | - showNoResults (bool): Whether a \"no results\" message should be shown if no results are found.
35 | - size (enum): A search can have different sizes. (mini, tiny, small, large, big, huge, massive)
36 | - value (string): Current value of the search input. Creates a controlled component."
37 | (h/wrapped-factory-apply Search))
38 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/search/ui_search_category.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.search.ui-search-category
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Search/SearchCategory" :default SearchCategory]))
5 |
6 | (def ui-search-category
7 | "
8 |
9 | Props:
10 | - active (bool): The item currently selected by keyboard shortcut.
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content.
15 | - name (string): Display name.
16 | - renderer (func): Renders the category contents.
17 | - results (array): Array of Search.Result props."
18 | (h/factory-apply SearchCategory))
19 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/search/ui_search_result.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.search.ui-search-result
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Search/SearchResult" :default SearchResult]))
5 |
6 | (def ui-search-result
7 | "
8 |
9 | Props:
10 | - active (bool): The item currently selected by keyboard shortcut.
11 | - as (custom): An element type to render as (string or function).
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - description (string): Additional text with less emphasis.
15 | - id (number|string): A unique identifier. ()
16 | - image (string): Add an image to the item.
17 | - onClick (func): Called on click.
18 | - price (string): Customized text for price.
19 | - renderer (func): Renders the result contents.
20 | - title (string): Display title."
21 | (h/factory-apply SearchResult))
22 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/search/ui_search_results.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.search.ui-search-results
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Search/SearchResults" :default SearchResults]))
5 |
6 | (def ui-search-results
7 | "
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply SearchResults))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/sidebar/ui_sidebar.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.sidebar.ui-sidebar
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Sidebar/Sidebar" :default Sidebar]))
5 |
6 | (def ui-sidebar
7 | "A sidebar hides additional content beside a page.
8 |
9 | Props:
10 | - animation (enum): Animation style. (overlay, push, scale down, uncover, slide out, slide along)
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content.
15 | - direction (enum): Direction the sidebar should appear on. (top, right, bottom, left)
16 | - onHidden (func): Called after a sidebar has finished animating out.
17 | - onHide (func): Called before a sidebar begins to animate out.
18 | - onShow (func): Called when a sidebar has finished animating in.
19 | - onVisible (func): Called when a sidebar begins animating in.
20 | - target (object): A sidebar can handle clicks on the passed element.
21 | - visible (bool): Controls whether or not the sidebar is visible on the page.
22 | - width (enum): Sidebar width. (very thin, thin, wide, very wide)"
23 | (h/factory-apply Sidebar))
24 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/sidebar/ui_sidebar_pushable.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.sidebar.ui-sidebar-pushable
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Sidebar/SidebarPushable" :default SidebarPushable]))
5 |
6 | (def ui-sidebar-pushable
7 | "A pushable sub-component for Sidebar.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply SidebarPushable))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/sidebar/ui_sidebar_pusher.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.sidebar.ui-sidebar-pusher
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Sidebar/SidebarPusher" :default SidebarPusher]))
5 |
6 | (def ui-sidebar-pusher
7 | "A pushable sub-component for Sidebar.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - dimmed (bool): Controls whether or not the dim is displayed."
15 | (h/factory-apply SidebarPusher))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/sticky/ui_sticky.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.sticky.ui-sticky
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Sticky/Sticky" :default Sticky]))
5 |
6 | (def ui-sticky
7 | "Sticky content stays fixed to the browser viewport while another column of content is visible on the page.
8 |
9 | Props:
10 | - active (bool): A Sticky can be active.
11 | - as (custom): An element type to render as (string or function).
12 | - bottomOffset (number): Offset in pixels from the bottom of the screen when fixing element to viewport.
13 | - children (node): Primary content.
14 | - className (string): Additional classes.
15 | - context (object): Context which sticky element should stick to.
16 | - offset (number): Offset in pixels from the top of the screen when fixing element to viewport.
17 | - onBottom (func): Callback when element is bound to bottom of parent container.
18 | - onStick (func): Callback when element is fixed to page.
19 | - onTop (func): Callback when element is bound to top of parent container.
20 | - onUnstick (func): Callback when element is unfixed from page.
21 | - pushing (bool): Whether element should be \"pushed\" by the viewport, attaching to the bottom of the screen when scrolling up.
22 | - scrollContext (object): Context which sticky should attach onscroll events.
23 | - styleElement (object): Custom style for sticky element."
24 | (h/factory-apply Sticky))
25 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/tab/ui_tab.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.tab.ui-tab
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Tab/Tab" :default Tab]))
5 |
6 | (def ui-tab
7 | "A Tab is a hidden section of content activated by a Menu.
8 |
9 | Props:
10 | - activeIndex (number|string): Index of the currently active tab. ()
11 | - as (custom): An element type to render as (string or function).
12 | - defaultActiveIndex (number|string): The initial activeIndex. ()
13 | - grid (object): Shorthand props for the Grid.
14 | - menu (object): Shorthand props for the Menu.
15 | - menuPosition (enum): Align vertical menu (left, right)
16 | - onTabChange (func): Called on tab change.
17 | - panes (arrayOf): Array of objects describing each Menu.Item and Tab.Pane: ([:name \"shape\"], [:value {:menuItem {:name \"custom\", :raw \"customPropTypes.itemShorthand\", :required false}, :pane {:name \"custom\", :raw \"customPropTypes.itemShorthand\", :required false}, :render {:name \"func\", :required false}}])
18 | - renderActiveOnly (bool): A Tab can render only active pane."
19 | (h/factory-apply Tab))
20 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/tab/ui_tab_pane.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.tab.ui-tab-pane
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Tab/TabPane" :default TabPane]))
5 |
6 | (def ui-tab-pane
7 | "A tab pane holds the content of a tab.
8 |
9 | Props:
10 | - active (bool): A tab pane can be active.
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content.
15 | - loading (bool): A Tab.Pane can display a loading indicator."
16 | (h/factory-apply TabPane))
17 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/transition/ui_transition.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.transition.ui-transition
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Transition/Transition" :default Transition]))
5 |
6 | (def ui-transition
7 | "A transition is an animation usually used to move content in or out of view.
8 |
9 | Props:
10 | - animation (enum): Named animation event to used. Must be defined in CSS. (browse, browse right, drop, fade, fade up, fade down, fade left, fade right, fly up, fly down, fly left, fly right, horizontal flip, vertical flip, scale, slide up, slide down, slide left, slide right, swing up, swing down, swing left, swing right, zoom, jiggle, flash, shake, pulse, tada, bounce, glow)
11 | - children (element): Primary content.
12 | - duration (number|shape|string): Duration of the CSS transition animation in milliseconds. ()
13 | - mountOnShow (bool): Wait until the first \"enter\" transition to mount the component (add it to the DOM).
14 | - onComplete (func): Callback on each transition that changes visibility to shown.
15 | - onHide (func): Callback on each transition that changes visibility to hidden.
16 | - onShow (func): Callback on each transition that changes visibility to shown.
17 | - onStart (func): Callback on animation start.
18 | - reactKey (string): React's key of the element.
19 | - transitionOnMount (bool): Run the enter animation when the component mounts, if it is initially shown.
20 | - unmountOnHide (bool): Unmount the component (remove it from the DOM) when it is not shown.
21 | - visible (bool): Show the component; triggers the enter or exit animation."
22 | (h/factory-apply Transition))
23 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/transition/ui_transition_group.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.modules.transition.ui-transition-group
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/modules/Transition/TransitionGroup" :default TransitionGroup]))
5 |
6 | (def ui-transition-group
7 | "A Transition.Group animates children as they mount and unmount.
8 |
9 | Props:
10 | - animation (enum): Named animation event to used. Must be defined in CSS. (browse, browse right, drop, fade, fade up, fade down, fade left, fade right, fly up, fly down, fly left, fly right, horizontal flip, vertical flip, scale, slide up, slide down, slide left, slide right, swing up, swing down, swing left, swing right, zoom, jiggle, flash, shake, pulse, tada, bounce, glow)
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - duration (number|shape|string): Duration of the CSS transition animation in milliseconds. ()"
14 | (h/factory-apply TransitionGroup))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/advertisement/ui_advertisement.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.advertisement.ui-advertisement
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Advertisement/Advertisement" :default Advertisement]))
5 |
6 | (def ui-advertisement
7 | "An ad displays third-party promotional content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - centered (bool): Center the advertisement.
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content.
15 | - test (bool|number|string): Text to be displayed on the advertisement. ()
16 | - unit (enum): Varies the size of the advertisement. (medium rectangle, large rectangle, vertical rectangle, small rectangle, mobile banner, banner, vertical banner, top banner, half banner, button, square button, small button, skyscraper, wide skyscraper, leaderboard, large leaderboard, mobile leaderboard, billboard, panorama, netboard, half page, square, small square)"
17 | (h/factory-apply Advertisement))
18 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/card/ui_card.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.card.ui-card
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Card/Card" :default Card]))
5 |
6 | (def ui-card
7 | "A card displays site content in a manner similar to a playing card.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - centered (bool): A Card can center itself inside its container.
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - color (enum): A Card can be formatted to display different colors. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
15 | - content (custom): Shorthand for primary content.
16 | - description (custom): Shorthand for CardDescription.
17 | - extra (custom): Shorthand for primary content of CardContent.
18 | - fluid (bool): A Card can be formatted to take up the width of its container.
19 | - header (custom): Shorthand for CardHeader.
20 | - href (string): Render as an `a` tag instead of a `div` and adds the href attribute.
21 | - image (custom): A card can contain an Image component.
22 | - link (bool): A card can be formatted to link to other content.
23 | - meta (custom): Shorthand for CardMeta.
24 | - onClick (func): Called on click. When passed, the component renders as an `a`
25 | - raised (bool): A Card can be formatted to raise above the page."
26 | (h/factory-apply Card))
27 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/card/ui_card_content.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.card.ui-card-content
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Card/CardContent" :default CardContent]))
5 |
6 | (def ui-card-content
7 | "A card can contain blocks of content or extra content meant to be formatted separately from the main content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - description (custom): Shorthand for CardDescription.
15 | - extra (bool): A card can contain extra content meant to be formatted separately from the main content.
16 | - header (custom): Shorthand for CardHeader.
17 | - meta (custom): Shorthand for CardMeta.
18 | - textAlign (enum): A card content can adjust its text alignment. (left, center, right)"
19 | (h/factory-apply CardContent))
20 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/card/ui_card_description.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.card.ui-card-description
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Card/CardDescription" :default CardDescription]))
5 |
6 | (def ui-card-description
7 | "A card can contain a description with one or more paragraphs.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - textAlign (enum): A card content can adjust its text alignment. (left, center, right)"
15 | (h/factory-apply CardDescription))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/card/ui_card_group.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.card.ui-card-group
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Card/CardGroup" :default CardGroup]))
5 |
6 | (def ui-card-group
7 | "A group of cards.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - centered (bool): A group of cards can center itself inside its container.
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content.
15 | - doubling (bool): A group of cards can double its column width for mobile.
16 | - items (custom): Shorthand array of props for Card.
17 | - itemsPerRow (enum): A group of cards can set how many cards should exist in a row. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen)
18 | - stackable (bool): A group of cards can automatically stack rows to a single columns on mobile devices.
19 | - textAlign (enum): A card group can adjust its text alignment. (left, center, right)"
20 | (h/factory-apply CardGroup))
21 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/card/ui_card_header.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.card.ui-card-header
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Card/CardHeader" :default CardHeader]))
5 |
6 | (def ui-card-header
7 | "A card can contain a header.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - textAlign (enum): A card header can adjust its text alignment. (left, center, right)"
15 | (h/factory-apply CardHeader))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/card/ui_card_meta.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.card.ui-card-meta
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Card/CardMeta" :default CardMeta]))
5 |
6 | (def ui-card-meta
7 | "A card can contain content metadata.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - textAlign (enum): A card meta can adjust its text alignment. (left, center, right)"
15 | (h/factory-apply CardMeta))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/comment/ui_comment.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.comment.ui-comment
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Comment/Comment" :default Comment]))
5 |
6 | (def ui-comment
7 | "A comment displays user feedback to site content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - collapsed (bool): Comment can be collapsed, or hidden from view.
14 | - content (custom): Shorthand for primary content."
15 | (h/factory-apply Comment))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/comment/ui_comment_action.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.comment.ui-comment-action
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Comment/CommentAction" :default CommentAction]))
5 |
6 | (def ui-comment-action
7 | "A comment can contain an action.
8 |
9 | Props:
10 | - active (bool): Style as the currently active action.
11 | - as (custom): An element type to render as (string or function).
12 | - children (node): Primary content.
13 | - className (string): Additional classes.
14 | - content (custom): Shorthand for primary content."
15 | (h/factory-apply CommentAction))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/comment/ui_comment_actions.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.comment.ui-comment-actions
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Comment/CommentActions" :default CommentActions]))
5 |
6 | (def ui-comment-actions
7 | "A comment can contain an list of actions a user may perform related to this comment.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply CommentActions))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/comment/ui_comment_author.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.comment.ui-comment-author
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Comment/CommentAuthor" :default CommentAuthor]))
5 |
6 | (def ui-comment-author
7 | "A comment can contain an author.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply CommentAuthor))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/comment/ui_comment_avatar.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.comment.ui-comment-avatar
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Comment/CommentAvatar" :default CommentAvatar]))
5 |
6 | (def ui-comment-avatar
7 | "A comment can contain an image or avatar.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - className (string): Additional classes.
12 | - src (string): Specifies the URL of the image."
13 | (h/factory-apply CommentAvatar))
14 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/comment/ui_comment_content.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.comment.ui-comment-content
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Comment/CommentContent" :default CommentContent]))
5 |
6 | (def ui-comment-content
7 | "A comment can contain content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply CommentContent))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/comment/ui_comment_group.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.comment.ui-comment-group
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Comment/CommentGroup" :default CommentGroup]))
5 |
6 | (def ui-comment-group
7 | "Comments can be grouped.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - collapsed (bool): Comments can be collapsed, or hidden from view.
14 | - content (custom): Shorthand for primary content.
15 | - minimal (bool): Comments can hide extra information unless a user shows intent to interact with a comment.
16 | - size (enum): Comments can have different sizes. (mini, tiny, small, large, big, huge, massive)
17 | - threaded (bool): A comment list can be threaded to showing the relationship between conversations."
18 | (h/factory-apply CommentGroup))
19 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/comment/ui_comment_metadata.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.comment.ui-comment-metadata
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Comment/CommentMetadata" :default CommentMetadata]))
5 |
6 | (def ui-comment-metadata
7 | "A comment can contain metadata about the comment, an arbitrary amount of metadata may be defined.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply CommentMetadata))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/comment/ui_comment_text.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.comment.ui-comment-text
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Comment/CommentText" :default CommentText]))
5 |
6 | (def ui-comment-text
7 | "A comment can contain text.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply CommentText))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/feed/ui_feed.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.feed.ui-feed
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Feed/Feed" :default Feed]))
5 |
6 | (def ui-feed
7 | "A feed presents user activity chronologically.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - events (custom): Shorthand array of props for FeedEvent.
14 | - size (enum): A feed can have different sizes. (small, large)"
15 | (h/factory-apply Feed))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/feed/ui_feed_content.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.feed.ui-feed-content
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Feed/FeedContent" :default FeedContent]))
5 |
6 | (def ui-feed-content
7 | "
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - date (custom): An event can contain a date.
15 | - extraImages (custom): Shorthand for FeedExtra with images.
16 | - extraText (custom): Shorthand for FeedExtra with text.
17 | - meta (custom): Shorthand for FeedMeta.
18 | - summary (custom): Shorthand for FeedSummary."
19 | (h/factory-apply FeedContent))
20 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/feed/ui_feed_date.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.feed.ui-feed-date
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Feed/FeedDate" :default FeedDate]))
5 |
6 | (def ui-feed-date
7 | "An event or an event summary can contain a date.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply FeedDate))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/feed/ui_feed_event.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.feed.ui-feed-event
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Feed/FeedEvent" :default FeedEvent]))
5 |
6 | (def ui-feed-event
7 | "A feed contains an event.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for FeedContent.
14 | - date (custom): Shorthand for FeedDate.
15 | - extraImages (custom): Shorthand for FeedExtra with images.
16 | - extraText (custom): Shorthand for FeedExtra with content.
17 | - icon (custom): An event can contain icon label.
18 | - image (custom): An event can contain image label.
19 | - meta (custom): Shorthand for FeedMeta.
20 | - summary (custom): Shorthand for FeedSummary."
21 | (h/factory-apply FeedEvent))
22 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/feed/ui_feed_extra.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.feed.ui-feed-extra
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Feed/FeedExtra" :default FeedExtra]))
5 |
6 | (def ui-feed-extra
7 | "A feed can contain an extra content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - images (union): An event can contain additional information like a set of images. ()
15 | - text (bool): An event can contain additional text information."
16 | (h/factory-apply FeedExtra))
17 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/feed/ui_feed_label.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.feed.ui-feed-label
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Feed/FeedLabel" :default FeedLabel]))
5 |
6 | (def ui-feed-label
7 | "An event can contain an image or icon label.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - icon (custom): An event can contain icon label.
15 | - image (custom): An event can contain image label."
16 | (h/factory-apply FeedLabel))
17 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/feed/ui_feed_like.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.feed.ui-feed-like
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Feed/FeedLike" :default FeedLike]))
5 |
6 | (def ui-feed-like
7 | "A feed can contain a like element.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - icon (custom): Shorthand for icon. Mutually exclusive with children."
15 | (h/factory-apply FeedLike))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/feed/ui_feed_meta.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.feed.ui-feed-meta
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Feed/FeedMeta" :default FeedMeta]))
5 |
6 | (def ui-feed-meta
7 | "A feed can contain a meta.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - like (custom): Shorthand for FeedLike."
15 | (h/factory-apply FeedMeta))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/feed/ui_feed_summary.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.feed.ui-feed-summary
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Feed/FeedSummary" :default FeedSummary]))
5 |
6 | (def ui-feed-summary
7 | "A feed can contain a summary.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - date (custom): Shorthand for FeedDate.
15 | - user (custom): Shorthand for FeedUser."
16 | (h/factory-apply FeedSummary))
17 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/feed/ui_feed_user.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.feed.ui-feed-user
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Feed/FeedUser" :default FeedUser]))
5 |
6 | (def ui-feed-user
7 | "A feed can contain a user element.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply FeedUser))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/item/ui_item.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.item.ui-item
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Item/Item" :default Item]))
5 |
6 | (def ui-item
7 | "An item view presents large collections of site content for display.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for ItemContent component.
14 | - description (custom): Shorthand for ItemDescription component.
15 | - extra (custom): Shorthand for ItemExtra component.
16 | - header (custom): Shorthand for ItemHeader component.
17 | - image (custom): Shorthand for ItemImage component.
18 | - meta (custom): Shorthand for ItemMeta component."
19 | (h/factory-apply Item))
20 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/item/ui_item_content.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.item.ui-item-content
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Item/ItemContent" :default ItemContent]))
5 |
6 | (def ui-item-content
7 | "An item can contain content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - description (custom): Shorthand for ItemDescription component.
15 | - extra (custom): Shorthand for ItemExtra component.
16 | - header (custom): Shorthand for ItemHeader component.
17 | - meta (custom): Shorthand for ItemMeta component.
18 | - verticalAlign (enum): Content can specify its vertical alignment. (bottom, middle, top)"
19 | (h/factory-apply ItemContent))
20 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/item/ui_item_description.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.item.ui-item-description
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Item/ItemDescription" :default ItemDescription]))
5 |
6 | (def ui-item-description
7 | "An item can contain a description with a single or multiple paragraphs.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply ItemDescription))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/item/ui_item_extra.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.item.ui-item-extra
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Item/ItemExtra" :default ItemExtra]))
5 |
6 | (def ui-item-extra
7 | "An item can contain extra content meant to be formatted separately from the main content.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply ItemExtra))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/item/ui_item_group.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.item.ui-item-group
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Item/ItemGroup" :default ItemGroup]))
5 |
6 | (def ui-item-group
7 | "A group of items.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - divided (bool): Items can be divided to better distinguish between grouped content.
15 | - items (custom): Shorthand array of props for Item.
16 | - link (bool): An item can be formatted so that the entire contents link to another page.
17 | - relaxed (bool|enum): A group of items can relax its padding to provide more negative space. (very)
18 | - unstackable (bool): Prevent items from stacking on mobile."
19 | (h/factory-apply ItemGroup))
20 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/item/ui_item_header.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.item.ui-item-header
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Item/ItemHeader" :default ItemHeader]))
5 |
6 | (def ui-item-header
7 | "An item can contain a header.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply ItemHeader))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/item/ui_item_image.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.item.ui-item-image
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Item/ItemImage" :default ItemImage]))
5 |
6 | (def ui-item-image
7 | "An item can contain an image.
8 |
9 | Props:
10 | - size (custom): An image may appear at different sizes."
11 | (h/factory-apply ItemImage))
12 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/item/ui_item_meta.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.item.ui-item-meta
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Item/ItemMeta" :default ItemMeta]))
5 |
6 | (def ui-item-meta
7 | "An item can contain content metadata.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply ItemMeta))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/statistic/ui_statistic.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.statistic.ui-statistic
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Statistic/Statistic" :default Statistic]))
5 |
6 | (def ui-statistic
7 | "A statistic emphasizes the current value of an attribute.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - color (enum): A statistic can be formatted to be different colors. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
14 | - content (custom): Shorthand for primary content.
15 | - floated (enum): A statistic can sit to the left or right of other content. (left, right)
16 | - horizontal (bool): A statistic can present its measurement horizontally.
17 | - inverted (bool): A statistic can be formatted to fit on a dark background.
18 | - label (custom): Label content of the Statistic.
19 | - size (enum): A statistic can vary in size. (mini, tiny, small, large, huge)
20 | - text (bool): Format the StatisticValue with smaller font size to fit nicely beside number values.
21 | - value (custom): Value content of the Statistic."
22 | (h/factory-apply Statistic))
23 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/statistic/ui_statistic_group.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.statistic.ui-statistic-group
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Statistic/StatisticGroup" :default StatisticGroup]))
5 |
6 | (def ui-statistic-group
7 | "A group of statistics.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - color (enum): A statistic group can be formatted to be different colors. (red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)
14 | - content (custom): Shorthand for primary content.
15 | - horizontal (bool): A statistic group can present its measurement horizontally.
16 | - inverted (bool): A statistic group can be formatted to fit on a dark background.
17 | - items (custom): Array of props for Statistic.
18 | - size (enum): A statistic group can vary in size. (mini, tiny, small, large, huge)
19 | - widths (enum): A statistic group can have its items divided evenly. (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen)"
20 | (h/factory-apply StatisticGroup))
21 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/statistic/ui_statistic_label.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.statistic.ui-statistic-label
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Statistic/StatisticLabel" :default StatisticLabel]))
5 |
6 | (def ui-statistic-label
7 | "A statistic can contain a label to help provide context for the presented value.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content."
14 | (h/factory-apply StatisticLabel))
15 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/views/statistic/ui_statistic_value.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.views.statistic.ui-statistic-value
2 | (:require
3 | [fulcrologic.semantic-ui.factory-helpers :as h]
4 | ["semantic-ui-react/dist/commonjs/views/Statistic/StatisticValue" :default StatisticValue]))
5 |
6 | (def ui-statistic-value
7 | "A statistic can contain a numeric, icon, image, or text value.
8 |
9 | Props:
10 | - as (custom): An element type to render as (string or function).
11 | - children (node): Primary content.
12 | - className (string): Additional classes.
13 | - content (custom): Shorthand for primary content.
14 | - text (bool): Format the value with smaller font size to fit nicely beside number values."
15 | (h/factory-apply StatisticValue))
16 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/workspaces/fulcrologic/semantic_ui/workspaces/button.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.workspaces.button
2 | (:require [fulcro.client.primitives :as fp]
3 | [fulcro.client.localized-dom :as dom]
4 | [nubank.workspaces.core :as ws]
5 | [nubank.workspaces.card-types.fulcro :as ct.fulcro]
6 | [nubank.workspaces.lib.fulcro-portal :as f.portal]
7 | [fulcrologic.semantic-ui.elements.button.ui-button :refer [ui-button]]
8 | [fulcrologic.semantic-ui.elements.button.ui-button-group :refer [ui-button-group]]
9 | [fulcrologic.semantic-ui.elements.icon.ui-icon :refer [ui-icon]]
10 | [fulcrologic.semantic-ui.icons :as i]))
11 |
12 | (fp/defsc SomeButtons
13 | [this {:keys [x]}]
14 | {:initial-state (fn [_] {:x "x"})
15 | :ident (fn [] [::id "singleton"])
16 | :query [:x]}
17 |
18 | (dom/div {}
19 | (ui-button-group nil
20 | (ui-button nil "A")
21 | (ui-button nil "B")
22 | (ui-button nil "C"))
23 | (dom/br)
24 | (ui-button {} "A")
25 | (dom/br)
26 | (ui-button {:content "Like"
27 | :icon i/heart-icon
28 | :label {:as "a" :basic true :content "2,000"}
29 | :labelPosition "left"})
30 | (dom/br)
31 | (ui-button-group nil
32 | (ui-button {:icon true}
33 | (ui-icon {:name i/align-left-icon}))
34 | (ui-button {:icon true}
35 | (ui-icon {:name i/align-center-icon}))
36 | (ui-button {:icon true}
37 | (ui-icon {:name i/align-right-icon}))
38 | (ui-button {:icon true}
39 | (ui-icon {:name i/align-justify-icon}))
40 | )
41 | (ui-button {} "C")
42 | (dom/br)
43 | (ui-button {} "D")))
44 |
45 | (ws/defcard some-buttons
46 | (ct.fulcro/fulcro-card
47 | {::f.portal/root SomeButtons}))
48 |
49 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/workspaces/fulcrologic/semantic_ui/workspaces/dropdown.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.workspaces.dropdown
2 | (:require [fulcro.client.primitives :as fp]
3 | [fulcro.client.localized-dom :as dom]
4 | [nubank.workspaces.core :as ws]
5 | [nubank.workspaces.card-types.fulcro :as ct.fulcro]
6 | [nubank.workspaces.lib.fulcro-portal :as f.portal]
7 | [fulcrologic.semantic-ui.modules.dropdown.ui-dropdown :refer [ui-dropdown]]
8 | [fulcrologic.semantic-ui.modules.dropdown.ui-dropdown-menu :refer [ui-dropdown-menu]]
9 | [fulcrologic.semantic-ui.modules.dropdown.ui-dropdown-item :refer [ui-dropdown-item]]
10 | [fulcrologic.semantic-ui.modules.dropdown.ui-dropdown-divider :refer [ui-dropdown-divider]]
11 | [fulcrologic.semantic-ui.elements.icon.ui-icon :refer [ui-icon]]
12 | [fulcrologic.semantic-ui.icons :as i]))
13 |
14 | (fp/defsc Dropdown
15 | [this {:keys [x]}]
16 | {:initial-state (fn [_] {:x "x"})
17 | :ident (fn [] [::id "singleton"])
18 | :query [:x]}
19 |
20 | (dom/div {}
21 | (ui-dropdown {:text "File"}
22 | (ui-dropdown-menu {}
23 | (ui-dropdown-item {:text "New"})
24 | (ui-dropdown-item {:text "Open..." :description "ctrl + o"})
25 | (ui-dropdown-item {:text "Save as..." :description "ctrl + s"})
26 | (ui-dropdown-item {:text "Rename" :description "ctrl + r"})
27 | (ui-dropdown-item {:text "Make a copy"})
28 | (ui-dropdown-item {:icon i/folder-icon :text "Move to folder"})
29 | (ui-dropdown-item {:icon i/trash-icon :text "Move to trash"})
30 | (ui-dropdown-divider {})
31 | (ui-dropdown-item {:text "Download As..."})
32 | (ui-dropdown-item {:text "Publish To Web"})
33 | (ui-dropdown-item {:text "E-mail Collaborators"})))))
34 |
35 | (ws/defcard dropdown
36 | (ct.fulcro/fulcro-card
37 | {::f.portal/root Dropdown}))
38 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/workspaces/fulcrologic/semantic_ui/workspaces/form.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.workspaces.form
2 | (:require [fulcro.client.primitives :as fp]
3 | [fulcro.client.localized-dom :as dom]
4 | [nubank.workspaces.core :as ws]
5 | [nubank.workspaces.card-types.fulcro :as ct.fulcro]
6 | [nubank.workspaces.lib.fulcro-portal :as f.portal]
7 | [fulcro.client.mutations :as fm]
8 | [fulcrologic.semantic-ui.factory-helpers :as h]
9 | [fulcrologic.semantic-ui.elements.input.ui-input :refer [ui-input]]
10 | [fulcrologic.semantic-ui.collections.form.ui-form :refer [ui-form]]
11 | [fulcrologic.semantic-ui.collections.form.ui-form-input :refer [ui-form-input]]))
12 |
13 | (fp/defsc FormInput
14 | [this {:keys [my-x-val my-y-val]}]
15 | {:initial-state (fn [_] {:my-x-val "" :my-y-val ""})
16 | :ident (fn [] [::id "singleton-form-input"])
17 | :query [:my-x-val :my-y-val]}
18 | (let [on-x-change (fn [evt _] (fm/set-string! this :my-x-val :event evt))
19 | on-y-change (fn [evt _] (fm/set-string! this :my-y-val :event evt))]
20 | (dom/div
21 | (dom/p {} (str "x: " my-x-val))
22 | (dom/p {} (str "y: " my-y-val))
23 | (ui-form {:error true}
24 | (ui-form-input {:value my-x-val :onChange on-x-change :label "X" :error true})
25 | (ui-form-input {:value my-y-val :onChange on-y-change :label "Y"})))))
26 |
27 | (ws/defcard form-input-with-input-control
28 | (ct.fulcro/fulcro-card
29 | {::f.portal/root FormInput}))
30 |
31 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/workspaces/fulcrologic/semantic_ui/workspaces/icon.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.workspaces.icon
2 | (:require [fulcro.client.primitives :as fp]
3 | [fulcro.client.localized-dom :as dom]
4 | [nubank.workspaces.core :as ws]
5 | [nubank.workspaces.card-types.fulcro :as ct.fulcro]
6 | [nubank.workspaces.lib.fulcro-portal :as f.portal]
7 | [fulcro.client.mutations :as fm]
8 | [fulcrologic.semantic-ui.elements.icon.ui-icon :refer [ui-icon]]
9 | [fulcrologic.semantic-ui.icons :as i]
10 | [clojure.string :as string]
11 | [cljs.tools.reader :refer [read-string]]
12 | [cljs.js :refer [empty-state eval js-eval]]))
13 |
14 | (defn eval-str [s]
15 | (eval (empty-state)
16 | (read-string s)
17 | {:eval js-eval
18 | :source-map true
19 | :def-emits-var true
20 | :context :expr}
21 | (fn [result] result)))
22 |
23 | (fp/defsc Icons
24 | [this {:keys [x]}]
25 | {:initial-state (fn [_] {:x "x"})
26 | :ident (fn [] [::id "singleton"])
27 | :query [:x]}
28 | (let [icons (ns-publics 'fulcrologic.semantic-ui.icons)]
29 | (dom/div
30 | {}
31 | ; not sure how to eval the icon defs so for now derived by string munging
32 | ; for future reference: this works but with warnings;
33 | ; (println (eval-str (str (:ns (meta func)) "/" (:name (meta func)))))
34 | (mapv #(ui-icon {:name (-> % last meta :name name
35 | (string/replace #"-icon" "")
36 | (string/replace #"-" " ")
37 | (string/replace #"_" "")
38 | (string/replace #"wi fi" "wi-fi"))
39 | :key (-> % last meta :name)})
40 | (sort-by #(-> % first) icons)))))
41 |
42 | (ws/defcard icons
43 | (ct.fulcro/fulcro-card
44 | {::f.portal/root Icons}))
45 |
46 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/workspaces/fulcrologic/semantic_ui/workspaces/input.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.workspaces.input
2 | (:require [fulcro.client.primitives :as fp]
3 | [fulcro.client.localized-dom :as dom]
4 | [nubank.workspaces.core :as ws]
5 | [nubank.workspaces.card-types.fulcro :as ct.fulcro]
6 | [nubank.workspaces.lib.fulcro-portal :as f.portal]
7 | [fulcro.client.mutations :as fm]
8 | [fulcrologic.semantic-ui.elements.input.ui-input :refer [ui-input]]
9 | [fulcrologic.semantic-ui.factory-helpers :as h]))
10 |
11 | (fp/defsc Input
12 | [this {:keys [my-val]}]
13 | {:initial-state (fn [_] {:my-val ""})
14 | :ident (fn [] [::id "singleton"])
15 | :query [:my-val]}
16 | (dom/div
17 | (ui-input {:value my-val :onChange #(fm/set-string! this :my-val :event %)})))
18 |
19 | (ws/defcard input
20 | (ct.fulcro/fulcro-card
21 | {::f.portal/root Input}))
22 |
23 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers-shadow/src/workspaces/fulcrologic/semantic_ui/workspaces_main.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.workspaces-main
2 | (:require [nubank.workspaces.core :as ws]
3 | [fulcrologic.semantic-ui.workspaces.button]
4 | [fulcrologic.semantic-ui.workspaces.dropdown]
5 | [fulcrologic.semantic-ui.workspaces.form]
6 | [fulcrologic.semantic-ui.workspaces.icon]
7 | [fulcrologic.semantic-ui.workspaces.input]))
8 |
9 | (defonce init (ws/mount))
10 |
11 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | *.iml
3 | .nrepl-port
4 | figwheel_server.log
5 | resources/public/js
6 | target
7 | componentInfo
8 | pom.xml
9 | pom.xml.asc
10 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers/project.clj:
--------------------------------------------------------------------------------
1 | (defproject fulcrologic/semantic-ui-react-wrappers "2.0.5-SNAPSHOT"
2 | :plugins [[lein-modules "0.3.11"]]
3 |
4 | :description "Semantic UI React Wrappers"
5 | :license {:name "MIT" :url "https://opensource.org/licenses/MIT"}
6 | :url "https://github.com/fulcrologic/semantic-ui-wrapper"
7 | :min-lein-version "2.7.0"
8 |
9 | :dependencies [[org.clojure/clojure "_" :scope "provided"]
10 | [fulcrologic/fulcro "_" :scope "provided"]
11 | [fulcrologic/semantic-ui-react-wrappers-common :version]
12 | [cljsjs/semantic-ui-react "0.84.0-0"]]
13 |
14 | :source-paths ["src/main"]
15 | :clean-targets ^{:protect false} ["target" "resources/public/js"]
16 | :jar-exclusions [#"public/.*"]
17 |
18 | :profiles {:jar {}
19 | :dev {:source-paths ["src/main" "src/cards" "src/dev"]
20 | :jvm-opts ["-XX:-OmitStackTraceInFastThrow"]
21 | :figwheel {:css-dirs ["resources/public/css"]
22 | :validate-config false}
23 | :cljsbuild {:builds
24 | [{:id "cards"
25 | :figwheel {:devcards true}
26 | :source-paths ["src/main" "src/cards"]
27 | :compiler {:asset-path "js/cards"
28 | :main fulcrologic.semantic-ui.cards
29 | :output-dir "resources/public/js/cards"
30 | :output-to "resources/public/js/cards.js"
31 | :preloads [devtools.preload]
32 | :source-map-timestamp true}}]}
33 | :dependencies [[binaryage/devtools "0.9.10"]
34 | [org.clojure/clojurescript "1.10.439"]
35 | [org.clojure/tools.namespace "0.3.0-alpha4"]
36 | [figwheel-sidecar "0.5.17"]
37 | [devcards "0.2.5"]]}})
38 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers/resources/public/css/themes/default/assets/fonts/icons.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers/resources/public/css/themes/default/assets/fonts/icons.eot
--------------------------------------------------------------------------------
/semantic-ui-wrappers/resources/public/css/themes/default/assets/fonts/icons.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers/resources/public/css/themes/default/assets/fonts/icons.otf
--------------------------------------------------------------------------------
/semantic-ui-wrappers/resources/public/css/themes/default/assets/fonts/icons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers/resources/public/css/themes/default/assets/fonts/icons.ttf
--------------------------------------------------------------------------------
/semantic-ui-wrappers/resources/public/css/themes/default/assets/fonts/icons.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers/resources/public/css/themes/default/assets/fonts/icons.woff
--------------------------------------------------------------------------------
/semantic-ui-wrappers/resources/public/css/themes/default/assets/fonts/icons.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers/resources/public/css/themes/default/assets/fonts/icons.woff2
--------------------------------------------------------------------------------
/semantic-ui-wrappers/resources/public/css/themes/default/assets/images/flags.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers/resources/public/css/themes/default/assets/images/flags.png
--------------------------------------------------------------------------------
/semantic-ui-wrappers/resources/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Semantic-UI-React Devcards
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers/script/figwheel.clj:
--------------------------------------------------------------------------------
1 | (require '[user :refer [start-figwheel]])
2 |
3 | (start-figwheel)
4 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers/src/cards/fulcrologic/semantic_ui/cards.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.cards
2 | (:require [fulcrologic.semantic-ui.cards.button]
3 | [fulcrologic.semantic-ui.cards.dropdown]
4 | [fulcrologic.semantic-ui.cards.form]
5 | [fulcrologic.semantic-ui.cards.icon]
6 | [fulcrologic.semantic-ui.cards.input]))
7 |
8 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers/src/cards/fulcrologic/semantic_ui/cards/button.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.cards.button
2 | (:require [devcards.core :refer-macros [defcard]]
3 | [fulcro.client.dom :as dom]
4 | [fulcrologic.semantic-ui.icons :as i]
5 | [fulcrologic.semantic-ui.factories :as f]))
6 |
7 | (defcard buttons
8 | (dom/div
9 | (f/ui-button-group nil
10 | (f/ui-button nil "A")
11 | (f/ui-button nil "B")
12 | (f/ui-button nil "C"))
13 | (dom/br)
14 | (f/ui-button {} "A")
15 | (dom/br)
16 | (f/ui-button {:content "Like"
17 | :icon i/heart-icon
18 | :label {:as "a" :basic true :content "2,000"}
19 | :labelPosition "left"})
20 | (dom/br)
21 | (f/ui-button-group nil
22 | (f/ui-button {:icon true}
23 |
24 | (f/ui-icon {:name i/align-left-icon}))
25 | (f/ui-button {:icon true}
26 | (f/ui-icon {:name i/align-center-icon}))
27 | (f/ui-button {:icon true}
28 | (f/ui-icon {:name i/align-right-icon}))
29 | (f/ui-button {:icon true}
30 | (f/ui-icon {:name i/align-justify-icon})))
31 | (f/ui-button {} "C")
32 | (dom/br)
33 | (f/ui-button {} "D")))
34 |
35 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers/src/cards/fulcrologic/semantic_ui/cards/dropdown.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.cards.dropdown
2 | (:require [devcards.core :refer-macros [defcard]]
3 | [fulcro.client.dom :as dom]
4 | [fulcrologic.semantic-ui.icons :as i]
5 | [fulcrologic.semantic-ui.factories :as f]))
6 |
7 | (defcard dropdown
8 | (dom/div {}
9 | (f/ui-dropdown {:text "File"}
10 | (f/ui-dropdown-menu {}
11 | (f/ui-dropdown-item {:text "New"})
12 | (f/ui-dropdown-item {:text "Open..." :description "ctrl + o"})
13 | (f/ui-dropdown-item {:text "Save as..." :description "ctrl + s"})
14 | (f/ui-dropdown-item {:text "Rename" :description "ctrl + r"})
15 | (f/ui-dropdown-item {:text "Make a copy"})
16 | (f/ui-dropdown-item {:icon i/folder-icon :text "Move to folder"})
17 | (f/ui-dropdown-item {:icon i/trash-icon :text "Move to trash"})
18 | (f/ui-dropdown-divider {})
19 | (f/ui-dropdown-item {:text "Download As..."})
20 | (f/ui-dropdown-item {:text "Publish To Web"})
21 | (f/ui-dropdown-item {:text "E-mail Collaborators"})))))
22 |
23 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers/src/cards/fulcrologic/semantic_ui/cards/form.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.cards.form
2 | (:require [devcards.core :refer-macros [defcard]]
3 | [fulcro.client.cards :refer [defcard-fulcro]]
4 | [fulcro.client.primitives :as prim :refer [defsc]]
5 | [fulcro.client.mutations :as m :refer [defmutation]]
6 | [fulcro.client.dom :as dom]
7 | [fulcrologic.semantic-ui.icons :as i]
8 | [fulcrologic.semantic-ui.factories :as f]))
9 |
10 | (defmutation change-val
11 | [{:keys [key val]}]
12 | (action [{:keys [state]}]
13 | (swap! state assoc key val)))
14 |
15 | (defsc FormInput
16 | [this {:keys [my-x-val my-y-val]}]
17 | {:initial-state (fn [_] {:my-x-val "" :my-y-val ""})
18 | :query [:my-x-val :my-y-val]}
19 | (let [on-x-change (fn [evt _] (prim/transact! this `[(change-val ~{:key :my-x-val :val (.. evt -target -value) })] ))
20 | on-y-change (fn [evt _] (prim/transact! this `[(change-val ~{:key :my-y-val :val (.. evt -target -value) })] ))]
21 | (dom/div
22 | (dom/p {} (str "x: " my-x-val))
23 | (dom/p {} (str "y: " my-y-val))
24 | (f/ui-form {:error true}
25 | (f/ui-form-input {:value my-x-val :onChange on-x-change :label "X" :error true})
26 | (f/ui-form-input {:value my-y-val :onChange on-y-change :label "Y"})))))
27 |
28 | (defcard-fulcro form-input
29 | FormInput
30 | {}
31 | {:inspect-data true})
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers/src/cards/fulcrologic/semantic_ui/cards/icon.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.cards.icon
2 | (:require [fulcro.client.cards :refer [defcard-fulcro]]
3 | [fulcro.client.primitives :as prim :refer [defsc]]
4 | [fulcro.client.dom :as dom]
5 | [fulcrologic.semantic-ui.factories :as f]
6 | [clojure.string :as string]
7 | [cljs.tools.reader :refer [read-string]]
8 | [cljs.js :refer [empty-state eval js-eval]]))
9 |
10 | (defn eval-str [s]
11 | (eval (empty-state)
12 | (read-string s)
13 | {:eval js-eval
14 | :source-map true
15 | :def-emits-var true
16 | :context :expr}
17 | (fn [result] result)))
18 |
19 | (defsc Icons
20 | [this {:keys [x]}]
21 | {:initial-state (fn [_] {:x "x"})
22 | :ident (fn [] [::id "singleton"])
23 | :query [:x]}
24 | (let [icons (ns-publics 'fulcrologic.semantic-ui.icons)]
25 | (dom/div
26 | {}
27 | ; not sure how to eval the icon defs so for now derived by string munging
28 | ; for future reference: this works but with warnings:
29 | ; (println (eval-str (str (:ns (meta func)) "/" (:name (meta func)))))
30 | (mapv #(f/ui-icon {:name (-> % last meta :name name
31 | (string/replace #"-icon" "")
32 | (string/replace #"-" " ")
33 | (string/replace #"_" "")
34 | (string/replace #"wi fi" "wi-fi"))
35 | :key (-> % last meta :name)})
36 | (sort-by #(-> % first) icons)))))
37 |
38 | (defcard-fulcro icons
39 | Icons
40 | {}
41 | {:inspect-data true})
42 |
43 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers/src/cards/fulcrologic/semantic_ui/cards/input.cljs:
--------------------------------------------------------------------------------
1 | (ns fulcrologic.semantic-ui.cards.input
2 | (:require [fulcro.client.cards :refer [defcard-fulcro]]
3 | [fulcro.client.primitives :as prim :refer [defsc]]
4 | [fulcro.client.mutations :as m :refer [defmutation]]
5 | [fulcro.client.dom :as dom]
6 | [fulcrologic.semantic-ui.factories :as f]))
7 |
8 | (defmutation change-val
9 | [{:keys [key val]}]
10 | (action [{:keys [state]}]
11 | (swap! state assoc key val)))
12 |
13 | (defsc Input
14 | [this {:keys [my-x-val my-y-val]}]
15 | {:initial-state (fn [_] {:my-x-val "" :my-y-val ""})
16 | :query [:my-x-val :my-y-val]}
17 | (let [on-x-change (fn [evt _] (prim/transact! this `[(change-val ~{:key :my-x-val :val (.. evt -target -value) })] ))
18 | on-y-change (fn [evt _] (prim/transact! this `[(change-val ~{:key :my-y-val :val (.. evt -target -value) })] ))]
19 | (dom/div
20 | (dom/p {} (str "x: " my-x-val))
21 | (dom/p {} (str "y: " my-y-val))
22 | (dom/div {}
23 | (f/ui-input {:value my-x-val :onChange on-x-change :label "X" :error true}))
24 | (dom/div {}
25 | (f/ui-input {:value my-y-val :onChange on-y-change :label "Y"})))))
26 |
27 | (defcard-fulcro form-input
28 | Input
29 | {}
30 | {:inspect-data true})
31 |
32 |
--------------------------------------------------------------------------------
/semantic-ui-wrappers/src/dev/user.clj:
--------------------------------------------------------------------------------
1 | (ns user
2 | (:require
3 | [com.stuartsierra.component :as component]
4 | [clojure.string :as str]
5 | [clojure.tools.namespace.repl :refer [set-refresh-dirs]]
6 | [figwheel-sidecar.system :as fig]))
7 |
8 | (set-refresh-dirs "src/main" "src/cards")
9 |
10 | ;;FIGWHEEL
11 | (def figwheel (atom nil))
12 |
13 | ; Usable from a REPL to start one-or-more figwheel builds. Support -Dbuild-name and -Dfigwheel.port so that you can
14 | ; run any specific build(s) on a custom port from an IntelliJ Run Configuration. This is helpful when you want
15 | ; to run multiple builds, but want fast hot reload (place each build on a separate figwheel instance running on
16 | ; a custom port. E.g. in JVM Args: `-Dcards -Dfigwheel.port=5000` with parameters `script/figwheel.clj`.
17 | (defn start-figwheel
18 | "Start Figwheel on the given builds, or defaults to build-ids in `figwheel-config`."
19 | ([]
20 | (let [figwheel-config (fig/fetch-config)
21 | props (System/getProperties)
22 | all-builds (->> figwheel-config :data :all-builds (mapv :id))]
23 | (start-figwheel (keys (select-keys props all-builds)))))
24 | ([build-ids]
25 | (let [figwheel-config (fig/fetch-config)
26 | port (some-> (System/getProperty "figwheel.port") Integer/parseInt)
27 | default-build-ids (-> figwheel-config :data :build-ids)
28 | build-ids (if (empty? build-ids) default-build-ids build-ids)
29 | preferred-config (cond-> (assoc-in figwheel-config [:data :build-ids] build-ids)
30 | (and port (pos? port)) (assoc-in [:data :figwheel-options :server-port] port))]
31 | (reset! figwheel (component/system-map
32 | :css-watcher (fig/css-watcher {:watch-paths ["resources/public/css"]})
33 | :figwheel-system (fig/figwheel-system preferred-config)))
34 | (println "STARTING FIGWHEEL ON BUILDS: " build-ids)
35 | (swap! figwheel component/start)
36 | (fig/cljs-repl (:figwheel-system @figwheel)))))
37 |
--------------------------------------------------------------------------------