@trackunit/css-tailwind 0.0.17 → 0.0.20

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-tailwind",
3
- "version": "0.0.17",
3
+ "version": "0.0.20",
4
4
  "main": "./index.cjs",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -153,21 +153,141 @@ var import_plugin2 = __toESM(require_plugin());
153
153
  // libs/css/component-tokens/src/component-tokens/ComponentTokenDefinition.ts
154
154
  var AsComponentTokenDefinition = (designTokens) => designTokens;
155
155
 
156
+ // libs/css/component-tokens/src/component-tokens/components/Button.tokens.ts
157
+ var ButtonTokenDefinition = AsComponentTokenDefinition({
158
+ DEFAULT: {
159
+ "secondary-color": { backgroundColor: "rgb(var(--color-secondary-200))", color: "rgb(var(--color-secondary-600))" },
160
+ border: { borderRadius: "var(--border-radius-lg)" },
161
+ height: { height: "auto" },
162
+ width: { width: "auto", minWidth: "auto" }
163
+ },
164
+ "theme-marketing": {
165
+ "secondary-color": { backgroundColor: "rgb(var(--color-secondary-600))", color: "rgb(var(--color-secondary-50))" },
166
+ border: { borderRadius: "50px" },
167
+ height: { height: "55px" },
168
+ width: { width: "min-content", minWidth: "158px" }
169
+ }
170
+ });
171
+
156
172
  // libs/css/component-tokens/src/component-tokens/components/Card.tokens.ts
157
173
  var CardTokenDefinition = AsComponentTokenDefinition({
158
174
  DEFAULT: {
159
175
  border: { borderColor: "rgb(var(--color-slate-200))", borderRadius: "var(--border-radius-DEFAULT)" },
160
- shadow: { boxShadow: "var(--box-shadow-DEFAULT)" }
176
+ "popover-border": { borderRadius: "var(--border-radius-DEFAULT)" },
177
+ shadow: { boxShadow: "var(--box-shadow-DEFAULT)" },
178
+ spacing: { gap: "var(--spacing-3)", padding: "var(--spacing-3)" },
179
+ "spacing-sm": { gap: "var(--spacing-4)", padding: "var(--spacing-4)" },
180
+ "spacing-md": { gap: "var(--spacing-4)", padding: "var(--spacing-6)" }
161
181
  },
162
182
  "theme-marketing": {
163
183
  border: { borderColor: "rgba(0, 0, 0, 0)", borderRadius: "2rem" },
164
- shadow: { boxShadow: "0px 20px 48px rgba(73, 55, 54, 0.1)" }
184
+ "popover-border": { borderRadius: "1rem" },
185
+ shadow: { boxShadow: "0px 20px 48px rgba(73, 55, 54, 0.1)" },
186
+ spacing: { gap: "var(--spacing-1)", padding: "var(--spacing-1)" },
187
+ "spacing-sm": { gap: "var(--spacing-1)", padding: "var(--spacing-1)" },
188
+ "spacing-md": { gap: "var(--spacing-1)", padding: "var(--spacing-1)" }
189
+ }
190
+ });
191
+
192
+ // libs/css/component-tokens/src/component-tokens/components/Popover/Popover.tokens.ts
193
+ var PopoverTokenDefinition = AsComponentTokenDefinition({
194
+ DEFAULT: {
195
+ border: { borderRadius: "var(--border-radius-DEFAULT)" }
196
+ },
197
+ "theme-marketing": {
198
+ border: { borderRadius: "1rem" }
199
+ }
200
+ });
201
+ var Popover_tokens_default = PopoverTokenDefinition;
202
+
203
+ // libs/css/component-tokens/src/component-tokens/components/Popover/PopoverListItem.tokens.ts
204
+ var PopoverListItemTokenDefinition = AsComponentTokenDefinition({
205
+ DEFAULT: {
206
+ border: { borderRadius: "var(--border-radius-DEFAULT)" }
207
+ },
208
+ "theme-marketing": {
209
+ border: { borderRadius: "1rem" }
210
+ }
211
+ });
212
+ var PopoverListItem_tokens_default = PopoverListItemTokenDefinition;
213
+
214
+ // libs/css/component-tokens/src/component-tokens/components/Search.tokens.ts
215
+ var SearchTokenDefinition = AsComponentTokenDefinition({
216
+ DEFAULT: {
217
+ width: { width: "9rem" },
218
+ background: { backgroundColor: "" },
219
+ borderless: { borderStyle: "hidden" },
220
+ "focus-hover": {
221
+ borderWidth: "1px",
222
+ borderBottomWidth: "1px",
223
+ borderColor: "rgb(var(--color-gray-400))",
224
+ borderBottomColor: "rgb(var(--color-gray-400))",
225
+ backgroundColor: "rgb(var(--color-slate-50))"
226
+ },
227
+ border: {
228
+ borderStyle: "solid",
229
+ borderWidth: "1px",
230
+ borderBottomWidth: "1px",
231
+ borderColor: "rgb(var(--color-gray-200))",
232
+ borderBottomColor: "rgb(var(--color-gray-200))",
233
+ borderRadius: "0.5rem"
234
+ },
235
+ "focus-within": {
236
+ borderColor: "rgb(var(--color-slate-400))",
237
+ boxShadow: "var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)"
238
+ },
239
+ widen: { borderBottomColor: "rgb(var(--color-white-DEFAULT))" },
240
+ "widen-focus": { borderBottomColor: "rgb(var(--color-black-DEFAULT))" },
241
+ prefix: {
242
+ color: "rgb(var(--color-slate-400))",
243
+ cursor: "default"
244
+ }
245
+ },
246
+ "theme-marketing": {
247
+ width: { width: "0px" },
248
+ background: { backgroundColor: "transparent" },
249
+ borderless: {
250
+ borderStyle: "hidden"
251
+ },
252
+ "focus-hover": {
253
+ borderWidth: "0px",
254
+ borderBottomWidth: "2px",
255
+ borderColor: "rgb(var(--color-black-DEFAULT))",
256
+ borderBottomColor: "rgb(var(--color-black-DEFAULT))",
257
+ backgroundColor: "transparent"
258
+ },
259
+ border: {
260
+ borderStyle: "solid",
261
+ borderWidth: "0px",
262
+ borderBottomWidth: "2px",
263
+ borderColor: "rgb(var(--color-white-DEFAULT))",
264
+ borderBottomColor: "rgb(var(--color-black-DEFAULT))",
265
+ borderRadius: "0px"
266
+ },
267
+ "focus-within": {
268
+ borderColor: "none",
269
+ boxShadow: "none"
270
+ },
271
+ widen: {
272
+ borderBottomColor: "rgb(var(--color-white-DEFAULT))"
273
+ },
274
+ "widen-focus": {
275
+ borderBottomColor: "rgb(var(--color-black-DEFAULT))"
276
+ },
277
+ prefix: {
278
+ color: "rgb(var(--color-slate-600))",
279
+ cursor: "pointer"
280
+ }
165
281
  }
166
282
  });
