Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new SegmentedControl element #51

Merged
merged 9 commits into from
Jul 14, 2022
Merged

Conversation

JamesNZL
Copy link
Owner

Creates a new SegmentedControl element that supports the full breadth of SupportedTypes as values, as well as multiple segments.

This is in contrast to the existing segmented control implementation, which only supports a true/false bi-segmented input.

@JamesNZL JamesNZL merged commit 4e8d8f7 into light-mode Jul 14, 2022
JamesNZL added a commit that referenced this pull request Jul 14, 2022
Squashed commit of the following:

commit 479944f
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 22:19:25 2022 +1200

    feat(elements): :art: use generic to constrain `SupportedTypes`

commit 413dd97
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 22:15:03 2022 +1200

    refactor(elements): :art: export `SegmentedControl` from `./elements`

commit 079b1c0
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 22:11:54 2022 +1200

    refactor(options): :art: refactor `AdvancedOptions`

commit b04f9ce
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 22:03:22 2022 +1200

    fix(elements): :bug: fix stack overflow

commit 4dde75a
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 21:57:22 2022 +1200

    feat(options): :wrench: configure segmented controls

commit ecc54da
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 21:39:08 2022 +1200

    feat(elements): :label: make `default` and `showDependents` optional

commit e57437d
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 21:34:09 2022 +1200

    feat(elements): :technologist: add generic to constrain segment ids

commit fab3a05
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 21:31:12 2022 +1200

    feat(elements): :sparkles: implement bones of `SegmentedControl`

commit 95d03e3
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 20:32:54 2022 +1200

    refactor(elements): :construction: change segmented inputs from `Input` class
@JamesNZL JamesNZL deleted the segmented-control branch July 14, 2022 11:37
@JamesNZL JamesNZL mentioned this pull request Jul 14, 2022
JamesNZL added a commit that referenced this pull request Jul 14, 2022
Squashed commit of the following:

commit b023660
Author: James <james@jamesnzl.xyz>
Date:   Fri Jul 15 00:01:34 2022 +1200

    chore(assets): :bento: update screenshots

commit 7b14700
Merge: ca6b988 909e8ab
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 23:55:16 2022 +1200

    Merge branch 'main' into light-mode

commit ca6b988
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 23:47:10 2022 +1200

    docs(readme): :memo: add `Theme` option

commit 57830c3
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 23:36:52 2022 +1200

    feat(options): :children_crossing: toggle display theme on input

commit 8013ef1
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 23:24:41 2022 +1200

    refactor(options): :bulb: add heading comments

commit 939d3c0
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 23:19:57 2022 +1200

    feat(interface): :lipstick: set display theme on load

commit f8b70bf
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 22:38:49 2022 +1200

    refactor(options): :wrench: modify theme saved values configuration

