@dreamcommerce/aurora 3.0.0-247 → 3.0.0-249

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.
Files changed (45) hide show
  1. package/build/cjs/_virtual/create-plugin.js_commonjs-proxy +10 -0
  2. package/build/cjs/_virtual/create-plugin.js_commonjs-proxy.map +1 -0
  3. package/build/cjs/_virtual/createPlugin.js_commonjs-proxy +10 -0
  4. package/build/cjs/_virtual/createPlugin.js_commonjs-proxy.map +1 -0
  5. package/build/cjs/_virtual/index.js_commonjs-proxy +10 -0
  6. package/build/cjs/_virtual/index.js_commonjs-proxy.map +1 -0
  7. package/build/cjs/_virtual/plugin.js_commonjs-proxy +10 -0
  8. package/build/cjs/_virtual/plugin.js_commonjs-proxy.map +1 -0
  9. package/build/cjs/external/tailwindcss/lib/public/create-plugin.js +28 -0
  10. package/build/cjs/external/tailwindcss/lib/public/create-plugin.js.map +1 -0
  11. package/build/cjs/external/tailwindcss/lib/util/createPlugin.js +42 -0
  12. package/build/cjs/external/tailwindcss/lib/util/createPlugin.js.map +1 -0
  13. package/build/cjs/external/tailwindcss/plugin.js +10 -0
  14. package/build/cjs/external/tailwindcss/plugin.js.map +1 -0
  15. package/build/cjs/external/tailwindcss-animate/index.js +195 -0
  16. package/build/cjs/external/tailwindcss-animate/index.js.map +1 -0
  17. package/build/cjs/packages/aurora/src/components/loader/loader_variants.js +1 -1
  18. package/build/cjs/packages/aurora/src/utilities/cn.js +24 -1
  19. package/build/cjs/packages/aurora/src/utilities/cn.js.map +1 -1
  20. package/build/cjs/packages/aurora/tailwind.config.js +481 -0
  21. package/build/cjs/packages/aurora/tailwind.config.js.map +1 -0
  22. package/build/esm/_virtual/create-plugin.js_commonjs-proxy +3 -0
  23. package/build/esm/_virtual/create-plugin.js_commonjs-proxy.map +1 -0
  24. package/build/esm/_virtual/createPlugin.js_commonjs-proxy +3 -0
  25. package/build/esm/_virtual/createPlugin.js_commonjs-proxy.map +1 -0
  26. package/build/esm/_virtual/index.js_commonjs-proxy +3 -0
  27. package/build/esm/_virtual/index.js_commonjs-proxy.map +1 -0
  28. package/build/esm/_virtual/plugin.js_commonjs-proxy +3 -0
  29. package/build/esm/_virtual/plugin.js_commonjs-proxy.map +1 -0
  30. package/build/esm/external/tailwindcss/lib/public/create-plugin.js +24 -0
  31. package/build/esm/external/tailwindcss/lib/public/create-plugin.js.map +1 -0
  32. package/build/esm/external/tailwindcss/lib/util/createPlugin.js +38 -0
  33. package/build/esm/external/tailwindcss/lib/util/createPlugin.js.map +1 -0
  34. package/build/esm/external/tailwindcss/plugin.js +6 -0
  35. package/build/esm/external/tailwindcss/plugin.js.map +1 -0
  36. package/build/esm/external/tailwindcss-animate/index.js +191 -0
  37. package/build/esm/external/tailwindcss-animate/index.js.map +1 -0
  38. package/build/esm/packages/aurora/src/components/loader/loader_variants.js +1 -1
  39. package/build/esm/packages/aurora/src/components/typography/typography.d.ts +1 -1
  40. package/build/esm/packages/aurora/src/utilities/cn.js +24 -1
  41. package/build/esm/packages/aurora/src/utilities/cn.js.map +1 -1
  42. package/build/esm/packages/aurora/tailwind.config.js +477 -0
  43. package/build/esm/packages/aurora/tailwind.config.js.map +1 -0
  44. package/build/tailwind.config.js +6 -12
  45. package/package.json +1 -1
