Skip to content

Commit

Permalink
Chore/updates (#10)
Browse files Browse the repository at this point in the history
* chore: Tidy, reorganise and prepare repo

docs: update changelog and documentation

feat(type): Add xSmall and conform to latest figma designs.

* Update to mirror 0.1.0+1 from ZebraDevs

* Cleanup dart warnings; fix text scale (#23)

* fix endtemplate in comments; upgrade flutter packages

* remove unnecessary text scaling

* [automated commit] lint format and import sort

---------

Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>
Co-authored-by: github-actions <github-actions@github.com>

* chore(deps): bump tj-actions/branch-names in /.github/workflows (#26)

Bumps [tj-actions/branch-names](https://github.com/tj-actions/branch-names) from 5.1 to 7.0.7.
- [Release notes](https://github.com/tj-actions/branch-names/releases)
- [Changelog](https://github.com/tj-actions/branch-names/blob/main/HISTORY.md)
- [Commits](tj-actions/branch-names@v5.1...v7.0.7)

---
updated-dependencies:
- dependency-name: tj-actions/branch-names
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* status_label (#25)

* status_label

* [automated commit] lint format and import sort

* spacing changes

* extract BorderType in utils

* chore(deps): bump tj-actions/branch-names in /.github/workflows (#26)

Bumps [tj-actions/branch-names](https://github.com/tj-actions/branch-names) from 5.1 to 7.0.7.
- [Release notes](https://github.com/tj-actions/branch-names/releases)
- [Changelog](https://github.com/tj-actions/branch-names/blob/main/HISTORY.md)
- [Commits](tj-actions/branch-names@v5.1...v7.0.7)

---
updated-dependencies:
- dependency-name: tj-actions/branch-names
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [automated commit] lint format and import sort

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add icons (#24)

* add icons

* [automated commit] lint format and import sort

* [automated commit] lint format and import sort

---------

Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>
Co-authored-by: github-actions <github-actions@github.com>

* Priority Pill (#28)

* Priority Pill

* [automated commit] lint format and import sort

* remove unnecessary param

* [automated commit] lint format and import sort

---------

Co-authored-by: github-actions <github-actions@github.com>

* Component indicator (#30)

* add icons

* [automated commit] lint format and import sort

* create ZetaIndicator component with examples

* fix value

* add more comments

* add widgetbook

* [automated commit] lint format and import sort

---------

Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>
Co-authored-by: github-actions <github-actions@github.com>

* Badge (#29)

* initial

* Badge

* fix test

* [automated commit] lint format and import sort

* change default border type

* fix test

* [automated commit] lint format and import sort

* [automated commit] lint format and import sort

* [automated commit] lint format and import sort

* fix example

* fix sizing

* add foreground colors

* [automated commit] lint format and import sort

---------

Co-authored-by: github-actions <github-actions@github.com>

* some sizings were not exactly as shown in Figma (#33)

* .

* [automated commit] lint format and import sort

---------

Co-authored-by: github-actions <github-actions@github.com>

* Merge from zebradevs (#27)

* Merge from zebradevs

* spelling and finals

* [automated commit] lint format and import sort

---------

Co-authored-by: github-actions <github-actions@github.com>

* Component ZetaAvatar (#32)

* add empty avatar example page; upgrade packages

* add icons

* [automated commit] lint format and import sort

* create avatar component with examples

* create ZetaIndicator component with examples

* fix value

* fix & improve; add badges (indicators)

* add more comments

* add factory constructors for the different types

* add widgetbook

* add avatar to widgetbook

* [automated commit] lint format and import sort

* Badge (#29)

* initial

* Badge

* fix test

* [automated commit] lint format and import sort

* change default border type

* fix test

* [automated commit] lint format and import sort

* [automated commit] lint format and import sort

* [automated commit] lint format and import sort

* fix example

* fix sizing

* add foreground colors

* [automated commit] lint format and import sort

---------

Co-authored-by: github-actions <github-actions@github.com>

* [automated commit] lint format and import sort

* replace photo with image

* [automated commit] lint format and import sort

---------

Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Genoveva Georgieva <151932404+genovevageorgieva@users.noreply.github.com>

* App bar (#35)

* create ZetaAppBar in four variants with example screens

* [automated commit] lint format and import sort

* remove Flexible

* rename

* titleIcon should be of type Icon instead of Widget

---------

Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>
Co-authored-by: github-actions <github-actions@github.com>

* Workcloud indicators (#34)

* initial

* workcloud indicator

* typo

* .

* [automated commit] lint format and import sort

* .

* .

* .

* [automated commit] lint format and import sort

* [automated commit] lint format and import sort

* add default values

* [automated commit] lint format and import sort

---------

Co-authored-by: github-actions <github-actions@github.com>

* fix the border of the indicator component (#31)

* fix the border of the component

* [automated commit] lint format and import sort

* inverseBorder

* [automated commit] lint format and import sort

* rounded = true by default

* running on iPhone

* try to adjust font height

* horizontal alignment

* try to remove the line height

* stick to Material 2 for now

---------

Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>
Co-authored-by: github-actions <github-actions@github.com>

* Button component (#36)

* initial

* format_error

* [automated commit] lint format and import sort

* button component optimizations

* [automated commit] lint format and import sort

* [automated commit] lint format and import sort

* colors change

* colors change

* [automated commit] lint format and import sort

---------

Co-authored-by: github-actions <github-actions@github.com>

* force Material 3 (#38)

* force Material 3

* [automated commit] lint format and import sort

---------

Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>
Co-authored-by: github-actions <github-actions@github.com>

* Tag component (#37)

* initial

* inital

* initial

* tag component

* tag component

* [automated commit] lint format and import sort

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>

* Component accordion (#39)

* first draft of the ZetaAccordion

* create ZetaAccordion component

* add icon padding

* add list separator & margin

* Tag component (#37)

* initial

* inital

* initial

* tag component

* tag component

* [automated commit] lint format and import sort

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>

* add comments and more examples

* pubspec

* [automated commit] lint format and import sort

---------

Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>
Co-authored-by: Genoveva Georgieva <151932404+genovevageorgieva@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>

* fix sizings and replace icons with zeta icons (#43)

* fix sizings and replace icons with zeta icons

* [automated commit] lint format and import sort

---------

Co-authored-by: github-actions <github-actions@github.com>

* Menu Items - horizontal & vertical (#44)

* Menu Items - horizontal & vertical

* [automated commit] lint format and import sort

---------

Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>
Co-authored-by: github-actions <github-actions@github.com>

* component floating action button (#41)

Co-authored-by: github-actions <github-actions@github.com>

* Page banner (#40)

Co-authored-by: github-actions <github-actions@github.com>

* create bottom sheet (#45)

Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>
Co-authored-by: github-actions <github-actions@github.com>

* Password input (#47)

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>

* Component chip (#46)

Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>
Co-authored-by: github-actions <github-actions@github.com>

* chore(deps): bump tj-actions/changed-files from 35 to 41 in /.github/workflows (#48)

Bumps
[tj-actions/changed-files](https://github.com/tj-actions/changed-files)
from 35 to 41.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/tj-actions/changed-files/releases">tj-actions/changed-files's
releases</a>.</em></p>
<blockquote>
<h2>v41</h2>
<h1>Changes in v41.0.1</h1>
<h2>What's Changed</h2>
<ul>
<li>Upgraded to v41 by <a
href="https://github.com/tj-actions-bot"><code>@​tj-actions-bot</code></a>
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/1811">tj-actions/changed-files#1811</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.2 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/1813">tj-actions/changed-files#1813</a></li>
<li>fix: update characters escaped by safe output by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/1815">tj-actions/changed-files#1815</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/tj-actions/changed-files/compare/v41...v41.0.1">https://github.com/tj-actions/changed-files/compare/v41...v41.0.1</a></p>
<hr />
<h1>Changes in v41.0.0</h1>
<h2>🔥 🔥 BREAKING CHANGE 🔥 🔥</h2>
<p>A new <code>safe_output</code> input is now available to prevent
outputting unsafe filename characters (Enabled by default). This would
escape characters in the filename that could be used for command
injection.</p>
<blockquote>
<p>[!NOTE]
This can be disabled by setting the <code>safe_output</code> to false
this comes with a recommendation to store all outputs generated in an
environment variable first before using them.</p>
</blockquote>
<h4>Example</h4>
<pre lang="yaml"><code>...
    - name: Get changed files
      id: changed-files
      uses: tj-actions/changed-files@v40
      with:
safe_output: false # set to false because we are using an environment
variable to store the output and avoid command injection.
<pre><code>- name: List all added files
  env:
    ADDED_FILES: ${{ steps.changed-files.outputs.added_files }}
  run: |
    for file in &amp;quot;$ADDED_FILES&amp;quot;; do
      echo &amp;quot;$file was added&amp;quot;
    done
</code></pre>
<p>...
</code></pre></p>
<h2>What's Changed</h2>
<ul>
<li>chore(deps): update typescript-eslint monorepo to v6.15.0 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/1801">tj-actions/changed-files#1801</a></li>
<li>Upgraded to v40.2.3 by <a
href="https://github.com/tj-actions-bot"><code>@​tj-actions-bot</code></a>
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/1800">tj-actions/changed-files#1800</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.0 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/1802">tj-actions/changed-files#1802</a></li>
<li>chore(deps): lock file maintenance by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/1803">tj-actions/changed-files#1803</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.1 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/1804">tj-actions/changed-files#1804</a></li>
<li>fix: update safe output regex and the docs by <a
href="https://github.com/tj-actions-bot"><code>@​tj-actions-bot</code></a>
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/1805">tj-actions/changed-files#1805</a></li>
<li>Revert &quot;chore(deps): update actions/download-artifact action to
v4&quot; by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/1806">tj-actions/changed-files#1806</a></li>
<li>Update README.md by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/1808">tj-actions/changed-files#1808</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/tj-actions/changed-files/blob/main/HISTORY.md">tj-actions/changed-files's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h1><a
href="https://github.com/tj-actions/changed-files/compare/v41.0.0...v41.0.1">41.0.1</a>
- (2023-12-24)</h1>
<h2><!-- raw HTML omitted -->🐛 Bug Fixes</h2>
<ul>
<li>Update characters escaped by safe output (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/1815">#1815</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/716b1e13042866565e00e85fd4ec490e186c4a2f">716b1e1</a>)
- (Tonye Jack)</li>
</ul>
<h2><!-- raw HTML omitted -->⚙️ Miscellaneous Tasks</h2>
<ul>
<li><strong>deps:</strong> Update dependency eslint-plugin-prettier to
v5.1.2 (<a
href="https://github.com/tj-actions/changed-files/commit/7aaf10d9eef19e8a2432a967b88124171152caaf">7aaf10d</a>)
- (renovate[bot])</li>
</ul>
<h2><!-- raw HTML omitted -->⬆️ Upgrades</h2>
<ul>
<li>Upgraded to v41 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/1811">#1811</a>)</li>
</ul>
<p>Co-authored-by: jackton1 <a
href="mailto:jackton1@users.noreply.github.com">jackton1@users.noreply.github.com</a>
(<a
href="https://github.com/tj-actions/changed-files/commit/cc08e170f4447237bcaf8acaacfa615b9cb86612">cc08e17</a>)
- (tj-actions[bot])</p>
<h1><a
href="https://github.com/tj-actions/changed-files/compare/v40.2.3...v41.0.0">41.0.0</a>
- (2023-12-23)</h1>
<h2><!-- raw HTML omitted -->🐛 Bug Fixes</h2>
<ul>
<li>Update safe output regex and the docs (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/1805">#1805</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/ff2f6e6b91913a7be42be1b5917330fe442f2ede">ff2f6e6</a>)
- (tj-actions[bot])</li>
</ul>
<h2><!-- raw HTML omitted -->⏪ Reverts</h2>
<ul>
<li>Revert &quot;chore(deps): update actions/download-artifact action to
v4&quot; (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/1806">#1806</a>)</li>
</ul>
<p>(<a
href="https://github.com/tj-actions/changed-files/commit/4f573fed06c9abb5da4c72f75c1c320718114ff7">4f573fe</a>)
- (Tonye Jack)</p>
<h2><!-- raw HTML omitted -->🔄 Update</h2>
<ul>
<li>Update README.md (<a
href="https://github.com/tj-actions/changed-files/commit/6e79d6e3dbe48946636c2939c80ff5c84ff7f9fe">6e79d6e</a>)
- (Tonye Jack)</li>
<li>Update README.md (<a
href="https://github.com/tj-actions/changed-files/commit/d13ac1942fb3c1d7d32017915bb082cebe8a272a">d13ac19</a>)
- (Tonye Jack)</li>
<li>Update README.md (<a
href="https://github.com/tj-actions/changed-files/commit/bb89f97963be96b39e1a303e64d5b91a1af4c340">bb89f97</a>)
- (Tonye Jack)</li>
<li>Updated README.md (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/1810">#1810</a>)</li>
</ul>
<p>Co-authored-by: renovate[bot] <!-- raw HTML omitted --> (<a
href="https://github.com/tj-actions/changed-files/commit/1864078d0afadf68ba489e671ecc09fefe8b70ab">1864078</a>)
- (tj-actions[bot])</p>
<ul>
<li>Update README.md (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/1808">#1808</a>)</li>
</ul>
<p>(<a
href="https://github.com/tj-actions/changed-files/commit/47371c50e97c089212d9eb92ca26c8453224e78e">47371c5</a>)
- (Tonye Jack)</p>
<h2><!-- raw HTML omitted -->📝 Other</h2>
<ul>
<li>Merge pull request from GHSA-mcph-m25j-8j63</li>
</ul>
<ul>
<li>
<p>feat: add <code>safe_output</code> input enabled by default</p>
</li>
<li>
<p>fix: migrate README to safe uses of interpolation</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/tj-actions/changed-files/commit/716b1e13042866565e00e85fd4ec490e186c4a2f"><code>716b1e1</code></a>
fix: update characters escaped by safe output (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/1815">#1815</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/7aaf10d9eef19e8a2432a967b88124171152caaf"><code>7aaf10d</code></a>
chore(deps): update dependency eslint-plugin-prettier to v5.1.2</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/cc08e170f4447237bcaf8acaacfa615b9cb86612"><code>cc08e17</code></a>
Upgraded to v41 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/1811">#1811</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/6e79d6e3dbe48946636c2939c80ff5c84ff7f9fe"><code>6e79d6e</code></a>
Update README.md</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/d13ac1942fb3c1d7d32017915bb082cebe8a272a"><code>d13ac19</code></a>
Update README.md</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/bb89f97963be96b39e1a303e64d5b91a1af4c340"><code>bb89f97</code></a>
Update README.md</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/1864078d0afadf68ba489e671ecc09fefe8b70ab"><code>1864078</code></a>
Updated README.md (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/1810">#1810</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/f495a0321d3fffa62da2573adf70b77d5eb2f57a"><code>f495a03</code></a>
chore(deps): lock file maintenance</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/47371c50e97c089212d9eb92ca26c8453224e78e"><code>47371c5</code></a>
Update README.md (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/1808">#1808</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/4f573fed06c9abb5da4c72f75c1c320718114ff7"><code>4f573fe</code></a>
Revert &quot;chore(deps): update actions/download-artifact action to
v4&quot; (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/1806">#1806</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/tj-actions/changed-files/compare/v35...v41">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tj-actions/changed-files&package-manager=github_actions&previous-version=35&new-version=41)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/zebratechnologies/zeta-flutter/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Organize ilb/ to match web (#49)

https://jira.zebra.com/browse/UX-911

---------

Co-authored-by: github-actions <github-actions@github.com>

* feat: Update text styles to match latest designs (#50)

https://jira.zebra.com/browse/UX-808

---------

Co-authored-by: github-actions <github-actions@github.com>

* feat: Remove legacy code (#51)
BREAKING CHANGE: Removed ZetaGrid and ZetaSpacing components, renamed widget padding extensions
https://jira.zebra.com/browse/UX-910

Remove ZetaGrid, ZetaSpacing and ZetaText widgets as these are no longer
part of the library. Functionality is retained in some cases (text
styles, padding extensions) but widgets themselves are removed.

---------

Co-authored-by: github-actions <github-actions@github.com>

* chore: Update Widgetbook to correct functionality (#52)

https://jira.zebra.com/browse/UX-912

---------

Co-authored-by: github-actions <github-actions@github.com>

* chore: Tidy up example app (#53)

https://jira.zebra.com/browse/UX-920

---------

Co-authored-by: github-actions <github-actions@github.com>

* chore: Update Github action (#54)

https://jira.zebra.com/browse/UX-913

* chore: Refactor components part 1 (#55)

https://jira.zebra.com/browse/UX-918

Part 1 of 2 due to size. 

- [x] Accordion
- [ ] Avatar
- [x] Badges
- [x] Banner
- [ ] Bottom Sheet
- [x] Button
- [ ] Checkbox
- [ ] Chip
- [ ] Password Input

* chore: UX-918 part 2. Refactor components (#56)

- [x] Accordion
- [x] Avatar
- [x] Badges
- [x] Banners
- [x] Bottom Sheets
- [x] Buttons
- [x] FABs
- [x] Checkbox
- [x] Chip
- [x] Password Input

* chore: Add publish action. (#58)

This action should fail when run in internal repository, and only run
from ZebraDevs.
Whenever a tag is pushed, this should run checks, format and publish
package, dependent on admin approval.

* chore: Tidy, reorganise and prepare repo

docs: update changelog and documentation

feat(type): Add xSmall and conform to latest figma designs.

* System theme support (#1)

* chore: Tidy, reorganise and prepare repo

docs: update changelog and documentation

feat(type): Add xSmall and conform to latest figma designs.

* "Refactored the ZetaColors class for better customization

The ZetaColors class was heavily refactored for better customization of variables such as brightness, contrast, color swatches, and additional color attributes. Several fields were made final for the overall class safety. This change improves color control on different themes for the application."

* "Updated the ZetaColor and Theme setup to use InheritedWidget

The ZetaDefaults class was updated to Zeta inheriting from InheritedWidget. This change allows easy access to the Zeta theme settings (contrast, theme mode, theme data, color set) from anywhere in the widget tree. The ZetaAppBuilder function was updated to take in ThemeData and ThemeMode. The ZetaProvider was added to provide Zeta theming and contrast data down the widget tree. The code for the color and typography examples was adjusted to use the new Zeta context extension, instead of using Theme.of(context) to get colorScheme. This change was crucial to simplify the process of adapting the application visuals to different themes."

* "Improve theme management functionality in Zeta

Removed code concerning getting a color's RGB hex code from 'color_extensions.dart', as it was seldom used. Updated 'zeta_flutter.dart' to unhide ZetaColorGetters. Adaptations in 'zeta.dart' included switching mediaBrightness to _mediaBrightness for internal use and adding methods for accurate determination of color set and brightness settings based on the theme mode. Also, ZetaProvider was updated for 'system' theme mode support. example/lib/main.dart and example/lib/widgets.dart were updated to support these changes, including UI updates for seamless theme switching."

* "Add theme update function and extend ZetaColorGetters

Implemented a method in 'zeta.dart' to support updating the current theme data dynamically. Extended 'color_scheme.dart' by introducing _ZetaColorProperties and updating ZetaColorGetters. These changes increase flexibility for theme management and provide a structured and accessible way to get Zeta colors through the theme context."

* Remove theme_extensions.dart and move contents to colors.dart

Theme extensions were deleted and its contents were moved to colors.dart to consolidate all color-related codes in one file for easier navigation and editing. Additional enhancements include optimizing color assignments and making ZetaColors immutable for more robust color management.

* Refactor code for color theme and add theme switcher

Refactored codebase to improve the color theme handling: relocated theme related methods to colors.dart from theme_extensions.dart for consolidated color theme data. Optimized color assignments by leveraging the 'copyWith' method, allowing more efficient color management. Introduced the immutability of ZetaColors to enhance robustness. Bumped version in pubspec.yaml to 0.0.1+13 due to these changes. Renamed theme.dart to theme_data.dart for more semantic file naming. Added 'identifier' to the ZetaThemeData for easier theme identification.
The visible application change is an added ThemeSwitcher in the example app, offering a UI to switch between different predefined themes.

* Add ZetaThemeService and theme switcher in example app

Implemented ZetaThemeService as an abstract class, providing structure for loading and saving themes within the app. Removed an obsolete comment within the contrast.dart and made necessary imports in zeta.dart. Asynchronous theme loading is added during app startup and saving is done upon theme updates. Also, for user-interaction, an exclusive ThemeSwitcher widget is added in the example app allowing users to select between available themes. This improves user experience, and optimizes theme handling and application performance.

* Refactor color swatch generation to utilize zeta

Refactored color swatch generation in color_example.dart to use Zeta instead of directly using the Theme. Now the brightness for ZetaColorSwatch is being pulled from zeta object rather than theme. This ensures consistency across different parts of the application where Zeta is used. Also changed theme.colorScheme.surface to colors.surfacePrimary for better readability, and alignment with use of zeta object.

* Add icon colors to color scheme

Extended the color scheme in colors.dart to include default, subtle, disabled, and inverse icon colors. These were added to ensure consistent icon colors across the application and support dark mode by allowing inverted color swatches.

* Refactor theme switch settings and add new features

Renamed 'theme_switch.dart' to 'theme_color_switch.dart' and added two new files 'theme_contrast_switch.dart' and 'theme_mode_switch.dart' in order to separate the theme settings logically into distinct features - Theme Color Switch, Theme Contrast Switch and Theme Mode Switch respectively. Also, the theme application feature has been refactored within 'widgets.dart' to use the newly created theme features instead of the old theme switch. This enhances modularity and the user's ability to switch theme settings easily.

* Update method naming for consistent architecture in text.dart

Changed the method name 'withColor' to 'themeWithColor' in text.dart for consistency with other part of the architecture and for better readability. This change supports the shift towards a consistently designed application architecture and helps developers easily decipher the role of the method in the code.

* Update color scheme mapping and library version in colors.dart and pubspec.lock

Refined the color mapping in ZetaColorScheme in colors.dart by replacing effectiveSurfaceTertiary with textDefault, enhancing the clarity of backdrop's color role. Concurrently, version of multiple dependencies in pubspec.lock are updated to benefit from recent fixes and improvements in those libraries.

* Change `Color` to `ZetaColorSwatch` in theme files

Adjusted the class references in colors.dart from `Color` to `ZetaColorSwatch` to provide a more consistent color swatch across the app. The swatch allows for more flexibility in using color variations. Adjustments were also made in color_scheme.dart and color_swatch.dart to include better explanatory messages and use standard dart documentation format. Changes in custom_docs/components/Color/flutter.md were made to align with these updates.

* Enhance contrast and color handling in theme files

Removed 'flutter.md' as it is no longer required due to improvements made in contrast and color handling. For better accessibility support, 'contrast.dart' was refactored for better contrast handling and 'color_extensions.dart' now includes a mechanism to generate color swatch based on contrast ratio. Also, 'zeta.dart' was updated to adapt to the system's brightness providing better user experience. Overall, these adjustments aim to enhance accessibility and user experience, apart from simplifying the codebase.

* Add LICENSE-3RD-PARTY for third-party libraries

Introduced license details for third-party libraries used in the project. MIT license applies to 'tinycolor' and SIL Open Font License applies to 'IBMPlexSans'. This ensures proper acknowledgement and licensure compliance for used third-party resources.

---------

Co-authored-by: Luke Walton <thelukewalton@users.noreply.github.com>

* Refactor theme declaration and introduce theme service (#8)

In theme_color_switch.dart, restructured the declaration of themes into a global constant 'appThemes', freeing it from a class field in ZetaThemeColorSwitch. This increases application efficiency and adheres to the DRY (Don't Repeat Yourself) principle. A new file 'theme_service.dart' was also added, serving as an abstract class for loading and saving theme data. Various typos in 'colors.dart' and 'zeta.dart' were fixed to ensure correct execution. Theme data loading and saving operations in 'main.dart' were also updated to use this new service.

* Checkbox (#9)

* checkbox

* remove comment

* widgetbook

* widgetbook

* [automated commit] lint format and import sort

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: atanasyordanov21 <63714308+atanasyordanov21@users.noreply.github.com>
Co-authored-by: Atanas Yordanov <atanas.yordanov@athlonsofia.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Genoveva Georgieva <151932404+genovevageorgieva@users.noreply.github.com>
Co-authored-by: Prashant Sawant <75819349+ps9310@users.noreply.github.com>
  • Loading branch information
7 people committed Feb 5, 2024
1 parent 86eba6f commit f4a5355
Show file tree
Hide file tree
Showing 106 changed files with 10,310 additions and 3,299 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "zeta-ds"
}
}
41 changes: 41 additions & 0 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CI - Release"
on:
workflow_dispatch:
release:
types: [released]

jobs:
check-package:
runs-on: ubuntu-latest
permissions:
id-token: write
environment: pub.dev
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.x"
channel: "stable"
- name: Install dependencies
run: flutter pub get
- name: Format code
run: dart format --fix .
- name: Check Publish Warnings
run: dart pub publish --dry-run
- name: Publish
run: dart pub publish --force
deploy-website:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
script: |
await github.rest.actions.createworkflowDispatch({
owner: 'zebratechnologies',
repo: 'zeta',
workflow_id: 'deploy-prod.yml',
ref: 'main'
})
136 changes: 0 additions & 136 deletions .github/workflows/onMerge.yml

This file was deleted.

71 changes: 52 additions & 19 deletions .github/workflows/pr.yml → .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,65 @@
name: "PR"
on:
pull_request:
name: CI - Pull Request
on: pull_request

jobs:
up-to-date:
name: "Check branch is up to date"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Check branch is up to date
run: |
if git merge-base --is-ancestor ${{ github.event.pull_request.base.sha}} ${{ github.event.pull_request.head.sha}}
then
echo "Your branch is up to date."
exit 0
else
echo "You need to merge / rebase."
exit 1
fi
changes:
name: "Check for changes in code"
needs: up-to-date
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
files: ${{steps.changed-files.outputs.any_changed}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
persist-credentials: false
- name: Get all changed *.dart, files in custom-docs or pubspec.yaml
id: changed-files
uses: tj-actions/changed-files@v35
uses: tj-actions/changed-files@v41
with:
base_sha: ${{ github.event.pull_request.base.sha }}
sha: ${{ github.event.pull_request.head.sha }}
files: |
**/*.dart
custom-docs
pubspec.yaml
analyze:
code-quality:
runs-on: ubuntu-latest
timeout-minutes: 20
needs: changes
if: needs.changes.outputs.files == 'true'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Check branch is up to date
run: |
if git merge-base --is-ancestor ${{ github.event.pull_request.base.sha}} ${{ github.event.pull_request.head.sha}}
then
echo "Your branch is up to date."
exit 0
else
echo "You need to merge / rebase."
exit 1
fi
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v5.1
uses: tj-actions/branch-names@v7.0.7
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.13.x"
flutter-version: "3.16.x"
channel: "stable"
- name: Setup flutter
run: flutter pub get
Expand All @@ -70,3 +80,26 @@ jobs:
git add -A
git commit -m '[automated commit] lint format and import sort'
git push
deploy-preview:
name: Deploy preview version of the storybook on firebase
needs: code-quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.x"
channel: "stable"
- name: Setup flutter
run: flutter pub get
- name: Build example app
run: |
cd example
flutter build web -o ../build --no-tree-shake-icons
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZETA_DS }}"
expires: 7d
projectId: zeta-ds
channelId: "pr-${{ github.event.number }}-${{ github.event.pull_request.head.ref }}"
17 changes: 17 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: release-please
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
10 changes: 9 additions & 1 deletion .pubignore
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
custom_docs/
custom_docs/
example/build
example/android
example/ios
example/linux
example/macos
example/web
example/windows
example/widgetbook
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.2.0"
}
Loading

0 comments on commit f4a5355

Please sign in to comment.