Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 8b9e87b
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 15:12:22 2021 +0300

    Attempt to fix aliases for github actions 1120d8d

commit 5abc5a0
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 14:56:11 2021 +0300

    Omit prerelase due to not collected message

commit 19f8ba2
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 14:55:12 2021 +0300

    Add exec mode to prerelease shell

commit 728b17b
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 14:54:21 2021 +0300

    Clean-up readme

commit 1120d8d
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 14:52:39 2021 +0300

    Add path alias and apply to spec

commit c70a8fd
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 13:19:54 2021 +0300

commit cb1f226
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 10:46:55 2021 +0300

commit fc001f9
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 10:27:58 2021 +0300

    Fix collecting values for hint from actions in 2nd argument of naming

commit a70946d
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 10:24:57 2021 +0300

    Split *src/types* to contain only globally used type aliases

commit f0640c4
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 10:04:33 2021 +0300

commit 05b4154
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 09:43:19 2021 +0300

commit ae4cea4
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 09:33:18 2021 +0300

commit 28840f0
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 03:17:22 2021 +0300

commit fb29fae
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 02:34:03 2021 +0300

    Rename  back to  to make them checkable

commit b7367f3
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 01:04:29 2021 +0300

commit 2429b91
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 9 00:23:05 2021 +0300

    Change key expression to  for stabeling keys hint in

commit 01d98ad
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 21:18:10 2021 +0300

    Due to no partial infer in TypeScript microsoft/TypeScript#26242

commit e995309
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 21:00:29 2021 +0300

commit 77d3fe7
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 20:37:04 2021 +0300

commit 200c264
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 19:54:13 2021 +0300

commit a9fd1dd
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 19:35:51 2021 +0300

    Rename confusing `Map`infer arg type to `Mapping`

commit a256166
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 18:04:59 2021 +0300

commit 56d5bdf
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 17:50:07 2021 +0300