@@ -0,0 +1,191 @@
1
+ import plugin from '../tailwindcss/plugin.js';
2
+
3
+ function filterDefault(values) {
4
+ return Object.fromEntries(
5
+ Object.entries(values).filter(([key]) => key !== "DEFAULT"),
6
+ )
7
+ }
8
+
9
+ var tailwindcssAnimate = plugin(
10
+ ({ addUtilities, matchUtilities, theme }) => {
11
+ addUtilities({
12
+ "@keyframes enter": theme("keyframes.enter"),
13
+ "@keyframes exit": theme("keyframes.exit"),
14
+ ".animate-in": {
15
+ animationName: "enter",
16
+ animationDuration: theme("animationDuration.DEFAULT"),
17
+ "--tw-enter-opacity": "initial",
18
+ "--tw-enter-scale": "initial",
19
+ "--tw-enter-rotate": "initial",
20
+ "--tw-enter-translate-x": "initial",
21
+ "--tw-enter-translate-y": "initial",
22
+ },
23
+ ".animate-out": {
24
+ animationName: "exit",
25
+ animationDuration: theme("animationDuration.DEFAULT"),
26
+ "--tw-exit-opacity": "initial",
27
+ "--tw-exit-scale": "initial",
28
+ "--tw-exit-rotate": "initial",
29
+ "--tw-exit-translate-x": "initial",
30
+ "--tw-exit-translate-y": "initial",
31
+ },
32
+ });
33
+
34
+ matchUtilities(
35
+ {
36
+ "fade-in": (value) => ({ "--tw-enter-opacity": value }),
37
+ "fade-out": (value) => ({ "--tw-exit-opacity": value }),
38
+ },
39
+ { values: theme("animationOpacity") },
40
+ );
41
+
42
+ matchUtilities(
43
+ {
44
+ "zoom-in": (value) => ({ "--tw-enter-scale": value }),
45
+ "zoom-out": (value) => ({ "--tw-exit-scale": value }),
46
+ },
47
+ { values: theme("animationScale") },
48
+ );
49
+
50
+ matchUtilities(
51
+ {
52
+ "spin-in": (value) => ({ "--tw-enter-rotate": value }),
53
+ "spin-out": (value) => ({ "--tw-exit-rotate": value }),
54
+ },
55
+ { values: theme("animationRotate") },
56
+ );
57
+
58
+ matchUtilities(
59
+ {
60
+ "slide-in-from-top": (value) => ({
61
+ "--tw-enter-translate-y": `-${value}`,
62
+ }),
63
+ "slide-in-from-bottom": (value) => ({
64
+ "--tw-enter-translate-y": value,
65
+ }),
66
+ "slide-in-from-left": (value) => ({
67
+ "--tw-enter-translate-x": `-${value}`,
68
+ }),
69
+ "slide-in-from-right": (value) => ({
70
+ "--tw-enter-translate-x": value,
71
+ }),
72
+ "slide-out-to-top": (value) => ({
73
+ "--tw-exit-translate-y": `-${value}`,
74
+ }),
75
+ "slide-out-to-bottom": (value) => ({
76
+ "--tw-exit-translate-y": value,
77
+ }),
78
+ "slide-out-to-left": (value) => ({
79
+ "--tw-exit-translate-x": `-${value}`,
80
+ }),
81
+ "slide-out-to-right": (value) => ({
82
+ "--tw-exit-translate-x": value,
83
+ }),
84
+ },
85
+ { values: theme("animationTranslate") },
86
+ );
87
+
88
+ matchUtilities(
89
+ { duration: (value) => ({ animationDuration: value }) },
90
+ { values: filterDefault(theme("animationDuration")) },
91
+ );
92
+
93
+ matchUtilities(
94
+ { delay: (value) => ({ animationDelay: value }) },
95
+ { values: theme("animationDelay") },
96
+ );
97
+
98
+ matchUtilities(
99
+ { ease: (value) => ({ animationTimingFunction: value }) },
100
+ { values: filterDefault(theme("animationTimingFunction")) },
101
+ );
102
+
103
+ addUtilities({
104
+ ".running": { animationPlayState: "running" },
105
+ ".paused": { animationPlayState: "paused" },
106
+ });
107
+
108
+ matchUtilities(
109
+ { "fill-mode": (value) => ({ animationFillMode: value }) },
110
+ { values: theme("animationFillMode") },
111
+ );
112
+
113
+ matchUtilities(
114
+ { direction: (value) => ({ animationDirection: value }) },
115
+ { values: theme("animationDirection") },
116
+ );
117
+
118
+ matchUtilities(
119
+ { repeat: (value) => ({ animationIterationCount: value }) },
120
+ { values: theme("animationRepeat") },
121
+ );
122
+ },
123
+ {
124
+ theme: {
125
+ extend: {
126
+ animationDelay: ({ theme }) => ({
127
+ ...theme("transitionDelay"),
128
+ }),
129
+ animationDuration: ({ theme }) => ({
130
+ 0: "0ms",
131
+ ...theme("transitionDuration"),
132
+ }),
133
+ animationTimingFunction: ({ theme }) => ({
134
+ ...theme("transitionTimingFunction"),
135
+ }),
136
+ animationFillMode: {
137
+ none: "none",
138
+ forwards: "forwards",
139
+ backwards: "backwards",
140
+ both: "both",
141
+ },
142
+ animationDirection: {
143
+ normal: "normal",
144
+ reverse: "reverse",
145
+ alternate: "alternate",
146
+ "alternate-reverse": "alternate-reverse",
147
+ },
148
+ animationOpacity: ({ theme }) => ({
149
+ DEFAULT: 0,
150
+ ...theme("opacity"),
151
+ }),
152
+ animationTranslate: ({ theme }) => ({
153
+ DEFAULT: "100%",
154
+ ...theme("translate"),
155
+ }),
156
+ animationScale: ({ theme }) => ({
157
+ DEFAULT: 0,
158
+ ...theme("scale"),
159
+ }),
160
+ animationRotate: ({ theme }) => ({
161
+ DEFAULT: "30deg",
162
+ ...theme("rotate"),
163
+ }),
164
+ animationRepeat: {
165
+ 0: "0",
166
+ 1: "1",
167
+ infinite: "infinite",
168
+ },
169
+ keyframes: {
170
+ enter: {
171
+ from: {
172
+ opacity: "var(--tw-enter-opacity, 1)",
173
+ transform:
174
+ "translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))",
175
+ },
176
+ },
177
+ exit: {
178
+ to: {
179
+ opacity: "var(--tw-exit-opacity, 1)",
180
+ transform:
181
+ "translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))",
182
+ },
183
+ },
184
+ },
185
+ },
186
+ },
187
+ },
188
+ );
189
+
190
+ export default tailwindcssAnimate;
191
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -2,7 +2,7 @@ import { defineProperty as _defineProperty } from '../../../../../_virtual/_roll
2
2
  import { cva } from '../../../../../external/class-variance-authority/dist/index.mjs.js';
