@starasia/table 1.0.3 → 1.0.5

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.
package/dist/table.es.js CHANGED
@@ -34,16 +34,16 @@ const o = `* {
34
34
  /* gray */
35
35
  --starasia-ui-input-color-tertiary-gray: var(
36
36
  --starasia-ui-color-gray-300,
37
- #d1d5db
37
+ rgba(209, 213, 219, 1)
38
38
  );
39
39
  --starasia-ui-input-color-quinary-gray: var(
40
40
  --starasia-ui-color-gray-50,
41
- #f9fafb
41
+ rgba(249, 250, 251, 1)
42
42
  );
43
43
 
44
44
  /* brand */
45
- --starasia-ui-input-color-primary-blue: var(--starasia-ui-brand-primary-default);
46
- --starasia-ui-input-color-quinary-blue: var(--starasia-ui-brand-primary-tertiary);
45
+ --starasia-ui-input-color-primary-blue: var(--starasia-ui-brand-primary-default, rgba(74, 106, 148, 1));
46
+ --starasia-ui-input-color-quinary-blue: var(--starasia-ui-brand-primary-tertiary, rgba(227, 237, 248, 1));
47
47
  }
48
48
 
49
49
  .starasia-table {
@@ -106,10 +106,10 @@ const u = (t) => {
106
106
  }, b = (t) => {
107
107
  const { children: a, ...s } = t;
108
108
  return /* @__PURE__ */ n("tbody", { ...s, children: a });
109
- }, p = (t) => {
109
+ }, g = (t) => {
110
110
  const { children: a, ...s } = t;
111
111
  return /* @__PURE__ */ n("tfoot", { ...s, children: a });
112
- }, g = (t) => {
112
+ }, p = (t) => {
113
113
  const { children: a, ...s } = t;
114
114
  return /* @__PURE__ */ n("tr", { ...s, children: a });
115
115
  }, h = (t) => {
@@ -123,8 +123,8 @@ export {
123
123
  u as Table,
124
124
  b as Tbody,
125
125
  m as Td,
126
- p as Tfoot,
126
+ g as Tfoot,
127
127
  h as Th,
128
128
  c as Thead,
129
- g as Tr
129
+ p as Tr
130
130
  };
package/dist/table.umd.js CHANGED
@@ -33,16 +33,16 @@
33
33
  /* gray */
34
34
  --starasia-ui-input-color-tertiary-gray: var(
35
35
  --starasia-ui-color-gray-300,
36
- #d1d5db
36
+ rgba(209, 213, 219, 1)
37
37
  );
38
38
  --starasia-ui-input-color-quinary-gray: var(
39
39
  --starasia-ui-color-gray-50,
40
- #f9fafb
40
+ rgba(249, 250, 251, 1)
41
41
  );
42
42
 
43
43
  /* brand */
44
- --starasia-ui-input-color-primary-blue: var(--starasia-ui-brand-primary-default);
45
- --starasia-ui-input-color-quinary-blue: var(--starasia-ui-brand-primary-tertiary);
44
+ --starasia-ui-input-color-primary-blue: var(--starasia-ui-brand-primary-default, rgba(74, 106, 148, 1));
45
+ --starasia-ui-input-color-quinary-blue: var(--starasia-ui-brand-primary-tertiary, rgba(227, 237, 248, 1));
46
46
  }
47
47
 
48
48
  .starasia-table {
@@ -82,4 +82,4 @@
82
82
  .starasia-table-full-width {
83
83
  width: 100%;
84
84
  }
85
- `,r="starasia-table-styles";(t=>{if(!document.getElementById(r)){const a=document.createElement("style");a.id=r,a.textContent=t,document.head.appendChild(a)}})(o);const l=t=>{const{children:a,fullWidth:s=!1,variant:f="unstyled",...e}=t;return i.jsx("table",{...e,className:`starasia-table starasia-table-${f} ${s?"starasia-table-full-width ":""} ${e.className}`,children:a})},d=t=>{const{children:a,...s}=t;return i.jsx("thead",{...s,children:a})},u=t=>{const{children:a,...s}=t;return i.jsx("tbody",{...s,children:a})},c=t=>{const{children:a,...s}=t;return i.jsx("tfoot",{...s,children:a})},b=t=>{const{children:a,...s}=t;return i.jsx("tr",{...s,children:a})},p=t=>{const{children:a,...s}=t;return i.jsx("th",{...s,className:`starasia-table-th ${s.className}`,children:a})},g=t=>{const{children:a,...s}=t;return i.jsx("td",{...s,className:`starasia-table-td ${s.className}`,children:a})};n.Table=l,n.Tbody=u,n.Td=g,n.Tfoot=c,n.Th=p,n.Thead=d,n.Tr=b,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
85
+ `,r="starasia-table-styles";(t=>{if(!document.getElementById(r)){const a=document.createElement("style");a.id=r,a.textContent=t,document.head.appendChild(a)}})(o);const l=t=>{const{children:a,fullWidth:s=!1,variant:h="unstyled",...e}=t;return i.jsx("table",{...e,className:`starasia-table starasia-table-${h} ${s?"starasia-table-full-width ":""} ${e.className}`,children:a})},d=t=>{const{children:a,...s}=t;return i.jsx("thead",{...s,children:a})},u=t=>{const{children:a,...s}=t;return i.jsx("tbody",{...s,children:a})},c=t=>{const{children:a,...s}=t;return i.jsx("tfoot",{...s,children:a})},b=t=>{const{children:a,...s}=t;return i.jsx("tr",{...s,children:a})},g=t=>{const{children:a,...s}=t;return i.jsx("th",{...s,className:`starasia-table-th ${s.className}`,children:a})},p=t=>{const{children:a,...s}=t;return i.jsx("td",{...s,className:`starasia-table-td ${s.className}`,children:a})};n.Table=l,n.Tbody=u,n.Td=p,n.Tfoot=c,n.Th=g,n.Thead=d,n.Tr=b,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starasia/table",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "table component for starasia UI",
5
5
  "author": "Prawito Hudoro",
6
6
  "main": "dist/table.umd.js",