@prioticket/design-system-web 1.1.0 → 1.2.0

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.
@@ -1,6 +1,22 @@
1
1
  # @prioticket/design-system-web Components
2
2
 
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
+
5
+ ### <pd-box> (PdBox)
6
+
7
+ A generic layout and utility container for applying spacing, flexbox, and sizing properties.
8
+
9
+ **Properties**
10
+
11
+ | Property | Attribute | Type | Default | Description |
12
+ |----------|-----------|------|---------|-------------|
13
+ | `display` | `display` | `'flex' \| 'block' \| 'inline-flex' \| 'grid'` | `'block'` | |
14
+
15
+ **Slots**
16
+
17
+ | Slot | Description |
18
+ |------|-------------|
19
+ | `default` | The default slot for any content or components inside the box. |
4
20
 
5
21
  ### <pd-button> (PdButton)
6
22
 
@@ -1,12 +1,35 @@
1
1
  {
2
2
  "package": {
3
3
  "name": "@prioticket/design-system-web",
4
- "version": "1.1.0",
4
+ "version": "1.2.0",
5
5
  "description": "",
6
6
  "installation": "npm install @prioticket/design-system-web"
7
7
  },
8
- "generatedAt": "2025-11-12T20:20:43.503Z",
8
+ "generatedAt": "2025-11-27T15:21:23.895Z",
9
9
  "components": {
10
+ "pd-box": {
11
+ "tagName": "pd-box",
12
+ "className": "PdBox",
13
+ "description": "A generic layout and utility container for applying spacing, flexbox, and sizing properties.",
14
+ "properties": [
15
+ {
16
+ "name": "display",
17
+ "type": "'flex' | 'block' | 'inline-flex' | 'grid'",
18
+ "attribute": "display",
19
+ "description": "",
20
+ "default": "'block'",
21
+ "required": false
22
+ }
23
+ ],
24
+ "events": [],
25
+ "slots": [
26
+ {
27
+ "name": "",
28
+ "description": "The default slot for any content or components inside the box."
29
+ }
30
+ ],
31
+ "cssProperties": []
32
+ },
10
33
  "pd-button": {
11
34
  "tagName": "pd-button",
12
35
  "className": "PdButton",
@@ -203,6 +203,70 @@
203
203
  "declarations": [],
204
204
  "exports": []
205
205
  },
206
+ {
207
+ "kind": "javascript-module",
208
+ "path": "src/components/pd-box.ts",
209
+ "declarations": [
210
+ {
211
+ "kind": "class",
212
+ "description": "",
213
+ "name": "PdBox",
214
+ "slots": [
215
+ {
216
+ "description": "The default slot for any content or components inside the box.",
217
+ "name": ""
218
+ }
219
+ ],
220
+ "members": [
221
+ {
222
+ "kind": "field",
223
+ "name": "display",
224
+ "type": {
225
+ "text": "'flex' | 'block' | 'inline-flex' | 'grid'"
226
+ },
227
+ "default": "'block'",
228
+ "attribute": "display",
229
+ "reflects": true
230
+ }
231
+ ],
232
+ "attributes": [
233
+ {
234
+ "name": "display",
235
+ "type": {
236
+ "text": "'flex' | 'block' | 'inline-flex' | 'grid'"
237
+ },
238
+ "default": "'block'",
239
+ "fieldName": "display"
240
+ }
241
+ ],
242
+ "superclass": {
243
+ "name": "LitElement",
244
+ "package": "lit"
245
+ },
246
+ "summary": "A generic layout and utility container for applying spacing, flexbox, and sizing properties.",
247
+ "tagName": "pd-box",
248
+ "customElement": true
249
+ }
250
+ ],
251
+ "exports": [
252
+ {
253
+ "kind": "js",
254
+ "name": "PdBox",
255
+ "declaration": {
256
+ "name": "PdBox",
257
+ "module": "src/components/pd-box.ts"
258
+ }
259
+ },
260
+ {
261
+ "kind": "custom-element-definition",
262
+ "name": "pd-box",
263
+ "declaration": {
264
+ "name": "PdBox",
265
+ "module": "src/components/pd-box.ts"
266
+ }
267
+ }
268
+ ]
269
+ },
206
270
  {
207
271
  "kind": "javascript-module",
208
272
  "path": "src/components/pd-button.ts",
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("lit"),i=require("lit/decorators.js");var n=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=(s,t,o,r)=>{for(var e=r>1?void 0:r?c(t,o):t,l=s.length-1,p;l>=0;l--)(p=s[l])&&(e=(r?p(t,o,e):p(e))||e);return r&&e&&n(t,o,e),e};exports.PdBox=class extends a.LitElement{constructor(){super(...arguments),this.display="block"}render(){return a.html`<slot></slot>`}};exports.PdBox.styles=a.css`
2
+ :host {
3
+ /* Apply the display property based on the component's 'display' attribute */
4
+ display: var(--pd-box-display, block);
5
+ }
6
+
7
+ /* We will use CSS variables here so that the JS properties (like 'display')
8
+ can dynamically control the styles */
9
+ `;d([i.property({type:String,reflect:!0})],exports.PdBox.prototype,"display",2);exports.PdBox=d([i.customElement("pd-box")],exports.PdBox);
@@ -0,0 +1,34 @@
1
+ import { css as n, LitElement as y, html as c } from "lit";
2
+ import { property as d, customElement as m } from "lit/decorators.js";
3
+ var h = Object.defineProperty, u = Object.getOwnPropertyDescriptor, i = (a, t, l, r) => {
4
+ for (var e = r > 1 ? void 0 : r ? u(t, l) : t, p = a.length - 1, o; p >= 0; p--)
5
+ (o = a[p]) && (e = (r ? o(t, l, e) : o(e)) || e);
6
+ return r && e && h(t, l, e), e;
7
+ };
8
+ let s = class extends y {
9
+ constructor() {
10
+ super(...arguments), this.display = "block";
11
+ }
12
+ // STEP 2: Define the property for the main content (slot)
13
+ render() {
14
+ return c`<slot></slot>`;
15
+ }
16
+ };
17
+ s.styles = n`
18
+ :host {
19
+ /* Apply the display property based on the component's 'display' attribute */
20
+ display: var(--pd-box-display, block);
21
+ }
22
+
23
+ /* We will use CSS variables here so that the JS properties (like 'display')
24
+ can dynamically control the styles */
25
+ `;
26
+ i([
27
+ d({ type: String, reflect: !0 })
28
+ ], s.prototype, "display", 2);
29
+ s = i([
30
+ m("pd-box")
31
+ ], s);
32
+ export {
33
+ s as PdBox
34
+ };
@@ -0,0 +1,12 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @customElement pd-box
4
+ * @summary A generic layout and utility container for applying spacing, flexbox, and sizing properties.
5
+ *
6
+ * @slot - The default slot for any content or components inside the box.
7
+ */
8
+ export declare class PdBox extends LitElement {
9
+ display: 'flex' | 'block' | 'inline-flex' | 'grid';
10
+ render(): import("lit-html").TemplateResult<1>;
11
+ static styles: import("lit").CSSResult;
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prioticket/design-system-web",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "packageManager": "yarn@3.6.4",
6
6
  "main": "./dist/prioticket-design-system-web.cjs.js",