@irbags/ui-kit 1.0.1-alpha.15 → 1.0.1-alpha.17

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/README.md CHANGED
@@ -4,7 +4,7 @@ IRBAGS UI Kit module.
4
4
 
5
5
  ## Installing
6
6
 
7
- Выберите ваш пакетный менеджер:
7
+ Select your package manager:
8
8
 
9
9
  ### pnpm
10
10
 
@@ -0,0 +1,111 @@
1
+ const ibgAppConfig = {
2
+ ui: {
3
+ colors: {
4
+ black: "black",
5
+ white: "white",
6
+ error: "error",
7
+ secondary: "secondary"
8
+ },
9
+ button: {
10
+ compoundVariants: [
11
+ {
12
+ color: "black",
13
+ variant: "link",
14
+ class: "text-black hover:text-secondary disabled:text-secondary active:text-black cursor-pointer text-xl leading-none font-medium p-0 bg-transparent active:bg-transparent hover:bg-transparent"
15
+ }
16
+ ],
17
+ defaultVariants: {
18
+ color: "black",
19
+ variant: "link"
20
+ }
21
+ },
22
+ input: {
23
+ slots: {
24
+ base: [
25
+ "placeholder:text-secondary !text-xl !font-medium !p-0 rounded-none leading-none"
26
+ ]
27
+ },
28
+ compoundVariants: [
29
+ {
30
+ color: "black",
31
+ variant: "none",
32
+ class: "text-black"
33
+ },
34
+ {
35
+ color: "error",
36
+ variant: "none",
37
+ class: "text-error"
38
+ }
39
+ ],
40
+ defaultVariants: {
41
+ color: "black",
42
+ variant: "none"
43
+ }
44
+ },
45
+ radioGroup: {
46
+ slots: {
47
+ root: "w-max",
48
+ base: "bg-secondary-500 ring-0 cursor-pointer",
49
+ item: `flex items-center text-black not-has-[button[aria-checked="true"]]:text-secondary-500`,
50
+ label: "text-inherit font-medium text-4xl cursor-pointer",
51
+ indicator: "after:bg-transparent cursor-pointer"
52
+ },
53
+ variants: {
54
+ indicator: {
55
+ start: {
56
+ wrapper: "ml-2.5"
57
+ }
58
+ },
59
+ size: {
60
+ xl: {
61
+ base: "size-big"
62
+ }
63
+ }
64
+ },
65
+ defaultVariants: {
66
+ color: "black",
67
+ variant: "list",
68
+ size: "xl"
69
+ }
70
+ },
71
+ fileUpload: {
72
+ slots: {
73
+ root: "cursor-pointer",
74
+ base: "border-none rounded-none bg-gray-500",
75
+ avatar: "bg-transparent text-6xl",
76
+ fileLeadingAvatar: "bg-secondary-500 text-6xl"
77
+ },
78
+ variants: {
79
+ dropzone: {
80
+ true: "border-none"
81
+ },
82
+ layout: {
83
+ grid: {
84
+ fileLeadingAvatar: "rounded-none"
85
+ }
86
+ }
87
+ },
88
+ compoundVariants: [
89
+ {
90
+ interactive: true,
91
+ disabled: false,
92
+ class: "hover:!bg-gray-500 hover:opacity-70"
93
+ }
94
+ ]
95
+ },
96
+ card: {
97
+ slots: {
98
+ root: "rounded-none",
99
+ body: "p-0 sm:p-0",
100
+ footer: "p-0 sm:px-0 !pl-5 !pt-5 text-xl text-black font-medium"
101
+ },
102
+ variants: {
103
+ variant: {
104
+ outline: "ring-0"
105
+ }
106
+ }
107
+ }
108
+ }
109
+ };
110
+
111
+ export { ibgAppConfig };
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "1.0.1-alpha.15",
7
+ "version": "1.0.1-alpha.17",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -2,116 +2,6 @@ import { defineNuxtModule, createResolver, installModules, addComponent } from '
2
2
  import { existsSync, readdirSync, statSync } from 'fs';
3
3
  import { join } from 'path';
4
4
 
