@dcodegroup-au/dsg-vue 0.1.40 → 1.0.1-next.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.
- package/README.md +67 -8
- package/dist/DsgLabel.vue_vue_type_style_index_0_lang-CzkVjbOp.js +26 -0
- package/dist/DsgLabel.vue_vue_type_style_index_0_lang-WrIgmJyQ.cjs +1 -0
- package/dist/{DsgTablePerPage.vue_vue_type_style_index_0_lang-CmNG2Wig.cjs → DsgTablePerPage.vue_vue_type_style_index_0_lang-eTosSqko.cjs} +1217 -1197
- package/dist/{DsgTablePerPage.vue_vue_type_style_index_0_lang-BoJ6hpYL.js → DsgTablePerPage.vue_vue_type_style_index_0_lang-gN_n5gOu.js} +5742 -5750
- package/dist/components/Elements/DsgAccordion.vue.d.ts +0 -1
- package/dist/components/Elements/DsgAvatar.vue.d.ts +0 -1
- package/dist/components/Elements/DsgBadge.vue.d.ts +0 -1
- package/dist/components/Elements/DsgButton.vue.d.ts +0 -1
- package/dist/components/Elements/DsgCard.vue.d.ts +1 -2
- package/dist/components/Elements/DsgCardContainer.vue.d.ts +1 -1
- package/dist/components/Elements/DsgCheckbox.vue.d.ts +0 -1
- package/dist/components/Elements/DsgCheckboxGroup.vue.d.ts +2 -2
- package/dist/components/Elements/DsgDropdown.vue.d.ts +0 -5
- package/dist/components/Elements/DsgInput.vue.d.ts +0 -1
- package/dist/components/Elements/DsgLabel.vue.d.ts +1 -2
- package/dist/components/Elements/DsgProgress.vue.d.ts +1 -1
- package/dist/components/Elements/DsgTag.vue.d.ts +0 -1
- package/dist/components/Elements/DsgToggle.vue.d.ts +1 -2
- package/dist/components/Elements/ElementComponents.d.ts +1 -3
- package/dist/components/Icons/DsgCreditCardIcon.vue.d.ts +0 -1
- package/dist/components/Icons/DsgIcon.vue.d.ts +0 -2
- package/dist/components/Icons/DsgMiscIcon.vue.d.ts +0 -1
- package/dist/dsg-vue.cjs +32 -11
- package/dist/dsg-vue.css +2 -2
- package/dist/dsg-vue.editor.cjs +33 -33
- package/dist/dsg-vue.editor.esm.js +6 -7
- package/dist/dsg-vue.esm.js +2969 -3061
- package/dist/dsg-vue.table.cjs +2 -2
- package/dist/dsg-vue.table.esm.js +65 -62
- package/dist/main.d.ts +4 -82
- package/package.json +6 -3
- package/vite.config.ts +10 -7
- package/dist/DsgColoursConfig-BseFo6-R.js +0 -450
- package/dist/DsgColoursConfig-D7UiFGB5.cjs +0 -1
- package/dist/DsgLabel.vue_vue_type_style_index_0_lang-BYL1w85l.js +0 -28
- package/dist/DsgLabel.vue_vue_type_style_index_0_lang-DAM6oT0f.cjs +0 -1
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
- package/dist/components/Elements/DsgInputDropdown.vue.d.ts +0 -30
- package/dist/components/Elements/DsgLink.vue.d.ts +0 -36
- package/dist/dsg-vue.tailwind.cjs +0 -1
- package/dist/dsg-vue.tailwind.esm.js +0 -610
- package/dist/tailwind/plugins/DsgBackdropBlurPlugin.d.ts +0 -15
- package/dist/tailwind/plugins/DsgColoursPlugin.d.ts +0 -15
- package/dist/tailwind/plugins/DsgContainerPlugin.d.ts +0 -15
- package/dist/tailwind/plugins/DsgFocusRingPlugin.d.ts +0 -28
- package/dist/tailwind/plugins/DsgFontFamilyPlugin.d.ts +0 -15
- package/dist/tailwind/plugins/DsgGradientPlugin.d.ts +0 -15
- package/dist/tailwind/plugins/DsgHeightPlugin.d.ts +0 -15
- package/dist/tailwind/plugins/DsgRadiusPlugin.d.ts +0 -15
- package/dist/tailwind/plugins/DsgScreenPlugin.d.ts +0 -15
- package/dist/tailwind/plugins/DsgShadowsPlugin.d.ts +0 -15
- package/dist/tailwind/plugins/DsgSpacingPlugin.d.ts +0 -15
- package/dist/tailwind/plugins/DsgTypographyPlugin.d.ts +0 -80
- package/dist/tailwind/plugins/DsgWidthPlugin.d.ts +0 -15
- package/dist/tailwind/plugins/PluginCore.d.ts +0 -17
- package/dist/tailwind.d.ts +0 -866
package/README.md
CHANGED
|
@@ -32,19 +32,36 @@
|
|
|
32
32
|
|
|
33
33
|
<br/>
|
|
34
34
|
|
|
35
|
-
### NPM Package
|
|
35
|
+
### NPM Package (Stable — Tailwind CSS v3)
|
|
36
36
|
|
|
37
|
-
For standard Vue 3 project installations
|
|
37
|
+
For standard Vue 3 project installations using **Tailwind CSS v3**, install the stable `latest` version:
|
|
38
38
|
|
|
39
39
|
```sh
|
|
40
40
|
pnpm i -D @dcodegroup-au/dsg-vue
|
|
41
41
|
```
|
|
42
|
+
|
|
43
|
+
<br/>
|
|
44
|
+
|
|
45
|
+
### NPM Package (Next — Tailwind CSS v4)
|
|
46
|
+
|
|
47
|
+
To install the upcoming **Tailwind CSS v4** pre-release version, use the `next` tag:
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
pnpm i -D @dcodegroup-au/dsg-vue@next
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
> **Note:** The `next` version (`1.x.x`) targets Tailwind CSS v4 and includes breaking changes. See `TAILWIND_V4_MIGRATION.md` for details.
|
|
54
|
+
|
|
42
55
|
<br/>
|
|
43
56
|
|
|
44
57
|
### GitHub Repository
|
|
45
58
|
|
|
46
59
|
```sh
|
|
60
|
+
# Stable (Tailwind CSS v3)
|
|
47
61
|
pnpm i -D https://github.com/DCODE-GROUP/dsg-vue#main
|
|
62
|
+
|
|
63
|
+
# Next (Tailwind CSS v4)
|
|
64
|
+
pnpm i -D https://github.com/DCODE-GROUP/dsg-vue#next
|
|
48
65
|
```
|
|
49
66
|
<br/>
|
|
50
67
|
|
|
@@ -137,7 +154,7 @@ export default defineConfig(({ command, mode }) => {
|
|
|
137
154
|
|
|
138
155
|
## Usage: Tailwind Configuration
|
|
139
156
|
|
|
140
|
-
To configure the Tailwind CSS portion of the package, you will need to create a `
|
|
157
|
+
To configure the Tailwind CSS portion of the package, you will need to create a `_tailwind.config.ts` file in the root of your project. Then you will need to extend the `dsg-vue` Tailwind configurations/plugins to match your project Figma/design guidelines.
|
|
141
158
|
|
|
142
159
|
<br />
|
|
143
160
|
|
|
@@ -187,7 +204,7 @@ To use the Vue components within the package, you will need to import them direc
|
|
|
187
204
|
type="email"
|
|
188
205
|
placeholder="jane.doe@example.org"
|
|
189
206
|
name="email"
|
|
190
|
-
|
|
207
|
+
class="form-input username"
|
|
191
208
|
icon="mail-01"
|
|
192
209
|
tool-tip="This is your username or email address."
|
|
193
210
|
:has-tooltip="true"
|
|
@@ -201,7 +218,6 @@ To use the Vue components within the package, you will need to import them direc
|
|
|
201
218
|
:preventDefault="true"
|
|
202
219
|
theme="brand"
|
|
203
220
|
aria-label="This is an aria-label"
|
|
204
|
-
classes=""
|
|
205
221
|
@button-clicked="loginClicked"
|
|
206
222
|
/>
|
|
207
223
|
</div>
|
|
@@ -261,7 +277,7 @@ Within the `dsgTailwind` export, you will find a list of Tailwind CSS plugins th
|
|
|
261
277
|
- `DsgShadowsPlugin`
|
|
262
278
|
- `DsgFocusRingsPlugin`
|
|
263
279
|
|
|
264
|
-
To exclude or only use specific plugins, you can import them directly from the `dsg-vue` package and add them to the `plugins` array in the `
|
|
280
|
+
To exclude or only use specific plugins, you can import them directly from the `dsg-vue` package and add them to the `plugins` array in the `_tailwind.config.ts` file instead of using the `dsgTailwind` export as shown above.
|
|
265
281
|
|
|
266
282
|
<br />
|
|
267
283
|
|
|
@@ -276,7 +292,7 @@ Within the package, there are also two extensible components that house the them
|
|
|
276
292
|
- `DsgColours`
|
|
277
293
|
- `DsgFontFamily`
|
|
278
294
|
|
|
279
|
-
To extend these components, you can import them directly from the `dsg-vue` package and add them to the `theme` object in the `
|
|
295
|
+
To extend these components, you can import them directly from the `dsg-vue` package and add them to the `theme` object in the `_tailwind.config.ts` file as shown above.
|
|
280
296
|
|
|
281
297
|
|
|
282
298
|
<br />
|
|
@@ -289,4 +305,47 @@ The `dsg-vue` package is built to match the UntitledUI Figma design system. Each
|
|
|
289
305
|
|
|
290
306
|
For more information on the base Design System Template check out Figma folder for the designated project or at the following link:
|
|
291
307
|
|
|
292
|
-
- <a href="https://www.figma.com/design/T06aUcOseXpSG6HzgjrlLP/%E2%9D%96-PREVIEW-%E2%9D%96-Untitled-UI-%E2%80%93-PRO-VARIABLES-(v6.0)">UntitledUI - Pro Version Demo</a>
|
|
308
|
+
- <a href="https://www.figma.com/design/T06aUcOseXpSG6HzgjrlLP/%E2%9D%96-PREVIEW-%E2%9D%96-Untitled-UI-%E2%80%93-PRO-VARIABLES-(v6.0)">UntitledUI - Pro Version Demo</a>
|
|
309
|
+
|
|
310
|
+
<br />
|
|
311
|
+
<hr />
|
|
312
|
+
<br />
|
|
313
|
+
|
|
314
|
+
## Versioning & NPM Tags
|
|
315
|
+
|
|
316
|
+
The library uses two npm distribution tags corresponding to two active branches:
|
|
317
|
+
|
|
318
|
+
| NPM Tag | Branch | Version Range | Tailwind CSS | Status |
|
|
319
|
+
|---------|--------|--------------|-------------|--------|
|
|
320
|
+
| `latest` | `main` | `0.x.x` | v3 | Stable / Current |
|
|
321
|
+
| `next` | `next` | `1.x.x` | v4 | Pre-release |
|
|
322
|
+
|
|
323
|
+
### Branching Strategy
|
|
324
|
+
|
|
325
|
+
- **`main`** — Stable releases (`0.x.x`). Published to npm as `latest` tag. Uses Tailwind CSS v3.
|
|
326
|
+
- **`next`** — Pre-release builds (`1.x.x`). Published to npm as `next` tag. Targets Tailwind CSS v4.
|
|
327
|
+
- **`develop`** — Active development branch. PRs merge into `develop`, then into `main` or `next`.
|
|
328
|
+
|
|
329
|
+
### Install Commands
|
|
330
|
+
|
|
331
|
+
```sh
|
|
332
|
+
# Install stable (Tailwind v3)
|
|
333
|
+
pnpm i -D @dcodegroup-au/dsg-vue
|
|
334
|
+
|
|
335
|
+
# Install next (Tailwind v4)
|
|
336
|
+
pnpm i -D @dcodegroup-au/dsg-vue@next
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
### Publishing
|
|
340
|
+
|
|
341
|
+
Publishing is automated via GitHub Actions:
|
|
342
|
+
|
|
343
|
+
- Push to `main` → publishes with `--tag latest`
|
|
344
|
+
- Push to `next` → publishes with `--tag next`
|
|
345
|
+
|
|
346
|
+
When Tailwind CSS v4 is fully released and the `next` branch is merged to `main`, the version will become `1.x.x` with the `latest` tag, and the `0.x.x` line will be tagged as `legacy`:
|
|
347
|
+
|
|
348
|
+
```sh
|
|
349
|
+
# Future: install legacy Tailwind v3 version
|
|
350
|
+
pnpm i -D @dcodegroup-au/dsg-vue@legacy
|
|
351
|
+
```
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as a, createElementBlock as o, normalizeClass as r, renderSlot as s, createTextVNode as n, toDisplayString as d } from "vue";
|
|
2
|
+
function b(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
const c = ["for"], i = /* @__PURE__ */ t({
|
|
6
|
+
__name: "DsgLabel",
|
|
7
|
+
props: {
|
|
8
|
+
label: { default: "" },
|
|
9
|
+
labelFor: { default: "" },
|
|
10
|
+
size: { default: "md" }
|
|
11
|
+
},
|
|
12
|
+
setup(e) {
|
|
13
|
+
return (l, f) => (a(), o("label", {
|
|
14
|
+
for: e.labelFor,
|
|
15
|
+
class: r(`dsg-label dsg-label--${e.size}`)
|
|
16
|
+
}, [
|
|
17
|
+
s(l.$slots, "dsg-label-text", {}, () => [
|
|
18
|
+
n(d(e.label), 1)
|
|
19
|
+
])
|
|
20
|
+
], 10, c));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
i as _,
|
|
25
|
+
b as g
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue");function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const o=["for"],r=t.defineComponent({__name:"DsgLabel",props:{label:{default:""},labelFor:{default:""},size:{default:"md"}},setup(e){return(l,s)=>(t.openBlock(),t.createElementBlock("label",{for:e.labelFor,class:t.normalizeClass(`dsg-label dsg-label--${e.size}`)},[t.renderSlot(l.$slots,"dsg-label-text",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],10,o))}});exports._sfc_main=r;exports.getDefaultExportFromCjs=a;
|