Skip to content

Commit 4c69981

Browse files
authored
Merge pull request #4 from ri7nz/feat/pseudo
feat(pseudo): implement pseudo bindings
2 parents f99e7c1 + c07120d commit 4c69981

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1745
-21807
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
jobs:
99
tests:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,4 @@ temp/
166166
.pnp.*
167167

168168
.vercel
169+
src/**/*.js

.releaserc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
branch: master
1+
branch: main
22
ci: false
33
dryRun: false
44
debug: false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ This is following and closely same with Chakra-UI. [**See Style Props**](https:/
105105
- [x] [Border Radius](https://chakra-ui.com/docs/features/style-props#border-radius)
106106
- [x] [Position](https://chakra-ui.com/docs/features/style-props#position)
107107
- [x] [Shadow](https://chakra-ui.com/docs/features/style-props#shadow)
108-
- [ ] [Pseudo](https://chakra-ui.com/docs/features/style-props#pseudo) (_NOT implemented_)
108+
- [x] [Pseudo](https://chakra-ui.com/docs/features/style-props#pseudo)
109109
- [ ] [Other Style Props](https://chakra-ui.com/docs/features/style-props#other-props) 🚧 (_Partially Implemented_)
110110

111111
All of Style Props implementation is write in File:[Chakra__MakeProps.res](https://github.com/ri7nz/rescript-chakra/blob/main/src/Interfaces/Chakra__MakeProps.res)

_templates/Box/new/new.ejs.t

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -189,50 +189,50 @@ external make: (
189189
~textShadow: Identity.t=?,
190190
~boxShadow: Identity.t=?,
191191
/**
192-
TODO
193192
Pseudo
194193
@see <https://chakra-ui.com/docs/features/style-props#pseudo>
195-
_hover
196-
_active
197-
_focus
198-
_highlighted
199-
_focusWithin
200-
_focusVisible
201-
_disabled
202-
_readOnly
203-
_before
204-
_after
205-
_empty
206-
_expanded
207-
_checked
208-
_grabbed
209-
_pressed
210-
_invalid
211-
_valid
212-
_loading
213-
_selected
214-
_hidden
215-
_autofill
216-
_even
217-
_odd
218-
_first
219-
_last
220-
_notFirst
221-
_notLast
222-
_visited
223-
_activeLink
224-
_activeStep
225-
_indeterminate
226-
_groupHover
227-
_groupFocus
228-
_groupActive
229-
_groupDisabled
230-
_groupInvalid
231-
_groupChecked
232-
_placeholder
233-
_fullScreen
234-
_selection
235194
**/
195+
@as("_hover") ~_hover: Pseudo.t=?,
196+
@as("_active") ~_active: Pseudo.t=?,
197+
@as("_focus") ~_focus: Pseudo.t=?,
198+
@as("_highlighted") ~_highlighted: Pseudo.t=?,
199+
@as("_focusWithin") ~_focusWithin: Pseudo.t=?,
200+
@as("_focusVisible") ~_focusVisible: Pseudo.t=?,
201+
@as("_disabled") ~_disabled: Pseudo.t=?,
202+
@as("_readOnly") ~_readOnly: Pseudo.t=?,
203+
@as("_before") ~_before: Pseudo.t=?,
204+
@as("_after") ~_after: Pseudo.t=?,
205+
@as("_empty") ~_empty: Pseudo.t=?,
206+
@as("_expanded") ~_expanded: Pseudo.t=?,
207+
@as("_checked") ~_checked: Pseudo.t=?,
208+
@as("_grabbed") ~_grabbed: Pseudo.t=?,
209+
@as("_pressed") ~_pressed: Pseudo.t=?,
210+
@as("_invalid") ~_invalid: Pseudo.t=?,
211+
@as("_valid") ~_valid: Pseudo.t=?,
212+
@as("_loading") ~_loading: Pseudo.t=?,
213+
@as("_selected") ~_selected: Pseudo.t=?,
214+
@as("_hidden") ~_hidden: Pseudo.t=?,
215+
@as("_autofill") ~_autofill: Pseudo.t=?,
216+
@as("_even") ~_even: Pseudo.t=?,
217+
@as("_odd") ~_odd: Pseudo.t=?,
218+
@as("_first") ~_first: Pseudo.t=?,
219+
@as("_last") ~_last: Pseudo.t=?,
220+
@as("_notFirst") ~_notFirst: Pseudo.t=?,
221+
@as("_notLast") ~_notLast: Pseudo.t=?,
222+
@as("_visited") ~_visited: Pseudo.t=?,
223+
@as("_activeLink") ~_activeLink: Pseudo.t=?,
224+
@as("_activeStep") ~_activeStep: Pseudo.t=?,
225+
@as("_indeterminate") ~_indeterminate: Pseudo.t=?,
226+
@as("_groupHover") ~_groupHover: Pseudo.t=?,
227+
@as("_groupFocus") ~_groupFocus: Pseudo.t=?,
228+
@as("_groupActive") ~_groupActive: Pseudo.t=?,
229+
@as("_groupDisabled") ~_groupDisabled: Pseudo.t=?,
230+
@as("_groupInvalid") ~_groupInvalid: Pseudo.t=?,
231+
@as("_groupChecked") ~_groupChecked: Pseudo.t=?,
232+
@as("_placeholder") ~_placeholder: Pseudo.t=?,
233+
@as("_fullScreen") ~_fullScreen: Pseudo.t=?,
234+
@as("_selection") ~_selection: Pseudo.t=?,
235+
236236
/**
237237
TODO
238238
Other Props

_templates/Box/pseudo/pseudo.ejs.t

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
to: src/Components/<%= name %>
3+
inject: true
4+
after: "_selection\\s*\\*\\*\\/"
5+
skip_if: "\\@as\\(\"_hover"
6+
---
7+
@as("_hover") ~_hover: Pseudo.t=?,
8+
@as("_active") ~_active: Pseudo.t=?,
9+
@as("_focus") ~_focus: Pseudo.t=?,
10+
@as("_highlighted") ~_highlighted: Pseudo.t=?,
11+
@as("_focusWithin") ~_focusWithin: Pseudo.t=?,
12+
@as("_focusVisible") ~_focusVisible: Pseudo.t=?,
13+
@as("_disabled") ~_disabled: Pseudo.t=?,
14+
@as("_readOnly") ~_readOnly: Pseudo.t=?,
15+
@as("_before") ~_before: Pseudo.t=?,
16+
@as("_after") ~_after: Pseudo.t=?,
17+
@as("_empty") ~_empty: Pseudo.t=?,
18+
@as("_expanded") ~_expanded: Pseudo.t=?,
19+
@as("_checked") ~_checked: Pseudo.t=?,
20+
@as("_grabbed") ~_grabbed: Pseudo.t=?,
21+
@as("_pressed") ~_pressed: Pseudo.t=?,
22+
@as("_invalid") ~_invalid: Pseudo.t=?,
23+
@as("_valid") ~_valid: Pseudo.t=?,
24+
@as("_loading") ~_loading: Pseudo.t=?,
25+
@as("_selected") ~_selected: Pseudo.t=?,
26+
@as("_hidden") ~_hidden: Pseudo.t=?,
27+
@as("_autofill") ~_autofill: Pseudo.t=?,
28+
@as("_even") ~_even: Pseudo.t=?,
29+
@as("_odd") ~_odd: Pseudo.t=?,
30+
@as("_first") ~_first: Pseudo.t=?,
31+
@as("_last") ~_last: Pseudo.t=?,
32+
@as("_notFirst") ~_notFirst: Pseudo.t=?,
33+
@as("_notLast") ~_notLast: Pseudo.t=?,
34+
@as("_visited") ~_visited: Pseudo.t=?,
35+
@as("_activeLink") ~_activeLink: Pseudo.t=?,
36+
@as("_activeStep") ~_activeStep: Pseudo.t=?,
37+
@as("_indeterminate") ~_indeterminate: Pseudo.t=?,
38+
@as("_groupHover") ~_groupHover: Pseudo.t=?,
39+
@as("_groupFocus") ~_groupFocus: Pseudo.t=?,
40+
@as("_groupActive") ~_groupActive: Pseudo.t=?,
41+
@as("_groupDisabled") ~_groupDisabled: Pseudo.t=?,
42+
@as("_groupInvalid") ~_groupInvalid: Pseudo.t=?,
43+
@as("_groupChecked") ~_groupChecked: Pseudo.t=?,
44+
@as("_placeholder") ~_placeholder: Pseudo.t=?,
45+
@as("_fullScreen") ~_fullScreen: Pseudo.t=?,
46+
@as("_selection") ~_selection: Pseudo.t=?,

0 commit comments

Comments
 (0)