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

feat!: spectrum 2 #2352

Draft
wants to merge 90 commits into
base: s2-foundations-redux
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
c85d6cf
feat: migration of tokens to spectrum 2
castastrophe Nov 18, 2024
e3e37b4
feat: bug fixes for reducing theming variables
castastrophe Nov 22, 2024
6082064
feat: s2 foundations non-gray-800 colors update (#3413)
pfulton Nov 22, 2024
6615348
chore: release (s2-foundations) (#3421)
github-actions[bot] Dec 3, 2024
aef4ea3
fix(combobox): update border color in spectrum-two
castastrophe Dec 3, 2024
8b98218
fix(picker): update background and border color
castastrophe Dec 3, 2024
e0a8aa1
chore: release (s2-foundations) (#3425)
github-actions[bot] Dec 3, 2024
7ea067c
fix(combobox): retain border values for S1
castastrophe Dec 3, 2024
e29ecda
chore: release (s2-foundations) (#3426)
github-actions[bot] Dec 3, 2024
8ee5445
chore: minor tooling and infra updates
castastrophe Dec 4, 2024
76881ca
chore: update dependency versions ava and postcss
castastrophe Dec 4, 2024
9abd757
chore(contextualhelp,datepicker,fieldgroup): remove MDX files (#3422)
marissahuysentruyt Dec 16, 2024
69bfb16
chore(accordion,actionbar,asset): remove mdx files (#3407)
marissahuysentruyt Dec 18, 2024
f05c804
chore(colorarea,colorhandle,colorloupe,colorslider,colorwheel): remov…
marissahuysentruyt Dec 19, 2024
4c9c980
chore(assetcard,avatar,badge): remove mdx files (#3408)
marissahuysentruyt Dec 19, 2024
82800d1
chore(calendar,card,coachmark): remove MDX files (#3443)
marissahuysentruyt Dec 19, 2024
f4c117f
chore: include storybook assets in shipped results
castastrophe Dec 29, 2024
79eb129
chore: align peerDependencies to local versions
castastrophe Dec 29, 2024
d8a3f18
chore: update browser caniuse db
castastrophe Dec 29, 2024
2c5242f
feat(tokens): use 13.0.0-beta.5
pfulton Dec 11, 2023
ca1ddd2
feat(tokens): use 13.0.0-beta.8
pfulton Jan 8, 2024
7218c66
feat(tokens): use 13.0.0-beta.9
pfulton Jan 11, 2024
58d7841
feat(actiongroup)!: migrate to S2 (#2453)
mdt2 Feb 2, 2024
90275f5
feat(buttongroup)!: migrate to S2 (#2457)
jenndiaz Feb 2, 2024
f3072dd
feat(tokens)!: use 13.0.0-beta.13
pfulton Feb 2, 2024
f5e95d8
chore(release): release
pfulton Feb 6, 2024
f8e34af
feat(tokens)!: use spectrum-tokens 13.0.0-beta.16
pfulton Feb 22, 2024
9f77970
chore(actiongroup,buttongroup): specify s2 tokens for peerdeps
pfulton Feb 26, 2024
92fbbed
feat(closebutton)!: migrate to S2 (#2564)
mdt2 Mar 7, 2024
04de820
chore: s2 grays component-level migration (#2583)
pfulton Mar 7, 2024
cc3b7d7
fix(commons): remove renamed mods marked for deprecation (#2580)
jawinn Mar 8, 2024
c184290
feat(fieldlabel)!: s2 migration (#2569)
jawinn Mar 11, 2024
afafe0c
chore(tokens): use spectrum-tokens v13.0.0-beta.19
pfulton Mar 11, 2024
91f08d7
chore(tokens): manual version bump for 14.0.0-next.1
pfulton Mar 12, 2024
5f52b52
chore(release): release
pfulton Mar 12, 2024
a117833
feat(downstate): docs + implementation for example components (#2520)
mdt2 Mar 19, 2024
2c98493
feat(tokens): use spectrum-tokens 13.0.0-beta.21 (#2597)
pfulton Mar 19, 2024
f91706d
chore(release): release
pfulton Mar 21, 2024
5e37eac
chore: rebase against main and update components to use prerelease to…
pfulton Mar 28, 2024
8ec9008
feat(cornerrounding): add custom token and foundations documentation …
jenndiaz Mar 28, 2024
7233e93
fix(storybook): body classes for story and docs pages (#2617)
mdt2 Apr 1, 2024
3b0c098
feat(opacitycheckerboard): S2, small t-shirt size squares (#2610)
mdt2 Apr 8, 2024
2a5fbbc
feat(tokens): use spectrum-tokens at v13.0.0-beta.24 (#2650)
mdt2 Apr 9, 2024
f89e44d
chore(tokens): manual version bump for prerelease
pfulton Apr 9, 2024
5ec02a4
feat: add example gradients for static black and white (#2637)
jawinn Apr 11, 2024
c499b66
chore(tokens): use spectrum-tokens@13.0.0-beta.27
pfulton Apr 12, 2024
927ff86
chore(release): release
pfulton Apr 12, 2024
3fbbd33
feat(switch): s2 migration (#2651)
mdt2 Apr 15, 2024
a5b8329
chore: prerelease mode for changesets
pfulton Apr 19, 2024
16169a3
chore(tokens): use @adobe/spectrum-tokens@13.0.0-beta.30 (#2678)
pfulton Apr 19, 2024
c2dfbda
chore: release (next) (#2680)
github-actions[bot] Apr 19, 2024
b682b9e
chore: run branch through format; update pathing and fix errors (#2700)
castastrophe Apr 26, 2024
e33dc74
chore: release (next) (#2706)
github-actions[bot] Apr 26, 2024
54677d2
feat(button): migrate to Spectrum 2 (#2600)
jawinn May 1, 2024
3c654b1
chore: release s2 button (next) (#2722)
github-actions[bot] May 1, 2024
4b69e3c
feat(progressbar): s2 migration (#2659)
mdt2 May 8, 2024
ec752f2
chore: release (next) (#2739)
github-actions[bot] May 9, 2024
b5e7f34
chore(tokens): use spectrum-tokens@13.0.0-beta.35 (#2797)
pfulton May 30, 2024
c86645f
chore: release (next) (#2798)
github-actions[bot] May 30, 2024
30706e7
refactor(button): remove spectrum-ButtonWithFocusRing extend (#2725)
jawinn May 30, 2024
d9e72ec
chore: release (next) (#2801)
github-actions[bot] Jun 4, 2024
1ec6510
docs(dropshadow): add stories and docs for dropshadow (#2674)
rise-erpelding Jun 4, 2024
19dde86
feat(picker)!: migrate to spectrum 2 (#2697)
jawinn Jun 18, 2024
fd4da4e
feat(statuslight): s2 migration (#2818)
marissahuysentruyt Jun 28, 2024
d39a150
feat(tooltip): s2 migration (#2743)
mdt2 Jul 19, 2024
5665900
chore: release (next) (#2852)
github-actions[bot] Aug 12, 2024
d92b6fa
chore(tokens): use spectrum-tokens@13.0.0-beta.52 (#3351)
cdransf Oct 30, 2024
8613f4e
chore: release (next) (#3353)
github-actions[bot] Nov 1, 2024
ad8796f
feat(avatar): migrate s2 avatar (#3355)
cdransf Nov 8, 2024
e7e758f
feat(colorloupe): migrate to s2 drop-shadow tokens (#3301)
rise-erpelding Nov 12, 2024
1d8872e
feat(thumbnail): S2 migration (#3367)
cdransf Nov 12, 2024
da793ee
feat(colorarea): S2 migration (#3388)
cdransf Nov 15, 2024
e2cfa3f
feat(thumbnail-opacity-checkboard): S2 migration (#3394)
cdransf Nov 19, 2024
61996d7
build: align tooling with s2-foundations branch
castastrophe Dec 4, 2024
c992003
fix(pagination): deprecate legacy features to align with foundations
castastrophe Dec 4, 2024
c1a9f4f
feat(dialog): s2 standard dialog migration (#2860)
marissahuysentruyt Dec 9, 2024
b968966
chore: release (next) (#3379)
github-actions[bot] Dec 16, 2024
2c43c65
fix(icon): fix for icons not loading (#3454)
jawinn Dec 18, 2024
4e7b1fb
feat(alertbanner): migrate to spectrum 2 (#2652)
jawinn Dec 19, 2024
529733e
chore(tokens): use spectrum-tokens@13.0.0-beta.55 (#3456)
cdransf Dec 19, 2024
6e299d4
chore: release (next) (#3457)
github-actions[bot] Dec 19, 2024
1415f76
chore(storybook): standardize down-state decorator
castastrophe Dec 24, 2024
828fec1
build: remove theme processing, site package; add reporter
castastrophe Dec 24, 2024
9444cdb
build: add story exports; remove context from storybook
castastrophe Dec 27, 2024
9d7f088
chore: align peerDependencies to local versions
castastrophe Dec 29, 2024
616f2a7
fix: use new tag to hide storybook foundations stories (#3474)
jawinn Jan 3, 2025
52e773e
fix: restore undefined custom properties [part 5] (#3475)
5t3ph Jan 6, 2025
ab2028a
fix: restore undefined custom properties [part 4] (#3473)
jawinn Jan 6, 2025
24c6ad3
fix(textfield,menu,tag,toast,tabs,well,popover): define custom props …
rise-erpelding Jan 6, 2025
dd96363
docs(avatar): update sizing documentation (#3483)
marissahuysentruyt Jan 8, 2025
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
chore(calendar,card,coachmark): remove MDX files (#3443)
* chore(card): remove default args from test cases

* docs(card): remove MDX file

- adds some missing documentation regarding stories
- reorganizes some information to sit with appropriate story/variant
- migrates documentation from MDX file to the stories file instead

* docs(coachmark): remove MDX file

- adds some missing documentation regarding stories
- reorganizes some information to sit with appropriate story/variant
- migrates documentation from MDX file to the stories file instead

* chore(coachmark): adds extra chromatic coverage

* docs(calendar): remove MDX file

- migrates documentation from MDX file to the stories file instead

* docs(calendar): clarifies days of the week control name

* docs(card): clarify quiet control requirements

* chore(coachmark): remove html wrapper in favor of content array

* chore(card): fix isQuiet controls and usage in template

* docs(asset,card): isCardAssetOverride renamed to isImageFill
  • Loading branch information
marissahuysentruyt authored and castastrophe committed Dec 29, 2024
commit 82800d1d3ee22167e9e76b410dd71b9a3cd3b513
6 changes: 3 additions & 3 deletions components/asset/stories/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const Template = ({
id = getRandomId("asset"),
customClasses = [],
customStyles = {},
isCardAssetOverride = false,
isImageFill = false,
} = {}) => {
let visual;
if (preset === "file") {
Expand All @@ -38,8 +38,8 @@ export const Template = ({
class="${rootClass}-image"
src=${ifDefined(image)}
style=${styleMap({
"max-inline-size": !isCardAssetOverride ? "75%" : undefined,
"max-block-size": !isCardAssetOverride ? "75%" : undefined,
"max-inline-size": !isImageFill ? "75%" : undefined,
"max-block-size": !isImageFill ? "75%" : undefined,
})}
/>`;
}
Expand Down
60 changes: 0 additions & 60 deletions components/calendar/stories/calendar.mdx

This file was deleted.

51 changes: 39 additions & 12 deletions components/calendar/stories/calendar.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const months = [...Array(12).keys()].map((key) =>
);

/**
* Calendars display a grid of days in one or more months and allow users to select a single date.
* Calendars display a grid of days in one or more months and allow users to select a single date or a range of dates.
*/
export default {
title: "Calendar",
Expand All @@ -27,6 +27,9 @@ export default {
options: months,
control: "select",
},
// The date selection controls don't update the story, so they are removed from the table.
// TODO: We may have to refactor some of the template to create a working controls for the
// selectable dates.
selectedDay: {
name: "Selected date or range start (date)",
description:
Expand All @@ -35,19 +38,33 @@ export default {
table: {
type: { summary: "datetime" },
category: "Content",
disable: true,
},
control: "date",
if: { arg: "isDisabled", truthy: false },
},
isRangeSelection : {
name: "Range selection",
description: "Allow users to select a range of dates.",
type: { name: "boolean" },
table: {
type: { summary: "boolean" },
category: "Content",
disable: true,
},
control: "boolean",
},
lastDay: {
name: "Range end (date)",
description: "Defines the end of a date range.",
type: { name: "number" },
table: {
type: { summary: "datetime" },
category: "Content",
disable: true,
},
control: "date",
if: { arg: "isRangeSelection", truthy: true}
},
year: {
name: "Year",
Expand All @@ -69,7 +86,8 @@ export default {
control: "boolean",
},
useDOWAbbrev: {
name: "Use 3 letter abbreviation for day of week",
name: "Use abbreviated weekdays",
description: "Uses a 3 letter abbreviation for day of week.",
type: { name: "boolean" },
table: {
type: { summary: "boolean" },
Expand All @@ -89,6 +107,7 @@ export default {
isFocused: false,
useDOWAbbrev: false,
buttonSize: ActionButtonStories.args.size,
isRangeSelection: false,
},
parameters: {
actions: {
Expand All @@ -99,45 +118,52 @@ export default {
packageJson,
metadata,
},
tags: ["!autodocs"],
};

export const Default = CalendarGroup.bind({});
Default.args = {
month: months[6],
selectedDay: new Date(2023, 6, 3),
year: 2023,
selectedDay: new Date(2025, 6, 3),
year: 2025,
};

// ********* DOCS ONLY ********* //
export const AbbreviatedWeekdays = Template.bind({});
AbbreviatedWeekdays.args = {
...Default.args,
useDOWAbbrev: true,
};
AbbreviatedWeekdays.tags = ["!dev"];
AbbreviatedWeekdays.parameters = {
chromatic: { disableSnapshot: true },
};
AbbreviatedWeekdays.storyName = "Abbreviated weekdays";

/**
* For calendars with a selectable range:

- The `.is-range-start` and `.is-range-selection` classes go on the first day in the selection.
- The `.is-range-end` and `.is-range-selection` classes go on the last day of the selection.
- The `.is-range-selection` class goes on all days in the middle of the selection.
*/
export const RangeSelection = Template.bind({});
RangeSelection.args = {
isRangeSelection: true,
month: months[6],
selectedDay: new Date(2023, 6, 3),
year: 2023,
lastDay: new Date(2023, 6, 7),
useDOWAbbrev: true,
selectedDay: new Date(2025, 6, 3),
year: 2025,
lastDay: new Date(2025, 6, 7),
isPadded: true,
};
RangeSelection.tags = ["!dev"];
RangeSelection.parameters = {
chromatic: { disableSnapshot: true },
};
RangeSelection.storyName = "Range selection";

export const Focused = Template.bind({});
Focused.args = {
month: undefined,
...Default.args,
selectedDay: undefined,
year: undefined,
isFocused: true,
};
Focused.tags = ["!dev"];
Expand All @@ -148,6 +174,7 @@ Focused.parameters = {
export const Disabled = Template.bind({});
Disabled.tags = ["!dev"];
Disabled.args = {
...Default.args,
isDisabled: true
};
Disabled.parameters = {
Expand Down
4 changes: 1 addition & 3 deletions components/calendar/stories/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const Template = ({
if (firstDOWInMonth > DOW.length - orphanedDays) {
weeksInMonth++;
}
if (displayedMonth === 1 && firstDOWInMonth > 0) { // accounts for Feburary
if (displayedMonth === 1 && firstDOWInMonth > 0) { // accounts for February
weeksInMonth++;
}

Expand Down Expand Up @@ -368,8 +368,6 @@ export const Template = ({
"is-range-start": thisDay.isRangeStart,
"is-range-end": thisDay.isRangeEnd,
"is-selected": thisDay.isSelected,
// "is-selection-start": thisDay.isRangeStart,
// "is-selection-end": thisDay.isRangeEnd,
"is-disabled": isDisabled,
"is-focused": (isFocused && thisDay.isFocused) || thisDay.isSelected,
})}
Expand Down
87 changes: 0 additions & 87 deletions components/card/stories/card.mdx

This file was deleted.

Loading