@trackunit/css-core 0.0.49-alpha-01a8ce128.0 → 0.0.49

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/css-core",
3
- "version": "0.0.49-alpha-01a8ce128.0",
3
+ "version": "0.0.49",
4
4
  "main": "src/lib/core.css",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "license": "SEE LICENSE IN LICENSE.txt"
@@ -187,4 +187,38 @@
187
187
  --color-unknown-700: var(--color-neutral-700);
188
188
  --color-unknown-800: var(--color-neutral-800);
189
189
  --color-unknown-900: var(--color-neutral-900);
190
+
191
+ /* RENTAL STATUS COLORS */
192
+
193
+ /* On Rent (Custom rental-only color)*/
194
+ --color-onRent-100: 223 244 254;
195
+ --color-onRent-600: 90 200 250;
196
+
197
+ /* Returned (Custom rental-only color)*/
198
+ --color-returned-100: 231 231 251;
199
+ --color-returned-600: 94 92 230;
200
+
201
+ /* Available (Custom rental-only color)*/
202
+ --color-available-100: 206 255 232;
203
+ --color-available-600: 0 166 88;
204
+
205
+ /* Pickup ready (Custom rental-only color)*/
206
+ --color-pickupReady-100: 255 236 209;
207
+ --color-pickupReady-600: 255 149 0;
208
+
209
+ /* In transfer (Custom rental-only color)*/
210
+ --color-transfer-100: 255 248 217;
211
+ --color-transfer-600: 253 208 8;
212
+
213
+ /* In repair (Custom rental-only color)*/
214
+ --color-inRepair-100: 255 233 233;
215
+ --color-inRepair-600: 255 90 90;
216
+
217
+ /* Other rental status (Custom rental-only color)*/
218
+ --color-returned-100: 230 202 255;
219
+ --color-returned-600: 176 90 255;
220
+
221
+ /* Other rental status (Custom rental-only color)*/
222
+ --color-otherRentalStatus-100: 238 239 239;
223
+ --color-otherRentalStatus-600: 151 154 154;
190
224
  }
