@una-ui/preset 0.36.0-beta.1 → 0.37.0-beta.1

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.cjs CHANGED
@@ -5,7 +5,7 @@ const colors = require('@unocss/preset-mini/colors');
5
5
  const rules = require('@unocss/preset-mini/rules');
6
6
  const utils = require('@unocss/preset-mini/utils');
7
7
  const unocss = require('unocss');
8
- const index = require('./shared/preset.CEFcXWEY.cjs');
8
+ const index = require('./shared/preset.frTThEzw.cjs');
9
9
 
10
10
  function presetUna(options = {
11
11
  // TODO: add options
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { colors } from '@unocss/preset-mini/colors';
3
3
  import { fonts } from '@unocss/preset-mini/rules';
4
4
  import { parseColor } from '@unocss/preset-mini/utils';
5
5
  import { mergeDeep } from 'unocss';
6
- import { s as shortcuts } from './shared/preset.D2JHtZxD.mjs';
6
+ import { s as shortcuts } from './shared/preset.nbSNq5ip.mjs';
7
7
 
8
8
  function presetUna(options = {
9
9
  // TODO: add options
package/dist/prefixes.cjs CHANGED
@@ -98,6 +98,14 @@ const prefixes = [
98
98
  "select-trigger",
99
99
  "select-value",
100
100
  "separator",
101
+ "sheet",
102
+ "sheet-close",
103
+ "sheet-content",
104
+ "sheet-description",
105
+ "sheet-footer",
106
+ "sheet-header",
107
+ "sheet-title",
108
+ "sheet-trigger",
101
109
  "size",
102
110
  "skeleton",
103
111
  "slider",
package/dist/prefixes.mjs CHANGED
@@ -96,6 +96,14 @@ const prefixes = [
96
96
  "select-trigger",
97
97
  "select-value",
98
98
  "separator",
99
+ "sheet",
100
+ "sheet-close",
101
+ "sheet-content",
102
+ "sheet-description",
103
+ "sheet-footer",
104
+ "sheet-header",
105
+ "sheet-title",
106
+ "sheet-trigger",
99
107
  "size",
100
108
  "skeleton",
101
109
  "slider",
@@ -810,6 +810,32 @@ const separator = [
810
810
  staticSeparator
811
811
  ];
812
812
 
813
+ const staticSheet = {
814
+ // base
815
+ "sheet": "",
816
+ // sub components
817
+ "sheet-content": "fixed z-50 gap-4 bg-base p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
818
+ "sheet-portal": "",
819
+ "sheet-overlay": "fixed inset-0 z-50 data-[state=closed]:animate-out data-[state=open]:animate-in bg-black/80 data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
820
+ "sheet-close": "absolute right-4 top-4",
821
+ "sheet-description": "text-sm text-muted",
822
+ "sheet-footer": "flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",
823
+ "sheet-header": "flex flex-col gap-y-2 text-center sm:text-left",
824
+ "sheet-title": "text-lg font-semibold text-base",
825
+ // static variants
826
+ "sheet-top": "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
827
+ "sheet-right": "inset-y-0 right-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
828
+ "sheet-bottom": "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
829
+ "sheet-left": "inset-y-0 left-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm"
830
+ };
831
+ const dynamicSheet = [
832
+ // dynamic preset
833
+ ];
834
+ const sheet = [
835
+ ...dynamicSheet,
836
+ staticSheet
837
+ ];
838
+
813
839
  const staticSkeleton = {
814
840
  // base
815
841
  skeleton: "skeleton-gray text-md animate-pulse rounded-md w-full h-0.5em bg-brand"
@@ -1056,7 +1082,8 @@ const shortcuts = [
1056
1082
  ...toggle,
1057
1083
  ...collapsible,
1058
1084
  ...radioGroup,
1059
- ...form
1085
+ ...form,
1086
+ ...sheet
1060
1087
  ];
1061
1088
 
1062
1089
  exports.shortcuts = shortcuts;
@@ -808,6 +808,32 @@ const separator = [
808
808
  staticSeparator
809
809
  ];
810
810
 
811
+ const staticSheet = {
812
+ // base
813
+ "sheet": "",
814
+ // sub components
815
+ "sheet-content": "fixed z-50 gap-4 bg-base p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
816
+ "sheet-portal": "",
817
+ "sheet-overlay": "fixed inset-0 z-50 data-[state=closed]:animate-out data-[state=open]:animate-in bg-black/80 data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
818
+ "sheet-close": "absolute right-4 top-4",
819
+ "sheet-description": "text-sm text-muted",
820
+ "sheet-footer": "flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",
821
+ "sheet-header": "flex flex-col gap-y-2 text-center sm:text-left",
822
+ "sheet-title": "text-lg font-semibold text-base",
823
+ // static variants
824
+ "sheet-top": "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
825
+ "sheet-right": "inset-y-0 right-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
826
+ "sheet-bottom": "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
827
+ "sheet-left": "inset-y-0 left-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm"
828
+ };
829
+ const dynamicSheet = [
830
+ // dynamic preset
831
+ ];
832
+ const sheet = [
833
+ ...dynamicSheet,
834
+ staticSheet
835
+ ];
836
+
811
837
  const staticSkeleton = {
812
838
  // base
813
839
  skeleton: "skeleton-gray text-md animate-pulse rounded-md w-full h-0.5em bg-brand"
@@ -1054,7 +1080,8 @@ const shortcuts = [
1054
1080
  ...toggle,
1055
1081
  ...collapsible,
1056
1082
  ...radioGroup,
1057
- ...form
1083
+ ...form,
1084
+ ...sheet
1058
1085
  ];
1059
1086
 
1060
1087
  export { shortcuts as s };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./shared/preset.CEFcXWEY.cjs');
3
+ const index = require('./shared/preset.frTThEzw.cjs');
4
4
  require('@unocss/preset-mini/utils');
5
5
  require('@unocss/preset-mini');
6
6
 
@@ -1,3 +1,3 @@
1
- export { s as shortcuts } from './shared/preset.D2JHtZxD.mjs';
1
+ export { s as shortcuts } from './shared/preset.nbSNq5ip.mjs';
2
2
  import '@unocss/preset-mini/utils';
3
3
  import '@unocss/preset-mini';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@una-ui/preset",
3
- "version": "0.36.0-beta.1",
3
+ "version": "0.37.0-beta.1",
4
4
  "description": "The default preset for @una-ui",
5
5
  "author": "Phojie Rengel <phojrengel@gmail.com>",
6
6
  "license": "MIT",