@davincihealthcare/elty-design-system-vue 1.13.7 → 1.13.8
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/README.md +9 -7
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,8 +8,13 @@ To get started with using these components in your Vue project, follow these sim
|
|
|
8
8
|
|
|
9
9
|
### Installation
|
|
10
10
|
|
|
11
|
+
First install Tailwindcss following the steps at https://tailwindcss.com/docs/installation/framework-guides
|
|
12
|
+
|
|
13
|
+
Then install required plugins and the design system package itself
|
|
14
|
+
|
|
11
15
|
```bash
|
|
12
|
-
# using yarn
|
|
16
|
+
# using yarn (or any other package manager)
|
|
17
|
+
yarn add -D @tailwindcss/forms @tailwindcss/typography
|
|
13
18
|
yarn add @davincihealthcare/elty-design-system-vue
|
|
14
19
|
```
|
|
15
20
|
|
|
@@ -23,8 +28,8 @@ module.exports = {
|
|
|
23
28
|
...
|
|
24
29
|
content: [..., './node_modules/@davincihealthcare/elty-design-system-vue/**/*.{tsx,js}'],
|
|
25
30
|
plugins: [
|
|
26
|
-
require('@tailwindcss/forms'),
|
|
27
|
-
require('@tailwindcss/typography'),
|
|
31
|
+
require('@tailwindcss/forms'),
|
|
32
|
+
require('@tailwindcss/typography'),
|
|
28
33
|
require('@davincihealthcare/elty-design-system-vue').EltyTailwindPlugin
|
|
29
34
|
]
|
|
30
35
|
...
|
|
@@ -35,10 +40,7 @@ Note: content needs a new entry in the array, alongside other you may already ha
|
|
|
35
40
|
|
|
36
41
|
Make sure to:
|
|
37
42
|
|
|
38
|
-
- NOT to import the elty foundations which are already imported alongside this plugin.
|
|
39
|
-
- import other required official tailwind plugins
|
|
40
|
-
- `@tailwindcss/forms`
|
|
41
|
-
- `@tailwindcss/typography`
|
|
43
|
+
- do NOT to import the elty foundations which are already imported alongside this plugin.
|
|
42
44
|
|
|
43
45
|
in main.ts file
|
|
44
46
|
|
package/dist/index.js
CHANGED
|
@@ -17598,8 +17598,7 @@ const aG = { class: "relative" }, oG = { class: "border-neutral-surface text-neu
|
|
|
17598
17598
|
default: m0(() => [
|
|
17599
17599
|
I("div", {
|
|
17600
17600
|
id: b(S),
|
|
17601
|
-
class: "relative flex items-center"
|
|
17602
|
-
onClick: G
|
|
17601
|
+
class: "relative flex items-center"
|
|
17603
17602
|
}, [
|
|
17604
17603
|
I("div", {
|
|
17605
17604
|
class: j(["mr-1 flex items-center justify-center", {
|
|
@@ -17612,18 +17611,19 @@ const aG = { class: "relative" }, oG = { class: "border-neutral-surface text-neu
|
|
|
17612
17611
|
checked: typeof t.modelValue == "boolean" && t.modelValue,
|
|
17613
17612
|
indeterminate: t.modelValue === "indeterminate",
|
|
17614
17613
|
type: "checkbox",
|
|
17615
|
-
class: j(["
|
|
17614
|
+
class: j(["rounded border-2 focus:ring-0", {
|
|
17616
17615
|
"h-[15px] w-[15px]": t.size === "xxs",
|
|
17617
17616
|
"h-[18px] w-[18px]": t.size !== "xxs",
|
|
17618
17617
|
"border-neutral-surface": !b(l) && f.disabled,
|
|
17619
17618
|
"text-neutral-lighter": !b(l) && !f.disabled,
|
|
17620
17619
|
"text-neutral-inactive": b(l) && f.disabled,
|
|
17621
17620
|
"cursor-not-allowed": f.disabled,
|
|
17622
|
-
"text-neutral-darker": !f.disabled,
|
|
17621
|
+
"text-neutral-darker cursor-pointer": !f.disabled,
|
|
17623
17622
|
inputClass: t.inputClass
|
|
17624
17623
|
}]),
|
|
17625
17624
|
disabled: f.disabled,
|
|
17626
|
-
"data-cy": f.label ? `${f.label.trim().replaceAll(" ", "")}-checkbox` : "checkbox"
|
|
17625
|
+
"data-cy": f.label ? `${f.label.trim().replaceAll(" ", "")}-checkbox` : "checkbox",
|
|
17626
|
+
onClick: G
|
|
17627
17627
|
}, null, 10, dG)
|
|
17628
17628
|
], 2),
|
|
17629
17629
|
f.label ? (E(), o("label", {
|