@una-ui/preset-edge 0.52.1-29102227.e029c42 → 0.52.1-29102297.94b4815

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/index.d.ts CHANGED
@@ -6,4 +6,4 @@ interface unaUIOptions {
6
6
 
7
7
  declare function presetUna(options?: unaUIOptions): Preset;
8
8
 
9
- export = presetUna;
9
+ export { presetUna as default };
@@ -1,3 +1,3 @@
1
1
  declare const _default: string[];
2
2
 
3
- export = _default;
3
+ export { _default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@una-ui/preset-edge",
3
- "version": "0.52.1-29102227.e029c42",
3
+ "version": "0.52.1-29102297.94b4815",
4
4
  "description": "The default preset for @una-ui",
5
5
  "author": "Phojie Rengel <phojrengel@gmail.com>",
6
6
  "license": "MIT",
@@ -22,22 +22,18 @@
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./dist/index.d.ts",
25
- "import": "./dist/index.mjs",
26
- "require": "./dist/index.cjs"
25
+ "import": "./dist/index.mjs"
27
26
  },
28
27
  "./shortcuts": {
29
28
  "types": "./dist/shortcuts.d.ts",
30
- "import": "./dist/shortcuts.mjs",
31
- "require": "./dist/shortcuts.cjs"
29
+ "import": "./dist/shortcuts.mjs"
32
30
  },
33
31
  "./prefixes": {
34
32
  "types": "./dist/prefixes.d.ts",
35
- "import": "./dist/prefixes.mjs",
36
- "require": "./dist/prefixes.cjs"
33
+ "import": "./dist/prefixes.mjs"
37
34
  },
38
35
  "./*": "./*"
39
36
  },
40
- "main": "dist/index.cjs",
41
37
  "module": "dist/index.mjs",
42
38
  "types": "dist/index.d.ts",