167
283
 
168
284
  // libs/css/component-tokens/src/component-tokens/ComponentTokens.ts
169
285
  var componentTokenDefinitions = {
170
- card: CardTokenDefinition
286
+ card: CardTokenDefinition,
287
+ button: ButtonTokenDefinition,
288
+ search: SearchTokenDefinition,
289
+ popover: Popover_tokens_default,
290
+ popoverListItem: PopoverListItem_tokens_default
171
291
  };
172
292
 
173
293
  // libs/css/component-tokens/src/component-tokens/ComponentTokenVariablesByThemeName.ts
@@ -564,8 +684,12 @@ var animations = {
564
684
  animation: {
565
685
  copy: "copy 1s 1",
566
686
  "fade-out-slow": "fadeOut 3s ease-in-out forwards",
567
- "fade-in-fast": "fadeIn 0.3s ease-in-out forwards",
568
- "fade-out-fast": "fadeOut 0.3s ease-in-out forwards",
687
+ "fade-in-fast": "fadeIn 0.2s ease-in-out forwards",
688
+ "fade-out-fast": "fadeOut 0.2s ease-in-out forwards",
689
+ "slide-in-left": "slideInLeft 0.2s ease-in-out forwards",
690
+ "slide-in-right": "slideInRight 0.2s ease-in-out forwards",
691
+ "slide-in-top": "slideInTop 0.2s ease-in-out forwards",
692
+ "slide-in-bottom": "slideInBottom 0.2s ease-in-out forwards",
569
693
  "ping-sm": "pingSm 1s cubic-bezier(0, 0, 0.2, 1) infinite"
570
694
  },
571
695
  keyframes: {
@@ -584,6 +708,22 @@ var animations = {
584
708
  "0%": { opacity: "0" },
585
709
  "100%": { opacity: "1" }
586
710
  },
711
+ slideInLeft: {
712
+ "0%": { transform: "translate(-100%)" },
713
+ "100%": { transform: "translate(0%)" }
714
+ },
715
+ slideInRight: {
716
+ "0%": { transform: "translate(100%)" },
717
+ "100%": { transform: "translate(0%)" }
718
+ },
719
+ slideInBottom: {
720
+ "0%": { transform: "translate(0, 100%)" },
721
+ "100%": { transform: "translate(0, 0%)" }
722
+ },
723
+ slideInTop: {
724
+ "0%": { transform: "translate(0, -100%)" },
725
+ "100%": { transform: "translate(0, 0%)" }
726
+ },
587
727
  pingSm: {
588
728
  "75%, 100%": {
589
729
  transform: "scale(1.5)",
@@ -809,7 +949,49 @@ var tailwindBaseConfig = {
809
949
  popover: withCustomPropertyValueAsComment("--z-popover"),
810
950
  toast: withCustomPropertyValueAsComment("--z-toast")
811
951
  }
812
- })
952
+ }),
953
+ variables: {
954
+ "theme-marketing": {
955
+ color: {
956
+ primary: {
957
+ 50: "254 236 235",
958
+ 100: "254 236 235",
959
+ 200: "254 217 215",
960
+ 300: "253 180 176",
961
+ 400: "251 142 136",
962
+ 500: "250 104 97",
963
+ 600: "249 66 58",
964
+ 700: "238 19 7",
965
+ 800: "178 14 5",
966
+ 900: "119 9 4"
967
+ },
968
+ secondary: {
969
+ 50: "238 243 246",
970
+ 100: "238 243 246",
971
+ 200: "222 231 237",
972
+ 300: "189 208 219",
973
+ 400: "155 184 202",
974
+ 500: "122 160 184",
975
+ 600: "89 137 166",
976
+ 700: "71 109 133",
977
+ 800: "53 82 100",
978
+ 900: "36 55 66"
979
+ },
980
+ accent: {
981
+ 50: "255 246 240",
982
+ 100: "255 246 240",
983
+ 200: "255 238 224",
984
+ 300: "255 223 199",
985
+ 400: "255 206 168",
986
+ 500: "255 191 143",
987
+ 600: "255 173 112",
988
+ 700: "255 134 41",
989
+ 800: "219 95 0",
990
+ 900: "148 64 0"
991
+ }
992
+ }
993
+ }
994
+ }
813
995
  },
814
996
  plugins: [CssTailwindCustomPropertiesPlugin, src_default]
815
997
  };