@loom-sdc/design-system 0.3.0 → 0.4.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.
- package/README.md +27 -0
- package/dist/Button.css-Cw8VRHOs.js +137 -0
- package/dist/Button.css-DO_uJ5ub.cjs +1 -0
- package/dist/core.cjs +1 -0
- package/dist/core.mjs +2 -0
- package/dist/elements.cjs +2 -0
- package/dist/elements.mjs +328 -0
- package/dist/index.cjs +1 -1
- package/dist/index.core.d.ts +3 -0
- package/dist/index.core.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.elements.d.ts +6 -0
- package/dist/index.elements.d.ts.map +1 -0
- package/dist/index.mjs +61 -414
- package/dist/style.css +1 -1
- package/dist/theme/adapters/theme.angular.d.ts +3 -0
- package/dist/theme/adapters/theme.angular.d.ts.map +1 -0
- package/dist/theme-BhDSE6xP.js +307 -0
- package/dist/theme-Cw8nZ0K9.cjs +1 -0
- package/dist/tokens/color/color.tokens.css.d.ts +4 -0
- package/dist/tokens/color/color.tokens.css.d.ts.map +1 -1
- package/dist/ui/primitives/Box/Box.css.d.ts +3 -0
- package/dist/ui/primitives/Box/Box.css.d.ts.map +1 -1
- package/dist/ui/primitives/Box/adapters/Box.element.d.ts +24 -0
- package/dist/ui/primitives/Box/adapters/Box.element.d.ts.map +1 -0
- package/dist/ui/primitives/Button/Button.css.d.ts +5 -0
- package/dist/ui/primitives/Button/Button.css.d.ts.map +1 -0
- package/dist/ui/primitives/Button/Button.types.d.ts +13 -0
- package/dist/ui/primitives/Button/Button.types.d.ts.map +1 -0
- package/dist/ui/primitives/Button/adapters/Button.element.d.ts +31 -0
- package/dist/ui/primitives/Button/adapters/Button.element.d.ts.map +1 -0
- package/dist/ui/primitives/Button/adapters/Button.react.d.ts +4 -0
- package/dist/ui/primitives/Button/adapters/Button.react.d.ts.map +1 -0
- package/dist/ui/primitives/Button/index.d.ts +4 -0
- package/dist/ui/primitives/Button/index.d.ts.map +1 -0
- package/dist/ui/primitives/Inline/Inline.css.d.ts.map +1 -1
- package/dist/ui/primitives/Inline/Inline.types.d.ts +4 -2
- package/dist/ui/primitives/Inline/Inline.types.d.ts.map +1 -1
- package/dist/ui/primitives/Inline/adapters/Inline.element.d.ts +27 -0
- package/dist/ui/primitives/Inline/adapters/Inline.element.d.ts.map +1 -0
- package/dist/ui/primitives/Inline/index.d.ts +1 -0
- package/dist/ui/primitives/Inline/index.d.ts.map +1 -1
- package/dist/ui/primitives/Stack/Stack.css.d.ts.map +1 -1
- package/dist/ui/primitives/Stack/Stack.types.d.ts +4 -2
- package/dist/ui/primitives/Stack/Stack.types.d.ts.map +1 -1
- package/dist/ui/primitives/Stack/adapters/Stack.element.d.ts +25 -0
- package/dist/ui/primitives/Stack/adapters/Stack.element.d.ts.map +1 -0
- package/dist/ui/primitives/Stack/index.d.ts +1 -0
- package/dist/ui/primitives/Stack/index.d.ts.map +1 -1
- package/dist/ui/primitives/Text/Text.css.d.ts +1 -0
- package/dist/ui/primitives/Text/Text.css.d.ts.map +1 -1
- package/dist/ui/primitives/Text/adapters/Text.element.d.ts +20 -0
- package/dist/ui/primitives/Text/adapters/Text.element.d.ts.map +1 -0
- package/dist/ui/primitives/index.d.ts +2 -0
- package/dist/ui/primitives/index.d.ts.map +1 -1
- package/package.json +26 -4
package/README.md
CHANGED
|
@@ -336,3 +336,30 @@ npm run release
|
|
|
336
336
|
```
|
|
337
337
|
|
|
338
338
|
This runs `build:lib` followed by `npm publish --access public`.
|
|
339
|
+
|
|
340
|
+
---
|
|
341
|
+
|
|
342
|
+
## AI Workflow (Claude + Copilot)
|
|
343
|
+
|
|
344
|
+
This repository uses a shared-contract model so Claude and Copilot behave consistently.
|
|
345
|
+
|
|
346
|
+
### Canonical Contracts
|
|
347
|
+
|
|
348
|
+
All generation laws live in `ai/contracts/`:
|
|
349
|
+
|
|
350
|
+
- `ai/contracts/token.contract.md`
|
|
351
|
+
- `ai/contracts/component.contract.md`
|
|
352
|
+
- `ai/contracts/adapter-web-component.contract.md`
|
|
353
|
+
- `ai/contracts/story.contract.md`
|
|
354
|
+
|
|
355
|
+
### Wrappers
|
|
356
|
+
|
|
357
|
+
- Claude wrappers live under `.claude/commands/` and `.claude/skills/`
|
|
358
|
+
- Copilot wrappers live under `.github/prompts/`
|
|
359
|
+
- Repo-level Copilot defaults are in `.github/copilot-instructions.md`
|
|
360
|
+
|
|
361
|
+
Wrappers should orchestrate flow only. Mandatory behavior changes must be done in contracts first.
|
|
362
|
+
|
|
363
|
+
### Execution Brief
|
|
364
|
+
|
|
365
|
+
Use `ai/templates/execution-brief.md` as the standard handoff format from planning to implementation. This reduces repeated context and keeps output stable across tools.
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
//#region src/design-system/package/ui/primitives/Stack/Stack.css.ts
|
|
3
|
+
var e = "y5q6570", t = {
|
|
4
|
+
none: "y5q6571",
|
|
5
|
+
px: "y5q6572",
|
|
6
|
+
xxs: "y5q6573",
|
|
7
|
+
xs: "y5q6574",
|
|
8
|
+
sm: "y5q6575",
|
|
9
|
+
md: "y5q6576",
|
|
10
|
+
lg: "y5q6577",
|
|
11
|
+
xl: "y5q6578",
|
|
12
|
+
xl2: "y5q6579",
|
|
13
|
+
xl3: "y5q657a",
|
|
14
|
+
xl4: "y5q657b",
|
|
15
|
+
xl5: "y5q657c",
|
|
16
|
+
xl6: "y5q657d",
|
|
17
|
+
xl7: "y5q657e",
|
|
18
|
+
xl8: "y5q657f"
|
|
19
|
+
}, n = {
|
|
20
|
+
start: "y5q657g",
|
|
21
|
+
center: "y5q657h",
|
|
22
|
+
end: "y5q657i",
|
|
23
|
+
stretch: "y5q657j",
|
|
24
|
+
baseline: "y5q657k"
|
|
25
|
+
}, r = {
|
|
26
|
+
start: "y5q657l",
|
|
27
|
+
center: "y5q657m",
|
|
28
|
+
end: "y5q657n",
|
|
29
|
+
between: "y5q657o",
|
|
30
|
+
around: "y5q657p",
|
|
31
|
+
evenly: "y5q657q"
|
|
32
|
+
}, i = "_1wqyejm0", a = "_1wqyejm1", o = {
|
|
33
|
+
none: "_1wqyejm2",
|
|
34
|
+
px: "_1wqyejm3",
|
|
35
|
+
xxs: "_1wqyejm4",
|
|
36
|
+
xs: "_1wqyejm5",
|
|
37
|
+
sm: "_1wqyejm6",
|
|
38
|
+
md: "_1wqyejm7",
|
|
39
|
+
lg: "_1wqyejm8",
|
|
40
|
+
xl: "_1wqyejm9",
|
|
41
|
+
xl2: "_1wqyejma",
|
|
42
|
+
xl3: "_1wqyejmb",
|
|
43
|
+
xl4: "_1wqyejmc",
|
|
44
|
+
xl5: "_1wqyejmd",
|
|
45
|
+
xl6: "_1wqyejme",
|
|
46
|
+
xl7: "_1wqyejmf",
|
|
47
|
+
xl8: "_1wqyejmg"
|
|
48
|
+
}, s = {
|
|
49
|
+
start: "_1wqyejmh",
|
|
50
|
+
center: "_1wqyejmi",
|
|
51
|
+
end: "_1wqyejmj",
|
|
52
|
+
stretch: "_1wqyejmk",
|
|
53
|
+
baseline: "_1wqyejml"
|
|
54
|
+
}, c = {
|
|
55
|
+
start: "_1wqyejmm",
|
|
56
|
+
center: "_1wqyejmn",
|
|
57
|
+
end: "_1wqyejmo",
|
|
58
|
+
between: "_1wqyejmp",
|
|
59
|
+
around: "_1wqyejmq",
|
|
60
|
+
evenly: "_1wqyejmr"
|
|
61
|
+
}, l = "_1okjbro0", u = {
|
|
62
|
+
none: "_1okjbro1",
|
|
63
|
+
px: "_1okjbro2",
|
|
64
|
+
xxs: "_1okjbro3",
|
|
65
|
+
xs: "_1okjbro4",
|
|
66
|
+
sm: "_1okjbro5",
|
|
67
|
+
md: "_1okjbro6",
|
|
68
|
+
lg: "_1okjbro7",
|
|
69
|
+
xl: "_1okjbro8",
|
|
70
|
+
xl2: "_1okjbro9",
|
|
71
|
+
xl3: "_1okjbroa",
|
|
72
|
+
xl4: "_1okjbrob",
|
|
73
|
+
xl5: "_1okjbroc",
|
|
74
|
+
xl6: "_1okjbrod",
|
|
75
|
+
xl7: "_1okjbroe",
|
|
76
|
+
xl8: "_1okjbrof"
|
|
77
|
+
}, d = {
|
|
78
|
+
none: "_1okjbrog",
|
|
79
|
+
px: "_1okjbroh",
|
|
80
|
+
xxs: "_1okjbroi",
|
|
81
|
+
xs: "_1okjbroj",
|
|
82
|
+
sm: "_1okjbrok",
|
|
83
|
+
md: "_1okjbrol",
|
|
84
|
+
lg: "_1okjbrom",
|
|
85
|
+
xl: "_1okjbron",
|
|
86
|
+
xl2: "_1okjbroo",
|
|
87
|
+
xl3: "_1okjbrop",
|
|
88
|
+
xl4: "_1okjbroq",
|
|
89
|
+
xl5: "_1okjbror",
|
|
90
|
+
xl6: "_1okjbros",
|
|
91
|
+
xl7: "_1okjbrot",
|
|
92
|
+
xl8: "_1okjbrou"
|
|
93
|
+
}, f = {
|
|
94
|
+
none: "_1okjbrov",
|
|
95
|
+
px: "_1okjbrow",
|
|
96
|
+
xxs: "_1okjbrox",
|
|
97
|
+
xs: "_1okjbroy",
|
|
98
|
+
sm: "_1okjbroz",
|
|
99
|
+
md: "_1okjbro10",
|
|
100
|
+
lg: "_1okjbro11",
|
|
101
|
+
xl: "_1okjbro12",
|
|
102
|
+
xl2: "_1okjbro13",
|
|
103
|
+
xl3: "_1okjbro14",
|
|
104
|
+
xl4: "_1okjbro15",
|
|
105
|
+
xl5: "_1okjbro16",
|
|
106
|
+
xl6: "_1okjbro17",
|
|
107
|
+
xl7: "_1okjbro18",
|
|
108
|
+
xl8: "_1okjbro19"
|
|
109
|
+
}, p = "_1kk7qb30", m = {
|
|
110
|
+
bodyBase: "_1kk7qb31",
|
|
111
|
+
bodySm: "_1kk7qb32",
|
|
112
|
+
bodyLg: "_1kk7qb33",
|
|
113
|
+
labelBase: "_1kk7qb34",
|
|
114
|
+
labelSm: "_1kk7qb35",
|
|
115
|
+
labelLg: "_1kk7qb36",
|
|
116
|
+
headingH1: "_1kk7qb37",
|
|
117
|
+
headingH2: "_1kk7qb38",
|
|
118
|
+
headingH3: "_1kk7qb39",
|
|
119
|
+
headingH4: "_1kk7qb3a",
|
|
120
|
+
headingH5: "_1kk7qb3b",
|
|
121
|
+
headingH6: "_1kk7qb3c",
|
|
122
|
+
displayLg: "_1kk7qb3d",
|
|
123
|
+
displayXl: "_1kk7qb3e",
|
|
124
|
+
display2xl: "_1kk7qb3f",
|
|
125
|
+
overline: "_1kk7qb3g",
|
|
126
|
+
caption: "_1kk7qb3h"
|
|
127
|
+
}, h = "_1cu80s90", g = "_1cu80s91", _ = {
|
|
128
|
+
primary: "_1cu80s92",
|
|
129
|
+
outline: "_1cu80s93",
|
|
130
|
+
text: "_1cu80s94"
|
|
131
|
+
}, v = {
|
|
132
|
+
sm: "_1cu80s95",
|
|
133
|
+
md: "_1cu80s96",
|
|
134
|
+
lg: "_1cu80s97"
|
|
135
|
+
};
|
|
136
|
+
//#endregion
|
|
137
|
+
export { t as _, p as a, d as c, s as d, o as f, n as g, a as h, _ as i, f as l, i as m, g as n, m as o, c as p, v as r, u as s, h as t, l as u, r as v, e as y };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
;/* empty css */var e=`y5q6570`,t={none:`y5q6571`,px:`y5q6572`,xxs:`y5q6573`,xs:`y5q6574`,sm:`y5q6575`,md:`y5q6576`,lg:`y5q6577`,xl:`y5q6578`,xl2:`y5q6579`,xl3:`y5q657a`,xl4:`y5q657b`,xl5:`y5q657c`,xl6:`y5q657d`,xl7:`y5q657e`,xl8:`y5q657f`},n={start:`y5q657g`,center:`y5q657h`,end:`y5q657i`,stretch:`y5q657j`,baseline:`y5q657k`},r={start:`y5q657l`,center:`y5q657m`,end:`y5q657n`,between:`y5q657o`,around:`y5q657p`,evenly:`y5q657q`},i=`_1wqyejm0`,a=`_1wqyejm1`,o={none:`_1wqyejm2`,px:`_1wqyejm3`,xxs:`_1wqyejm4`,xs:`_1wqyejm5`,sm:`_1wqyejm6`,md:`_1wqyejm7`,lg:`_1wqyejm8`,xl:`_1wqyejm9`,xl2:`_1wqyejma`,xl3:`_1wqyejmb`,xl4:`_1wqyejmc`,xl5:`_1wqyejmd`,xl6:`_1wqyejme`,xl7:`_1wqyejmf`,xl8:`_1wqyejmg`},s={start:`_1wqyejmh`,center:`_1wqyejmi`,end:`_1wqyejmj`,stretch:`_1wqyejmk`,baseline:`_1wqyejml`},c={start:`_1wqyejmm`,center:`_1wqyejmn`,end:`_1wqyejmo`,between:`_1wqyejmp`,around:`_1wqyejmq`,evenly:`_1wqyejmr`},l=`_1okjbro0`,u={none:`_1okjbro1`,px:`_1okjbro2`,xxs:`_1okjbro3`,xs:`_1okjbro4`,sm:`_1okjbro5`,md:`_1okjbro6`,lg:`_1okjbro7`,xl:`_1okjbro8`,xl2:`_1okjbro9`,xl3:`_1okjbroa`,xl4:`_1okjbrob`,xl5:`_1okjbroc`,xl6:`_1okjbrod`,xl7:`_1okjbroe`,xl8:`_1okjbrof`},d={none:`_1okjbrog`,px:`_1okjbroh`,xxs:`_1okjbroi`,xs:`_1okjbroj`,sm:`_1okjbrok`,md:`_1okjbrol`,lg:`_1okjbrom`,xl:`_1okjbron`,xl2:`_1okjbroo`,xl3:`_1okjbrop`,xl4:`_1okjbroq`,xl5:`_1okjbror`,xl6:`_1okjbros`,xl7:`_1okjbrot`,xl8:`_1okjbrou`},f={none:`_1okjbrov`,px:`_1okjbrow`,xxs:`_1okjbrox`,xs:`_1okjbroy`,sm:`_1okjbroz`,md:`_1okjbro10`,lg:`_1okjbro11`,xl:`_1okjbro12`,xl2:`_1okjbro13`,xl3:`_1okjbro14`,xl4:`_1okjbro15`,xl5:`_1okjbro16`,xl6:`_1okjbro17`,xl7:`_1okjbro18`,xl8:`_1okjbro19`},p=`_1kk7qb30`,m={bodyBase:`_1kk7qb31`,bodySm:`_1kk7qb32`,bodyLg:`_1kk7qb33`,labelBase:`_1kk7qb34`,labelSm:`_1kk7qb35`,labelLg:`_1kk7qb36`,headingH1:`_1kk7qb37`,headingH2:`_1kk7qb38`,headingH3:`_1kk7qb39`,headingH4:`_1kk7qb3a`,headingH5:`_1kk7qb3b`,headingH6:`_1kk7qb3c`,displayLg:`_1kk7qb3d`,displayXl:`_1kk7qb3e`,display2xl:`_1kk7qb3f`,overline:`_1kk7qb3g`,caption:`_1kk7qb3h`},h=`_1cu80s90`,g=`_1cu80s91`,_={primary:`_1cu80s92`,outline:`_1cu80s93`,text:`_1cu80s94`},v={sm:`_1cu80s95`,md:`_1cu80s96`,lg:`_1cu80s97`};Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return e}});
|
package/dist/core.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./theme-Cw8nZ0K9.cjs`);exports.applyTheme=e.t,exports.colorVars=e.g,exports.fontFamilyVars=e._,exports.fontSizeVars=e.d,exports.fontWeightVars=e.l,exports.getTheme=e.n,exports.heightVars=e.m,exports.iconSizeVars=e.p,exports.letterSpacingVars=e.a,exports.lineHeightVars=e.c,exports.motionVars=e.r,exports.paletteVars=e.h,exports.radiusVars=e.f,exports.shadowVars=e.s,exports.spacingVars=e.u,exports.typographyVars=e.i,exports.zIndexVars=e.o;
|
package/dist/core.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./theme-BhDSE6xP.js";
|
|
2
|
+
export { h as applyTheme, a as colorVars, e as fontFamilyVars, r as fontSizeVars, c as fontWeightVars, u as getTheme, l as heightVars, f as iconSizeVars, t as letterSpacingVars, n as lineHeightVars, p as motionVars, o as paletteVars, i as radiusVars, m as shadowVars, g as spacingVars, s as typographyVars, d as zIndexVars };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./Button.css-DO_uJ5ub.cjs`);var t=class extends HTMLElement{static observedAttributes=[`padding`,`padding-x`,`padding-y`];get padding(){return this.getAttribute(`padding`)}set padding(e){e==null?this.removeAttribute(`padding`):this.setAttribute(`padding`,e)}get paddingX(){return this.getAttribute(`padding-x`)}set paddingX(e){e==null?this.removeAttribute(`padding-x`):this.setAttribute(`padding-x`,e)}get paddingY(){return this.getAttribute(`padding-y`)}set paddingY(e){e==null?this.removeAttribute(`padding-y`):this.setAttribute(`padding-y`,e)}connectedCallback(){this.classList.add(e.u),this._sync()}attributeChangedCallback(){this._scheduleSync()}_syncScheduled=!1;_scheduleSync(){this._syncScheduled||(this._syncScheduled=!0,requestAnimationFrame(()=>{this._syncScheduled=!1,this._sync()}))}_prev={padding:null,paddingX:null,paddingY:null};_sync(){this._apply(`padding`,this.getAttribute(`padding`),e.s),this._apply(`paddingX`,this.getAttribute(`padding-x`),e.c),this._apply(`paddingY`,this.getAttribute(`padding-y`),e.l)}_apply(e,t,n){let r=t!=null&&t in n?n[t]:null,i=this._prev[e]??null;r!==i&&(i&&this.classList.remove(i),r&&this.classList.add(r),this._prev[e]=r)}};customElements.define(`loom-box`,t);var n=class extends HTMLElement{static observedAttributes=[`gap`,`align`,`justify`];get gap(){return this.getAttribute(`gap`)}set gap(e){e==null?this.removeAttribute(`gap`):this.setAttribute(`gap`,e)}get align(){return this.getAttribute(`align`)}set align(e){e==null?this.removeAttribute(`align`):this.setAttribute(`align`,e)}get justify(){return this.getAttribute(`justify`)}set justify(e){e==null?this.removeAttribute(`justify`):this.setAttribute(`justify`,e)}connectedCallback(){this.classList.add(e.y),this._sync()}attributeChangedCallback(){this._scheduleSync()}_syncScheduled=!1;_scheduleSync(){this._syncScheduled||(this._syncScheduled=!0,requestAnimationFrame(()=>{this._syncScheduled=!1,this._sync()}))}_prev={gap:null,align:null,justify:null};_sync(){this._apply(`gap`,this.getAttribute(`gap`),e._),this._apply(`align`,this.getAttribute(`align`)??`stretch`,e.g),this._apply(`justify`,this.getAttribute(`justify`)??`start`,e.v)}_apply(e,t,n){let r=t!=null&&t in n?n[t]:null,i=this._prev[e]??null;r!==i&&(i&&this.classList.remove(i),r&&this.classList.add(r),this._prev[e]=r)}};customElements.define(`loom-stack`,n);var r=class extends HTMLElement{static observedAttributes=[`gap`,`align`,`justify`,`wrap`];get gap(){return this.getAttribute(`gap`)}set gap(e){e==null?this.removeAttribute(`gap`):this.setAttribute(`gap`,e)}get align(){return this.getAttribute(`align`)}set align(e){e==null?this.removeAttribute(`align`):this.setAttribute(`align`,e)}get justify(){return this.getAttribute(`justify`)}set justify(e){e==null?this.removeAttribute(`justify`):this.setAttribute(`justify`,e)}get wrap(){return this.hasAttribute(`wrap`)}set wrap(e){this.toggleAttribute(`wrap`,e)}connectedCallback(){this.classList.add(e.m),this._sync()}attributeChangedCallback(){this._scheduleSync()}_syncScheduled=!1;_scheduleSync(){this._syncScheduled||(this._syncScheduled=!0,requestAnimationFrame(()=>{this._syncScheduled=!1,this._sync()}))}_prev={gap:null,align:null,justify:null,wrap:null};_sync(){this._apply(`gap`,this.getAttribute(`gap`),e.f),this._apply(`align`,this.getAttribute(`align`)??`center`,e.d),this._apply(`justify`,this.getAttribute(`justify`)??`start`,e.p),this._apply(`wrap`,this.hasAttribute(`wrap`)?`on`:null,{on:e.h})}_apply(e,t,n){let r=t!=null&&t in n?n[t]:null,i=this._prev[e]??null;r!==i&&(i&&this.classList.remove(i),r&&this.classList.add(r),this._prev[e]=r)}};customElements.define(`loom-inline`,r);var i=class extends HTMLElement{static observedAttributes=[`variant`];get variant(){return this.getAttribute(`variant`)}set variant(e){e==null?this.removeAttribute(`variant`):this.setAttribute(`variant`,e)}connectedCallback(){this.classList.add(e.a),this._sync()}attributeChangedCallback(){this._scheduleSync()}_syncScheduled=!1;_scheduleSync(){this._syncScheduled||(this._syncScheduled=!0,requestAnimationFrame(()=>{this._syncScheduled=!1,this._sync()}))}_prev={variant:null};_sync(){this._apply(`variant`,this.getAttribute(`variant`),e.o)}_apply(e,t,n){let r=t!=null&&t in n?n[t]:null,i=this._prev[e]??null;r!==i&&(i&&this.classList.remove(i),r&&this.classList.add(r),this._prev[e]=r)}};customElements.define(`loom-text`,i);var a={sm:`labelSm`,md:`labelBase`,lg:`labelLg`},o={};function s(e){try{let t=new CSSStyleSheet,n=Array.from(e.cssRules).map(e=>e.cssText).join(`
|
|
2
|
+
`);return t.replaceSync(n),t}catch{return null}}function c(e){if(e in o)return o[e];for(let t of Array.from(document.styleSheets))try{if(Array.from(t.cssRules).some(t=>t.cssText.includes(e)))return o[e]=s(t),o[e]}catch{}return o[e]=null,null}function l(){let t=[c(e.n),c(e.o[a.md])].filter(e=>e!=null);return Array.from(new Set(t))}var u=class extends HTMLElement{_inner=null;_label=null;static observedAttributes=[`variant`,`size`,`disabled`,`aria-label`,`aria-labelledby`,`aria-describedby`];get variant(){return this.getAttribute(`variant`)??`primary`}set variant(e){this.setAttribute(`variant`,e)}get size(){return this.getAttribute(`size`)??`md`}set size(e){this.setAttribute(`size`,e)}get disabled(){return this.hasAttribute(`disabled`)}set disabled(e){this.toggleAttribute(`disabled`,e)}_handleClick=e=>{e.stopPropagation(),this.dispatchEvent(new CustomEvent(`loom-click`,{bubbles:!0,composed:!0,detail:{}}))};_handleFocus=e=>{e.stopPropagation(),this.dispatchEvent(new CustomEvent(`loom-focus`,{bubbles:!0,composed:!0,detail:{}}))};_handleBlur=e=>{e.stopPropagation(),this.dispatchEvent(new CustomEvent(`loom-blur`,{bubbles:!0,composed:!0,detail:{}}))};_syncScheduled=!1;_scheduleSync(){this._syncScheduled||(this._syncScheduled=!0,requestAnimationFrame(()=>{this._syncScheduled=!1,this._sync()}))}connectedCallback(){if(!this.shadowRoot){let t=this.attachShadow({mode:`open`,delegatesFocus:!0}),n=l();n.length>0?t.adoptedStyleSheets=n:console.warn(`[loom-button] VE stylesheet not found - shadow styles will be missing.`),this._label=document.createElement(`span`),this._label.setAttribute(`part`,`label`),this._label.appendChild(document.createElement(`slot`)),this._inner=document.createElement(`button`),this._inner.type=`button`,this._inner.setAttribute(`part`,`button`),this._inner.appendChild(this._label),t.appendChild(this._inner),this.classList.add(e.t),this._inner.classList.add(e.n),this._inner.addEventListener(`click`,this._handleClick),this._inner.addEventListener(`focus`,this._handleFocus),this._inner.addEventListener(`blur`,this._handleBlur)}this._sync()}disconnectedCallback(){this._inner?.removeEventListener(`click`,this._handleClick),this._inner?.removeEventListener(`focus`,this._handleFocus),this._inner?.removeEventListener(`blur`,this._handleBlur)}attributeChangedCallback(e){if(e.startsWith(`aria-`)){this._syncA11y();return}this._scheduleSync()}_prev={variant:null,size:null,typographyKey:null};_sync(){if(!this._inner||!this._label)return;let t=this.getAttribute(`variant`)??`primary`,n=this.getAttribute(`size`)??`md`;this._apply(this._inner,`variant`,t,e.i),this._apply(this._inner,`size`,n,e.r),this._inner.disabled=this.hasAttribute(`disabled`);let r=n in a?a[n]:a.md;this._apply(this._label,`typographyKey`,r,e.o),this._syncA11y()}_syncA11y(){this._inner&&[`aria-label`,`aria-labelledby`,`aria-describedby`].forEach(e=>{let t=this.getAttribute(e);t?this._inner?.setAttribute(e,t):this._inner?.removeAttribute(e)})}_apply(e,t,n,r){let i=n!=null&&n in r?r[n]:null,a=this._prev[t]??null;i!==a&&(a&&e.classList.remove(a),i&&e.classList.add(i),this._prev[t]=i)}};customElements.define(`loom-button`,u),exports.LoomBox=t,exports.LoomButton=u,exports.LoomInline=r,exports.LoomStack=n,exports.LoomText=i;
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./Button.css-Cw8VRHOs.js";
|
|
2
|
+
//#region src/design-system/package/ui/primitives/Box/adapters/Box.element.ts
|
|
3
|
+
var y = class extends HTMLElement {
|
|
4
|
+
static observedAttributes = [
|
|
5
|
+
"padding",
|
|
6
|
+
"padding-x",
|
|
7
|
+
"padding-y"
|
|
8
|
+
];
|
|
9
|
+
get padding() {
|
|
10
|
+
return this.getAttribute("padding");
|
|
11
|
+
}
|
|
12
|
+
set padding(e) {
|
|
13
|
+
e == null ? this.removeAttribute("padding") : this.setAttribute("padding", e);
|
|
14
|
+
}
|
|
15
|
+
get paddingX() {
|
|
16
|
+
return this.getAttribute("padding-x");
|
|
17
|
+
}
|
|
18
|
+
set paddingX(e) {
|
|
19
|
+
e == null ? this.removeAttribute("padding-x") : this.setAttribute("padding-x", e);
|
|
20
|
+
}
|
|
21
|
+
get paddingY() {
|
|
22
|
+
return this.getAttribute("padding-y");
|
|
23
|
+
}
|
|
24
|
+
set paddingY(e) {
|
|
25
|
+
e == null ? this.removeAttribute("padding-y") : this.setAttribute("padding-y", e);
|
|
26
|
+
}
|
|
27
|
+
connectedCallback() {
|
|
28
|
+
this.classList.add(g), this._sync();
|
|
29
|
+
}
|
|
30
|
+
attributeChangedCallback() {
|
|
31
|
+
this._scheduleSync();
|
|
32
|
+
}
|
|
33
|
+
_syncScheduled = !1;
|
|
34
|
+
_scheduleSync() {
|
|
35
|
+
this._syncScheduled || (this._syncScheduled = !0, requestAnimationFrame(() => {
|
|
36
|
+
this._syncScheduled = !1, this._sync();
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
_prev = {
|
|
40
|
+
padding: null,
|
|
41
|
+
paddingX: null,
|
|
42
|
+
paddingY: null
|
|
43
|
+
};
|
|
44
|
+
_sync() {
|
|
45
|
+
this._apply("padding", this.getAttribute("padding"), m), this._apply("paddingX", this.getAttribute("padding-x"), n), this._apply("paddingY", this.getAttribute("padding-y"), c);
|
|
46
|
+
}
|
|
47
|
+
_apply(e, t, n) {
|
|
48
|
+
let r = t != null && t in n ? n[t] : null, i = this._prev[e] ?? null;
|
|
49
|
+
r !== i && (i && this.classList.remove(i), r && this.classList.add(r), this._prev[e] = r);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
customElements.define("loom-box", y);
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/design-system/package/ui/primitives/Stack/adapters/Stack.element.ts
|
|
55
|
+
var b = class extends HTMLElement {
|
|
56
|
+
static observedAttributes = [
|
|
57
|
+
"gap",
|
|
58
|
+
"align",
|
|
59
|
+
"justify"
|
|
60
|
+
];
|
|
61
|
+
get gap() {
|
|
62
|
+
return this.getAttribute("gap");
|
|
63
|
+
}
|
|
64
|
+
set gap(e) {
|
|
65
|
+
e == null ? this.removeAttribute("gap") : this.setAttribute("gap", e);
|
|
66
|
+
}
|
|
67
|
+
get align() {
|
|
68
|
+
return this.getAttribute("align");
|
|
69
|
+
}
|
|
70
|
+
set align(e) {
|
|
71
|
+
e == null ? this.removeAttribute("align") : this.setAttribute("align", e);
|
|
72
|
+
}
|
|
73
|
+
get justify() {
|
|
74
|
+
return this.getAttribute("justify");
|
|
75
|
+
}
|
|
76
|
+
set justify(e) {
|
|
77
|
+
e == null ? this.removeAttribute("justify") : this.setAttribute("justify", e);
|
|
78
|
+
}
|
|
79
|
+
connectedCallback() {
|
|
80
|
+
this.classList.add(v), this._sync();
|
|
81
|
+
}
|
|
82
|
+
attributeChangedCallback() {
|
|
83
|
+
this._scheduleSync();
|
|
84
|
+
}
|
|
85
|
+
_syncScheduled = !1;
|
|
86
|
+
_scheduleSync() {
|
|
87
|
+
this._syncScheduled || (this._syncScheduled = !0, requestAnimationFrame(() => {
|
|
88
|
+
this._syncScheduled = !1, this._sync();
|
|
89
|
+
}));
|
|
90
|
+
}
|
|
91
|
+
_prev = {
|
|
92
|
+
gap: null,
|
|
93
|
+
align: null,
|
|
94
|
+
justify: null
|
|
95
|
+
};
|
|
96
|
+
_sync() {
|
|
97
|
+
this._apply("gap", this.getAttribute("gap"), e), this._apply("align", this.getAttribute("align") ?? "stretch", a), this._apply("justify", this.getAttribute("justify") ?? "start", _);
|
|
98
|
+
}
|
|
99
|
+
_apply(e, t, n) {
|
|
100
|
+
let r = t != null && t in n ? n[t] : null, i = this._prev[e] ?? null;
|
|
101
|
+
r !== i && (i && this.classList.remove(i), r && this.classList.add(r), this._prev[e] = r);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
customElements.define("loom-stack", b);
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/design-system/package/ui/primitives/Inline/adapters/Inline.element.ts
|
|
107
|
+
var x = class extends HTMLElement {
|
|
108
|
+
static observedAttributes = [
|
|
109
|
+
"gap",
|
|
110
|
+
"align",
|
|
111
|
+
"justify",
|
|
112
|
+
"wrap"
|
|
113
|
+
];
|
|
114
|
+
get gap() {
|
|
115
|
+
return this.getAttribute("gap");
|
|
116
|
+
}
|
|
117
|
+
set gap(e) {
|
|
118
|
+
e == null ? this.removeAttribute("gap") : this.setAttribute("gap", e);
|
|
119
|
+
}
|
|
120
|
+
get align() {
|
|
121
|
+
return this.getAttribute("align");
|
|
122
|
+
}
|
|
123
|
+
set align(e) {
|
|
124
|
+
e == null ? this.removeAttribute("align") : this.setAttribute("align", e);
|
|
125
|
+
}
|
|
126
|
+
get justify() {
|
|
127
|
+
return this.getAttribute("justify");
|
|
128
|
+
}
|
|
129
|
+
set justify(e) {
|
|
130
|
+
e == null ? this.removeAttribute("justify") : this.setAttribute("justify", e);
|
|
131
|
+
}
|
|
132
|
+
get wrap() {
|
|
133
|
+
return this.hasAttribute("wrap");
|
|
134
|
+
}
|
|
135
|
+
set wrap(e) {
|
|
136
|
+
this.toggleAttribute("wrap", e);
|
|
137
|
+
}
|
|
138
|
+
connectedCallback() {
|
|
139
|
+
this.classList.add(l), this._sync();
|
|
140
|
+
}
|
|
141
|
+
attributeChangedCallback() {
|
|
142
|
+
this._scheduleSync();
|
|
143
|
+
}
|
|
144
|
+
_syncScheduled = !1;
|
|
145
|
+
_scheduleSync() {
|
|
146
|
+
this._syncScheduled || (this._syncScheduled = !0, requestAnimationFrame(() => {
|
|
147
|
+
this._syncScheduled = !1, this._sync();
|
|
148
|
+
}));
|
|
149
|
+
}
|
|
150
|
+
_prev = {
|
|
151
|
+
gap: null,
|
|
152
|
+
align: null,
|
|
153
|
+
justify: null,
|
|
154
|
+
wrap: null
|
|
155
|
+
};
|
|
156
|
+
_sync() {
|
|
157
|
+
this._apply("gap", this.getAttribute("gap"), i), this._apply("align", this.getAttribute("align") ?? "center", r), this._apply("justify", this.getAttribute("justify") ?? "start", f), this._apply("wrap", this.hasAttribute("wrap") ? "on" : null, { on: o });
|
|
158
|
+
}
|
|
159
|
+
_apply(e, t, n) {
|
|
160
|
+
let r = t != null && t in n ? n[t] : null, i = this._prev[e] ?? null;
|
|
161
|
+
r !== i && (i && this.classList.remove(i), r && this.classList.add(r), this._prev[e] = r);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
customElements.define("loom-inline", x);
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/design-system/package/ui/primitives/Text/adapters/Text.element.ts
|
|
167
|
+
var S = class extends HTMLElement {
|
|
168
|
+
static observedAttributes = ["variant"];
|
|
169
|
+
get variant() {
|
|
170
|
+
return this.getAttribute("variant");
|
|
171
|
+
}
|
|
172
|
+
set variant(e) {
|
|
173
|
+
e == null ? this.removeAttribute("variant") : this.setAttribute("variant", e);
|
|
174
|
+
}
|
|
175
|
+
connectedCallback() {
|
|
176
|
+
this.classList.add(t), this._sync();
|
|
177
|
+
}
|
|
178
|
+
attributeChangedCallback() {
|
|
179
|
+
this._scheduleSync();
|
|
180
|
+
}
|
|
181
|
+
_syncScheduled = !1;
|
|
182
|
+
_scheduleSync() {
|
|
183
|
+
this._syncScheduled || (this._syncScheduled = !0, requestAnimationFrame(() => {
|
|
184
|
+
this._syncScheduled = !1, this._sync();
|
|
185
|
+
}));
|
|
186
|
+
}
|
|
187
|
+
_prev = { variant: null };
|
|
188
|
+
_sync() {
|
|
189
|
+
this._apply("variant", this.getAttribute("variant"), d);
|
|
190
|
+
}
|
|
191
|
+
_apply(e, t, n) {
|
|
192
|
+
let r = t != null && t in n ? n[t] : null, i = this._prev[e] ?? null;
|
|
193
|
+
r !== i && (i && this.classList.remove(i), r && this.classList.add(r), this._prev[e] = r);
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
customElements.define("loom-text", S);
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/design-system/package/ui/primitives/Button/adapters/Button.element.ts
|
|
199
|
+
var C = {
|
|
200
|
+
sm: "labelSm",
|
|
201
|
+
md: "labelBase",
|
|
202
|
+
lg: "labelLg"
|
|
203
|
+
}, w = {};
|
|
204
|
+
function T(e) {
|
|
205
|
+
try {
|
|
206
|
+
let t = new CSSStyleSheet(), n = Array.from(e.cssRules).map((e) => e.cssText).join("\n");
|
|
207
|
+
return t.replaceSync(n), t;
|
|
208
|
+
} catch {
|
|
209
|
+
return null;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
function E(e) {
|
|
213
|
+
if (e in w) return w[e];
|
|
214
|
+
for (let t of Array.from(document.styleSheets)) try {
|
|
215
|
+
if (Array.from(t.cssRules).some((t) => t.cssText.includes(e))) return w[e] = T(t), w[e];
|
|
216
|
+
} catch {}
|
|
217
|
+
return w[e] = null, null;
|
|
218
|
+
}
|
|
219
|
+
function D() {
|
|
220
|
+
let e = [E(u), E(d[C.md])].filter((e) => e != null);
|
|
221
|
+
return Array.from(new Set(e));
|
|
222
|
+
}
|
|
223
|
+
var O = class extends HTMLElement {
|
|
224
|
+
_inner = null;
|
|
225
|
+
_label = null;
|
|
226
|
+
static observedAttributes = [
|
|
227
|
+
"variant",
|
|
228
|
+
"size",
|
|
229
|
+
"disabled",
|
|
230
|
+
"aria-label",
|
|
231
|
+
"aria-labelledby",
|
|
232
|
+
"aria-describedby"
|
|
233
|
+
];
|
|
234
|
+
get variant() {
|
|
235
|
+
return this.getAttribute("variant") ?? "primary";
|
|
236
|
+
}
|
|
237
|
+
set variant(e) {
|
|
238
|
+
this.setAttribute("variant", e);
|
|
239
|
+
}
|
|
240
|
+
get size() {
|
|
241
|
+
return this.getAttribute("size") ?? "md";
|
|
242
|
+
}
|
|
243
|
+
set size(e) {
|
|
244
|
+
this.setAttribute("size", e);
|
|
245
|
+
}
|
|
246
|
+
get disabled() {
|
|
247
|
+
return this.hasAttribute("disabled");
|
|
248
|
+
}
|
|
249
|
+
set disabled(e) {
|
|
250
|
+
this.toggleAttribute("disabled", e);
|
|
251
|
+
}
|
|
252
|
+
_handleClick = (e) => {
|
|
253
|
+
e.stopPropagation(), this.dispatchEvent(new CustomEvent("loom-click", {
|
|
254
|
+
bubbles: !0,
|
|
255
|
+
composed: !0,
|
|
256
|
+
detail: {}
|
|
257
|
+
}));
|
|
258
|
+
};
|
|
259
|
+
_handleFocus = (e) => {
|
|
260
|
+
e.stopPropagation(), this.dispatchEvent(new CustomEvent("loom-focus", {
|
|
261
|
+
bubbles: !0,
|
|
262
|
+
composed: !0,
|
|
263
|
+
detail: {}
|
|
264
|
+
}));
|
|
265
|
+
};
|
|
266
|
+
_handleBlur = (e) => {
|
|
267
|
+
e.stopPropagation(), this.dispatchEvent(new CustomEvent("loom-blur", {
|
|
268
|
+
bubbles: !0,
|
|
269
|
+
composed: !0,
|
|
270
|
+
detail: {}
|
|
271
|
+
}));
|
|
272
|
+
};
|
|
273
|
+
_syncScheduled = !1;
|
|
274
|
+
_scheduleSync() {
|
|
275
|
+
this._syncScheduled || (this._syncScheduled = !0, requestAnimationFrame(() => {
|
|
276
|
+
this._syncScheduled = !1, this._sync();
|
|
277
|
+
}));
|
|
278
|
+
}
|
|
279
|
+
connectedCallback() {
|
|
280
|
+
if (!this.shadowRoot) {
|
|
281
|
+
let e = this.attachShadow({
|
|
282
|
+
mode: "open",
|
|
283
|
+
delegatesFocus: !0
|
|
284
|
+
}), t = D();
|
|
285
|
+
t.length > 0 ? e.adoptedStyleSheets = t : console.warn("[loom-button] VE stylesheet not found - shadow styles will be missing."), this._label = document.createElement("span"), this._label.setAttribute("part", "label"), this._label.appendChild(document.createElement("slot")), this._inner = document.createElement("button"), this._inner.type = "button", this._inner.setAttribute("part", "button"), this._inner.appendChild(this._label), e.appendChild(this._inner), this.classList.add(h), this._inner.classList.add(u), this._inner.addEventListener("click", this._handleClick), this._inner.addEventListener("focus", this._handleFocus), this._inner.addEventListener("blur", this._handleBlur);
|
|
286
|
+
}
|
|
287
|
+
this._sync();
|
|
288
|
+
}
|
|
289
|
+
disconnectedCallback() {
|
|
290
|
+
this._inner?.removeEventListener("click", this._handleClick), this._inner?.removeEventListener("focus", this._handleFocus), this._inner?.removeEventListener("blur", this._handleBlur);
|
|
291
|
+
}
|
|
292
|
+
attributeChangedCallback(e) {
|
|
293
|
+
if (e.startsWith("aria-")) {
|
|
294
|
+
this._syncA11y();
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
this._scheduleSync();
|
|
298
|
+
}
|
|
299
|
+
_prev = {
|
|
300
|
+
variant: null,
|
|
301
|
+
size: null,
|
|
302
|
+
typographyKey: null
|
|
303
|
+
};
|
|
304
|
+
_sync() {
|
|
305
|
+
if (!this._inner || !this._label) return;
|
|
306
|
+
let e = this.getAttribute("variant") ?? "primary", t = this.getAttribute("size") ?? "md";
|
|
307
|
+
this._apply(this._inner, "variant", e, s), this._apply(this._inner, "size", t, p), this._inner.disabled = this.hasAttribute("disabled");
|
|
308
|
+
let n = t in C ? C[t] : C.md;
|
|
309
|
+
this._apply(this._label, "typographyKey", n, d), this._syncA11y();
|
|
310
|
+
}
|
|
311
|
+
_syncA11y() {
|
|
312
|
+
this._inner && [
|
|
313
|
+
"aria-label",
|
|
314
|
+
"aria-labelledby",
|
|
315
|
+
"aria-describedby"
|
|
316
|
+
].forEach((e) => {
|
|
317
|
+
let t = this.getAttribute(e);
|
|
318
|
+
t ? this._inner?.setAttribute(e, t) : this._inner?.removeAttribute(e);
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
_apply(e, t, n, r) {
|
|
322
|
+
let i = n != null && n in r ? r[n] : null, a = this._prev[t] ?? null;
|
|
323
|
+
i !== a && (a && e.classList.remove(a), i && e.classList.add(i), this._prev[t] = i);
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
customElements.define("loom-button", O);
|
|
327
|
+
//#endregion
|
|
328
|
+
export { y as LoomBox, O as LoomButton, x as LoomInline, b as LoomStack, S as LoomText };
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./theme-Cw8nZ0K9.cjs`),t=require(`./Button.css-DO_uJ5ub.cjs`);let n=require(`react/jsx-runtime`);function r({as:e,gap:r,align:i=`stretch`,justify:a=`start`,children:o,className:s,...c}){return(0,n.jsx)(e??`div`,{className:[t.y,r===void 0?void 0:t._[r],t.g[i],t.v[a],s].filter(Boolean).join(` `),...c,children:o})}function i({as:e,gap:r,align:i=`center`,justify:a=`start`,wrap:o=!1,children:s,className:c,...l}){return(0,n.jsx)(e??`div`,{className:[t.m,o?t.h:void 0,r===void 0?void 0:t.f[r],t.d[i],t.p[a],c].filter(Boolean).join(` `),...l,children:s})}function a({as:r,padding:i,paddingX:a,paddingY:o,children:s,className:c,style:l,...u}){let d=r??`div`,f={...i&&{padding:e.u[i]},...a&&{paddingInline:e.u[a]},...o&&{paddingBlock:e.u[o]}};return(0,n.jsx)(d,{className:[t.u,c].filter(Boolean).join(` `),style:{...f,...l},...u,children:s})}function o({as:e,variant:r,children:i,className:a,...o}){return(0,n.jsx)(e??`p`,{className:[t.o[r],a].filter(Boolean).join(` `),...o,children:i})}var s={sm:`labelSm`,md:`labelBase`,lg:`labelLg`};function c({as:e,variant:r=`primary`,size:i=`md`,children:a,className:c,...l}){return(0,n.jsx)(e??`button`,{className:[t.n,t.i[r],t.r[i],c].filter(Boolean).join(` `),...l,children:(0,n.jsx)(o,{as:`span`,variant:s[i],children:a})})}exports.Box=a,exports.Button=c,exports.Inline=i,exports.Stack=r,exports.Text=o,exports.applyTheme=e.t,exports.colorVars=e.g,exports.fontFamilyVars=e._,exports.fontSizeVars=e.d,exports.fontWeightVars=e.l,exports.getTheme=e.n,exports.heightVars=e.m,exports.iconSizeVars=e.p,exports.letterSpacingVars=e.a,exports.lineHeightVars=e.c,exports.motionVars=e.r,exports.paletteVars=e.h,exports.radiusVars=e.f,exports.shadowVars=e.s,exports.spacingVars=e.u,exports.typographyVars=e.i,exports.zIndexVars=e.o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.core.d.ts","sourceRoot":"","sources":["../src/design-system/package/index.core.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/design-system/package/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/design-system/package/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { LoomBox } from './ui/primitives/Box/adapters/Box.element.ts';
|
|
2
|
+
export { LoomStack } from './ui/primitives/Stack/adapters/Stack.element.ts';
|
|
3
|
+
export { LoomInline } from './ui/primitives/Inline/adapters/Inline.element.ts';
|
|
4
|
+
export { LoomText } from './ui/primitives/Text/adapters/Text.element.ts';
|
|
5
|
+
export { LoomButton } from './ui/primitives/Button/adapters/Button.element.ts';
|
|
6
|
+
//# sourceMappingURL=index.elements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.elements.d.ts","sourceRoot":"","sources":["../src/design-system/package/index.elements.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,OAAO,EAAE,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC"}
|