@una-ui/preset-edge 0.54.0-29109520.c7c0073 → 0.54.1-29109620.eec2f97

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.54.0-29109520.c7c0073",
3
+ "version": "0.54.1-29109620.eec2f97",
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,156 +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.B7x2Iz0t.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
- xs: "calc(var(--una-radius) - 6px)"
81
- },
82
- animation: {
83
- keyframes: {
84
- "collapsible-down": "{from{height: 0}to{height:var(--reka-collapsible-content-height)}}",
85
- "collapsible-up": "{from{height:var(--reka-collapsible-content-height)}to{height: 0}}",
86
- "fadeIn": "{from{ opacity: 0 }to{ opacity: 1 }}",
87
- "fadeOut": "{from{ opacity: 1 }to{ opacity: 0 }}"
88
- },
89
- durations: {
90
- "collapsible-down": "0.2s",
91
- "collapsible-up": "0.2s",
92
- "fadeIn": "0.2s",
93
- "fadeOut": "0.2s"
94
- },
95
- timingFns: {
96
- "collapsible-down": "ease-in-out",
97
- "collapsible-up": "ease-in-out",
98
- "fadeIn": "ease-out",
99
- "fadeOut": "ease-out"
100
- }
101
- }
102
- }),
103
- rules: [
104
- [/^n-(.*)$/, ([, body], { theme }) => {
105
- const color = utils.parseColor(body, theme);
106
- if ((color?.cssColor?.type === "rgb" || color?.cssColor?.type === "rgba") && color.cssColor.components) {
107
- return {
108
- "--una-brand": `${color.cssColor.components.join(",")}`
109
- };
110
- }
111
- }],
112
- [/^size-(.*)$/, rules.fonts[1][1]],
113
- [/^square-(min-|max-)?(.+)$/, ([, _m, s]) => ({
114
- width: utils.handler.bracket.cssvar.global.auto.fraction.rem(s),
115
- height: utils.handler.bracket.cssvar.global.auto.fraction.rem(s)
116
- })],
117
- ["n-disabled", {
118
- "opacity": 0.5,
119
- "pointer-events": "none"
120
- }]
121
- ],
122
- variants: [
123
- (input) => {
124
- const prefix = "n-disabled:";
125
- if (input.startsWith(prefix)) {
126
- return {
127
- matcher: input.slice(prefix.length),
128
- selector: (input2) => `[disabled] ${input2}, ${input2}[disabled]`
129
- };
130
- }
131
- },
132
- (input) => {
133
- const prefix = "n-checked:";
134
- if (input.startsWith(prefix)) {
135
- return {
136
- matcher: input.slice(prefix.length),
137
- selector: (input2) => `[checked] ${input2}, ${input2}[checked]`
138
- };
139
- }
140
- }
141
- ],
142
- preflights: [
143
- {
144
- getCSS: () => `
145
- *:focus-visible {
146
- outline: 2px solid rgb(var(--una-primary)); /* 2 */
147
- border-radius: 0.25rem; /* 1 */
148
- outline-offset: 0.10rem; /* 1 */
149
- }
150
- `
151
- }
152
- ]
153
- };
154
- }
155
-
156
- 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,208 +0,0 @@
1
- 'use strict';
2
-
3
- const prefixes = [
4
- "accordion",
5
- "alert",
6
- "alert-dialog",
7
- "alert-dialog-action",
8
- "alert-dialog-cancel",
9
- "alert-dialog-content",
10
- "alert-dialog-description",
11
- "alert-dialog-footer",
12
- "alert-dialog-header",
13
- "alert-dialog-overlay",
14
- "alert-dialog-title",
15
- "alert-dialog-trigger",
16
- "aspect-ratio",
17
- "avatar",
18
- "avatar-fallback",
19
- "avatar-group",
20
- "avatar-image",
21
- "badge",
22
- "breadcrumb",
23
- "breadcrumb-active",
24
- "breadcrumb-inactive",
25
- "breadcrumb-ellipsis",
26
- "breadcrumb-item",
27
- "breadcrumb-link",
28
- "breadcrumb-list",
29
- "breadcrumb-page",
30
- "breadcrumb-root",
31
- "breadcrumb-separator",
32
- "btn",
33
- "button",
34
- "card",
35
- "card-content",
36
- "card-description",
37
- "card-footer",
38
- "card-header",
39
- "card-title",
40
- "checkbox",
41
- "collapsible",
42
- "collapsible-content",
43
- "collapsible-trigger",
44
- "combobox",
45
- "combobox-anchor",
46
- "combobox-empty",
47
- "combobox-group",
48
- "combobox-input",
49
- "combobox-item",
50
- "combobox-item-indicator",
51
- "combobox-label",
52
- "combobox-list",
53
- "combobox-separator",
54
- "combobox-trigger",
55
- "combobox-viewport",
56
- "dialog",
57
- "dialog-close",
58
- "dialog-content",
59
- "dialog-description",
60
- "dialog-footer",
61
- "dialog-header",
62
- "dialog-overlay",
63
- "dialog-scroll-content",
64
- "dialog-title",
65
- "dropdown-menu",
66
- "dropdown-menu-content",
67
- "dropdown-menu-group",
68
- "dropdown-menu-item",
69
- "dropdown-menu-label",
70
- "dropdown-menu-root",
71
- "dropdown-menu-separator",
72
- "dropdown-menu-shortcut",
73
- "dropdown-menu-sub",
74
- "dropdown-menu-sub-content",
75
- "dropdown-menu-sub-trigger",
76
- "dropdown-menu-trigger",
77
- "form-control",
78
- "form-description",
79
- "form-field",
80
- "form-group",
81
- "form-item",
82
- "form-label",
83
- "form-message",
84
- "icon",
85
- "indicator",
86
- "input",
87
- "kbd",
88
- "label",
89
- "link",
90
- "navigation-menu",
91
- "navigation-menu-content",
92
- "navigation-menu-content-item",
93
- "navigation-menu-indicator",
94
- "navigation-menu-item",
95
- "navigation-menu-link",
96
- "navigation-menu-list",
97
- "navigation-menu-trigger",
98
- "navigation-menu-viewport",
99
- "pagination",
100
- "pagination-ellipsis",
101
- "pagination-selected",
102
- "pagination-unselected",
103
- "pagination-ellipsis",
104
- "pagination-first",
105
- "pagination-last",
106
- "pagination-list-item",
107
- "pagination-next",
108
- "pagination-prev",
109
- "popover",
110
- "popover-content",
111
- "progress",
112
- "radio-group",
113
- "radio-group-item",
114
- "resizable-handle",
115
- "resizable-panel",
116
- "resizable-panel-group",
117
- "resize",
118
- "rounded",
119
- "scroll-area",
120
- "scroll-bar",
121
- "select",
122
- "select-content",
123
- "select-group",
124
- "select-item",
125
- "select-item-indicator",
126
- "select-item-text",
127
- "select-label",
128
- "select-scroll-down-button",
129
- "select-scroll-up-button",
130
- "select-separator",
131
- "select-trigger",
132
- "select-value",
133
- "separator",
134
- "sheet",
135
- "sheet-close",
136
- "sheet-content",
137
- "sheet-description",
138
- "sheet-footer",
139
- "sheet-header",
140
- "sheet-title",
141
- "sheet-trigger",
142
- "sidebar",
143
- "sidebar-content",
144
- "sidebar-footer",
145
- "sidebar-group",
146
- "sidebar-group-action",
147
- "sidebar-group-content",
148
- "sidebar-group-label",
149
- "sidebar-header",
150
- "sidebar-input",
151
- "sidebar-inset",
152
- "sidebar-menu",
153
- "sidebar-menu-action",
154
- "sidebar-menu-badge",
155
- "sidebar-menu-button",
156
- "sidebar-menu-button-child",
157
- "sidebar-menu-item",
158
- "sidebar-menu-skeleton",
159
- "sidebar-menu-sub",
160
- "sidebar-menu-sub-button",
161
- "sidebar-menu-sub-item",
162
- "sidebar-provider",
163
- "sidebar-rail",
164
- "sidebar-separator",
165
- "sidebar-trigger",
166
- "size",
167
- "skeleton",
168
- "slider",
169
- "square",
170
- "switch",
171
- "switch-checked",
172
- "switch-unchecked",
173
- "table",
174
- "table-body",
175
- "table-caption",
176
- "table-cell",
177
- "table-empty",
178
- "table-footer",
179
- "table-head",
180
- "table-header",
181
- "table-loading",
182
- "table-row",
183
- "tabs",
184
- "tabs-content",
185
- "tabs-list",
186
- "tabs-root",
187
- "tabs-trigger",
188
- "theme-switcher",
189
- "toast",
190
- "toast-action",
191
- "toast-close",
192
- "toast-description",
193
- "toaster",
194
- "toast-info",
195
- "toast-provider",
196
- "toast-title",
197
- "toast-viewport",
198
- "toggle",
199
- "toggle-off",
200
- "toggle-on",
201
- "tooltip",
202
- "tooltip-content",
203
- "tooltip-provider",
204
- "tooltip-root",
205
- "tooltip-trigger"
206
- ];
207
-
208
- module.exports = prefixes;
@@ -1,3 +0,0 @@
1
- declare const _default: string[];
2
-
3
- export = _default;