@choosemycompany/ui 0.0.5 → 0.0.6
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/cmc-ui.es.js +12 -12
- package/dist/cmc-ui.umd.js +1 -1
- package/dist/src/components/Atoms/{Button/Button.vue.d.ts → CmcButton/CmcButton.vue.d.ts} +1 -1
- package/dist/src/components/Atoms/{Heading/Heading.vue.d.ts → CmcHeading/CmcHeading.vue.d.ts} +1 -1
- package/package.json +27 -20
- /package/dist/src/components/Atoms/{Button/Button.constants.d.ts → CmcButton/CmcButton.constants.d.ts} +0 -0
- /package/dist/src/components/Atoms/{Heading/Heading.constants.d.ts → CmcHeading/CmcHeading.constants.d.ts} +0 -0
- /package/dist/src/components/Molecules/{Title/Title.vue.d.ts → CmcTitle/CmcTitle.vue.d.ts} +0 -0
package/dist/cmc-ui.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as c, computed as h, createElementBlock as l, openBlock as s, normalizeClass as u, renderSlot as n, Fragment as p, createCommentVNode as d, unref as o, createVNode as b, createElementVNode as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as c, computed as h, createElementBlock as l, openBlock as s, normalizeClass as u, renderSlot as n, Fragment as p, createCommentVNode as d, unref as o, createVNode as b, createElementVNode as C, withCtx as $ } from "vue";
|
|
2
|
+
const k = {
|
|
3
3
|
primary: "primary"
|
|
4
|
-
},
|
|
4
|
+
}, _ = {
|
|
5
5
|
default: "default"
|
|
6
|
-
},
|
|
6
|
+
}, y = {
|
|
7
7
|
medium: "medium"
|
|
8
8
|
}, g = ["disabled"], V = /* @__PURE__ */ c({
|
|
9
9
|
name: "CmcButton",
|
|
10
|
-
__name: "
|
|
10
|
+
__name: "CmcButton",
|
|
11
11
|
props: {
|
|
12
|
-
kind: { default:
|
|
13
|
-
variant: { default:
|
|
14
|
-
size: { default:
|
|
12
|
+
kind: { default: k.primary },
|
|
13
|
+
variant: { default: _.default },
|
|
14
|
+
size: { default: y.medium },
|
|
15
15
|
disabled: { type: Boolean, default: !1 },
|
|
16
16
|
loading: { type: Boolean, default: !1 }
|
|
17
17
|
},
|
|
@@ -44,7 +44,7 @@ const _ = {
|
|
|
44
44
|
h6: "h6"
|
|
45
45
|
}, B = /* @__PURE__ */ c({
|
|
46
46
|
name: "CmcHeading",
|
|
47
|
-
__name: "
|
|
47
|
+
__name: "CmcHeading",
|
|
48
48
|
props: {
|
|
49
49
|
level: {}
|
|
50
50
|
},
|
|
@@ -94,18 +94,18 @@ const _ = {
|
|
|
94
94
|
}
|
|
95
95
|
}), H = /* @__PURE__ */ c({
|
|
96
96
|
name: "CmcTitle",
|
|
97
|
-
__name: "
|
|
97
|
+
__name: "CmcTitle",
|
|
98
98
|
setup(i) {
|
|
99
99
|
return (t, e) => (s(), l(p, null, [
|
|
100
100
|
b(B, {
|
|
101
101
|
level: o(r).h1
|
|
102
102
|
}, {
|
|
103
|
-
default:
|
|
103
|
+
default: $(() => [
|
|
104
104
|
n(t.$slots, "default")
|
|
105
105
|
]),
|
|
106
106
|
_: 3
|
|
107
107
|
}, 8, ["level"]),
|
|
108
|
-
e[0] || (e[0] =
|
|
108
|
+
e[0] || (e[0] = C("hr", null, null, -1))
|
|
109
109
|
], 64));
|
|
110
110
|
}
|
|
111
111
|
});
|
package/dist/cmc-ui.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["cmc-ui"]={},n.Vue))})(this,function(n,e){"use strict";const d={primary:"primary"},i={default:"default"},m={medium:"medium"},f=["disabled"],p=e.defineComponent({name:"CmcButton",__name:"
|
|
1
|
+
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["cmc-ui"]={},n.Vue))})(this,function(n,e){"use strict";const d={primary:"primary"},i={default:"default"},m={medium:"medium"},f=["disabled"],p=e.defineComponent({name:"CmcButton",__name:"CmcButton",props:{kind:{default:d.primary},variant:{default:i.default},size:{default:m.medium},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["click"],setup(s,{emit:l}){const t=s,o=l,c=e.computed(()=>({button:!0,[`button--${t.variant}`]:!0,[`button--${t.kind}`]:!0,[`button--${t.size}`]:!0,"button--disabled":t.disabled})),u=()=>{t.disabled||o("click",1)};return(k,C)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(c.value),onClick:u,disabled:t.disabled},[e.renderSlot(k.$slots,"default")],10,f))}}),a={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"},r=e.defineComponent({name:"CmcHeading",__name:"CmcHeading",props:{level:{}},setup(s){const l=s,t=e.computed(()=>({heading:!0,[`heading-${l.level}`]:!0}));return(o,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(a).h1===l.level?(e.openBlock(),e.createElementBlock("h1",{key:0,class:e.normalizeClass(t.value)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0),e.unref(a).h2===l.level?(e.openBlock(),e.createElementBlock("h2",{key:1,class:e.normalizeClass(t.value)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0),e.unref(a).h3===l.level?(e.openBlock(),e.createElementBlock("h3",{key:2,class:e.normalizeClass(t.value)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0),e.unref(a).h4===l.level?(e.openBlock(),e.createElementBlock("h4",{key:3,class:e.normalizeClass(t.value)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0),e.unref(a).h5===l.level?(e.openBlock(),e.createElementBlock("h5",{key:4,class:e.normalizeClass(t.value)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0),e.unref(a).h6===l.level?(e.openBlock(),e.createElementBlock("h6",{key:5,class:e.normalizeClass(t.value)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0)],64))}}),h=e.defineComponent({name:"CmcTitle",__name:"CmcTitle",setup(s){return(l,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,{level:e.unref(a).h1},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["level"]),t[0]||(t[0]=e.createElementVNode("hr",null,null,-1))],64))}});n.CmcButton=p,n.CmcHeading=r,n.CmcTitle=h,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@choosemycompany/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -19,34 +19,39 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"glob": "^11.0.3",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
|
-
"style-dictionary": "^5.0.
|
|
22
|
+
"style-dictionary": "^5.0.1",
|
|
23
23
|
"vue": "^3.5.17"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@chromatic-com/storybook": "^4.0.1",
|
|
27
|
-
"@eslint/css": "^0.
|
|
27
|
+
"@eslint/css": "^0.10.0",
|
|
28
28
|
"@eslint/eslintrc": "^3.3.1",
|
|
29
|
-
"@eslint/js": "^9.
|
|
30
|
-
"@eslint/json": "^0.
|
|
31
|
-
"@eslint/markdown": "^
|
|
32
|
-
"@storybook/addon-a11y": "^9.0.
|
|
33
|
-
"@storybook/addon-docs": "9.0.
|
|
34
|
-
"@storybook/addon-onboarding": "9.0.
|
|
35
|
-
"@storybook/addon-vitest": "^9.0.
|
|
36
|
-
"@storybook/vue3-vite": "^9.0.
|
|
37
|
-
"@vitejs/plugin-vue": "^
|
|
29
|
+
"@eslint/js": "^9.31.0",
|
|
30
|
+
"@eslint/json": "^0.13.0",
|
|
31
|
+
"@eslint/markdown": "^7.0.0",
|
|
32
|
+
"@storybook/addon-a11y": "^9.0.17",
|
|
33
|
+
"@storybook/addon-docs": "9.0.17",
|
|
34
|
+
"@storybook/addon-onboarding": "9.0.17",
|
|
35
|
+
"@storybook/addon-vitest": "^9.0.17",
|
|
36
|
+
"@storybook/vue3-vite": "^9.0.17",
|
|
37
|
+
"@vitejs/plugin-vue": "^6.0.0",
|
|
38
|
+
"@vitest/browser": "^3.2.4",
|
|
39
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
40
|
+
"@vue/test-utils": "^2.4.6",
|
|
38
41
|
"@vue/tsconfig": "^0.7.0",
|
|
39
|
-
"eslint": "^9.
|
|
40
|
-
"eslint-plugin-vue": "^10.
|
|
41
|
-
"globals": "^16.
|
|
42
|
+
"eslint": "^9.31.0",
|
|
43
|
+
"eslint-plugin-vue": "^10.3.0",
|
|
44
|
+
"globals": "^16.3.0",
|
|
42
45
|
"npm-run-all": "^4.1.5",
|
|
46
|
+
"playwright": "^1.54.1",
|
|
43
47
|
"prettier": "^3.6.2",
|
|
44
|
-
"storybook": "9.0.
|
|
48
|
+
"storybook": "9.0.17",
|
|
45
49
|
"typescript": "~5.8.3",
|
|
46
|
-
"typescript-eslint": "^8.
|
|
47
|
-
"vite": "^
|
|
50
|
+
"typescript-eslint": "^8.37.0",
|
|
51
|
+
"vite": "^7.0.4",
|
|
48
52
|
"vite-plugin-dts": "^4.5.4",
|
|
49
|
-
"
|
|
53
|
+
"vitest": "^3.2.4",
|
|
54
|
+
"vue-tsc": "^3.0.1"
|
|
50
55
|
},
|
|
51
56
|
"scripts": {
|
|
52
57
|
"lib:build": "vue-tsc -b ./tsconfig.lib.json && vite build",
|
|
@@ -58,6 +63,8 @@
|
|
|
58
63
|
"lint:eslint": "eslint --max-warnings 0 'src/components/**/*.{js,ts,vue}'",
|
|
59
64
|
"lint:eslint:fix": "yarn eslint --fix",
|
|
60
65
|
"lint:prettier": "prettier --check '**/*.{js,mjs,ts,vue}'",
|
|
61
|
-
"lint:prettier:fix": "prettier --write '**/*.{js,mjs,ts,vue}'"
|
|
66
|
+
"lint:prettier:fix": "prettier --write '**/*.{js,mjs,ts,vue}'",
|
|
67
|
+
"test:storybook": "vitest run --reporter=verbose",
|
|
68
|
+
"test:spec": "vitest run --reporter=verbose src/**/*.spec.ts"
|
|
62
69
|
}
|
|
63
70
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|