3
3
  import { LOADER_VARIANTS } from './loader_constants.js';
4
4
 
5
- var loaderVariants = cva('aurora-inline-block aurora-align-middle aurora-border-solid aurora-border-color-t aurora-border-r-primary aurora-border-color-b aurora-border-color-l aurora-rounded-full aurora-animate-spin', {
5
+ var loaderVariants = cva('aurora-inline-block aurora-align-middle aurora-border-solid aurora-border-r-primary aurora-rounded-full aurora-animate-spin', {
6
6
  variants: {
7
7
  variant: _defineProperty(_defineProperty(_defineProperty({}, LOADER_VARIANTS.s, 'aurora-h-4 aurora-w-4 aurora-border-2'), LOADER_VARIANTS.m, 'aurora-h-6 aurora-w-6 aurora-border-[3px]'), LOADER_VARIANTS.l, 'aurora-h-8 aurora-w-8 aurora-border-4')
8
8
  },
@@ -46,7 +46,7 @@ export declare const Typography: ({ variant, as, style, color, weight, size, lin
46
46
  results?: number | undefined;
47
47
  security?: string | undefined;
48
48
  unselectable?: "off" | "on" | undefined;
49
- inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
49
+ inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
50
50
  is?: string | undefined;
51
51
  "aria-activedescendant"?: string | undefined;
52
52
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
@@ -1,8 +1,31 @@
1
+ import { toConsumableArray as _toConsumableArray } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
1
2
  import { clsx } from '../../../../external/clsx/dist/clsx.mjs.js';
2
3
  import { extendTailwindMerge } from '../../../../external/tailwind-merge/dist/bundle-mjs.mjs.js';
4
+ import tailwind_config from '../../tailwind.config.js';
3
5
 
6
+ var config = tailwind_config;
4
7
  var twMerge = extendTailwindMerge({
5
- prefix: 'aurora-'
8
+ prefix: 'aurora-',
9
+ extend: {
10
+ theme: {
11
+ colors: [].concat(_toConsumableArray(Object.keys(config.theme.colors)), _toConsumableArray(Object.keys(config.theme.textColor)), _toConsumableArray(Object.keys(config.theme.backgroundColor)), _toConsumableArray(Object.keys(config.theme.borderColor)), _toConsumableArray(Object.keys(config.theme.outlineColor)), _toConsumableArray(Object.keys(config.theme.ringColor)), _toConsumableArray(Object.keys(config.theme.fill))),
12
+ borderRadius: _toConsumableArray(Object.keys(config.theme.borderRadius))
13
+ },
14
+ classGroups: {
15
+ 'font-size': [{
16
+ text: _toConsumableArray(Object.keys(config.theme.fontSize))
17
+ }],
18
+ shadow: [{
19
+ shadow: _toConsumableArray(Object.keys(config.theme.boxShadow))
20
+ }],
21
+ leading: [{
22
+ leading: _toConsumableArray(Object.keys(config.theme.lineHeight))
23
+ }],
24
+ tracking: [{
25
+ tracking: _toConsumableArray(Object.keys(config.theme.letterSpacing))
26
+ }]
27
+ }
28
+ }
6
29
  });
7
30
  function cn() {
8
31
  for (var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,qBAAqB,4CAAgD;AACrE,oCAAoC,4DAAgE;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA,qBAAqB,4CAAgD;AACrE,oCAAoC,4DAAgE;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}