commit f35a167
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 22:22:03 2022 +1200

    feat(elements): :sparkles: create `SegmentedControl` element (#51)
    
    Squashed commit of the following:
    
    commit 479944f
    Author: James <james@jamesnzl.xyz>
    Date:   Thu Jul 14 22:19:25 2022 +1200
    
        feat(elements): :art: use generic to constrain `SupportedTypes`
    
    commit 413dd97
    Author: James <james@jamesnzl.xyz>
    Date:   Thu Jul 14 22:15:03 2022 +1200
    
        refactor(elements): :art: export `SegmentedControl` from `./elements`
    
    commit 079b1c0
    Author: James <james@jamesnzl.xyz>
    Date:   Thu Jul 14 22:11:54 2022 +1200
    
        refactor(options): :art: refactor `AdvancedOptions`
    
    commit b04f9ce
    Author: James <james@jamesnzl.xyz>
    Date:   Thu Jul 14 22:03:22 2022 +1200
    
        fix(elements): :bug: fix stack overflow
    
    commit 4dde75a
    Author: James <james@jamesnzl.xyz>
    Date:   Thu Jul 14 21:57:22 2022 +1200
    
        feat(options): :wrench: configure segmented controls
    
    commit ecc54da
    Author: James <james@jamesnzl.xyz>
    Date:   Thu Jul 14 21:39:08 2022 +1200
    
        feat(elements): :label: make `default` and `showDependents` optional
    
    commit e57437d
    Author: James <james@jamesnzl.xyz>
    Date:   Thu Jul 14 21:34:09 2022 +1200
    
        feat(elements): :technologist: add generic to constrain segment ids
    
    commit fab3a05
    Author: James <james@jamesnzl.xyz>
    Date:   Thu Jul 14 21:31:12 2022 +1200
    
        feat(elements): :sparkles: implement bones of `SegmentedControl`
    
    commit 95d03e3
    Author: James <james@jamesnzl.xyz>
    Date:   Thu Jul 14 20:32:54 2022 +1200
    
        refactor(elements): :construction: change segmented inputs from `Input` class

commit 8813b22
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 20:02:14 2022 +1200

    feat(options): :construction: add wip configuration for display theme

commit bbbffa0
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 19:46:28 2022 +1200

    feat(interface): :lipstick: add theme to options page

commit 0500e54
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 19:26:43 2022 +1200

    feat(interface): :lipstick: use `prefers-color-scheme` for default theme

commit 167dc2b
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 19:18:16 2022 +1200

    feat(interface): :lipstick: tweak light mode colours

commit 7902335
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 18:42:01 2022 +1200

    fix(sass): :bug: compute shadow values at build time

commit 078c10f
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 18:30:53 2022 +1200

    feat(sass): :lipstick: generate custom properties for dark mode

commit d998bc8
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 18:27:41 2022 +1200

    fix(sass): :bug: use sass function to generate map

commit ff93b71
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 17:46:30 2022 +1200

    refactor(sass): :art: use mixin to generate custom properties

commit 01c9d23
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 17:44:39 2022 +1200

    refactor(sass): :recycle: group theme namespace into `$theme` map

commit 0ecfa68
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 17:13:52 2022 +1200

    build(gulp): :wrench: glob nested `.scss` files

commit 91284e8
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 16:57:25 2022 +1200

    refactor(sass): :art: refactor shadow calculations

commit 7977630
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 16:53:28 2022 +1200

    refactor(sass): :recycle: use css custom properties

commit c50c792
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 16:46:25 2022 +1200

    refactor(sass): :truck: move themes to `themes/`

commit 66d350a
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 16:36:00 2022 +1200

    feat(interface): :lipstick: darken light mode code text colour

commit 1338ae1
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 16:21:46 2022 +1200

    refactor(sass): :recycle: refactor colour calculations into variables

commit cac3561
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 16:13:06 2022 +1200

    refactor(stylesheet): :lipstick: parameterise red button shadow

commit db2b7d2
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 15:31:29 2022 +1200

    feat(interface): :lipstick: make light element scrollbar more subtle

commit 9ec1267
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 15:29:40 2022 +1200

    feat(interface): :lipstick: add dark mode theme

commit cca01ad
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 12:11:43 2022 +1200

    refactor(sass): :art: organise `_variables`

commit 52a2012
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 03:23:19 2022 +1200

    feat(interface): :lipstick: tweak light mode colours

commit e021c61
Author: James <james@jamesnzl.xyz>
Date:   Thu Jul 14 03:06:44 2022 +1200

    feat(interface): :lipstick: adjust element active colour

commit 6ae9f9c
Author: James <james@jamesnzl.xyz>
Date:   Wed Jul 13 21:32:28 2022 +1200

    refactor(stylesheet): :art: change order to match `_variables`

commit 0fa1b2d
Author: James <james@jamesnzl.xyz>
Date:   Wed Jul 13 21:31:50 2022 +1200

    feat(interface): :lipstick: don't hardcode button text colours

commit e62c536
Author: James <james@jamesnzl.xyz>
Date:   Wed Jul 13 21:30:09 2022 +1200

    feat(interface): :lipstick: explicitly style scrollbar colours

commit 1e40b34
Author: James <james@jamesnzl.xyz>
Date:   Wed Jul 13 21:29:18 2022 +1200

    feat(interface): :lipstick: style light mode colours

commit b54434f
Author: James <james@jamesnzl.xyz>
Date:   Wed Jul 13 21:26:57 2022 +1200

    feat(interface): :lipstick: add shadow multiplier

commit 61cf232
Author: James <james@jamesnzl.xyz>
Date:   Mon Jul 11 20:31:41 2022 +1200

    build(gulp): 📦 add `postcss` to build system (#49)
    
    Squashed commit of the following:
    
    commit f51c197
    Author: James <james@jamesnzl.xyz>
    Date:   Mon Jul 11 14:04:31 2022 +1200
    
        build(gulp): :package: add `postcss` to build system
    
    commit dd0389f
    Author: James <james@jamesnzl.xyz>
    Date:   Mon Jul 11 13:49:18 2022 +1200
    
        chore(gulp): :bug: fix `Source[]` type
    
    commit 006168d
    Author: James <james@jamesnzl.xyz>
    Date:   Mon Jul 11 13:05:56 2022 +1200
    
        build(deps-dev): :heavy_minus_sign: remove `gulp-autoprefixer`
    
    commit 4a55711
    Author: James <james@jamesnzl.xyz>
    Date:   Mon Jul 11 13:05:37 2022 +1200
    
        build(deps-dev): :heavy_plus_sign: install `autoprefixer`
    
    commit 03fd035
    Author: James <james@jamesnzl.xyz>
    Date:   Mon Jul 11 13:05:11 2022 +1200
    
        build(deps-dev): :heavy_plus_sign: install `cssnano`
    
    commit a9ad397
    Author: James <james@jamesnzl.xyz>
    Date:   Mon Jul 11 11:35:59 2022 +1200
    
        build(deps-dev): :heavy_plus_sign: install `gulp-postcss`
    
    commit c9dddf1
    Author: James <james@jamesnzl.xyz>
    Date:   Mon Jul 11 11:35:11 2022 +1200
    
        build(deps-dev): :heavy_plus_sign: install `postcss`

commit 0a9df41
Author: James <james@jamesnzl.xyz>
Date:   Sun Jul 10 21:57:05 2022 +1200

    refactor(stylesheet): :fire: remove redundant styles

commit 56854dd
Merge: 586121d 97b83b9
Author: James <james@jamesnzl.xyz>
Date:   Sun Jul 10 16:48:43 2022 +1200

    refactor(sass): :recycle: nest selectors

commit 586121d
Author: James <james@jamesnzl.xyz>
Date:   Sun Jul 10 16:33:15 2022 +1200

    refactor(stylesheet): :art: remove hardcoded colour values

commit 2013b82
Author: James <james@jamesnzl.xyz>
Date:   Sun Jul 10 16:10:24 2022 +1200

    refactor(stylesheet): :truck: rename colour variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant