-
Notifications
You must be signed in to change notification settings - Fork 985
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#16377] fix: apply theme props and use markdown text
- Loading branch information
1 parent
d93cfde
commit 5257a9c
Showing
18 changed files
with
101 additions
and
131 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...ar/__tests__/calendar_component_spec.cljs → ...nts/calendar/calendar/component_spec.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
(ns quo2.components.calendar.calendar-day.view | ||
(:require [react-native.core :as rn] | ||
[quo2.theme :as theme] | ||
[quo2.components.markdown.text :as text] | ||
[quo2.components.calendar.calendar-day.style :as style])) | ||
|
||
(defn- calendar-day-internal | ||
[{:keys [state in-range on-press] :or {state :default}} day] | ||
[{:keys [state in-range on-press customization-color theme] | ||
:or {state :default}} | ||
day] | ||
[rn/view | ||
{:style style/wrapper} | ||
[rn/view {:style (style/in-range-background {:in-range in-range})}] | ||
[rn/view {:style (style/in-range-background {:in-range in-range :theme theme})}] | ||
[rn/touchable-opacity | ||
{:on-press on-press | ||
:style (style/container | ||
{:state state}) | ||
{:state state | ||
:theme theme | ||
:customization-color customization-color}) | ||
:disabled (= state :disabled)} | ||
[rn/text | ||
{:style (style/text {:state state})} | ||
[text/text | ||
{:weight :medium | ||
:size :paragraph-2 | ||
:style (style/text {:state state :theme theme})} | ||
day] | ||
[rn/view | ||
{:style (style/indicator {:state state})}]]]) | ||
{:style (style/indicator | ||
{:state state | ||
:theme theme | ||
:customization-color customization-color})}]]]) | ||
|
||
(def calendar-day (theme/with-theme calendar-day-internal)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
(ns quo2.components.calendar.calendar-year.view | ||
(:require [react-native.core :as rn] | ||
[quo2.theme :as theme] | ||
[quo2.components.markdown.text :as text] | ||
[quo2.components.calendar.calendar-year.style :as style])) | ||
|
||
(defn- calendar-year-internal | ||
[{:keys [selected? disabled? on-press]} year] | ||
[{:keys [selected? disabled? on-press theme]} year] | ||
[rn/touchable-opacity | ||
{:on-press on-press | ||
:style (style/container | ||
{:selected? selected? | ||
:disabled? disabled?}) | ||
:disabled? disabled? | ||
:theme theme}) | ||
:disabled disabled?} | ||
[rn/text | ||
{:style (style/text {:selected? selected?})} | ||
[text/text | ||
{:weight :medium | ||
:size :paragraph-2 | ||
:style (style/text | ||
{:selected? selected? | ||
:theme theme})} | ||
year]]) | ||
|
||
(def calendar-year (theme/with-theme calendar-year-internal)) |
Oops, something went wrong.