proto-daisy-ui 0.0.18 → 0.0.21

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.
@@ -4,11 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-68d57682.js');
6
6
 
7
- const protoDialCss = ".xploratory-dial{--size:12rem;--thickness:2rem}";
7
+ const protoDialCss = "";
8
8
 
9
9
  const updateDial = (num) => {
10
10
  return el => {
11
11
  const value = num >= 0 && num <= 100 ? num.toString() : '0';
12
+ el.style.setProperty('--size', '12rem');
13
+ el.style.setProperty('--thickness', '2rem');
12
14
  el.style.setProperty('--value', value);
13
15
  };
14
16
  };
@@ -17,7 +19,7 @@ const ProtoDial = class {
17
19
  index.registerInstance(this, hostRef);
18
20
  }
19
21
  render() {
20
- return (index.h("div", { class: "xploratory-dial radial-progress text-secondary", ref: updateDial(this.value) }, this.value, "%"));
22
+ return (index.h("div", { class: "radial-progress text-secondary", ref: updateDial(this.value) }, this.value, "%"));
21
23
  }
22
24
  };
23
25
  ProtoDial.style = protoDialCss;
@@ -1,4 +0,0 @@
1
- .xploratory-dial {
2
- --size: 12rem;
3
- --thickness: 2rem;
4
- }
@@ -2,12 +2,14 @@ import { Component, h, Prop } from '@stencil/core';
2
2
  const updateDial = (num) => {
3
3
  return el => {
4
4
  const value = num >= 0 && num <= 100 ? num.toString() : '0';
5
+ el.style.setProperty('--size', '12rem');
6
+ el.style.setProperty('--thickness', '2rem');
5
7
  el.style.setProperty('--value', value);
6
8
  };
7
9
  };
8
10
  export class ProtoDial {
9
11
  render() {
10
- return (h("div", { class: "xploratory-dial radial-progress text-secondary", ref: updateDial(this.value) },
12
+ return (h("div", { class: "radial-progress text-secondary", ref: updateDial(this.value) },
11
13
  this.value,
12
14
  "%"));
13
15
  }
@@ -1,10 +1,12 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
 
3
- const protoDialCss = ".xploratory-dial{--size:12rem;--thickness:2rem}";
3
+ const protoDialCss = "";
4
4
 
5
5
  const updateDial = (num) => {
6
6
  return el => {
7
7
  const value = num >= 0 && num <= 100 ? num.toString() : '0';
8
+ el.style.setProperty('--size', '12rem');
9
+ el.style.setProperty('--thickness', '2rem');
8
10
  el.style.setProperty('--value', value);
9
11
  };
10
12
  };
@@ -14,7 +16,7 @@ const ProtoDial = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
14
16
  this.__registerHost();
15
17
  }
16
18
  render() {
17
- return (h("div", { class: "xploratory-dial radial-progress text-secondary", ref: updateDial(this.value) }, this.value, "%"));
19
+ return (h("div", { class: "radial-progress text-secondary", ref: updateDial(this.value) }, this.value, "%"));
18
20
  }
19
21
  static get style() { return protoDialCss; }
20
22
  }, [0, "proto-dial", {
@@ -1,10 +1,12 @@
1
1
  import { r as registerInstance, h } from './index-bcfd46a8.js';
2
2
 
3
- const protoDialCss = ".xploratory-dial{--size:12rem;--thickness:2rem}";
3
+ const protoDialCss = "";
4
4
 
5
5
  const updateDial = (num) => {
6
6
  return el => {
7
7
  const value = num >= 0 && num <= 100 ? num.toString() : '0';
8
+ el.style.setProperty('--size', '12rem');
9
+ el.style.setProperty('--thickness', '2rem');
8
10
  el.style.setProperty('--value', value);
9
11
  };
10
12
  };
@@ -13,7 +15,7 @@ const ProtoDial = class {
13
15
  registerInstance(this, hostRef);
14
16
  }
15
17
  render() {
16
- return (h("div", { class: "xploratory-dial radial-progress text-secondary", ref: updateDial(this.value) }, this.value, "%"));
18
+ return (h("div", { class: "radial-progress text-secondary", ref: updateDial(this.value) }, this.value, "%"));
17
19
  }
18
20
  };
19
21
  ProtoDial.style = protoDialCss;
@@ -0,0 +1 @@
1
+ import{r,h as s}from"./p-a0e57a17.js";const e=class{constructor(s){r(this,s)}render(){return s("div",{class:"radial-progress text-secondary",ref:(r=this.value,s=>{const e=r>=0&&r<=100?r.toString():"0";s.style.setProperty("--size","12rem"),s.style.setProperty("--thickness","2rem"),s.style.setProperty("--value",e)})},this.value,"%");var r}};e.style="";export{e as proto_dial}
@@ -1 +1 @@
1
- import{p as o,b as p}from"./p-a0e57a17.js";(()=>{const p=import.meta.url,e={};return""!==p&&(e.resourcesUrl=new URL(".",p).href),o(e)})().then((o=>p([["p-7c0569dd",[[0,"proto-home"]]],["p-415e2f89",[[1,"proto-daisy-ui"]]],["p-ad92a9be",[[0,"proto-hero",{theme:[1]}]]],["p-09bfc0fe",[[0,"proto-list"]]],["p-6614cf2f",[[0,"proto-shell",{theme:[1]}]]],["p-c903bff1",[[0,"proto-stats"]]],["p-e1ea23e9",[[0,"proto-dial",{value:[2]}]]]],o)));
1
+ import{p as o,b as p}from"./p-a0e57a17.js";(()=>{const p=import.meta.url,t={};return""!==p&&(t.resourcesUrl=new URL(".",p).href),o(t)})().then((o=>p([["p-7c0569dd",[[0,"proto-home"]]],["p-415e2f89",[[1,"proto-daisy-ui"]]],["p-ad92a9be",[[0,"proto-hero",{theme:[1]}]]],["p-09bfc0fe",[[0,"proto-list"]]],["p-6614cf2f",[[0,"proto-shell",{theme:[1]}]]],["p-c903bff1",[[0,"proto-stats"]]],["p-ce6b914c",[[0,"proto-dial",{value:[2]}]]]],o)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-daisy-ui",
3
- "version": "0.0.18",
3
+ "version": "0.0.21",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -10,10 +10,6 @@
10
10
  "collection": "dist/collection/collection-manifest.json",
11
11
  "collection:main": "dist/collection/index.js",
12
12
  "unpkg": "dist/proto-daisy-ui/proto-daisy-ui.esm.js",
13
- "repository": {
14
- "type": "git",
15
- "url": "https://github.com/ionic-team/stencil-component-starter.git"
16
- },
17
13
  "files": [
18
14
  "dist/",
19
15
  "loader/"
@@ -1 +0,0 @@
1
- import{r,h as s}from"./p-a0e57a17.js";const a=class{constructor(s){r(this,s)}render(){return s("div",{class:"xploratory-dial radial-progress text-secondary",ref:(r=this.value,s=>{const a=r>=0&&r<=100?r.toString():"0";s.style.setProperty("--value",a)})},this.value,"%");var r}};a.style=".xploratory-dial{--size:12rem;--thickness:2rem}";export{a as proto_dial}