commit 453c351
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 17:37:52 2021 +0300

    Fix lost by TS src/*.d.ts files

commit 6facca8
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 17:08:17 2021 +0300

    Doc restriction to type mix

commit f727237
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 16:15:38 2021 +0300

    Add `classNaming` returns description to readme

commit b3eda54
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 15:46:43 2021 +0300

    Add example for single source and own classes declaration

commit 9526486
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 14:48:20 2021 +0300

    Add basic usage example in readme and spec

commit ca0e04d
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 13:34:23 2021 +0300

    Change prerelase to be a separate bash script

commit 7e47bfc
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 12:52:39 2021 +0300

    Fix TS typo in readme

commit 329f2fd
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 12:50:13 2021 +0300

    Add 2 more quality badges

commit f5c99d6
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 8 12:44:41 2021 +0300

    Rename *defs* module to more understandable types. Add to Readme Objectives and brief items explanation

commit 1fc2e6c
Author: Andrii Kirmas <[email protected]>
Date:   Sun Mar 7 15:02:45 2021 +0300

    Sync keywords order

commit 8b275e2
Author: Andrii Kirmas <[email protected]>
Date:   Sun Mar 7 14:54:52 2021 +0300

    Sync description and keywords

commit 2b2fc45
Author: Andrii Kirmas <[email protected]>
Date:   Sun Mar 7 14:50:39 2021 +0300

commit 17c551c
Author: Andrii Kirmas <[email protected]>
Date:   Sun Mar 7 14:46:43 2021 +0300

commit 9106cbc
Author: Andrii Kirmas <[email protected]>
Date:   Sun Mar 7 10:19:11 2021 +0300

    Change *ts*-modules to *json* and *d.ts*

commit 94219f9
Author: Andrii Kirmas <[email protected]>
Date:   Fri Mar 5 23:48:37 2021 +0200

    Fix github overwrites of <img>'s style

commit 91a2169
Author: Andrii Kirmas <[email protected]>
Date:   Sat Mar 6 00:24:40 2021 +0300

commit b842015
Author: Andrii Kirmas <[email protected]>
Date:   Sat Mar 6 00:15:29 2021 +0300

commit aaecac3
Author: Andrii Kirmas <[email protected]>
Date:   Sat Mar 6 00:12:52 2021 +0300

commit b61daaf
Author: Andrii Kirmas <[email protected]>
Date:   Sat Mar 6 00:11:06 2021 +0300

commit ce1fd9f
Author: Andrii Kirmas <[email protected]>
Date:   Fri Mar 5 23:56:55 2021 +0300

    Add vscode screenshot with highlighted package stuff

commit 522a815
Author: Andrii Kirmas <[email protected]>
Date:   Fri Mar 5 23:53:12 2021 +0300

commit 3322dfe
Author: Andrii Kirmas <[email protected]>
Date:   Fri Mar 5 14:34:27 2021 +0300

commit 8f901a0
Author: Andrii Kirmas <[email protected]>
Date:   Fri Mar 5 12:25:03 2021 +0300

commit af4ec49
Author: Andrii Kirmas <[email protected]>
Date:   Fri Mar 5 12:22:57 2021 +0300

    Add `classNamesMap` picking props from Component directly

commit a9da09b
Author: Andrii Kirmas <[email protected]>
Date:   Fri Mar 5 12:14:10 2021 +0300

commit 469686f
Author: Andrii Kirmas <[email protected]>
Date:   Fri Mar 5 12:12:15 2021 +0300

commit 3fe9c26
Author: Andrii Kirmas <[email protected]>
Date:   Fri Mar 5 10:19:21 2021 +0300

commit 7f09d42
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 22:36:17 2021 +0300

    Change somehow readme. Add  gifs of working in VSCode

commit 1df88a8
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 22:01:59 2021 +0300

commit 5804adb
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 21:57:07 2021 +0300

    Simplify ts-config file patterns

commit 2f5713a
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 14:01:55 2021 +0300

commit 2e5b0cc
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 04:05:46 2021 +0300

commit e069c11
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 04:01:26 2021 +0300

commit bf2757b
Merge: 7d43e9d 090403b
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 04:00:26 2021 +0300

    Backmerge after v0.13.0 release

commit 7d43e9d
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 03:16:02 2021 +0300

    Update README

commit 5352072
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 02:37:18 2021 +0300

    Fix not ommited *sandbox* in compilation

commit a338eef
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 02:34:10 2021 +0300

    Move domain types to *defs*

commit 7989a68
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 02:30:43 2021 +0300

    Move react typings test to separate module

commit 9da474d
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 02:28:33 2021 +0300

    Move react-related types to separate module

commit e2e5f94
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 02:22:19 2021 +0300

    Segregate utility types

commit 28d0bd3
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 02:15:06 2021 +0300

    Delete referenced once types

commit 4bbe2fe
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 02:09:13 2021 +0300

    Reuse `Ever`

commit 8c89d28
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 02:06:00 2021 +0300

commit 29d9cfe
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 01:43:05 2021 +0300

    Rename index types for consistency

commit 8d1b542
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 01:40:50 2021 +0300

commit 7691a1b
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 01:30:36 2021 +0300

commit 81053cb
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 00:56:56 2021 +0300

commit 1587724
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 00:35:36 2021 +0300

commit e7c5e5f
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 00:19:49 2021 +0300

commit 5945a37
Author: Andrii Kirmas <[email protected]>
Date:   Thu Mar 4 00:14:51 2021 +0300

commit 0eeac69
Author: Andrii Kirmas <[email protected]>
Date:   Wed Mar 3 23:46:59 2021 +0300

commit b9a5ef7
Author: Andrii Kirmas <[email protected]>
Date:   Wed Mar 3 23:29:09 2021 +0300

commit 1a9b7df
Author: Andrii Kirmas <[email protected]>
Date:   Wed Mar 3 23:04:33 2021 +0300

commit f185047
Author: Andrii Kirmas <[email protected]>
Date:   Wed Mar 3 22:48:51 2021 +0300

commit 0e5ed4d
Author: Andrii Kirmas <[email protected]>
Date:   Wed Mar 3 22:39:27 2021 +0300

commit 7737cb2
Author: Andrii Kirmas <[email protected]>
Date:   Wed Mar 3 22:33:06 2021 +0300

commit 4c43d89
Author: Andrii Kirmas <[email protected]>
Date:   Wed Mar 3 21:16:29 2021 +0300

commit 2f966ee
Author: Andrii Kirmas <[email protected]>
Date:   Wed Mar 3 21:11:42 2021 +0300

commit 514933e
Author: Andrii Kirmas <[email protected]>
Date:   Wed Mar 3 20:37:08 2021 +0300

commit d1ed8e8
Author: Andrii Kirmas <[email protected]>
Date:   Wed Mar 3 20:25:50 2021 +0300

commit 360febf
Author: Andrii Kirmas <[email protected]>
Date:   Wed Mar 3 17:48:16 2021 +0300

commit 27f15eb
Author: Andrii Kirmas <[email protected]>
Date:   Wed Mar 3 17:44:16 2021 +0300

    Replace  with faster

commit 7eb39cf
Author: Andrii Kirmas <[email protected]>
Date:   Wed Mar 3 11:17:29 2021 +0300

commit d45772a
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 2 05:14:35 2021 +0300

commit d84d544
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 2 03:55:14 2021 +0300

commit 1da5a13
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 2 03:31:22 2021 +0300

commit a213976
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 2 03:04:51 2021 +0300

    Update typos in TSDoc

commit f3f4c95
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 2 02:46:14 2021 +0300

commit bf1cd88
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 2 02:02:42 2021 +0300

    Add comment to source of `RequiredKeys`

commit dffd8be
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 2 01:47:16 2021 +0300

    Simplify notation for default value of second generic in `ClassNamesProperty`. Update dependencies after v0.12

commit 05f9bd6
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 2 00:17:43 2021 +0300

    0.12.0

commit 6c7391b
Author: Andrii Kirmas <[email protected]>
Date:   Tue Mar 2 00:12:05 2021 +0300

    Move defs tests to one file

commit 3c28e58
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 1 16:00:25 2021 +0300

commit cfdb311
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 1 15:41:37 2021 +0300

    Change  check of undefined to be external

commit e6e00e9
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 1 15:36:27 2021 +0300

commit c5a2e19
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 1 15:21:56 2021 +0300

commit be99372
Author: Andrii Kirmas <[email protected]>
Date:   Mon Mar 1 15:13:44 2021 +0300

commit 8c0f14a
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 28 20:56:38 2021 +0300

commit 3ac9db6
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 28 20:36:40 2021 +0300

commit 246ac53
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 28 20:11:22 2021 +0300

commit 9db2a6c
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 28 17:08:35 2021 +0300

commit 78ce0cc
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 28 15:02:17 2021 +0300

commit 378cd45
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 28 14:22:24 2021 +0300

commit 73e52d1
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 28 03:54:03 2021 +0300

    Test more bad usages

commit b90d152
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 28 03:32:58 2021 +0300

commit 54964fa
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 28 03:28:00 2021 +0300

    Split type notations and functions

commit e99a178
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 28 03:10:21 2021 +0300

commit b6e6633
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 23:29:35 2021 +0300

commit e37dd66
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 22:39:30 2021 +0300

    0.11.0

commit b2c5393
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 22:29:42 2021 +0300

commit 953ffae
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 20:53:39 2021 +0300

    Clean-up TS-Doc a bit

commit 71f7731
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 20:21:49 2021 +0300

commit 1fe375b
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 19:44:56 2021 +0300

commit 95588ac
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 19:20:49 2021 +0300

    Add ideas. Split features list and their explanation

commit 9197307
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 19:03:32 2021 +0300

    Rename ex-`ClassNamesMap` to more understandable `CssModule`

commit 3529f8f
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 17:10:29 2021 +0300

commit f88e4c7
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 16:44:55 2021 +0300

commit 4ac536f
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 15:29:02 2021 +0300

    Change array filter with better performance

commit 8cdcf27
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 14:42:12 2021 +0300

commit 288e056
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 14:17:37 2021 +0300

commit b30be6d
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 14:14:30 2021 +0300

commit 3c9e736
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 13:54:05 2021 +0300

    Replace `basic` with `ctx`

commit 84e53b8
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 01:59:35 2021 +0300

    Closes #2

commit 5a63b8d
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 01:58:16 2021 +0300

commit 8a09d40
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 01:53:01 2021 +0300

commit baa92c6
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 00:48:35 2021 +0300

commit 55e26e2
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 00:28:03 2021 +0300

    Reuse ClassNamed in defs. Rename inital args

commit cafa69b
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 00:24:22 2021 +0300

commit 8c46e61
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 27 00:10:01 2021 +0300

    Reorder defs

commit f724634
Author: Andrii Kirmas <[email protected]>
Date:   Fri Feb 26 21:20:43 2021 +0300

    Doc current hash-key-act decisions

commit b3f3923
Author: Andrii Kirmas <[email protected]>
Date:   Fri Feb 26 21:12:43 2021 +0300

    Remove `withClassNames` option

commit b4061ae
Author: Andrii Kirmas <[email protected]>
Date:   Fri Feb 26 18:22:19 2021 +0300

commit 171a7ea
Author: Andrii Kirmas <[email protected]>
Date:   Fri Feb 26 15:10:13 2021 +0300

commit f60a06d
Author: Andrii Kirmas <[email protected]>
Date:   Fri Feb 26 11:08:52 2021 +0300

    Simplify test of React Components restriction on props with `classnames`

commit abcac2e
Author: Andrii Kirmas <[email protected]>
Date:   Fri Feb 26 02:15:43 2021 +0300

    Change `ReactRelated` to be more strict with `classnames` inclusion

commit 0b2f708
Author: Andrii Kirmas <[email protected]>
Date:   Fri Feb 26 01:10:16 2021 +0300

commit 76aa5f2
Author: Andrii Kirmas <[email protected]>
Date:   Fri Feb 26 00:55:21 2021 +0300

    Remove `GetClassKeys` duplication

commit b114593
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 23:41:14 2021 +0300

commit a15e71b
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 23:08:28 2021 +0300

commit 270e4bf
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 23:03:19 2021 +0300

commit 5111c8c
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 22:48:05 2021 +0300

    Start  section

commit 6510aa5
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 22:43:42 2021 +0300

commit 8161fe7
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 22:04:12 2021 +0300

    Test issue of exclusion from `tring`

commit dd8b388
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 21:18:01 2021 +0300

    Attemp to pipe omitter with omitted stack

commit 8fcb51c
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 20:56:37 2021 +0300

    Add double-shaped idea

commit b7e3d12
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 17:49:37 2021 +0300

commit 98b49fc
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 17:23:45 2021 +0300

commit ddcd3f0
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 16:12:25 2021 +0300

    Update TS to 4.1.5

commit 95102bf
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 16:02:04 2021 +0300

commit c4701fe
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 15:05:33 2021 +0300

    Add type check of omitted. Rename omitter sandbox

commit ecbe39a
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 14:34:30 2021 +0300

    0.10.0

commit ae24286
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 14:32:31 2021 +0300

    TDD no TS error on hidden assigning `classnames` property to DOM's `<div>`

commit 0a61044
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 14:23:26 2021 +0300

commit 4c44858
Author: Andrii Kirmas <[email protected]>
Date:   Thu Feb 25 13:49:25 2021 +0300

commit 997d4c7
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 23:31:33 2021 +0300

commit 368c9f8
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 22:59:13 2021 +0300

    Prettify *ctx.text*

commit d3cd7ee
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 22:50:18 2021 +0300

commit 3bdf963
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 22:27:15 2021 +0300

    0.9.0

commit ff87656
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 22:21:44 2021 +0300

commit ed7d88b
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 21:52:19 2021 +0300

    Add comments to avoid redundant call on empty classes

commit 254896b
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 21:49:15 2021 +0300

    Change `wrapper` to have `undefined` as `classKeys`

commit 31e2ff3
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 21:23:20 2021 +0300

    Implement chainable `basic`. Remove leading generics

commit 933a1ae
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 20:25:17 2021 +0300

    Move chainable notation to type alias

commit 5c568c5
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 20:15:25 2021 +0300

    Add chainable basic/direct version

commit ea1a67d
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 19:28:20 2021 +0300

    Delete jest cache to not loose errors

commit 802db67
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 19:05:03 2021 +0300

    Move renames to sandbox

commit 0562a45
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 19:00:44 2021 +0300

    Reuse type `ClassNamed`

commit 23a04fb
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 18:54:37 2021 +0300

    Segregate common `wrapper`

commit fa9d82d
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 18:30:28 2021 +0300

    Segregate joining function

commit 6532dd2
Author: Andrii Kirmas <[email protected]>
Date:   Wed Feb 24 18:06:44 2021 +0300

    Segregate `dehash` to *core* module and reuse it

commit 67f6a3f
Author: Andrii Kirmas <[email protected]>
Date:   Tue Feb 23 23:51:53 2021 +0300

    `ClassNames<>` are messing IDE rename

commit 72f619e
Author: Andrii Kirmas <[email protected]>
Date:   Tue Feb 23 21:59:35 2021 +0300

commit 7accada
Author: Andrii Kirmas <[email protected]>
Date:   Tue Feb 23 20:36:22 2021 +0300

    Update dependencies after v0.8 release

commit 393d415
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 16:07:55 2021 +0300

    0.8.0

commit 16f0126
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 16:02:11 2021 +0300

    Apply `react-classnaming` in new CRA. Delete an old one

commit 10f00c3
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 15:36:30 2021 +0300

    Split *CRA* `App` to components

commit a39b053
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 15:24:01 2021 +0300

    Fix `any` key of inheriting classnames-less component to be `never`

commit 3b70efb
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 14:43:18 2021 +0300

    Add c-r-a to test scope. Refactor to apply classnaming

commit fa8b367
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 14:25:42 2021 +0300

    Install to CRA classnaming from dist

commit c5e8bf9
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 14:14:16 2021 +0300

    Change CRA testing to mocking

commit a31c164
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 14:03:00 2021 +0300

    Start CRA

commit 675a301
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 13:40:17 2021 +0300

    Suppress react warning by `classnames` lowering case

commit bb24f5c
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 13:30:11 2021 +0300

    Implement some recipe to control after rename

commit 4c15180
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 13:06:45 2021 +0300

    Implement some recipe to control after rename

commit 868c893
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 12:45:03 2021 +0300

    Test issue after rename

commit a3dd189
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 12:33:54 2021 +0300

    Add equality of keys in css module and component requirements with a weird error

commit 9915cc6
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 11:33:58 2021 +0300

    Simplify generic expression in equality check case

commit 4fe5eb1
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 11:29:58 2021 +0300

    Test shape strickness after eqility check

commit 07b6187
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 11:23:09 2021 +0300

    Fix module.css type. Wrap equility check with JSX

commit 9b6d69c
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 10:37:00 2021 +0300

    Extend `classNamesCheck` to pick classKeys from components and props

commit 11bfaa7
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 02:08:00 2021 +0300

    Change dependencies badge

commit 8ad2be9
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 01:57:08 2021 +0300

    Remove empty `dependencies` for badge. Update modules

commit 27f5d47
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 01:52:38 2021 +0300

    0.7.0

commit 8215746
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 01:43:27 2021 +0300

    Update keywords and description

commit 6925019
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 01:20:25 2021 +0300

    Update meta

commit 8be6541
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 00:45:19 2021 +0300

    Add TS declarations for css

commit 23f2f37
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 22 00:36:22 2021 +0300

    Update readme with versus

commit a48fc82
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 23:51:12 2021 +0300

    Add versus `classnames`

commit bd222bc
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 23:06:50 2021 +0300

    Sandbox how react renders falsy

commit 075461f
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 22:36:25 2021 +0300

    Split function in submodules

commit 128d926
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 22:25:24 2021 +0300

    Remove old contexted implementation

commit e822d77
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 21:59:07 2021 +0300

    Add type expression of classNames propagation

commit 02a9d07
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 21:21:24 2021 +0300

    Test with hashes and rendering `classNames` to DOM

commit 51b36b0
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 20:55:36 2021 +0300

    Tolerate empty `classNames`

commit 824f97d
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 20:29:39 2021 +0300

    Add option to propagate  to nested components

commit f829369
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 19:59:40 2021 +0300

    Move classNamer to a separate function

commit dab05b9
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 19:10:10 2021 +0300

    Move *index* types to *defs*

commit a90acef
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 19:02:09 2021 +0300

    Some prettify

commit 617159e
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 18:36:25 2021 +0300

    Attemp to type notate

commit 2f2af57
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 17:51:54 2021 +0300

    Fix trailing space

commit 4fbf9b2
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 17:42:17 2021 +0300

    Revert `classNames` move out

commit 76d870b
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 17:26:00 2021 +0300

    Move contexted to a separate function

commit ac71512
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 17:19:03 2021 +0300

    Move ctx-ed to separate module

commit 785fbe8
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 17:11:17 2021 +0300

    Change comment in utils

commit 3d7165d
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 17:10:08 2021 +0300

    Add another contexted implementation

commit 694331c
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 15:42:52 2021 +0300

    Segregate `expect` with `renderToStaticMarkup`

commit 85e8077
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 15:14:03 2021 +0300

    Segregate consts and utils with test

commit 66c6974
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 13:28:40 2021 +0300

    Test after vscode rename

commit 10e39b0
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 13:13:40 2021 +0300

    Fix react error on function attribute by `classNamingBasic`

commit 1b63463
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 12:41:51 2021 +0300

    Test output with `renderToStaticMarkup`

commit 147d77b
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 21 12:03:37 2021 +0300

    Add `classNamesCheck` for project index

commit d390259
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 23:30:44 2021 +0300

    Add idea to split usage

commit f96cac8
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 23:01:26 2021 +0300

    Segregate contexted producer

commit b290a7b
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 22:54:26 2021 +0300

    Rename contexted function in recipe

commit 9de2f0c
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 22:20:34 2021 +0300

    Add TBD

commit 96a813d
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 21:39:01 2021 +0300

    Fix typos

commit 38f0337
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 21:37:50 2021 +0300

    Update version in spec after 0.6.0 release

commit ffb2020
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 19:02:49 2021 +0300

    0.6.0

commit 10563ae
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 18:58:56 2021 +0300

    Delete redundant  helper

commit ee8b752
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 18:48:51 2021 +0300

    Change  to be self implemented

commit 07ed9cf
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 18:36:24 2021 +0300

    Add  to readme

commit 136416c
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 18:32:21 2021 +0300

    Replace  with more tricky

commit 1a25788
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 18:06:58 2021 +0300

    Add props extending

commit 4015d2c
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 17:42:38 2021 +0300

    Replace ClassNamesFrom with strict generic

commit 9e08857
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 17:29:26 2021 +0300

    Replace generic Map getter with keys

commit cfd721e
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 17:26:23 2021 +0300

    Split TS generic checks

commit f64f5c4
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 16:58:01 2021 +0300

    Update after latest release

commit 6effc6e
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 16:56:14 2021 +0300

    0.5.0

commit 350b596
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 16:54:29 2021 +0300

    Change test script to be unit, not build

commit cd565c7
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 16:48:34 2021 +0300

    Move config in cra to args

commit a8c9c9a
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 16:43:36 2021 +0300

    Remove nested npmrc

commit aaf25d0
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 16:42:09 2021 +0300

    Add npmrc to try speed up installation

commit b1d1d04
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 16:12:55 2021 +0300

    Change cra setup

commit be8f5fe
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 16:04:27 2021 +0300

    Add installation to recipe

commit ebcb1e8
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 15:53:48 2021 +0300

    Update readme and comments about toggling

commit 52dbdad
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 15:38:32 2021 +0300

    Fix CRA-recipe dependency. Remove useless typescript plugin

commit dde2cd8
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 15:27:36 2021 +0300

    Rename types

commit 7684e8b
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 15:19:54 2021 +0300

    Add falsy support in class keys array

commit 09e2992
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 01:54:01 2021 +0300

    0.4.0

commit b46b3b6
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 01:50:40 2021 +0300

    Add toggle on array

commit 046d77c
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 01:27:07 2021 +0300

    0.3.0

commit 62487a2
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 01:24:46 2021 +0300

    Add callback for toggling

commit 3379ec8
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 20 00:12:03 2021 +0300

    0.2.0

commit ea3f8e9
Author: Andrii Kirmas <[email protected]>
Date:   Mon Feb 15 00:07:19 2021 +0300

    Change ClassNames to be multipurpose generic

commit b639b3a
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 14 22:39:00 2021 +0300

    Add `ClassName` singleton. Change spec to demonstrate propagation

commit e96cdaf
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 14 21:50:45 2021 +0300

    Make ClassNamesFrom generic from numerous components

commit 3947897
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 14 20:58:00 2021 +0300

    Test defs

commit e1482b3
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 14 20:19:17 2021 +0300

    Move definitions to separate module

commit 8396b23
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 14 15:00:13 2021 +0300

    Make `ClassNamesFrom` picker to work also with components

commit adf9879
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 14 14:45:44 2021 +0300

    Recover spec as smoky recipes test

commit b329f46
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 14 14:37:00 2021 +0300

    Add `ClassNamesFrom` generic for easier pick

commit e02004b
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 7 14:55:14 2021 +0300

    Update after v0.1.0

commit 70d58c1
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 7 14:53:47 2021 +0300

    0.1.0

commit 6379e61
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 7 14:52:53 2021 +0300

    Keep spec phase out of build

commit c22a77d
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 7 14:45:56 2021 +0300

    Start readme

commit 63c90ab
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 7 14:45:45 2021 +0300

    Add demonstration of classNames inheritance

commit 451b323
Author: Andrii Kirmas <[email protected]>
Date:   Sun Feb 7 14:45:13 2021 +0300

    Recover *./demo* as dev dependency

commit 9962214
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 23:18:16 2021 +0300

    Remove latest cra tricks

commit 8e9dd67
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 23:12:48 2021 +0300

    Change run OS

commit e5e89ba
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 23:11:00 2021 +0300

    Enforce chokidar related dependencies for github actions

commit 93554c0
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 23:08:09 2021 +0300

    Remove `--no-optional` in `ci`

commit 8501a2f
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 23:05:43 2021 +0300

    Fix weird cross-dependencies in pack and demo

commit e282e7f
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 22:30:07 2021 +0300

    Add codecov action

commit 341b491
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 22:24:51 2021 +0300

    Reinstantiate package-lock

commit 1a56bc2
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 22:06:23 2021 +0300

    Install demo folder as dev dependency

commit 08dcb7d
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 22:00:07 2021 +0300

    Move not needed for build dependencies to optional

commit 6e2e363
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 21:57:32 2021 +0300

    Add description and keywords

commit 12f1585
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 21:56:58 2021 +0300

    Add main.yml of github actions

commit 049185b
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 21:37:27 2021 +0300

    Change demo App to use classNames from props

commit 5474134
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 21:17:00 2021 +0300

    Change CRA demo to use compiled classNaming

commit ddfd3c3
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 21:09:40 2021 +0300

    Change CRA example to have css module

commit a7b9d06
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 21:02:44 2021 +0300

    Add CRA to spec checking and as demo

commit c587495
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 20:47:15 2021 +0300

    Test false value in classNames map

commit 4c140f7
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 20:44:42 2021 +0300

    Add empties showcase

commit 5beb5c5
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 20:43:36 2021 +0300

    Add `valueOf` explanation

commit 00ffc31
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 20:30:41 2021 +0300

    Add "in `.join`" example

commit f3cfa5a
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 20:25:01 2021 +0300

    Add small comment to function

commit 3dd13a8
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 20:08:46 2021 +0300

    Add TS trick to use result as `string`

commit bb57f7d
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 19:58:22 2021 +0300

    Remove unused keys from function declaration

commit 43428ce
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 19:51:03 2021 +0300

    Add as named export

commit 4cf12b3
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 19:40:33 2021 +0300

    Rename package in all settings

commit 07c99ef
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 19:39:14 2021 +0300

    0.1.0-0

commit 64a4db8
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 19:38:38 2021 +0300

    Rename package

commit be4c024
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 19:38:08 2021 +0300

    Add `ClassNames` generic for react props

commit c4a859c
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 19:24:03 2021 +0300

    Prepare for publishing

commit d9e2900
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 18:57:36 2021 +0300

    Test no trim and no dedup

commit c5623cf
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 18:49:05 2021 +0300

    Add propagated className as optional first

commit 28b829a
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 18:23:49 2021 +0300

    Add destructing check

commit 12c2fe8
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 18:17:22 2021 +0300

    Add `toString` property

commit 198a9ba
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 18:06:00 2021 +0300

    TBD  adopt as string

commit 0a31c45
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 17:56:14 2021 +0300

    Add demo of unsupported type

commit 35b8a34
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 17:50:13 2021 +0300

    Init

commit 6b3855b
Author: Andrii Kirmas <[email protected]>
Date:   Sat Feb 6 17:26:07 2021 +0300

    Install
  • Loading branch information
Andrii Kirmas committed Mar 9, 2021
1 parent 090403b commit 6471d87
Show file tree
Hide file tree
Showing 97 changed files with 1,685 additions and 24,197 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: build
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches: [ main, release ]
pull_request:
branches: [ main ]
branches: [ main, release ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
380 changes: 235 additions & 145 deletions README.md

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions __examples__/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import React from "react"
import classNaming, {classNamesMap} from "react-classnaming"
import type { ClassNames, ClassNamesProperty, ClassHash, ClassNamed } from "react-classnaming"

import MyComponent from "./MyComponent"
import ThirdParty, { ThirdPartyProps } from "./node_modules-third_party_component"

type AppClassNames = ClassNamed & ClassNamesProperty<{
"app__container": ClassHash
"app__item": ClassHash
}>
type AppProps = AppClassNames & ClassNames<typeof MyComponent>

export default function App(props: AppProps) {
const myCssClasses = classNaming<AppClassNames>(props)
const withClassName = myCssClasses(true) // `${className}`

const {classnames} = props

const cssClassesMapping = classNamesMap(classnames)

return <>{ "/// App.tsx" }
{/* className=`${className} app__container` */}
<div {...withClassName({"app__container": true})}>
<MyComponent {...{
classnames,
// className: `${className} app__item`
...withClassName({"app__item": true})
}} />
<ThirdParty {
...cssClassesMapping({} as ThirdPartyProps,{
// "app__item"
containerClassName: { "app__item": true }
})
} />
</div>
</>
}
22 changes: 22 additions & 0 deletions __examples__/MyComponent.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