5
- const ibgAppConfig = {
6
- ui: {
7
- colors: {
8
- black: "black",
9
- white: "white",
10
- error: "error",
11
- secondary: "secondary"
12
- },
13
- button: {
14
- compoundVariants: [
15
- {
16
- color: "black",
17
- variant: "link",
18
- class: "text-black hover:text-secondary disabled:text-secondary active:text-black cursor-pointer text-xl leading-none font-medium p-0 bg-transparent active:bg-transparent hover:bg-transparent"
19
- }
20
- ],
21
- defaultVariants: {
22
- color: "black",
23
- variant: "link"
24
- }
25
- },
26
- input: {
27
- slots: {
28
- base: [
29
- "placeholder:text-secondary !text-xl !font-medium !p-0 rounded-none leading-none"
30
- ]
31
- },
32
- compoundVariants: [
33
- {
34
- color: "black",
35
- variant: "none",
36
- class: "text-black"
37
- },
38
- {
39
- color: "error",
40
- variant: "none",
41
- class: "text-error"
42
- }
43
- ],
44
- defaultVariants: {
45
- color: "black",
46
- variant: "none"
47
- }
48
- },
49
- radioGroup: {
50
- slots: {
51
- root: "w-max",
52
- base: "bg-secondary-500 ring-0 cursor-pointer",
53
- item: `flex items-center text-black not-has-[button[aria-checked="true"]]:text-secondary-500`,
54
- label: "text-inherit font-medium text-4xl cursor-pointer",
55
- indicator: "after:bg-transparent cursor-pointer"
56
- },
57
- variants: {
58
- indicator: {
59
- start: {
60
- wrapper: "ml-2.5"
61
- }
62
- },
63
- size: {
64
- xl: {
65
- base: "size-big"
66
- }
67
- }
68
- },
69
- defaultVariants: {
70
- color: "black",
71
- variant: "list",
72
- size: "xl"
73
- }
74
- },
75
- fileUpload: {
76
- slots: {
77
- root: "cursor-pointer",
78
- base: "border-none rounded-none bg-gray-500",
79
- avatar: "bg-transparent text-6xl",
80
- fileLeadingAvatar: "bg-secondary-500 text-6xl"
81
- },
82
- variants: {
83
- dropzone: {
84
- true: "border-none"
85
- },
86
- layout: {
87
- grid: {
88
- fileLeadingAvatar: "rounded-none"
89
- }
90
- }
91
- },
92
- compoundVariants: [
93
- {
94
- interactive: true,
95
- disabled: false,
96
- class: "hover:!bg-gray-500 hover:opacity-70"
97
- }
98
- ]
99
- },
100
- card: {
101
- slots: {
102
- root: "rounded-none",
103
- body: "p-0 sm:p-0",
104
- footer: "p-0 sm:px-0 !pl-5 !pt-5 text-xl text-black font-medium"
105
- },
106
- variants: {
107
- variant: {
108
- outline: "ring-0"
109
- }
110
- }
111
- }
112
- }
113
- };
114
-
115
5
  const module$1 = defineNuxtModule({
116
6
  meta: {
117
7
  name: "irbags-ui",
@@ -153,7 +43,7 @@ const module$1 = defineNuxtModule({
153
43
  const modulesToInstall = /* @__PURE__ */ new Map([["@nuxt/ui", {}]]);
154
44
  const installed = /* @__PURE__ */ new Set([]);
155
45
  await installModules(modulesToInstall, installed, _nuxt);
156
- const { ui: { colors, button, card, fileUpload, input, radioGroup } } = ibgAppConfig;
46
+ const { ui: { colors, button, card, fileUpload, input, radioGroup } } = (await import('./chunks/app.config.mjs')).ibgAppConfig;
157
47
  _nuxt.options.appConfig = {
158
48
  ..._nuxt.options.appConfig,
159
49
  ui: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@irbags/ui-kit",
3
- "version": "1.0.1-alpha.15",
3
+ "version": "1.0.1-alpha.17",
4
4
  "description": "IRBAGS UI Kit",
5
5
  "repository": {
6
6
  "type": "git",