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

AerDropdownMenu #24

Open
wants to merge 56 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
3f3acab
feat:
S-unya Nov 18, 2022
4e259a9
feat: update packages & use vite/vitest
S-unya Nov 18, 2022
7ef6349
feat: use vite with sotrybook
S-unya Nov 18, 2022
2c24cf3
feat:
S-unya Nov 18, 2022
991ee40
feat: Add AlertDialog & Button
S-unya Nov 18, 2022
8338ff7
docs: readme
S-unya Nov 18, 2022
87646d2
chore: fix Button story title & add z-index tokens
S-unya Nov 18, 2022
0fdafb0
feat: AlertDialog, rename with Aer prefix
S-unya Nov 21, 2022
90a4c2f
style: AlertDialog, fix animation behaviour
S-unya Nov 21, 2022
da3e8be
fix: add visuallyHidden style
S-unya Nov 21, 2022
ed92b50
chore: rm unnecessary templates
S-unya Nov 21, 2022
d32f1a8
chore: update component story to include local theme docs
S-unya Nov 21, 2022
dcab2b8
docs: add local theme docs to stories
S-unya Nov 21, 2022
93866f9
chore: comment out favicon
S-unya Nov 21, 2022
18b53be
test: fix AerButton tests
S-unya Nov 21, 2022
75a40c9
test: update tests
S-unya Nov 21, 2022
000e9af
feat: Accodion added to package
S-unya Nov 21, 2022
93125ff
chore: more templating
S-unya Nov 21, 2022
67c4d32
feat: AerAccordion added to lib (unfinished)
S-unya Nov 21, 2022
054d3cf
fix: updated repo refs
S-unya Nov 24, 2022
b41ee6c
fix: updated repo refs
S-unya Nov 24, 2022
5f6a560
chore: accordion: add template for local theme docs
S-unya Nov 25, 2022
ea1b4ba
feat: accordion add local theme
S-unya Nov 25, 2022
98543ba
docs: alert update readme
S-unya Nov 25, 2022
71c526f
Merge branch 'update-packaging' of github.com:aerian-studios/aerian-c…
S-unya Nov 25, 2022
492b8c3
chore: alert respond to pr comments
S-unya Nov 25, 2022
f934ec3
feat: alert change API, respond to PR comments
S-unya Nov 25, 2022
abb6c17
Merge branch 'update-packaging' into accordion
S-unya Nov 26, 2022
d3c2dbb
style: accordion update animation styles
S-unya Nov 26, 2022
402486c
docs: readme updated to reflect current state
S-unya Nov 26, 2022
082b34c
style: checkbox + new util & box-sizing & rm Theme
S-unya Nov 27, 2022
e90b9a3
feat: checkbox new component
S-unya Nov 27, 2022
5c787dd
chore: checkbox update packages
S-unya Nov 27, 2022
41a6383
feat: checkbox slight API change
S-unya Nov 27, 2022
a9250d8
chore: checkbox update template
S-unya Nov 27, 2022
b009951
feat: checkbox enforce `value` & + label for status
S-unya Nov 27, 2022
7e29744
docs: checkbox Add local theme
S-unya Nov 27, 2022
2d94da4
test: checkbox tests
S-unya Nov 27, 2022
f47d69e
feat: checkbox update accordion to change heading levels
S-unya Nov 27, 2022
b385a15
docs: checkbox document theme usage
S-unya Nov 28, 2022
0ecef64
style: checkbox use scss vars for local vars
S-unya Nov 28, 2022
af01545
chore: checkbox clean up
S-unya Nov 28, 2022
2bf9f8f
style: checkbox update local themes for consistency
S-unya Nov 28, 2022
e574732
Update src/components/AerButton/AerButton.tsx
S-unya Nov 28, 2022
3f12873
test: checkbox update accordion test
S-unya Nov 28, 2022
1385501
Merge branch 'update-packaging' into checkbox
S-unya Nov 28, 2022
bedf89e
chore: dropdown add package & update template
S-unya Nov 29, 2022
41ca72d
feat: dropdown start component work
S-unya Nov 29, 2022
71a02db
feat: dropdown all the subcomponents, not working yet
S-unya Dec 2, 2022
17ac739
style: dropdown add a couple of theme vars
S-unya Dec 5, 2022
9d5aabe
feat: dropdown working & styled dropdown
S-unya Dec 5, 2022
9b9af7b
docs: dropdown remove floder from button story
S-unya Dec 5, 2022
1d24546
feat: dropdown add utils/dataStructures.ts/removeEmptyObjectKVs
S-unya Dec 5, 2022
b22cc86
chore: dropdown refactor container el to be ref
S-unya Dec 5, 2022
da6a2d1
chore: checkbox address PR comments
S-unya Dec 5, 2022
9a7b196
Merge branch 'checkbox' into AerDropdownMenu
S-unya Dec 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: checkbox Add local theme
S-unya committed Nov 27, 2022
commit 7e2974440c77d68d1f83ddb4f0fcf2c37d07c126
24 changes: 23 additions & 1 deletion src/components/AerCheckbox/AerCheckbox.stories.tsx
Original file line number Diff line number Diff line change
@@ -16,14 +16,31 @@ const Template: ComponentStory<typeof AerCheckbox> = (args) => (
export const Default = Template.bind({});
Default.args = {
label: "Accept the terms and conditions",
value: "t&c",
};

export const LocalTheme: ComponentStory<any> = () => (
<>
<p>The AerCheckbox component implements the following local theme</p>
<p>
<em>
NOTE: currently the AerCheckbox has some default behaviour for
invalidity that might need work in the future
</em>
</p>
<pre>
{`
animation-duration: var(--ease-duration-short, 150ms);
input: gap: var(--s-cmp-checkbox, var(--s-1));
input:icon: color: var(--c-cmp-checkbox-icon, var(--c-body));
input:icon: width/height: var(--s-cmp-checkbox-icon, var(--s-icon));
input:icon: padding: var(--s-cmp-checkbox-padding, 1px);
input:icon: border-radius: var(--s-cmp-checkbox-icon-br, var(--s-border-radius-xs));
input:icon:hover: background-color: var(--c-cmp-checkbox-icon-bg-hover, var(--c-gray-200));
input:icon:border: border: 2px solid var(--c-cmp-checkbox-icon-border, currentColor);

label: color: var(--c-cmp-checkbox-label, var(--c-body));
label: padding: var(--s-cmp-checkbox-padding, 0 0 0 var(--s-1));
label: font-size: var(--t-cmp-checkbox, var(--c-body-m));
`}
</pre>
</>
@@ -32,6 +49,7 @@ export const LocalTheme: ComponentStory<any> = () => (
export const Checked = Template.bind({});
Checked.args = {
label: "Accept the terms and conditions",
value: "t&c",
defaultState: true,
};
Checked.parameters = {
@@ -44,6 +62,7 @@ Checked.parameters = {
export const Indeterminate = Template.bind({});
Indeterminate.args = {
label: "Accept the terms and conditions",
value: "t&c",
defaultState: "indeterminate",
};
Indeterminate.parameters = {
@@ -56,6 +75,7 @@ Indeterminate.parameters = {
export const Invalid = Template.bind({});
Invalid.args = {
label: "Accept the terms and conditions",
value: "t&c",
defaultState: true,
required: true,
};
@@ -69,6 +89,7 @@ Invalid.parameters = {
export const CustomCheckIcons = Template.bind({});
CustomCheckIcons.args = {
label: "Accept the terms and conditions",
value: "t&c",
defaultState: false,
checkBox: <span style={{ border: "2px solid green" }}></span>,
checkedIcon: (
@@ -85,6 +106,7 @@ CustomCheckIcons.parameters = {
export const CustomInvalidMessage = Template.bind({});
CustomInvalidMessage.args = {
label: "Accept the terms and conditions",
value: "t&c",
defaultState: false,
required: true,
errorMessage: "Beep Boop! Please fill in this field.",