@dcodegroup-au/dsg-vue 1.0.0-next.1 → 1.0.2-next
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 +4 -5
- 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/components/Table/DsgTableActions.vue.d.ts +11 -56
- 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 +539 -529
- package/dist/main.d.ts +4 -82
- package/package.json +5 -2
- 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
|
@@ -154,7 +154,7 @@ export default defineConfig(({ command, mode }) => {
|
|
|
154
154
|
|
|
155
155
|
## Usage: Tailwind Configuration
|
|
156
156
|
|
|
157
|
-
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.
|
|
158
158
|
|
|
159
159
|
<br />
|
|
160
160
|
|
|
@@ -204,7 +204,7 @@ To use the Vue components within the package, you will need to import them direc
|
|
|
204
204
|
type="email"
|
|
205
205
|
placeholder="jane.doe@example.org"
|
|
206
206
|
name="email"
|
|
207
|
-
|
|
207
|
+
class="form-input username"
|
|
208
208
|
icon="mail-01"
|
|
209
209
|
tool-tip="This is your username or email address."
|
|
210
210
|
:has-tooltip="true"
|
|
@@ -218,7 +218,6 @@ To use the Vue components within the package, you will need to import them direc
|
|
|
218
218
|
:preventDefault="true"
|
|
219
219
|
theme="brand"
|
|
220
220
|
aria-label="This is an aria-label"
|
|
221
|
-
classes=""
|
|
222
221
|
@button-clicked="loginClicked"
|
|
223
222
|
/>
|
|
224
223
|
</div>
|
|
@@ -278,7 +277,7 @@ Within the `dsgTailwind` export, you will find a list of Tailwind CSS plugins th
|
|
|
278
277
|
- `DsgShadowsPlugin`
|
|
279
278
|
- `DsgFocusRingsPlugin`
|
|
280
279
|
|
|
281
|
-
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.
|
|
282
281
|
|
|
283
282
|
<br />
|
|
284
283
|
|
|
@@ -293,7 +292,7 @@ Within the package, there are also two extensible components that house the them
|
|
|
293
292
|
- `DsgColours`
|
|
294
293
|
- `DsgFontFamily`
|
|
295
294
|
|
|
296
|
-
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.
|
|
297
296
|
|
|
298
297
|
|
|
299
298
|
<br />
|
|
@@ -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;
|