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(autocomplete): initial commit #190

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions src/api/docs/components/autocomplete.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Do not edit this file because it is automatically generated. -->
<h1 id="autocomplete">Autocomplete</h1>
<p>The autocomplete is a normal text input enhanced by a panel of suggested options.</p>
<h2 id="simple-autocomplete">Simple Autocomplete</h2>
<demo-view path="autocomplete-simple-example">
<aui-autocomplete-simple-example></aui-autocomplete-simple-example>
</demo-view>
18 changes: 9 additions & 9 deletions src/api/docs/customization/color.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ <h1 id="color">Color</h1>
<h2 id="supported-values">Supported values</h2>
<pre class="ttb"><code prsm class="ttm"><span class="tt18 tt1j">import</span> <span class="tt18 ttae">&#123;</span> color <span class="tt18 ttae">&#125;</span> <span class="tt18 tt1j">from</span> <span class="tt18 tt3z">'@alyle/ui/color'</span><span class="tt18 ttae">;</span>

<span class="tt18 tt1j">const</span> Yellow <span class="tt18 ttb0">=</span> <style>._3odifwqd{background:rgb(255,255,0);opacity:1}._3odifwqd *{color: #202020 !important}</style><span class="_3odifwqd"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">255</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">255</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">0</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// rgb</span>
<span class="tt18 tt1j">const</span> Black <span class="tt18 ttb0">=</span> <style>._raoipxy{background:rgb(0,0,0);opacity:1}._raoipxy *{color: white !important}</style><span class="_raoipxy"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// number</span>
<span class="tt18 tt1j">const</span> White <span class="tt18 ttb0">=</span> <style>._ho6pnmg9{background:rgb(255,255,255);opacity:1}._ho6pnmg9 *{color: #202020 !important}</style><span class="_ho6pnmg9"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xffffff</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// hex</span>
<span class="tt18 tt1j">const</span> Text <span class="tt18 ttb0">=</span> <style>._21ctlb4y{background:rgba(0,0,0,0.87);opacity:0.87}._21ctlb4y *{color: white !important}</style><span class="_21ctlb4y"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">0</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">0</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">.87</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// rgba</span>
<span class="tt18 tt1j">const</span> Yellow <span class="tt18 ttb0">=</span> <style>._ajg14hxs{background:rgb(255,255,0);opacity:1}._ajg14hxs *{color: #202020 !important}</style><span class="_ajg14hxs"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">255</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">255</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">0</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// rgb</span>
<span class="tt18 tt1j">const</span> Black <span class="tt18 ttb0">=</span> <style>._4qc1m2kw{background:rgb(0,0,0);opacity:1}._4qc1m2kw *{color: white !important}</style><span class="_4qc1m2kw"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// number</span>
<span class="tt18 tt1j">const</span> White <span class="tt18 ttb0">=</span> <style>._fl3j92md{background:rgb(255,255,255);opacity:1}._fl3j92md *{color: #202020 !important}</style><span class="_fl3j92md"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xffffff</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// hex</span>
<span class="tt18 tt1j">const</span> Text <span class="tt18 ttb0">=</span> <style>._hdea2u9s{background:rgba(0,0,0,0.87);opacity:0.87}._hdea2u9s *{color: white !important}</style><span class="_hdea2u9s"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">0</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">0</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">.87</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// rgba</span>
</code></pre>
<p>Note that a 6-digit hexadecimal is different from a 3-digit hexadecimal.</p>
<pre class="ttb"><code prsm class="ttm"><style>._xhvpao3{background:rgb(255,255,255);opacity:1}._xhvpao3 *{color: #202020 !important}</style><span class="_xhvpao3"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xffffff</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">.</span><span class="tt18 tta3">css</span><span class="tt18 ttae">(</span><span class="tt18 ttae">)</span> <span class="tt18 ttb0">!==</span> <style>._ej2is7lb{background:rgb(0,15,255);opacity:1}._ej2is7lb *{color: white !important}</style><span class="_ej2is7lb"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xfff</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">.</span><span class="tt18 tta3">css</span><span class="tt18 ttae">(</span><span class="tt18 ttae">)</span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// true</span>
<pre class="ttb"><code prsm class="ttm"><style>._e24ea3ri{background:rgb(255,255,255);opacity:1}._e24ea3ri *{color: #202020 !important}</style><span class="_e24ea3ri"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xffffff</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">.</span><span class="tt18 tta3">css</span><span class="tt18 ttae">(</span><span class="tt18 ttae">)</span> <span class="tt18 ttb0">!==</span> <style>._3j2mdh2z{background:rgb(0,15,255);opacity:1}._3j2mdh2z *{color: white !important}</style><span class="_3j2mdh2z"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xfff</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">.</span><span class="tt18 tta3">css</span><span class="tt18 ttae">(</span><span class="tt18 ttae">)</span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// true</span>
</code></pre>
<h2 id="how-to-use-color">How to use <code class="ttm ttx">color</code></h2>
<p><code class="ttm ttx">color</code> and the previously mentioned methods returns an immutable <code class="ttm ttx">Color</code>.</p>
<pre class="ttb"><code prsm class="ttm"><span class="tt18 tt1j">import</span> <span class="tt18 ttae">&#123;</span> color <span class="tt18 ttae">&#125;</span> <span class="tt18 tt1j">from</span> <span class="tt18 tt3z">'@alyle/ui/color'</span><span class="tt18 ttae">;</span>

<span class="tt18 tt1j">const</span> Yellow <span class="tt18 ttb0">=</span> <style>._7wu3fnw4{background:rgb(255,255,0);opacity:1}._7wu3fnw4 *{color: #202020 !important}</style><span class="_7wu3fnw4"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">255</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">255</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">0</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">;</span>
<span class="tt18 tt1j">const</span> Yellow <span class="tt18 ttb0">=</span> <style>._f1upl2nx{background:rgb(255,255,0);opacity:1}._f1upl2nx *{color: #202020 !important}</style><span class="_f1upl2nx"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">255</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">255</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">0</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">;</span>
</code></pre>
<p>Using methods:</p>
<pre class="ttb"><code prsm class="ttm"><span class="tt18 tt1j">const</span> Yellow <span class="tt18 ttb0">=</span> <style>._2jz54pcu{background:rgb(255,255,0);opacity:1}._2jz54pcu *{color: #202020 !important}</style><span class="_2jz54pcu"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">255</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">255</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">0</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">;</span>
<pre class="ttb"><code prsm class="ttm"><span class="tt18 tt1j">const</span> Yellow <span class="tt18 ttb0">=</span> <style>._hssgw3zz{background:rgb(255,255,0);opacity:1}._hssgw3zz *{color: #202020 !important}</style><span class="_hssgw3zz"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">255</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">255</span><span class="tt18 ttae">,</span> <span class="tt18 ttap">0</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">;</span>
Yellow<span class="tt18 ttae">.</span><span class="tt18 tta3">darken</span><span class="tt18 ttae">(</span><span class="tt18 ttap">2</span><span class="tt18 ttae">)</span><span class="tt18 ttae">.</span><span class="tt18 tta3">alpha</span><span class="tt18 ttae">(</span><span class="tt18 ttap">.94</span><span class="tt18 ttae">)</span><span class="tt18 ttae">.</span><span class="tt18 tta3">css</span><span class="tt18 ttae">(</span><span class="tt18 ttae">)</span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// --> rgba(145,156,0,0.94)</span>
</code></pre>
<pre class="ttb"><code prsm class="ttm"><style>._ix0vkam9{background:rgb(255,255,255);opacity:1}._ix0vkam9 *{color: #202020 !important}</style><span class="_ix0vkam9"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xffffff</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">.</span><span class="tt18 tta3">luminance</span><span class="tt18 ttae">(</span><span class="tt18 ttae">)</span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// --> 1</span>
<style>._5fj1p35y{background:rgb(255,255,255);opacity:1}._5fj1p35y *{color: #202020 !important}</style><span class="_5fj1p35y"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xffffff</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">.</span><span class="tt18 tta3">luminance</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0.5</span><span class="tt18 ttae">)</span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// --> rgb(194,194,0)</span>
<pre class="ttb"><code prsm class="ttm"><style>._ergcxh18{background:rgb(255,255,255);opacity:1}._ergcxh18 *{color: #202020 !important}</style><span class="_ergcxh18"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xffffff</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">.</span><span class="tt18 tta3">luminance</span><span class="tt18 ttae">(</span><span class="tt18 ttae">)</span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// --> 1</span>
<style>._7kizrcu1{background:rgb(255,255,255);opacity:1}._7kizrcu1 *{color: #202020 !important}</style><span class="_7kizrcu1"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xffffff</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">.</span><span class="tt18 tta3">luminance</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0.5</span><span class="tt18 ttae">)</span><span class="tt18 ttae">;</span> <span class="tt18 tt3o">// --> rgb(194,194,0)</span>
</code></pre>
16 changes: 8 additions & 8 deletions src/api/docs/customization/theming.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ <h2 id="overwriting-the-variables-of-a-theme">Overwriting the variables of a the
<span class="tt18 tt1j">export</span> <span class="tt18 tt1j">class</span> <span class="tt18 ttc8">CustomMinimaLight</span> <span class="tt18 tt1j">implements</span> <span class="tt18 ttc8">PartialThemeVariables</span> <span class="tt18 ttae">&#123;</span>
name <span class="tt18 ttb0">=</span> <span class="tt18 tt3z">'minima-light'</span><span class="tt18 ttae">;</span>
primary <span class="tt18 ttb0">=</span> <span class="tt18 ttae">&#123;</span>
<span class="tt18 tt1j">default</span><span class="tt18 ttb0">:</span> <style>._7nkqua7o{background:rgb(33,150,243);opacity:1}._7nkqua7o *{color: white !important}</style><span class="_7nkqua7o"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0x2196f3</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">,</span>
contrast<span class="tt18 ttb0">:</span> <style>._j8ilvewo{background:rgb(255,255,255);opacity:1}._j8ilvewo *{color: #202020 !important}</style><span class="_j8ilvewo"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xffffff</span><span class="tt18 ttae">)</span></span>
<span class="tt18 tt1j">default</span><span class="tt18 ttb0">:</span> <style>._1196crj3{background:rgb(33,150,243);opacity:1}._1196crj3 *{color: white !important}</style><span class="_1196crj3"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0x2196f3</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">,</span>
contrast<span class="tt18 ttb0">:</span> <style>._eoi5wuzc{background:rgb(255,255,255);opacity:1}._eoi5wuzc *{color: #202020 !important}</style><span class="_eoi5wuzc"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xffffff</span><span class="tt18 ttae">)</span></span>
<span class="tt18 ttae">&#125;</span><span class="tt18 ttae">;</span>
accent <span class="tt18 ttb0">=</span> <span class="tt18 ttae">&#123;</span>
<span class="tt18 tt1j">default</span><span class="tt18 ttb0">:</span> <style>._a1ve66y8{background:rgb(233,30,99);opacity:1}._a1ve66y8 *{color: white !important}</style><span class="_a1ve66y8"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xe91e63</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">,</span>
contrast<span class="tt18 ttb0">:</span> <style>._45s2xo89{background:rgb(255,255,255);opacity:1}._45s2xo89 *{color: #202020 !important}</style><span class="_45s2xo89"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xffffff</span><span class="tt18 ttae">)</span></span>
<span class="tt18 tt1j">default</span><span class="tt18 ttb0">:</span> <style>._4gu827ry{background:rgb(233,30,99);opacity:1}._4gu827ry *{color: white !important}</style><span class="_4gu827ry"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xe91e63</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">,</span>
contrast<span class="tt18 ttb0">:</span> <style>._3hc8sy58{background:rgb(255,255,255);opacity:1}._3hc8sy58 *{color: #202020 !important}</style><span class="_3hc8sy58"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xffffff</span><span class="tt18 ttae">)</span></span>
<span class="tt18 ttae">&#125;</span><span class="tt18 ttae">;</span>
<span class="tt18 ttae">&#125;</span>

Expand All @@ -41,12 +41,12 @@ <h2 id="overwriting-the-variables-of-a-theme">Overwriting the variables of a the
<span class="tt18 tt1j">export</span> <span class="tt18 tt1j">class</span> <span class="tt18 ttc8">CustomMinimaDark</span> <span class="tt18 tt1j">implements</span> <span class="tt18 ttc8">PartialThemeVariables</span> <span class="tt18 ttae">&#123;</span>
name <span class="tt18 ttb0">=</span> <span class="tt18 tt3z">'minima-dark'</span><span class="tt18 ttae">;</span>
primary <span class="tt18 ttb0">=</span> <span class="tt18 ttae">&#123;</span>
<span class="tt18 tt1j">default</span><span class="tt18 ttb0">:</span> <style>._dkms0cjj{background:rgb(156,39,176);opacity:1}._dkms0cjj *{color: white !important}</style><span class="_dkms0cjj"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0x9c27b0</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">,</span>
contrast<span class="tt18 ttb0">:</span> <style>._ikm68pxu{background:rgb(255,255,255);opacity:1}._ikm68pxu *{color: #202020 !important}</style><span class="_ikm68pxu"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xffffff</span><span class="tt18 ttae">)</span></span>
<span class="tt18 tt1j">default</span><span class="tt18 ttb0">:</span> <style>._d9lj07je{background:rgb(156,39,176);opacity:1}._d9lj07je *{color: white !important}</style><span class="_d9lj07je"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0x9c27b0</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">,</span>
contrast<span class="tt18 ttb0">:</span> <style>._get6yl6{background:rgb(255,255,255);opacity:1}._get6yl6 *{color: #202020 !important}</style><span class="_get6yl6"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0xffffff</span><span class="tt18 ttae">)</span></span>
<span class="tt18 ttae">&#125;</span><span class="tt18 ttae">;</span>
accent <span class="tt18 ttb0">=</span> <span class="tt18 ttae">&#123;</span>
<span class="tt18 tt1j">default</span><span class="tt18 ttb0">:</span> <style>._gnx25hy1{background:rgb(105,240,174);opacity:1}._gnx25hy1 *{color: #202020 !important}</style><span class="_gnx25hy1"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0x69f0ae</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">,</span>
contrast<span class="tt18 ttb0">:</span> <style>._5kohppcj{background:rgb(32,32,32);opacity:1}._5kohppcj *{color: white !important}</style><span class="_5kohppcj"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0x202020</span><span class="tt18 ttae">)</span></span>
<span class="tt18 tt1j">default</span><span class="tt18 ttb0">:</span> <style>._a4xmruf6{background:rgb(105,240,174);opacity:1}._a4xmruf6 *{color: #202020 !important}</style><span class="_a4xmruf6"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0x69f0ae</span><span class="tt18 ttae">)</span></span><span class="tt18 ttae">,</span>
contrast<span class="tt18 ttb0">:</span> <style>._ba5kq2ql{background:rgb(32,32,32);opacity:1}._ba5kq2ql *{color: white !important}</style><span class="_ba5kq2ql"><span class="tt18 tta3">color</span><span class="tt18 ttae">(</span><span class="tt18 ttap">0x202020</span><span class="tt18 ttae">)</span></span>
<span class="tt18 ttae">&#125;</span><span class="tt18 ttae">;</span>
<span class="tt18 ttae">&#125;</span>

Expand Down
Loading