import React from "react"
import { classNaming } from "react-classnaming"
import type { ClassNamesProperty, ClassHash } from "react-classnaming/types"

type MyComponentProps = ClassNamesProperty<{
btn: ClassHash
icon: ClassHash
btn__icon: ClassHash
}>
export default function MyComponent({classnames}: MyComponentProps) {
const cssClasses = classNaming({classnames})

return <>
{ "/// MyComponent.tsx" }
{/* className="btn" */}
<button {...cssClasses({btn: true})}>
{/* className="btn__icon icon" */}
<i {...cssClasses({btn__icon: true, icon: true})}/>
</button>
</>
}
54 changes: 54 additions & 0 deletions __examples__/index.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import React from "react"
import expectRender from "../expect-to-same-render"
import { classNamesCheck } from "react-classnaming"
import App from "./App"

// Emulation of import some_module_css from "./some.module.css"
const some_module_css = {
"app__container": "hash-app__container",
"app__item": "hash-app__item",
"btn": "hash-btn",
"icon": "hash-icon",
"btn__icon": "hash-btn__icon"
}

it("render App with css-module", () => expectRender(

/// index.tsx
<App className="theme--dark" classnames={classNamesCheck(some_module_css)} />

).toSame(<>
{ "/// App.tsx" }
<div className="theme--dark hash-app__container">

{ "/// MyComponent.tsx" }
<button className="hash-btn">
<i className="hash-btn__icon hash-icon"/>
</button>

{ "/// node_modules/third_party_component" }
<div className="hash-app__item">
<div className="third-item">third-item</div>
</div>
</div>
</>))