43
39
  "files": [
package/dist/index.cjs DELETED
@@ -1,155 +0,0 @@
1
- 'use strict';
2
-
3
- const presetMini = require('@unocss/preset-mini');
4
- const colors = require('@unocss/preset-mini/colors');
5
- const rules = require('@unocss/preset-mini/rules');
6
- const utils = require('@unocss/preset-mini/utils');
7
- const unocss = require('unocss');
8
- const index = require('./shared/preset-edge.CXnwVyzt.cjs');
9
-
10
- function presetUna(options = {
11
- // TODO: add options
12
- }) {
13
- return {
14
- name: "@una-ui/preset",
15
- options,
16
- shortcuts: index.shortcuts,
17
- theme: unocss.mergeDeep(presetMini.theme, {
18
- container: {
19
- center: true,
20
- padding: "2rem",
21
- maxWidth: {
22
- "2xl": "1400px"
23
- }
24
- },
25
- colors: {
26
- background: "rgba(var(--una-background) / <alpha-value>)",
27
- foreground: "rgba(var(--una-foreground) / <alpha-value>)",
28
- brand: "rgba(var(--una-brand) / <alpha-value>)",
29
- input: "rgba(var(--una-input) / <alpha-value>)",
30
- primary: {
31
- DEFAULT: "rgba(var(--una-primary) / <alpha-value>)",
32
- active: "rgba(var(--una-primary-active) / <alpha-value>)",
33
- 50: "rgba(var(--una-primary-50) / <alpha-value>)",
34
- 100: "rgba(var(--una-primary-100) / <alpha-value>)",
35
- 200: "rgba(var(--una-primary-200) / <alpha-value>)",
36
- 300: "rgba(var(--una-primary-300) / <alpha-value>)",
37
- 400: "rgba(var(--una-primary-400) / <alpha-value>)",
38
- 500: "rgba(var(--una-primary-500) / <alpha-value>)",
39
- 600: "rgba(var(--una-primary-600) / <alpha-value>)",
40
- 700: "rgba(var(--una-primary-700) / <alpha-value>)",
41
- 800: "rgba(var(--una-primary-800) / <alpha-value>)",
42
- 900: "rgba(var(--una-primary-900) / <alpha-value>)",
43
- 950: "rgba(var(--una-primary-950) / <alpha-value>)"
44
- },
45
- gray: {
46
- DEFAULT: "rgba(var(--una-gray) / <alpha-value>)",
47
- active: "rgba(var(--una-gray-active) / <alpha-value>)",
48
- 50: "rgba(var(--una-gray-50) / <alpha-value>)",
49
- 100: "rgba(var(--una-gray-100) / <alpha-value>)",
50
- 200: "rgba(var(--una-gray-200) / <alpha-value>)",
51
- 300: "rgba(var(--una-gray-300) / <alpha-value>)",
52
- 400: "rgba(var(--una-gray-400) / <alpha-value>)",
53
- 500: "rgba(var(--una-gray-500) / <alpha-value>)",
54
- 600: "rgba(var(--una-gray-600) / <alpha-value>)",
55
- 700: "rgba(var(--una-gray-700) / <alpha-value>)",
56
- 800: "rgba(var(--una-gray-800) / <alpha-value>)",
57
- 900: "rgba(var(--una-gray-900) / <alpha-value>)",
58
- 950: "rgba(var(--una-gray-950) / <alpha-value>)"
59
- },
60
- sidebar: {
61
- DEFAULT: "rgba(var(--una-sidebar) / <alpha-value>)",
62
- foreground: "rgba(var(--una-sidebar-foreground) / <alpha-value>)",
63
- primary: "rgba(var(--una-sidebar-primary) / <alpha-value>)",
64
- primaryForeground: "rgba(var(--una-sidebar-primary-foreground) / <alpha-value>)",
65
- accent: "rgba(var(--una-sidebar-accent) / <alpha-value>)",
66
- accentForeground: "rgba(var(--una-sidebar-accent-foreground) / <alpha-value>)",
67
- border: "rgba(var(--una-sidebar-border) / <alpha-value>)",
68
- ring: "rgba(var(--una-sidebar-ring) / <alpha-value>)"
69
- },
70
- error: colors.colors.red,
71
- success: colors.colors.green,
72
- warning: colors.colors.amber,
73
- info: colors.colors.blue
74
- },
75
- borderRadius: {
76
- xl: "calc(var(--una-radius) + 4px)",
77
- lg: "var(--una-radius)",
78
- md: "calc(var(--una-radius) - 2px)",
79
- sm: "calc(var(--una-radius) - 4px)"
80
- },
81
- animation: {
82
- keyframes: {
83
- "collapsible-down": "{from{height: 0}to{height:var(--reka-collapsible-content-height)}}",
84
- "collapsible-up": "{from{height:var(--reka-collapsible-content-height)}to{height: 0}}",
85
- "fadeIn": "{from{ opacity: 0 }to{ opacity: 1 }}",
86
- "fadeOut": "{from{ opacity: 1 }to{ opacity: 0 }}"
87
- },
88
- durations: {
89
- "collapsible-down": "0.2s",
90
- "collapsible-up": "0.2s",
91
- "fadeIn": "0.2s",
92
- "fadeOut": "0.2s"
93
- },
94
- timingFns: {
95
- "collapsible-down": "ease-in-out",
96
- "collapsible-up": "ease-in-out",
97
- "fadeIn": "ease-out",
98
- "fadeOut": "ease-out"
99
- }
100
- }
101
- }),
102
- rules: [
103
- [/^n-(.*)$/, ([, body], { theme }) => {
104
- const color = utils.parseColor(body, theme);
105
- if ((color?.cssColor?.type === "rgb" || color?.cssColor?.type === "rgba") && color.cssColor.components) {
106
- return {
107
- "--una-brand": `${color.cssColor.components.join(",")}`
108
- };
109
- }
110
- }],
111
- [/^size-(.*)$/, rules.fonts[1][1]],
112
- [/^square-(min-|max-)?(.+)$/, ([, _m, s]) => ({
113
- width: utils.handler.bracket.cssvar.global.auto.fraction.rem(s),
114
- height: utils.handler.bracket.cssvar.global.auto.fraction.rem(s)
115
- })],
116
- ["n-disabled", {
117
- "opacity": 0.5,
118
- "pointer-events": "none"
119
- }]
120
- ],
121
- variants: [
122
- (input) => {
123
- const prefix = "n-disabled:";
124
- if (input.startsWith(prefix)) {
125
- return {
126
- matcher: input.slice(prefix.length),
127
- selector: (input2) => `[disabled] ${input2}, ${input2}[disabled]`
128
- };
129
- }
130
- },
131
- (input) => {
132
- const prefix = "n-checked:";
133
- if (input.startsWith(prefix)) {
134
- return {
135
- matcher: input.slice(prefix.length),
136
- selector: (input2) => `[checked] ${input2}, ${input2}[checked]`
137
- };
138
- }
139
- }
140
- ],
141
- preflights: [
142
- {
143
- getCSS: () => `
144
- *:focus-visible {
145
- outline: 2px solid rgb(var(--una-primary)); /* 2 */
146
- border-radius: 0.25rem; /* 1 */
147
- outline-offset: 0.10rem; /* 1 */
148
- }
149
- `
150
- }
151
- ]
152
- };
153
- }
154
-
155
- module.exports = presetUna;
package/dist/index.d.cts DELETED
@@ -1,9 +0,0 @@
1
- import { Preset } from 'unocss';
2
-
3
- interface unaUIOptions {
4
- primary?: [];
5
- }
6
-
7
- declare function presetUna(options?: unaUIOptions): Preset;
8
-
9
- export = presetUna;
package/dist/prefixes.cjs DELETED
@@ -1,195 +0,0 @@
1
- 'use strict';
2
-
3
- const prefixes = [
4
- "accordion",
5
- "alert",
6
- "aspect-ratio",
7
- "avatar",
8
- "avatar-fallback",
9
- "avatar-group",
10
- "avatar-image",
11
- "badge",
12
- "breadcrumb",
13
- "breadcrumb-active",
14
- "breadcrumb-inactive",
15
- "breadcrumb-ellipsis",
16
- "breadcrumb-item",
17
- "breadcrumb-link",
18
- "breadcrumb-list",
19
- "breadcrumb-page",
20
- "breadcrumb-root",
21
- "breadcrumb-separator",
22
- "btn",
23
- "button",
24
- "card",
25
- "card-content",
26
- "card-description",
27
- "card-footer",
28
- "card-header",
29
- "card-title",
30
- "checkbox",
31
- "collapsible",
32
- "collapsible-content",
33
- "collapsible-trigger",
34
- "combobox",
35
- "combobox-anchor",
36
- "combobox-empty",
37
- "combobox-group",
38
- "combobox-input",
39
- "combobox-item",
40
- "combobox-item-indicator",
41
- "combobox-label",
42
- "combobox-list",
43
- "combobox-separator",
44
- "combobox-trigger",
45
- "combobox-viewport",
46
- "dialog",
47
- "dialog-close",
48
- "dialog-content",
49
- "dialog-description",
50
- "dialog-footer",
51
- "dialog-header",
52
- "dialog-overlay",
53
- "dialog-scroll-content",
54
- "dialog-title",
55
- "dropdown-menu",
56
- "dropdown-menu-content",
57
- "dropdown-menu-group",
58
- "dropdown-menu-item",
59
- "dropdown-menu-label",
60
- "dropdown-menu-root",
61
- "dropdown-menu-separator",
62
- "dropdown-menu-shortcut",
63
- "dropdown-menu-sub",
64
- "dropdown-menu-sub-content",
65
- "dropdown-menu-sub-trigger",
66
- "dropdown-menu-trigger",
67
- "form-control",
68
- "form-description",
69
- "form-field",
70
- "form-group",
71
- "form-item",
72
- "form-label",
73
- "form-message",
74
- "icon",
75
- "indicator",
76
- "input",
77
- "kbd",
78
- "label",
79
- "link",
80
- "navigation-menu",
81
- "navigation-menu-content",
82
- "navigation-menu-content-item",
83
- "navigation-menu-indicator",
84
- "navigation-menu-item",
85
- "navigation-menu-link",
86
- "navigation-menu-list",
87
- "navigation-menu-trigger",
88
- "navigation-menu-viewport",
89
- "pagination",
90
- "pagination-ellipsis",
91
- "pagination-selected",
92
- "pagination-unselected",
93
- "pagination-ellipsis",
94
- "pagination-first",
95
- "pagination-last",
96
- "pagination-list-item",
97
- "pagination-next",
98
- "pagination-prev",
99
- "popover",
100
- "popover-content",
101
- "progress",
102
- "radio-group",
103
- "radio-group-item",
104
- "resize",
105
- "rounded",
106
- "scroll-area",
107
- "scroll-bar",
108
- "select",
109
- "select-content",
110
- "select-group",
111
- "select-item",
112
- "select-item-indicator",
113
- "select-item-text",
114
- "select-label",
115
- "select-scroll-down-button",
116
- "select-scroll-up-button",
117
- "select-separator",
118
- "select-trigger",
119
- "select-value",
120
- "separator",
121
- "sheet",
122
- "sheet-close",
123
- "sheet-content",
124
- "sheet-description",
125
- "sheet-footer",
126
- "sheet-header",
127
- "sheet-title",
128
- "sheet-trigger",
129
- "sidebar",
130
- "sidebar-content",
131
- "sidebar-footer",
132
- "sidebar-group",
133
- "sidebar-group-action",
134
- "sidebar-group-content",
135
- "sidebar-group-label",
136
- "sidebar-header",
137
- "sidebar-input",
138
- "sidebar-inset",
139
- "sidebar-menu",
140
- "sidebar-menu-action",
141
- "sidebar-menu-badge",
142
- "sidebar-menu-button",
143
- "sidebar-menu-button-child",
144
- "sidebar-menu-item",
145
- "sidebar-menu-skeleton",
146
- "sidebar-menu-sub",
147
- "sidebar-menu-sub-button",
148
- "sidebar-menu-sub-item",
149
- "sidebar-provider",
150
- "sidebar-rail",
151
- "sidebar-separator",
152
- "sidebar-trigger",
153
- "size",
154
- "skeleton",
155
- "slider",
156
- "square",
157
- "switch",
158
- "switch-checked",
159
- "switch-unchecked",
160
- "table",
161
- "table-body",
162
- "table-caption",
163
- "table-cell",
164
- "table-empty",
165
- "table-footer",
166
- "table-head",
167
- "table-header",
168
- "table-loading",
169
- "table-row",
170
- "tabs",
171
- "tabs-content",
172
- "tabs-list",
173
- "tabs-root",
174
- "tabs-trigger",
175
- "theme-switcher",
176
- "toast",
177
- "toast-action",
178
- "toast-close",
179
- "toast-description",
180
- "toaster",
181
- "toast-info",
182
- "toast-provider",
183
- "toast-title",
184
- "toast-viewport",
185
- "toggle",
186
- "toggle-off",
187
- "toggle-on",
188
- "tooltip",
189
- "tooltip-content",
190
- "tooltip-provider",
191
- "tooltip-root",
192
- "tooltip-trigger"
193
- ];
194
-
195
- module.exports = prefixes;
@@ -1,3 +0,0 @@
1
- declare const _default: string[];
2
-
3
- export = _default;