package/tailwind.base.js CHANGED
@@ -1 +1 @@
1
- const fs=require("fs"),cssTheme=fs.readFileSync(`${__dirname}/src/lib/theme/theme.css`,"utf8"),tailwindTheme=fs.readFileSync(`${__dirname}/src/lib/theme/tailwind-custom-properties.css`,"utf8"),customProperties=fs.readFileSync(`${__dirname}/src/lib/theme/custom-properties.css`,"utf8");function getColorValueFromCSSVariable(e){const o=getValueOfCSSCustomProperty(e,cssTheme);return"unknown value"===o?getValueOfCSSCustomProperty(e,tailwindTheme):o.includes("var")?getValueOfCSSCustomProperty(o.replace("var(","").replace(")",""),tailwindTheme):o}function withOpacityValue(e){return({opacityValue:o})=>void 0===o?`rgb(var(${e}))`:`rgb(var(${e}) / ${o}) /* rgb(${getColorValueFromCSSVariable(e)}) */`}function fullColorSchemeFromColorName(e,o=["50","100","200","300","400","500","600","700","800","900"]){const t={};return o.forEach((o=>{t[o]=withOpacityValue(`--color-${e}-${o}`)})),t}function getValueOfCSSCustomProperty(e,o){return new RegExp(`${e}:\\s*(.*?);`,"g").exec(o)?.[1]??"unknown value"}function withCustomPropertyValueAsComment(e,o="",t=tailwindTheme){const m=getValueOfCSSCustomProperty(e,t);return`${m?`/* ${m}${o} */`:""} var(${e})${o}`}module.exports={theme:{screens:{xs:"0px",sm:"480px",md:"768px",lg:"1024px",xl:"1200px","2xl":"1600px","3xl":"1900px"},colors:({colors:e})=>({primary:fullColorSchemeFromColorName("primary"),accent:fullColorSchemeFromColorName("accent"),neutral:fullColorSchemeFromColorName("neutral"),info:fullColorSchemeFromColorName("info"),success:fullColorSchemeFromColorName("success"),warning:fullColorSchemeFromColorName("warning"),danger:fullColorSchemeFromColorName("danger"),good:fullColorSchemeFromColorName("good"),low:fullColorSchemeFromColorName("low"),critical:fullColorSchemeFromColorName("critical"),working:fullColorSchemeFromColorName("working"),idle:fullColorSchemeFromColorName("idle"),stopped:fullColorSchemeFromColorName("stopped"),unknown:fullColorSchemeFromColorName("unknown"),inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:fullColorSchemeFromColorName("slate"),gray:fullColorSchemeFromColorName("gray"),zinc:fullColorSchemeFromColorName("zinc"),stone:fullColorSchemeFromColorName("stone"),red:fullColorSchemeFromColorName("red"),orange:fullColorSchemeFromColorName("orange"),amber:fullColorSchemeFromColorName("amber"),yellow:fullColorSchemeFromColorName("yellow"),lime:fullColorSchemeFromColorName("lime"),green:fullColorSchemeFromColorName("green"),emerald:fullColorSchemeFromColorName("emerald"),teal:fullColorSchemeFromColorName("teal"),cyan:fullColorSchemeFromColorName("cyan"),sky:fullColorSchemeFromColorName("sky"),blue:fullColorSchemeFromColorName("blue"),indigo:fullColorSchemeFromColorName("indigo"),violet:fullColorSchemeFromColorName("violet"),purple:fullColorSchemeFromColorName("purple"),fuchsia:fullColorSchemeFromColorName("fuchsia"),pink:fullColorSchemeFromColorName("pink"),rose:fullColorSchemeFromColorName("rose")}),spacing:{px:withCustomPropertyValueAsComment("--spacing-px"),0:withCustomPropertyValueAsComment("--spacing-0"),.5:withCustomPropertyValueAsComment("--spacing-0-5"),1:withCustomPropertyValueAsComment("--spacing-1"),1.5:withCustomPropertyValueAsComment("--spacing-1-5"),2:withCustomPropertyValueAsComment("--spacing-2"),2.5:withCustomPropertyValueAsComment("--spacing-2-5"),3:withCustomPropertyValueAsComment("--spacing-3"),3.5:withCustomPropertyValueAsComment("--spacing-3-5"),4:withCustomPropertyValueAsComment("--spacing-4"),5:withCustomPropertyValueAsComment("--spacing-5"),6:withCustomPropertyValueAsComment("--spacing-6"),7:withCustomPropertyValueAsComment("--spacing-7"),8:withCustomPropertyValueAsComment("--spacing-8"),9:withCustomPropertyValueAsComment("--spacing-9"),10:withCustomPropertyValueAsComment("--spacing-10"),11:withCustomPropertyValueAsComment("--spacing-11"),12:withCustomPropertyValueAsComment("--spacing-12"),14:withCustomPropertyValueAsComment("--spacing-14"),16:withCustomPropertyValueAsComment("--spacing-16"),20:withCustomPropertyValueAsComment("--spacing-20"),24:withCustomPropertyValueAsComment("--spacing-24"),28:withCustomPropertyValueAsComment("--spacing-28"),32:withCustomPropertyValueAsComment("--spacing-32"),36:withCustomPropertyValueAsComment("--spacing-36"),40:withCustomPropertyValueAsComment("--spacing-40"),44:withCustomPropertyValueAsComment("--spacing-44"),48:withCustomPropertyValueAsComment("--spacing-48"),52:withCustomPropertyValueAsComment("--spacing-52"),56:withCustomPropertyValueAsComment("--spacing-56"),60:withCustomPropertyValueAsComment("--spacing-60"),64:withCustomPropertyValueAsComment("--spacing-64"),72:withCustomPropertyValueAsComment("--spacing-72"),80:withCustomPropertyValueAsComment("--spacing-80"),96:withCustomPropertyValueAsComment("--spacing-96")},borderRadius:{none:withCustomPropertyValueAsComment("--border-radius-none"),sm:withCustomPropertyValueAsComment("--border-radius-sm"),DEFAULT:withCustomPropertyValueAsComment("--border-radius-DEFAULT"),md:withCustomPropertyValueAsComment("--border-radius-md"),lg:withCustomPropertyValueAsComment("--border-radius-lg"),xl:withCustomPropertyValueAsComment("--border-radius-xl"),"2xl":withCustomPropertyValueAsComment("--border-radius-2xl"),"3xl":withCustomPropertyValueAsComment("--border-radius-3xl"),full:withCustomPropertyValueAsComment("--border-radius-full")},boxShadow:{sm:withCustomPropertyValueAsComment("--box-shadow-sm"),DEFAULT:withCustomPropertyValueAsComment("--box-shadow-DEFAULT"),md:withCustomPropertyValueAsComment("--box-shadow-md"),lg:withCustomPropertyValueAsComment("--box-shadow-lg"),xl:withCustomPropertyValueAsComment("--box-shadow-xl"),"2xl":withCustomPropertyValueAsComment("--box-shadow-2xl"),inner:withCustomPropertyValueAsComment("--box-shadow-inner"),none:withCustomPropertyValueAsComment("--box-shadow-none"),active:withCustomPropertyValueAsComment("--box-shadow-active")},fontSize:{xs:[withCustomPropertyValueAsComment("--font-size-xs"),{lineHeight:withCustomPropertyValueAsComment("--line-height-xs")}],sm:[withCustomPropertyValueAsComment("--font-size-sm"),{lineHeight:withCustomPropertyValueAsComment("--line-height-sm")}],base:[withCustomPropertyValueAsComment("--font-size-base"),{lineHeight:withCustomPropertyValueAsComment("--line-height-base")}],lg:[withCustomPropertyValueAsComment("--font-size-lg"),{lineHeight:withCustomPropertyValueAsComment("--line-height-lg")}],xl:[withCustomPropertyValueAsComment("--font-size-xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-xl")}],"2xl":[withCustomPropertyValueAsComment("--font-size-2xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-2xl")}],"3xl":[withCustomPropertyValueAsComment("--font-size-3xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-3xl")}],"4xl":[withCustomPropertyValueAsComment("--font-size-4xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-4xl")}],"5xl":[withCustomPropertyValueAsComment("--font-size-5xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-5xl")}],"6xl":[withCustomPropertyValueAsComment("--font-size-6xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-6xl")}],"7xl":[withCustomPropertyValueAsComment("--font-size-7xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-7xl")}],"8xl":[withCustomPropertyValueAsComment("--font-size-8xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-8xl")}],"9xl":[withCustomPropertyValueAsComment("--font-size-9xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-9xl")}]},extend:{zIndex:{hidden:withCustomPropertyValueAsComment("--z-hidden","",customProperties),default:withCustomPropertyValueAsComment("--z-default","",customProperties),top:withCustomPropertyValueAsComment("--z-top","",customProperties),overlay:withCustomPropertyValueAsComment("--z-overlay","",customProperties),popover:withCustomPropertyValueAsComment("--z-popover","",customProperties),toast:withCustomPropertyValueAsComment("--z-toast","",customProperties)},keyframes:{copy:{from:{color:"green","border-color":"green"},to:{color:"initial","border-color":"initial"}}},animation:{copy:"copy 1s 1"},gridTemplateColumns:{"min-fr-min":"min-content minmax(0, 1fr) min-content","fr-min":"minmax(0, 1fr) min-content","min-fr":"min-content minmax(0, 1fr)"},gridTemplateRows:{"min-fr-min":"min-content minmax(0, 1fr) min-content","fr-min":"minmax(0, 1fr) min-content","min-fr":"min-content minmax(0, 1fr)"}}}};
1
+ const fs=require("fs"),cssTheme=fs.readFileSync(`${__dirname}/src/lib/theme/theme.css`,"utf8"),tailwindTheme=fs.readFileSync(`${__dirname}/src/lib/theme/tailwind-custom-properties.css`,"utf8"),customProperties=fs.readFileSync(`${__dirname}/src/lib/theme/custom-properties.css`,"utf8");function getColorValueFromCSSVariable(e){const o=getValueOfCSSCustomProperty(e,cssTheme);return"unknown value"===o?getValueOfCSSCustomProperty(e,tailwindTheme):o.includes("var")?getValueOfCSSCustomProperty(o.replace("var(","").replace(")",""),tailwindTheme):o}function withOpacityValue(e){return({opacityValue:o})=>void 0===o?`rgb(var(${e}))`:`rgb(var(${e}) / ${o}) /* rgb(${getColorValueFromCSSVariable(e)}) */`}function fullColorSchemeFromColorName(e,o=["50","100","200","300","400","500","600","700","800","900"]){const t={};return o.forEach((o=>{t[o]=withOpacityValue(`--color-${e}-${o}`)})),t}function getValueOfCSSCustomProperty(e,o){return new RegExp(`${e}:\\s*(.*?);`,"g").exec(o)?.[1]??"unknown value"}function withCustomPropertyValueAsComment(e,o="",t=tailwindTheme){const r=getValueOfCSSCustomProperty(e,t);return`${r?`/* ${r}${o} */`:""} var(${e})${o}`}module.exports={theme:{screens:{xs:"0px",sm:"480px",md:"768px",lg:"1024px",xl:"1200px","2xl":"1600px","3xl":"1900px"},colors:({colors:e})=>({primary:fullColorSchemeFromColorName("primary"),accent:fullColorSchemeFromColorName("accent"),neutral:fullColorSchemeFromColorName("neutral"),info:fullColorSchemeFromColorName("info"),success:fullColorSchemeFromColorName("success"),warning:fullColorSchemeFromColorName("warning"),danger:fullColorSchemeFromColorName("danger"),good:fullColorSchemeFromColorName("good"),low:fullColorSchemeFromColorName("low"),critical:fullColorSchemeFromColorName("critical"),working:fullColorSchemeFromColorName("working"),idle:fullColorSchemeFromColorName("idle"),stopped:fullColorSchemeFromColorName("stopped"),unknown:fullColorSchemeFromColorName("unknown"),onRent:fullColorSchemeFromColorName("onRent",["100","600"]),available:fullColorSchemeFromColorName("available",["100","600"]),pickupReady:fullColorSchemeFromColorName("pickupReady",["100","600"]),transfer:fullColorSchemeFromColorName("transfer",["100","600"]),inRepair:fullColorSchemeFromColorName("inRepair",["100","600"]),returned:fullColorSchemeFromColorName("returned",["100","600"]),otherRentalStatus:fullColorSchemeFromColorName("otherRentalStatus",["100","600"]),inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:fullColorSchemeFromColorName("slate"),gray:fullColorSchemeFromColorName("gray"),zinc:fullColorSchemeFromColorName("zinc"),stone:fullColorSchemeFromColorName("stone"),red:fullColorSchemeFromColorName("red"),orange:fullColorSchemeFromColorName("orange"),amber:fullColorSchemeFromColorName("amber"),yellow:fullColorSchemeFromColorName("yellow"),lime:fullColorSchemeFromColorName("lime"),green:fullColorSchemeFromColorName("green"),emerald:fullColorSchemeFromColorName("emerald"),teal:fullColorSchemeFromColorName("teal"),cyan:fullColorSchemeFromColorName("cyan"),sky:fullColorSchemeFromColorName("sky"),blue:fullColorSchemeFromColorName("blue"),indigo:fullColorSchemeFromColorName("indigo"),violet:fullColorSchemeFromColorName("violet"),purple:fullColorSchemeFromColorName("purple"),fuchsia:fullColorSchemeFromColorName("fuchsia"),pink:fullColorSchemeFromColorName("pink"),rose:fullColorSchemeFromColorName("rose")}),spacing:{px:withCustomPropertyValueAsComment("--spacing-px"),0:withCustomPropertyValueAsComment("--spacing-0"),.5:withCustomPropertyValueAsComment("--spacing-0-5"),1:withCustomPropertyValueAsComment("--spacing-1"),1.5:withCustomPropertyValueAsComment("--spacing-1-5"),2:withCustomPropertyValueAsComment("--spacing-2"),2.5:withCustomPropertyValueAsComment("--spacing-2-5"),3:withCustomPropertyValueAsComment("--spacing-3"),3.5:withCustomPropertyValueAsComment("--spacing-3-5"),4:withCustomPropertyValueAsComment("--spacing-4"),5:withCustomPropertyValueAsComment("--spacing-5"),6:withCustomPropertyValueAsComment("--spacing-6"),7:withCustomPropertyValueAsComment("--spacing-7"),8:withCustomPropertyValueAsComment("--spacing-8"),9:withCustomPropertyValueAsComment("--spacing-9"),10:withCustomPropertyValueAsComment("--spacing-10"),11:withCustomPropertyValueAsComment("--spacing-11"),12:withCustomPropertyValueAsComment("--spacing-12"),14:withCustomPropertyValueAsComment("--spacing-14"),16:withCustomPropertyValueAsComment("--spacing-16"),20:withCustomPropertyValueAsComment("--spacing-20"),24:withCustomPropertyValueAsComment("--spacing-24"),28:withCustomPropertyValueAsComment("--spacing-28"),32:withCustomPropertyValueAsComment("--spacing-32"),36:withCustomPropertyValueAsComment("--spacing-36"),40:withCustomPropertyValueAsComment("--spacing-40"),44:withCustomPropertyValueAsComment("--spacing-44"),48:withCustomPropertyValueAsComment("--spacing-48"),52:withCustomPropertyValueAsComment("--spacing-52"),56:withCustomPropertyValueAsComment("--spacing-56"),60:withCustomPropertyValueAsComment("--spacing-60"),64:withCustomPropertyValueAsComment("--spacing-64"),72:withCustomPropertyValueAsComment("--spacing-72"),80:withCustomPropertyValueAsComment("--spacing-80"),96:withCustomPropertyValueAsComment("--spacing-96")},borderRadius:{none:withCustomPropertyValueAsComment("--border-radius-none"),sm:withCustomPropertyValueAsComment("--border-radius-sm"),DEFAULT:withCustomPropertyValueAsComment("--border-radius-DEFAULT"),md:withCustomPropertyValueAsComment("--border-radius-md"),lg:withCustomPropertyValueAsComment("--border-radius-lg"),xl:withCustomPropertyValueAsComment("--border-radius-xl"),"2xl":withCustomPropertyValueAsComment("--border-radius-2xl"),"3xl":withCustomPropertyValueAsComment("--border-radius-3xl"),full:withCustomPropertyValueAsComment("--border-radius-full")},boxShadow:{sm:withCustomPropertyValueAsComment("--box-shadow-sm"),DEFAULT:withCustomPropertyValueAsComment("--box-shadow-DEFAULT"),md:withCustomPropertyValueAsComment("--box-shadow-md"),lg:withCustomPropertyValueAsComment("--box-shadow-lg"),xl:withCustomPropertyValueAsComment("--box-shadow-xl"),"2xl":withCustomPropertyValueAsComment("--box-shadow-2xl"),inner:withCustomPropertyValueAsComment("--box-shadow-inner"),none:withCustomPropertyValueAsComment("--box-shadow-none"),active:withCustomPropertyValueAsComment("--box-shadow-active")},fontSize:{xs:[withCustomPropertyValueAsComment("--font-size-xs"),{lineHeight:withCustomPropertyValueAsComment("--line-height-xs")}],sm:[withCustomPropertyValueAsComment("--font-size-sm"),{lineHeight:withCustomPropertyValueAsComment("--line-height-sm")}],base:[withCustomPropertyValueAsComment("--font-size-base"),{lineHeight:withCustomPropertyValueAsComment("--line-height-base")}],lg:[withCustomPropertyValueAsComment("--font-size-lg"),{lineHeight:withCustomPropertyValueAsComment("--line-height-lg")}],xl:[withCustomPropertyValueAsComment("--font-size-xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-xl")}],"2xl":[withCustomPropertyValueAsComment("--font-size-2xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-2xl")}],"3xl":[withCustomPropertyValueAsComment("--font-size-3xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-3xl")}],"4xl":[withCustomPropertyValueAsComment("--font-size-4xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-4xl")}],"5xl":[withCustomPropertyValueAsComment("--font-size-5xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-5xl")}],"6xl":[withCustomPropertyValueAsComment("--font-size-6xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-6xl")}],"7xl":[withCustomPropertyValueAsComment("--font-size-7xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-7xl")}],"8xl":[withCustomPropertyValueAsComment("--font-size-8xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-8xl")}],"9xl":[withCustomPropertyValueAsComment("--font-size-9xl"),{lineHeight:withCustomPropertyValueAsComment("--line-height-9xl")}]},extend:{zIndex:{hidden:withCustomPropertyValueAsComment("--z-hidden","",customProperties),default:withCustomPropertyValueAsComment("--z-default","",customProperties),top:withCustomPropertyValueAsComment("--z-top","",customProperties),overlay:withCustomPropertyValueAsComment("--z-overlay","",customProperties),popover:withCustomPropertyValueAsComment("--z-popover","",customProperties),toast:withCustomPropertyValueAsComment("--z-toast","",customProperties)},keyframes:{copy:{from:{color:"green","border-color":"green"},to:{color:"initial","border-color":"initial"}},fadeOut:{"0%":{opacity:1},"100%":{opacity:0}},fadeIn:{"0%":{opacity:0},"100%":{opacity:1}},pingSm:{"75%, 100%":{transform:"scale(1.5)",opacity:0}}},animation:{copy:"copy 1s 1","fade-out-slow":"fadeOut 3s ease-in-out forwards","fade-in-fast":"fadeIn 0.3s ease-in-out forwards","fade-out-fast":"fadeOut 0.3s ease-in-out forwards","ping-sm":"pingSm 1s cubic-bezier(0, 0, 0.2, 1) infinite"},gridTemplateColumns:{"min-fr-min":"min-content minmax(0, 1fr) min-content","fr-min":"minmax(0, 1fr) min-content","min-fr":"min-content minmax(0, 1fr)"},gridTemplateRows:{"min-fr-min":"min-content minmax(0, 1fr) min-content","fr-min":"minmax(0, 1fr) min-content","min-fr":"min-content minmax(0, 1fr)"}}}};