it("render App with global css", () => expectRender(
/// index.tsx
<App className="theme--dark" classnames={classNamesCheck()} />
).toSame(<>
{ "/// App.tsx" }
<div className="theme--dark app__container">

{ "/// MyComponent.tsx" }
<button className="btn">
<i className="btn__icon icon"/>
</button>

{ "/// node_modules/third_party_component" }
<div className="app__item">
<div className="third-item">third-item</div>
</div>
</div>
</>))

18 changes: 18 additions & 0 deletions __examples__/node_modules-third_party_component.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from "react"

export type ThirdPartyProps = {
containerClassName?: string
itemClassName?: string
}

export default function ThirdParty({
containerClassName = "third-container",
itemClassName = "third-item"
}: ThirdPartyProps) {
return <>
{ "/// node_modules/third_party_component" }
<div className={containerClassName}>
<div className={itemClassName}>third-item</div>
</div>
</>
}
1 change: 0 additions & 1 deletion __recipes__/create-react-app/.env

This file was deleted.

23 changes: 0 additions & 23 deletions __recipes__/create-react-app/.gitignore

This file was deleted.

46 changes: 0 additions & 46 deletions __recipes__/create-react-app/README.md

This file was deleted.

Loading

0 comments on commit 6471d87

Please sign in to comment.