brutx-ui-vue 0.6.7 → 0.6.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/dist/Calendar-DnDzwzaj.cjs +1 -0
- package/dist/{Calendar-B2OpMuEI.js → Calendar-dfg0dZ0S.js} +4 -4
- package/dist/{SubmitButton-I-528o7V.js → SubmitButton-D9g83dIg.js} +5 -5
- package/dist/SubmitButton-DiM7ipXS.cjs +1 -0
- package/dist/brutalism-plugin.cjs +1 -1
- package/dist/brutalism-plugin.js +6 -0
- package/dist/brutx-ui-vue.css +1 -1
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.js +1 -1
- package/dist/components/accordion/Accordion.vue.d.ts.map +1 -1
- package/dist/components/accordion/AccordionContent.vue.d.ts.map +1 -1
- package/dist/components/accordion/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/accordion/AccordionTrigger.vue.d.ts.map +1 -1
- package/dist/components/blog-list-page/BlogListPage.vue.d.ts.map +1 -1
- package/dist/components/carousel/Carousel.vue.d.ts +1 -0
- package/dist/components/carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/carousel/CarouselItem.vue.d.ts +3 -1
- package/dist/components/carousel/CarouselItem.vue.d.ts.map +1 -1
- package/dist/components/chat-bubble/ChatBubble.vue.d.ts +1 -0
- package/dist/components/chat-bubble/ChatBubble.vue.d.ts.map +1 -1
- package/dist/components/checkbox/Checkbox.vue.d.ts +1 -0
- package/dist/components/checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/code-block/CodeBlock.vue.d.ts.map +1 -1
- package/dist/components/counter/Counter.vue.d.ts +1 -0
- package/dist/components/counter/Counter.vue.d.ts.map +1 -1
- package/dist/components/kanban/KanbanBoard.vue.d.ts.map +1 -1
- package/dist/components/kbd/Kbd.vue.d.ts +1 -0
- package/dist/components/kbd/Kbd.vue.d.ts.map +1 -1
- package/dist/components/number-input/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/profile-page/ProfilePage.vue.d.ts.map +1 -1
- package/dist/components/quick-actions/QuickActions.vue.d.ts.map +1 -1
- package/dist/components/radio-group/RadioGroupItem.vue.d.ts +1 -0
- package/dist/components/radio-group/RadioGroupItem.vue.d.ts.map +1 -1
- package/dist/components/sketchy-chart/SketchyChart.vue.d.ts.map +1 -1
- package/dist/components/stepper/Stepper.vue.d.ts +1 -0
- package/dist/components/stepper/Stepper.vue.d.ts.map +1 -1
- package/dist/components/switch/Switch.vue.d.ts +1 -0
- package/dist/components/switch/Switch.vue.d.ts.map +1 -1
- package/dist/components/tabs-nav/TabsNav.vue.d.ts.map +1 -1
- package/dist/components/tags-input/TagsInput.vue.d.ts.map +1 -1
- package/dist/components/tags-input/TagsInputInput.vue.d.ts.map +1 -1
- package/dist/components/tags-input/TagsInputItem.vue.d.ts.map +1 -1
- package/dist/components/tags-input/TagsInputItemDelete.vue.d.ts.map +1 -1
- package/dist/components/tags-input/TagsInputItemText.vue.d.ts.map +1 -1
- package/dist/components/tree-view/TreeView.vue.d.ts +1 -0
- package/dist/components/tree-view/TreeView.vue.d.ts.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +286 -286
- package/dist/styles.css +1 -1
- package/dist/submit-button.cjs +1 -1
- package/dist/submit-button.js +1 -1
- package/package.json +1 -1
- package/dist/Calendar-DClOvaNI.cjs +0 -1
- package/dist/SubmitButton-BvVRJYzO.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./utils-BC5WDCkH.cjs");let t=require("vue"),n=require("@lucide/vue"),r=require("v-calendar");var i={class:`font-black text-xs sm:text-sm tracking-tight uppercase text-brutal-fg`},a=(0,t.defineComponent)({__name:`Calendar`,props:{modelValue:{default:void 0},isRange:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},class:{default:void 0}},emits:[`update:modelValue`],setup(a,{emit:o}){let s=a,c=o,l=(0,t.computed)(()=>e.t(`p-2 sm:p-3`,`bg-brutal-bg text-brutal-fg`,`border-3 border-brutal`,`shadow-brutal`,`w-fit max-w-full overflow-x-auto`,s.disabled?`opacity-50 pointer-events-none`:``,s.class)),u=(0,t.computed)(()=>s.isRange&&Array.isArray(s.modelValue)&&s.modelValue.length===2?{start:s.modelValue[0],end:s.modelValue[1]}:s.isRange?null:s.modelValue instanceof Date?s.modelValue:null);function d(e){s.disabled||(s.isRange?e&&typeof e==`object`&&`start`in e&&`end`in e?c(`update:modelValue`,[e.start,e.end]):c(`update:modelValue`,null):e instanceof Date||e===null?c(`update:modelValue`,e):c(`update:modelValue`,null))}function f(e){s.disabled||e&&typeof e==`object`&&`start`in e&&`end`in e&&c(`update:modelValue`,[e.start,e.end])}let p=(0,t.computed)(()=>({highlight:{class:`brutal-selected`,contentClass:`brutal-selected-content`}})),m=(0,t.computed)(()=>({highlight:{class:`brutal-range`,contentClass:`brutal-range-content`}})),h=(0,t.computed)(()=>e.t(`flex h-6 w-6 sm:h-8 sm:w-8 items-center justify-center text-[10px] sm:text-xs font-semibold transition-all duration-100 hover:bg-brutal-secondary hover:text-brutal-secondary-foreground hover:font-bold hover:shadow-brutal-sm cursor-pointer border-3 border-brutal/10`,`active:translate-y-[var(--brutal-pressed-offset,2px)] active:shadow-none transition-all`)),g=(0,t.computed)(()=>`text-brutal-muted-foreground opacity-40`),_=(0,t.computed)(()=>`opacity-40 cursor-not-allowed`);function v(t,n){let r=!t.inMonth;return e.t(h.value,n,t.isToday?`bg-brutal-secondary text-brutal-secondary-foreground font-black border-3 border-brutal`:``,r?g.value:``,t.isDisabled?_.value:``)}return(e,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.DatePicker),{"model-value":u.value,mode:`date`,"is-range":a.isRange,class:(0,t.normalizeClass)(l.value),"select-attribute":p.value,"drag-attribute":m.value,"trim-weeks":``,"first-day-of-week":1,popover:!1,"onUpdate:modelValue":d,onDrag:f},{"header-prev-button":(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.ChevronLeft),{class:`w-4 h-4`})]),"header-title":(0,t.withCtx)(({title:e})=>[(0,t.createElementVNode)(`span`,i,(0,t.toDisplayString)(e),1)]),"header-next-button":(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.ChevronRight),{class:`w-4 h-4`})]),"day-content":(0,t.withCtx)(({day:e,dayProps:n,dayEvents:r})=>[(0,t.createElementVNode)(`div`,(0,t.mergeProps)(n,{class:v(e,n.class)},(0,t.toHandlers)(r,!0)),(0,t.toDisplayString)(e.label),17)]),_:1},8,[`model-value`,`is-range`,`class`,`select-attribute`,`drag-attribute`]))}}),o=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},s=o(a,[[`__scopeId`,`data-v-c1992566`]]);Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
|
@@ -35,10 +35,10 @@ var g = { class: "font-black text-xs sm:text-sm tracking-tight uppercase text-br
|
|
|
35
35
|
} })), T = t(() => ({ highlight: {
|
|
36
36
|
class: "brutal-range",
|
|
37
37
|
contentClass: "brutal-range-content"
|
|
38
|
-
} })), E = t(() => e("flex h-6 w-6 sm:h-8 sm:w-8 items-center justify-center text-[10px] sm:text-xs font-semibold transition-all duration-100 hover:bg-brutal-secondary hover:text-brutal-
|
|
38
|
+
} })), E = t(() => e("flex h-6 w-6 sm:h-8 sm:w-8 items-center justify-center text-[10px] sm:text-xs font-semibold transition-all duration-100 hover:bg-brutal-secondary hover:text-brutal-secondary-foreground hover:font-bold hover:shadow-brutal-sm cursor-pointer border-3 border-brutal/10", "active:translate-y-[var(--brutal-pressed-offset,2px)] active:shadow-none transition-all")), D = t(() => "text-brutal-muted-foreground opacity-40"), O = t(() => "opacity-40 cursor-not-allowed");
|
|
39
39
|
function k(t, n) {
|
|
40
40
|
let r = !t.inMonth;
|
|
41
|
-
return e(E.value, n, t.isToday ? "bg-brutal-secondary text-brutal-
|
|
41
|
+
return e(E.value, n, t.isToday ? "bg-brutal-secondary text-brutal-secondary-foreground font-black border-3 border-brutal" : "", r ? D.value : "", t.isDisabled ? O.value : "");
|
|
42
42
|
}
|
|
43
43
|
return (e, t) => (c(), n(d(h), {
|
|
44
44
|
"model-value": x.value,
|
|
@@ -56,7 +56,7 @@ var g = { class: "font-black text-xs sm:text-sm tracking-tight uppercase text-br
|
|
|
56
56
|
"header-prev-button": f(() => [i(d(p), { class: "w-4 h-4" })]),
|
|
57
57
|
"header-title": f(({ title: e }) => [r("span", g, l(e), 1)]),
|
|
58
58
|
"header-next-button": f(() => [i(d(m), { class: "w-4 h-4" })]),
|
|
59
|
-
"day-content": f(({ day: e, dayProps: t, dayEvents: n }) => [r("div", o(t,
|
|
59
|
+
"day-content": f(({ day: e, dayProps: t, dayEvents: n }) => [r("div", o(t, { class: k(e, t.class) }, u(n, !0)), l(e.label), 17)]),
|
|
60
60
|
_: 1
|
|
61
61
|
}, 8, [
|
|
62
62
|
"model-value",
|
|
@@ -70,6 +70,6 @@ var g = { class: "font-black text-xs sm:text-sm tracking-tight uppercase text-br
|
|
|
70
70
|
let n = e.__vccOpts || e;
|
|
71
71
|
for (let [e, r] of t) n[e] = r;
|
|
72
72
|
return n;
|
|
73
|
-
}, y = /*#__PURE__*/ v(_, [["__scopeId", "data-v-
|
|
73
|
+
}, y = /*#__PURE__*/ v(_, [["__scopeId", "data-v-c1992566"]]);
|
|
74
74
|
//#endregion
|
|
75
75
|
export { v as n, y as t };
|
|
@@ -48,27 +48,27 @@ var v = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = e, b = (e
|
|
|
48
48
|
"hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5"
|
|
49
49
|
],
|
|
50
50
|
primary: [
|
|
51
|
-
"bg-brutal-primary text-brutal-
|
|
51
|
+
"bg-brutal-primary text-brutal-primary-foreground",
|
|
52
52
|
"shadow-brutal",
|
|
53
53
|
"hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5"
|
|
54
54
|
],
|
|
55
55
|
secondary: [
|
|
56
|
-
"bg-brutal-secondary text-brutal-
|
|
56
|
+
"bg-brutal-secondary text-brutal-secondary-foreground",
|
|
57
57
|
"shadow-brutal",
|
|
58
58
|
"hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5"
|
|
59
59
|
],
|
|
60
60
|
accent: [
|
|
61
|
-
"bg-brutal-accent text-brutal-
|
|
61
|
+
"bg-brutal-accent text-brutal-accent-foreground",
|
|
62
62
|
"shadow-brutal",
|
|
63
63
|
"hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5"
|
|
64
64
|
],
|
|
65
65
|
danger: [
|
|
66
|
-
"bg-brutal-destructive text-brutal-
|
|
66
|
+
"bg-brutal-destructive text-brutal-destructive-foreground",
|
|
67
67
|
"shadow-brutal",
|
|
68
68
|
"hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5"
|
|
69
69
|
],
|
|
70
70
|
success: [
|
|
71
|
-
"bg-brutal-success text-brutal-
|
|
71
|
+
"bg-brutal-success text-brutal-success-foreground",
|
|
72
72
|
"shadow-brutal",
|
|
73
73
|
"hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5"
|
|
74
74
|
],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./utils-BC5WDCkH.cjs"),t=require("./zh-CN-COqbr4dh.cjs");let n=require("vue"),r=require("@lucide/vue");var i=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,a=e.n,o=(e,t)=>n=>{if(t?.variants==null)return a(e,n?.class,n?.className);let{variants:r,defaultVariants:o}=t,s=Object.keys(r).map(e=>{let t=n?.[e],a=o?.[e];if(t===null)return null;let s=i(t)||i(a);return r[e][s]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return a(e,s,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...c}[t]):{...o,...c}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},s=o([`inline-flex items-center justify-center gap-2`,`border-3 border-brutal`,`font-black tracking-wide`,`transition-all duration-150`,`focus:outline focus:outline-[3px] focus:outline-brutal-ring focus:outline-offset-2`,`disabled:opacity-50 disabled:pointer-events-none`,`active:translate-y-[var(--brutal-pressed-offset,2px)] active:shadow-none`],{variants:{variant:{default:[`bg-brutal-bg text-brutal-fg`,`shadow-brutal`,`hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5`],primary:[`bg-brutal-primary text-brutal-primary-foreground`,`shadow-brutal`,`hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5`],secondary:[`bg-brutal-secondary text-brutal-secondary-foreground`,`shadow-brutal`,`hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5`],accent:[`bg-brutal-accent text-brutal-accent-foreground`,`shadow-brutal`,`hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5`],danger:[`bg-brutal-destructive text-brutal-destructive-foreground`,`shadow-brutal`,`hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5`],success:[`bg-brutal-success text-brutal-success-foreground`,`shadow-brutal`,`hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5`],outline:[`bg-transparent text-brutal-fg`,`shadow-brutal`,`hover:bg-brutal-fg hover:text-brutal-bg`,`hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5`],ghost:[`bg-transparent text-brutal-fg border-transparent`,`shadow-none`,`hover:bg-brutal-muted hover:border-brutal`],link:[`bg-transparent text-brutal-fg border-transparent`,`shadow-none underline-offset-4`,`hover:underline`]},size:{sm:`h-9 px-3 py-1 text-sm`,default:`h-11 px-5 py-2 text-base`,lg:`h-14 px-8 py-3 text-lg`,xl:`h-16 px-10 py-4 text-xl`,icon:`h-11 w-11 p-0`}},defaultVariants:{variant:`default`,size:`default`}}),c=Symbol(`brutx-ui-locale`);function l(e){(0,n.provide)(c,e)}function u(e,t){let n=t.split(`.`),r=e;for(let e of n){if(typeof r!=`object`||!r)return;r=r[e]}return typeof r==`string`?r:void 0}function d(e,t){return t?Object.entries(t).reduce((e,[t,n])=>e.split(`{${t}}`).join(String(n)),e):e}function f(){let e=(0,n.inject)(c,void 0),r=(0,n.computed)(()=>(e?(0,n.unref)(e):void 0)??t.t);function i(e,n){let i=u(r.value,e);if(i!==void 0)return d(i,n);let a=u(t.t,e);return a===void 0?e:d(a,n)}return{locale:r,t:i}}var p=[`disabled`,`aria-busy`],m=(0,n.defineComponent)({__name:`SubmitButton`,props:{variant:{default:`default`},size:{default:`default`},pendingText:{default:void 0},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},class:{default:void 0}},setup(t){let i=t,{t:a}=f(),o=(0,n.computed)(()=>i.pendingText??a(`submitButton.submitting`)),c=(0,n.computed)(()=>i.disabled||i.loading),l=(0,n.computed)(()=>e.t(s({variant:i.variant,size:i.size}),i.class));return(e,i)=>((0,n.openBlock)(),(0,n.createElementBlock)(`button`,{type:`submit`,class:(0,n.normalizeClass)(l.value),disabled:c.value,"aria-busy":t.loading},[t.loading?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(r.Loader2),{key:0,class:`h-4 w-4 animate-spin`,"aria-hidden":`true`})):(0,n.createCommentVNode)(``,!0),t.loading&&o.value?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[(0,n.createTextVNode)((0,n.toDisplayString)(o.value),1)],64)):(0,n.renderSlot)(e.$slots,`default`,{key:2})],10,p))}});Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return m}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=require("./chunk-C6qsp3rV.cjs").t(((e,t)=>{function n(e,t){return{handler:e,config:t}}n.withOptions=function(e,t=()=>({})){function n(n){return{handler:e(n),config:t(n)}}return n.__isOptionsFunction=!0,n},t.exports=n}))()(function({addUtilities:e,addComponents:t}){e({".nb-border":{borderWidth:`var(--brutal-border-width, 3px)`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`},".nb-border-2":{borderWidth:`2px`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`},".nb-border-4":{borderWidth:`4px`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`},".nb-shadow":{boxShadow:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`},".nb-shadow-sm":{boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) / 2) calc(var(--brutal-shadow-offset-y, 4px) / 2) 0px 0px var(--brutal-shadow-color, #000000)`},".nb-shadow-lg":{boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)`},".nb-shadow-xl":{boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) * 2) calc(var(--brutal-shadow-offset-y, 4px) * 2) 0px 0px var(--brutal-shadow-color, #000000)`},".nb-press":{transform:`translateY(var(--brutal-pressed-offset, 2px))`,boxShadow:`none`},".nb-press-sm":{transform:`translateY(calc(var(--brutal-pressed-offset, 2px) / 2))`,boxShadow:`none`},".nb-press-lg":{transform:`translateY(calc(var(--brutal-pressed-offset, 2px) * 1.5))`,boxShadow:`none`},".nb-font":{fontWeight:`900`,letterSpacing:`0.025em`},".nb-font-bold":{fontWeight:`800`,letterSpacing:`0.02em`},".nb-font-medium":{fontWeight:`700`,letterSpacing:`0.015em`},".nb-no-radius":{borderRadius:`var(--brutal-radius, 0px)`},".nb-transition":{transitionProperty:`transform, box-shadow`,transitionTimingFunction:`cubic-bezier(0.4, 0, 0.2, 1)`,transitionDuration:`150ms`}}),e({".nb-hover":{"&:hover":{transform:`translate(calc(var(--brutal-shadow-offset-x, 4px) / -2), calc(var(--brutal-shadow-offset-y, 4px) / -2))`,boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)`}},".nb-active":{"&:active":{transform:`translateY(var(--brutal-pressed-offset, 2px))`,boxShadow:`none`}},".nb-focus":{"&:focus":{outline:`3px solid var(--brutal-ring, #000000)`,outlineOffset:`2px`},"&:focus-visible":{outline:`3px solid var(--brutal-ring, #000000)`,outlineOffset:`2px`}},".nb-disabled":{"&:disabled":{opacity:`0.5`,cursor:`not-allowed`,pointerEvents:`none`}}}),t({".nb-btn":{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,borderWidth:`var(--brutal-border-width, 3px)`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`,backgroundColor:`var(--brutal-bg, #ffffff)`,boxShadow:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`,fontWeight:`900`,letterSpacing:`0.025em`,borderRadius:`var(--brutal-radius, 0px)`,transitionProperty:`transform, box-shadow`,transitionTimingFunction:`cubic-bezier(0.4, 0, 0.2, 1)`,transitionDuration:`150ms`,cursor:`pointer`,"&:hover":{transform:`translate(calc(var(--brutal-shadow-offset-x, 4px) / -2), calc(var(--brutal-shadow-offset-y, 4px) / -2))`,boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)`},"&:active":{transform:`translateY(var(--brutal-pressed-offset, 2px))`,boxShadow:`none`},"&:disabled":{opacity:`0.5`,cursor:`not-allowed`,pointerEvents:`none`}},".nb-card":{borderWidth:`var(--brutal-border-width, 3px)`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`,backgroundColor:`var(--brutal-bg, #ffffff)`,boxShadow:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`,borderRadius:`var(--brutal-radius, 0px)`,padding:`1rem`},".nb-input":{borderWidth:`var(--brutal-border-width, 3px)`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`,backgroundColor:`var(--brutal-bg, #ffffff)`,borderRadius:`var(--brutal-radius, 0px)`,fontWeight:`500`,"&:focus":{outline:`3px solid var(--brutal-ring, #000000)`,outlineOffset:`2px`,boxShadow:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`},"&::placeholder":{color:`var(--brutal-placeholder, #9CA3AF)`,fontWeight:`400`}}})},{theme:{extend:{colors:{brutal:{bg:`var(--brutal-bg)`,fg:`var(--brutal-fg)`,primary:`var(--brutal-primary)`,secondary:`var(--brutal-secondary)`,accent:`var(--brutal-accent)`,destructive:`var(--brutal-destructive)`,success:`var(--brutal-success)`,muted:`var(--brutal-muted)`,"muted-foreground":`var(--brutal-muted-foreground)`,ring:`var(--brutal-ring)`,info:`var(--brutal-info)`,overlay:`var(--brutal-overlay)`,placeholder:`var(--brutal-placeholder)`}},boxShadow:{brutal:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`,"brutal-sm":`calc(var(--brutal-shadow-offset-x, 4px) / 2) calc(var(--brutal-shadow-offset-y, 4px) / 2) 0px 0px var(--brutal-shadow-color, #000000)`,"brutal-lg":`calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)`,"brutal-xl":`calc(var(--brutal-shadow-offset-x, 4px) * 2) calc(var(--brutal-shadow-offset-y, 4px) * 2) 0px 0px var(--brutal-shadow-color, #000000)`},borderWidth:{3:`3px`},borderRadius:{brutal:`var(--brutal-radius, 0px)`},borderColor:{brutal:`var(--brutal-border-color, #000000)`}}}});module.exports=e;
|
|
1
|
+
var e=require("./chunk-C6qsp3rV.cjs").t(((e,t)=>{function n(e,t){return{handler:e,config:t}}n.withOptions=function(e,t=()=>({})){function n(n){return{handler:e(n),config:t(n)}}return n.__isOptionsFunction=!0,n},t.exports=n}))()(function({addUtilities:e,addComponents:t}){e({".nb-border":{borderWidth:`var(--brutal-border-width, 3px)`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`},".nb-border-2":{borderWidth:`2px`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`},".nb-border-4":{borderWidth:`4px`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`},".nb-shadow":{boxShadow:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`},".nb-shadow-sm":{boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) / 2) calc(var(--brutal-shadow-offset-y, 4px) / 2) 0px 0px var(--brutal-shadow-color, #000000)`},".nb-shadow-lg":{boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)`},".nb-shadow-xl":{boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) * 2) calc(var(--brutal-shadow-offset-y, 4px) * 2) 0px 0px var(--brutal-shadow-color, #000000)`},".nb-press":{transform:`translateY(var(--brutal-pressed-offset, 2px))`,boxShadow:`none`},".nb-press-sm":{transform:`translateY(calc(var(--brutal-pressed-offset, 2px) / 2))`,boxShadow:`none`},".nb-press-lg":{transform:`translateY(calc(var(--brutal-pressed-offset, 2px) * 1.5))`,boxShadow:`none`},".nb-font":{fontWeight:`900`,letterSpacing:`0.025em`},".nb-font-bold":{fontWeight:`800`,letterSpacing:`0.02em`},".nb-font-medium":{fontWeight:`700`,letterSpacing:`0.015em`},".nb-no-radius":{borderRadius:`var(--brutal-radius, 0px)`},".nb-transition":{transitionProperty:`transform, box-shadow`,transitionTimingFunction:`cubic-bezier(0.4, 0, 0.2, 1)`,transitionDuration:`150ms`}}),e({".nb-hover":{"&:hover":{transform:`translate(calc(var(--brutal-shadow-offset-x, 4px) / -2), calc(var(--brutal-shadow-offset-y, 4px) / -2))`,boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)`}},".nb-active":{"&:active":{transform:`translateY(var(--brutal-pressed-offset, 2px))`,boxShadow:`none`}},".nb-focus":{"&:focus":{outline:`3px solid var(--brutal-ring, #000000)`,outlineOffset:`2px`},"&:focus-visible":{outline:`3px solid var(--brutal-ring, #000000)`,outlineOffset:`2px`}},".nb-disabled":{"&:disabled":{opacity:`0.5`,cursor:`not-allowed`,pointerEvents:`none`}}}),t({".nb-btn":{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,borderWidth:`var(--brutal-border-width, 3px)`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`,backgroundColor:`var(--brutal-bg, #ffffff)`,boxShadow:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`,fontWeight:`900`,letterSpacing:`0.025em`,borderRadius:`var(--brutal-radius, 0px)`,transitionProperty:`transform, box-shadow`,transitionTimingFunction:`cubic-bezier(0.4, 0, 0.2, 1)`,transitionDuration:`150ms`,cursor:`pointer`,"&:hover":{transform:`translate(calc(var(--brutal-shadow-offset-x, 4px) / -2), calc(var(--brutal-shadow-offset-y, 4px) / -2))`,boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)`},"&:active":{transform:`translateY(var(--brutal-pressed-offset, 2px))`,boxShadow:`none`},"&:disabled":{opacity:`0.5`,cursor:`not-allowed`,pointerEvents:`none`}},".nb-card":{borderWidth:`var(--brutal-border-width, 3px)`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`,backgroundColor:`var(--brutal-bg, #ffffff)`,boxShadow:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`,borderRadius:`var(--brutal-radius, 0px)`,padding:`1rem`},".nb-input":{borderWidth:`var(--brutal-border-width, 3px)`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`,backgroundColor:`var(--brutal-bg, #ffffff)`,borderRadius:`var(--brutal-radius, 0px)`,fontWeight:`500`,"&:focus":{outline:`3px solid var(--brutal-ring, #000000)`,outlineOffset:`2px`,boxShadow:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`},"&::placeholder":{color:`var(--brutal-placeholder, #9CA3AF)`,fontWeight:`400`}}})},{theme:{extend:{colors:{brutal:{bg:`var(--brutal-bg)`,fg:`var(--brutal-fg)`,primary:`var(--brutal-primary)`,"primary-foreground":`var(--brutal-primary-foreground)`,secondary:`var(--brutal-secondary)`,"secondary-foreground":`var(--brutal-secondary-foreground)`,accent:`var(--brutal-accent)`,"accent-foreground":`var(--brutal-accent-foreground)`,destructive:`var(--brutal-destructive)`,"destructive-foreground":`var(--brutal-destructive-foreground)`,success:`var(--brutal-success)`,"success-foreground":`var(--brutal-success-foreground)`,muted:`var(--brutal-muted)`,"muted-foreground":`var(--brutal-muted-foreground)`,ring:`var(--brutal-ring)`,info:`var(--brutal-info)`,"info-foreground":`var(--brutal-info-foreground)`,overlay:`var(--brutal-overlay)`,placeholder:`var(--brutal-placeholder)`}},boxShadow:{brutal:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`,"brutal-sm":`calc(var(--brutal-shadow-offset-x, 4px) / 2) calc(var(--brutal-shadow-offset-y, 4px) / 2) 0px 0px var(--brutal-shadow-color, #000000)`,"brutal-lg":`calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)`,"brutal-xl":`calc(var(--brutal-shadow-offset-x, 4px) * 2) calc(var(--brutal-shadow-offset-y, 4px) * 2) 0px 0px var(--brutal-shadow-color, #000000)`},borderWidth:{3:`3px`},borderRadius:{brutal:`var(--brutal-radius, 0px)`},borderColor:{brutal:`var(--brutal-border-color, #000000)`}}}});module.exports=e;
|
package/dist/brutalism-plugin.js
CHANGED
|
@@ -155,14 +155,20 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
155
155
|
bg: "var(--brutal-bg)",
|
|
156
156
|
fg: "var(--brutal-fg)",
|
|
157
157
|
primary: "var(--brutal-primary)",
|
|
158
|
+
"primary-foreground": "var(--brutal-primary-foreground)",
|
|
158
159
|
secondary: "var(--brutal-secondary)",
|
|
160
|
+
"secondary-foreground": "var(--brutal-secondary-foreground)",
|
|
159
161
|
accent: "var(--brutal-accent)",
|
|
162
|
+
"accent-foreground": "var(--brutal-accent-foreground)",
|
|
160
163
|
destructive: "var(--brutal-destructive)",
|
|
164
|
+
"destructive-foreground": "var(--brutal-destructive-foreground)",
|
|
161
165
|
success: "var(--brutal-success)",
|
|
166
|
+
"success-foreground": "var(--brutal-success-foreground)",
|
|
162
167
|
muted: "var(--brutal-muted)",
|
|
163
168
|
"muted-foreground": "var(--brutal-muted-foreground)",
|
|
164
169
|
ring: "var(--brutal-ring)",
|
|
165
170
|
info: "var(--brutal-info)",
|
|
171
|
+
"info-foreground": "var(--brutal-info-foreground)",
|
|
166
172
|
overlay: "var(--brutal-overlay)",
|
|
167
173
|
placeholder: "var(--brutal-placeholder)"
|
|
168
174
|
} },
|