File tree 1 file changed +13
-13
lines changed
src/quo/components/counter/step
1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 7
7
[schema.core :as schema]
8
8
[utils.number]))
9
9
10
+ (def ?schema
11
+ [:=>
12
+ [:catn
13
+ [:props
14
+ [:map {:closed true }
15
+ [:accessibility-label {:optional true } [:maybe :keyword ]]
16
+ [:customization-color {:optional true } [:maybe :schema.common/customization-color ]]
17
+ [:in-blur-view? {:optional true } [:maybe :boolean ]]
18
+ [:theme :schema.common/theme ]
19
+ [:type {:optional true } [:enum :active :complete :neutral ]]]]
20
+ [:value [:maybe [:or :string :int ]]]]
21
+ :any ])
22
+
10
23
(defn- view-internal
11
24
[{:keys [type accessibility-label theme in-blur-view? customization-color]} value]
12
25
(let [type (or type :neutral )
27
40
:style {:color (style/text-color type theme)}}
28
41
label]]))
29
42
30
- (def ?schema
31
- [:=>
32
- [:catn
33
- [:props
34
- [:map {:closed true }
35
- [:accessibility-label {:optional true } [:maybe :keyword ]]
36
- [:customization-color {:optional true } [:maybe :schema.common/customization-color ]]
37
- [:in-blur-view? {:optional true } [:maybe :boolean ]]
38
- [:theme :schema.common/theme ]
39
- [:type {:optional true } [:enum :active :complete :neutral ]]]]
40
- [:value [:maybe [:or :string :int ]]]]
41
- :any ])
42
-
43
43
(def view
44
44
(quo.theme/with-theme
45
45
(schema/instrument #'view-internal ?schema)))
You can’t perform that action at this time.
0 commit comments