@ruebenfox/liquefaction 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
Static Assets
|
|
3
|
+
{% endcomment %}
|
|
4
|
+
<link rel="stylesheet" href="{{ 'lib-button.css' | asset_url }}"/>
|
|
5
|
+
<script src="{{ 'lib-button.js' | asset_url }}" defer></script>
|
|
6
|
+
|
|
7
|
+
{% comment %}
|
|
8
|
+
Component Props
|
|
9
|
+
{% endcomment %}
|
|
10
|
+
{% liquid
|
|
11
|
+
assign class_name = 'iv-button'
|
|
12
|
+
capture slot
|
|
13
|
+
<span>{{ label }}</span>
|
|
14
|
+
endcapture
|
|
15
|
+
%}
|
|
16
|
+
|
|
17
|
+
{%- comment -%}
|
|
18
|
+
Component Markup
|
|
19
|
+
This is provided by the library and should not be modified.
|
|
20
|
+
{%- endcomment -%}
|
|
21
|
+
<button id="test" class="{{ class_name }}">
|
|
22
|
+
{{ slot }}
|
|
23
|
+
</button>
|
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ruebenfox/liquefaction",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "A Shopify native component library, to power reusable theme development and an accompanying Visual Studio Code Extension to interact with the library. ",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"components",
|
|
8
|
+
"registry.json"
|
|
9
|
+
],
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
15
|
+
},
|
|
16
|
+
"author": "Ruben Kai Fox",
|
|
17
|
+
"license": "ISC"
|
|
18
|
+
}
|
package/registry.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"button": {
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A customizable button component for web applications.",
|
|
5
|
+
"files": [
|
|
6
|
+
{
|
|
7
|
+
"src": "components/button/button.js",
|
|
8
|
+
"destDir": "assets"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"src": "components/button/button.css",
|
|
12
|
+
"destDir": "assets"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"src": "components/button/button.liquid",
|
|
16
|
+
"destDir": "snippets"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"dependencies": []
|
|
20
|
+
}
|
|
21
|
+
}
|