@topvisor/ui 0.0.10 → 0.0.12

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 (55) hide show
  1. package/README.md +85 -85
  2. package/c/button/button.amd.js +27 -32
  3. package/c/button/button.amd.js.map +1 -1
  4. package/c/button/button.js +28 -33
  5. package/c/button/button.js.map +1 -1
  6. package/c/checkbox/checkbox.amd.js +58 -0
  7. package/c/checkbox/checkbox.amd.js.map +1 -0
  8. package/c/checkbox/checkbox.js +59 -0
  9. package/c/checkbox/checkbox.js.map +1 -0
  10. package/c/example/example.amd.js +7 -7
  11. package/c/example/example.js +7 -7
  12. package/c/{Icon/Icon.amd.js → icon/icon.amd.js} +4 -4
  13. package/c/icon/icon.amd.js.map +1 -0
  14. package/c/{Icon/Icon.js → icon/icon.js} +4 -4
  15. package/c/icon/icon.js.map +1 -0
  16. package/c/radio/radio.amd.js +49 -0
  17. package/c/radio/radio.amd.js.map +1 -0
  18. package/c/radio/radio.js +50 -0
  19. package/c/radio/radio.js.map +1 -0
  20. package/c/style.css +199 -76
  21. package/core.css +285 -110
  22. package/dark.css +12 -12
  23. package/l/common/common.amd.js +6 -5
  24. package/l/common/common.amd.js.map +1 -1
  25. package/l/common/common.js +4 -4
  26. package/l/forms/forms.amd.js +66 -56
  27. package/l/forms/forms.amd.js.map +1 -1
  28. package/l/forms/forms.js +67 -57
  29. package/l/forms/forms.js.map +1 -1
  30. package/l/style.css +160 -76
  31. package/light.css +15 -15
  32. package/package.json +1 -4
  33. package/c/Icon/Icon.amd.js.map +0 -1
  34. package/c/Icon/Icon.js.map +0 -1
  35. package/c/README.md +0 -86
  36. package/c/icomoon/demo-files/Read Me.txt +0 -7
  37. package/c/icomoon/demo-files/demo.css +0 -161
  38. package/c/icomoon/demo-files/demo.js +0 -30
  39. package/c/icomoon/demo.html +0 -2931
  40. package/c/icomoon/fonts/Topvisor-2.svg +0 -232
  41. package/c/icomoon/fonts/Topvisor-2.ttf +0 -0
  42. package/c/icomoon/fonts/Topvisor-2.woff +0 -0
  43. package/c/icomoon/selection.json +0 -1
  44. package/c/icomoon/style.css +0 -644
  45. package/icomoon/Read Me.txt +0 -7
  46. package/l/README.md +0 -86
  47. package/l/icomoon/demo-files/Read Me.txt +0 -7
  48. package/l/icomoon/demo-files/demo.css +0 -161
  49. package/l/icomoon/demo-files/demo.js +0 -30
  50. package/l/icomoon/demo.html +0 -2931
  51. package/l/icomoon/fonts/Topvisor-2.svg +0 -232
  52. package/l/icomoon/fonts/Topvisor-2.ttf +0 -0
  53. package/l/icomoon/fonts/Topvisor-2.woff +0 -0
  54. package/l/icomoon/selection.json +0 -1
  55. package/l/icomoon/style.css +0 -644
package/README.md CHANGED
@@ -1,86 +1,86 @@
1
- # UI kit Topvisor Vue
2
-
3
- ## Vue компоненты
4
-
5
- Компоненты разделены на библиотеки, чтобы их можно было грузить пачками прямо с CDN.
6
-
7
- Компоненты можно грузить по отдельности.
8
-
9
- Компоненты поставляются в двух форматах:
10
-
11
- - amd (requirejs)
12
- - es
13
-
14
- Расположение компонентов и библиотек:
15
- - /c/ - папка с компонентами
16
- - /l/ - папка с библиотеками
17
-
18
- Список всех компонентов см. на [npmjs](https://www.npmjs.com/package/topvisor-ui?activeTab=code).
19
-
20
- ## Другие ресурсы
21
-
22
- - /core.css - основная палитра цветов и стили компонентов
23
- - /light.css - светлая тема
24
- - /dark.css - темная тема
25
-
26
- ## Подключение стилей
27
-
28
- Подключение базовых стилей и переменных палитры.
29
- Подключение базовых стилей, переменных палитры и основных компонентов.
30
- Подключение базовых стилей и переменных палитры.
31
- Стили сложных компонентов рекомендуется грузить асинхронно.
32
-
33
- ```js
34
- import '@topvisor/ui/core.css';
35
- ```
36
-
37
- Подключение стилей темы на примере светлой темы.
38
-
39
- ```js
40
- import '@topvisor/ui/light.css';
41
- ```
42
-
43
- Для смены темы необходимо подгрузить файл стилей необходимой темы и сразу отключить стили предыдущей темы.
44
-
45
- Подключение стилей основных компонентов.
46
-
47
- ```js
48
- import '@topvisor/ui/l/style.css';
49
- ```
50
-
51
- Подключение набора иконок шрифта icomoon.
52
-
53
- ```js
54
- import '@topvisor/ui/icomoon/style.css';
55
- ```
56
-
57
- ## Подключение компонента
58
-
59
- Пример подключения компонента Button.
60
-
61
- ```javascript
62
- requirejs(['topvisor-ui/c/button/button.amd'], Button => {
63
- console.log(Button);
64
- });
65
- ```
66
-
67
- ## Подключение библиотек компонентов
68
-
69
- В большинстве случаев группы компонентов грузить отдельно нет смысла, поэтому она вынесены в библиотеки.
70
-
71
- Не грузите один и тот же компонент двумя способами, это приведет к тому, что он будет загружен дважды.
72
-
73
- Пример подключения библиотеки Forms со всеми ее компонентами:
74
-
75
- ```javascript
76
- requirejs(['topvisor-ui/l/forms/forms.amd'], ({Button}) => {
77
- console.log(Button);
78
- });
79
-
80
- requirejs(['topvisor-ui/l/forms/forms.amd'], Forms => {
81
- const { Button } = Forms;
82
-
83
- console.log(Forms);
84
- console.log(Button);
85
- });
1
+ # UI kit Topvisor Vue
2
+
3
+ ## Vue компоненты
4
+
5
+ Компоненты разделены на библиотеки, чтобы их можно было грузить пачками прямо с CDN.
6
+
7
+ Компоненты можно грузить по отдельности.
8
+
9
+ Компоненты поставляются в двух форматах:
10
+
11
+ - amd (requirejs)
12
+ - es
13
+
14
+ Расположение компонентов и библиотек:
15
+ - /c/ - папка с компонентами
16
+ - /l/ - папка с библиотеками
17
+
18
+ Список всех компонентов см. на [npmjs](https://www.npmjs.com/package/topvisor-ui?activeTab=code).
19
+
20
+ ## Другие ресурсы
21
+
22
+ - /core.css - основная палитра цветов и стили компонентов
23
+ - /light.css - светлая тема
24
+ - /dark.css - темная тема
25
+
26
+ ## Подключение стилей
27
+
28
+ Подключение базовых стилей и переменных палитры.
29
+ Подключение базовых стилей, переменных палитры и основных компонентов.
30
+ Подключение базовых стилей и переменных палитры.
31
+ Стили сложных компонентов рекомендуется грузить асинхронно.
32
+
33
+ ```js
34
+ import '@topvisor/ui/core.css';
35
+ ```
36
+
37
+ Подключение стилей темы на примере светлой темы.
38
+
39
+ ```js
40
+ import '@topvisor/ui/light.css';
41
+ ```
42
+
43
+ Для смены темы необходимо подгрузить файл стилей необходимой темы и сразу отключить стили предыдущей темы.
44
+
45
+ Подключение стилей основных компонентов.
46
+
47
+ ```js
48
+ import '@topvisor/ui/l/style.css';
49
+ ```
50
+
51
+ Подключение набора иконок шрифта icomoon.
52
+
53
+ ```js
54
+ import '@topvisor/ui/icomoon/style.css';
55
+ ```
56
+
57
+ ## Подключение компонента
58
+
59
+ Пример подключения компонента Button.
60
+
61
+ ```javascript
62
+ requirejs(['topvisor-ui/c/button/button.amd'], Button => {
63
+ console.log(Button);
64
+ });
65
+ ```
66
+
67
+ ## Подключение библиотек компонентов
68
+
69
+ В большинстве случаев группы компонентов грузить отдельно нет смысла, поэтому она вынесены в библиотеки.
70
+
71
+ Не грузите один и тот же компонент двумя способами, это приведет к тому, что он будет загружен дважды.
72
+
73
+ Пример подключения библиотеки Forms со всеми ее компонентами:
74
+
75
+ ```javascript
76
+ requirejs(['topvisor-ui/l/forms/forms.amd'], ({Button}) => {
77
+ console.log(Button);
78
+ });
79
+
80
+ requirejs(['topvisor-ui/l/forms/forms.amd'], Forms => {
81
+ const { Button } = Forms;
82
+
83
+ console.log(Forms);
84
+ console.log(Button);
85
+ });
86
86
  ```
@@ -40,30 +40,25 @@ define(["vue", "../_plugin-vue_export-helper-cb5c78ba"], function(vue, _pluginVu
40
40
  },
41
41
  setup(__props) {
42
42
  const props = __props;
43
- const style = vue.useCssModule();
44
43
  const tagName = vue.computed(() => props.href ? "a" : "button");
45
44
  const type = vue.computed(() => props.isSubmit ? "submit" : void 0);
46
- const classes = vue.computed(() => {
47
- return {
48
- ["g"]: true,
49
- ["g-active"]: props.isActive,
50
- ["g-disabled"]: props.disabled,
51
- [style["top-button"]]: true,
52
- [style["top-button-progress"]]: props.isProgress,
53
- [style[`g-size_${props.size}`]]: !!props.size,
54
- [style[`g-color_${props.color}`]]: true,
55
- [style[`g-style_${props.styling}`]]: !!props.styling
56
- };
57
- });
58
45
  return (_ctx, _cache) => {
59
46
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
60
- class: vue.normalizeClass(classes.value),
47
+ class: vue.normalizeClass({
48
+ ["top-active"]: props.isActive,
49
+ ["top-disabled"]: props.disabled,
50
+ [_ctx.$style["top-button"]]: true,
51
+ [_ctx.$style["top-button-progress"]]: props.isProgress,
52
+ [_ctx.$style[`top-size_${props.size}`]]: !!props.size,
53
+ [_ctx.$style[`top-color_${props.color}`]]: true,
54
+ [_ctx.$style[`top-style_${props.styling}`]]: !!props.styling
55
+ }),
61
56
  name: _ctx.name,
62
57
  title: _ctx.title,
63
58
  href: _ctx.href,
64
59
  type: type.value,
65
- "data-g-icon": _ctx.icon || void 0,
66
- "data-g-icon2": _ctx.icon2 || void 0,
60
+ "data-top-icon": _ctx.icon || void 0,
61
+ "data-top-icon2": _ctx.icon2 || void 0,
67
62
  disabled: _ctx.disabled || void 0,
68
63
  inProgress: _ctx.isProgress
69
64
  }, {
@@ -73,32 +68,32 @@ define(["vue", "../_plugin-vue_export-helper-cb5c78ba"], function(vue, _pluginVu
73
68
  ])
74
69
  ]),
75
70
  _: 3
76
- }, 8, ["class", "name", "title", "href", "type", "data-g-icon", "data-g-icon2", "disabled", "inProgress"]);
71
+ }, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]);
77
72
  };
78
73
  }
79
74
  });
80
- const progress = "_progress_1k69v_1";
75
+ const progress = "_progress_fevtt_1";
81
76
  const style0 = {
82
77
  "top-button": "top-button",
83
- "g-active": "g-active",
78
+ "top-active": "top-active",
84
79
  "top-button-progress": "top-button-progress",
85
80
  progress,
86
- "g-color_blue": "g-color_blue",
87
- "g-color_green": "g-color_green",
88
- "g-color_orange": "g-color_orange",
89
- "g-color_red": "g-color_red",
90
- "g-color_pink": "g-color_pink",
91
- "g-color_theme": "g-color_theme",
92
- "g-style_outline": "g-style_outline",
93
- "g-style_soft": "g-style_soft",
94
- "g-style_transparent": "g-style_transparent",
95
- "g-size_l": "g-size_l",
96
- "g-size_xl": "g-size_xl"
81
+ "top-color_blue": "top-color_blue",
82
+ "top-color_green": "top-color_green",
83
+ "top-color_orange": "top-color_orange",
84
+ "top-color_red": "top-color_red",
85
+ "top-color_pink": "top-color_pink",
86
+ "top-color_theme": "top-color_theme",
87
+ "top-style_outline": "top-style_outline",
88
+ "top-style_soft": "top-style_soft",
89
+ "top-style_transparent": "top-style_transparent",
90
+ "top-size_l": "top-size_l",
91
+ "top-size_xl": "top-size_xl"
97
92
  };
98
93
  const cssModules = {
99
94
  "$style": style0
100
95
  };
101
- const Button = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__cssModules", cssModules]]);
102
- return Button;
96
+ const button = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__cssModules", cssModules]]);
97
+ return button;
103
98
  });
104
99
  //# sourceMappingURL=button.amd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.amd.js","sources":["../../../src/components/forms/button/button.ts","../../../src/components/forms/button/button.vue"],"sourcesContent":["import type { VNode } from 'vue';\n\n/**\n * Определение параметров\n */\nexport interface Props {\n\tcolor?: COLOR\n\tstyling?: STYLING // bug: name = style init with object type\n\tsize?: SIZE\n\n\tname?: string\n\ttitle?: string\n\ticon?: string\n\ticon2?: string\n\n\thref?: string // если установлена ссылка, isSubmit не может быть true\n\t// value?: string\n\n\tdisabled?: boolean\n\tisSubmit?: boolean\n\tisActive?: boolean\n\tisProgress?: boolean\n}\n\n/**\n * Определение слотов\n */\nexport interface Slots {\n\t/**\n\t * Cлот с проивзольным содержимым\n\t */\n\tdefault(): VNode[];\n}\n\n/**\n * Определение событий\n */\nexport interface Emits { }\n\n/**\n * Цвета\n */\nexport enum COLOR {\n\tTheme = 'theme',\n\tBlue = 'blue',\n\tGreen = 'green',\n\tOrange = 'orange',\n\tRed = 'red',\n\tPink = 'pink',\n}\n\n/**\n * Стили\n */\nexport enum STYLING {\n\tRegular = '',\n\tOutline = 'outline',\n\tSoft = 'soft',\n\tTransparent = 'transparent',\n}\n\n/**\n * Размеры\n */\nexport enum SIZE {\n\tS = '',\n\tL = 'l',\n\tXL = 'xl',\n}","<script setup lang=\"ts\">\nimport { computed, useCssModule } from 'vue';\nimport type { Props } from './button';\nimport { COLOR, STYLING, SIZE } from './button';\n\nconst props = withDefaults(defineProps<Props>(), {\n\tcolor: COLOR.Blue,\n\tstyling: STYLING.Regular,\n\tsize: SIZE.S,\n});\n\nconst style = useCssModule();\n\nconst tagName = computed(() => props.href ? 'a' : 'button');\n\nconst type = computed(() => props.isSubmit ? 'submit' : undefined);\n\nconst classes = computed(() => {\n\treturn {\n\t\t['g']: true,\n\t\t['g-active']: props.isActive,\n\t\t['g-disabled']: props.disabled,\n\t\t[style['top-button']]: true,\n\t\t[style['top-button-progress']]: props.isProgress,\n\t\t[style[`g-size_${props.size}`]]: !!props.size,\n\t\t[style[`g-color_${props.color}`]]: true,\n\t\t[style[`g-style_${props.styling}`]]: !!props.styling,\n\t};\n});\n</script>\n\n<template>\n\t<component\n\t\t:is=\"tagName\"\n\t\t:class=\"classes\"\n\t\t:name=\"name\"\n\t\t:title=\"title\"\n\t\t:href=\"href\"\n\t\t:type=\"type\"\n\t\t:data-g-icon=\"icon || undefined\"\n\t\t:data-g-icon2=\"icon2 || undefined\"\n\t\t:disabled=\"disabled || undefined\"\n\t\t:inProgress=\"isProgress\"\n\t>\n\t\t<slot>{{ !icon ? \"Button\" : \"\" }}</slot>\n\t</component>\n</template>\n\n<style module>\n@import \"./style/button.css\";\n@import \"./style/style-outline.css\";\n@import \"./style/style-soft.css\";\n@import \"./style/style-transparent.css\";\n\n.top-button {\n\t--top-button-color: var(--color-white);\n\t--top-button-background-color: transparent;\n\t--top-button-background-color-hover: var(--top-button-background-color);\n\t--top-button-background-color-active: var(--top-button-background-color-hover);\n\t--top-button-background-color-selected: var(--top-button-background-color-hover);\n\t--top-button-box-shadow: none;\n\t--top-button-box-shadow-hover: var(--g-shadow-darken-2);\n\t--top-button-box-shadow-active: var(--g-shadow-darken-3);\n\t--top-button-box-shadow-selected: var(--g-shadow-darken-3);\n\t--g-forms-border-width: 0px;\n\t--g-icon-width: calc(var(--g-icon-size) + var(--g-forms-padding));\n\t--g-icon2-width: calc(var(--g-icon2-size) + var(--g-forms-padding));\n}\n\n.top-button.g-size_l {\n\t--g-forms-padding: var(--g-forms-padding_l);\n\t--g-forms-base-height: var(--g-forms-base-height_l);\n}\n\n.top-button.g-size_xl {\n\t--g-forms-padding: var(--g-forms-padding_xl);\n\t--g-forms-base-height: var(--g-forms-base-height_xl);\n}\n\n.top-button-progress {}\n</style>"],"names":["COLOR","STYLING","SIZE","useCssModule","computed"],"mappings":";;AA0CY,MAAA,0BAAAA,WAAL;AACNA,WAAA,OAAQ,IAAA;AACRA,WAAA,MAAO,IAAA;AACPA,WAAA,OAAQ,IAAA;AACRA,WAAA,QAAS,IAAA;AACTA,WAAA,KAAM,IAAA;AACNA,WAAA,MAAO,IAAA;AANIA,WAAAA;AAAAA,EAAA,GAAA,SAAA,CAAA,CAAA;AAYA,MAAA,4BAAAC,aAAL;AACNA,aAAA,SAAU,IAAA;AACVA,aAAA,SAAU,IAAA;AACVA,aAAA,MAAO,IAAA;AACPA,aAAA,aAAc,IAAA;AAJHA,WAAAA;AAAAA,EAAA,GAAA,WAAA,CAAA,CAAA;AAUA,MAAA,yBAAAC,UAAL;AACNA,UAAA,GAAI,IAAA;AACJA,UAAA,GAAI,IAAA;AACJA,UAAA,IAAK,IAAA;AAHMA,WAAAA;AAAAA,EAAA,GAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;ACrDZ,YAAM,QAAQC,IAAAA;AAEd,YAAM,UAAUC,IAAAA,SAAS,MAAM,MAAM,OAAO,MAAM,QAAQ;AAE1D,YAAM,OAAOA,IAAAA,SAAS,MAAM,MAAM,WAAW,WAAW,MAAS;AAE3D,YAAA,UAAUA,IAAAA,SAAS,MAAM;AACvB,eAAA;AAAA,UACN,CAAC,GAAG,GAAG;AAAA,UACP,CAAC,UAAU,GAAG,MAAM;AAAA,UACpB,CAAC,YAAY,GAAG,MAAM;AAAA,UACtB,CAAC,MAAM,YAAY,CAAC,GAAG;AAAA,UACvB,CAAC,MAAM,qBAAqB,CAAC,GAAG,MAAM;AAAA,UACtC,CAAC,MAAM,UAAU,MAAM,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM;AAAA,UACzC,CAAC,MAAM,WAAW,MAAM,KAAK,EAAE,CAAC,GAAG;AAAA,UACnC,CAAC,MAAM,WAAW,MAAM,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM;AAAA,QAAA;AAAA,MAC9C,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"button.amd.js","sources":["../../../src/components/forms/button/button.ts","../../../src/components/forms/button/button.vue"],"sourcesContent":["import type { VNode } from 'vue';\n\n/**\n * Определение параметров\n */\nexport interface Props {\n\tcolor?: COLOR\n\tstyling?: STYLING // bug: name = style init with object type\n\tsize?: SIZE\n\n\tname?: string\n\ttitle?: string\n\ticon?: string\n\ticon2?: string\n\n\thref?: string // если установлена ссылка, isSubmit не может быть true\n\t// value?: string\n\n\tdisabled?: boolean\n\tisSubmit?: boolean\n\tisActive?: boolean\n\tisProgress?: boolean\n}\n\n/**\n * Определение слотов\n */\nexport interface Slots {\n\t/**\n\t * Cлот с проивзольным содержимым\n\t */\n\tdefault(): VNode[];\n}\n\n/**\n * Определение событий\n */\nexport interface Emits { }\n\n/**\n * Цвета\n */\nexport enum COLOR {\n\tTheme = 'theme',\n\tBlue = 'blue',\n\tGreen = 'green',\n\tOrange = 'orange',\n\tRed = 'red',\n\tPink = 'pink',\n}\n\n/**\n * Стили\n */\nexport enum STYLING {\n\tRegular = '',\n\tOutline = 'outline',\n\tSoft = 'soft',\n\tTransparent = 'transparent',\n}\n\n/**\n * Размеры\n */\nexport enum SIZE {\n\tS = '',\n\tL = 'l',\n\tXL = 'xl',\n}","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { Props } from './button';\nimport { COLOR, STYLING, SIZE } from './button';\n\nconst props = withDefaults(defineProps<Props>(), {\n\tcolor: COLOR.Blue,\n\tstyling: STYLING.Regular,\n\tsize: SIZE.S,\n});\n\nconst tagName = computed(() => props.href ? 'a' : 'button');\n\nconst type = computed(() => props.isSubmit ? 'submit' : undefined);\n</script>\n\n<template>\n\t<component\n\t\t:is=\"tagName\"\n\t\t:class=\"{\n\t\t\t['top-active']: props.isActive,\n\t\t\t['top-disabled']: props.disabled,\n\t\t\t[$style['top-button']]: true,\n\t\t\t[$style['top-button-progress']]: props.isProgress,\n\t\t\t[$style[`top-size_${props.size}`]]: !!props.size,\n\t\t\t[$style[`top-color_${props.color}`]]: true,\n\t\t\t[$style[`top-style_${props.styling}`]]: !!props.styling,\n\t\t}\"\n\t\t:name=\"name\"\n\t\t:title=\"title\"\n\t\t:href=\"href\"\n\t\t:type=\"type\"\n\t\t:data-top-icon=\"icon || undefined\"\n\t\t:data-top-icon2=\"icon2 || undefined\"\n\t\t:disabled=\"disabled || undefined\"\n\t\t:inProgress=\"isProgress\"\n\t>\n\t\t<slot>{{ !icon ? \"Button\" : \"\" }}</slot>\n\t</component>\n</template>\n\n<style module>\n@import \"./style/button.css\";\n@import \"./style/style-outline.css\";\n@import \"./style/style-soft.css\";\n@import \"./style/style-transparent.css\";\n\n.top-button {\n\t--top-button-color: var(--color-white);\n\t--top-button-background-color: transparent;\n\t--top-button-background-color-hover: var(--top-button-background-color);\n\t--top-button-background-color-active: var(--top-button-background-color-hover);\n\t--top-button-background-color-selected: var(--top-button-background-color-hover);\n\t--top-button-box-shadow: none;\n\t--top-button-box-shadow-hover: var(--top-shadow-darken-2);\n\t--top-button-box-shadow-active: var(--top-shadow-darken-3);\n\t--top-button-box-shadow-selected: var(--top-shadow-darken-3);\n\t--top-forms-border-width: 0px;\n\t--top-icon-width: calc(var(--top-icon-size) + var(--top-forms-padding));\n\t--top-icon2-width: calc(var(--top-icon2-size) + var(--top-forms-padding));\n}\n\n.top-button.top-size_l {\n\t--top-forms-padding: var(--top-forms-padding_l);\n\t--top-forms-base-height: var(--top-forms-base-height_l);\n}\n\n.top-button.top-size_xl {\n\t--top-forms-padding: var(--top-forms-padding_xl);\n\t--top-forms-base-height: var(--top-forms-base-height_xl);\n}\n\n.top-button-progress {}\n</style>"],"names":["COLOR","STYLING","SIZE","computed"],"mappings":";;AA0CY,MAAA,0BAAAA,WAAL;AACNA,WAAA,OAAQ,IAAA;AACRA,WAAA,MAAO,IAAA;AACPA,WAAA,OAAQ,IAAA;AACRA,WAAA,QAAS,IAAA;AACTA,WAAA,KAAM,IAAA;AACNA,WAAA,MAAO,IAAA;AANIA,WAAAA;AAAAA,EAAA,GAAA,SAAA,CAAA,CAAA;AAYA,MAAA,4BAAAC,aAAL;AACNA,aAAA,SAAU,IAAA;AACVA,aAAA,SAAU,IAAA;AACVA,aAAA,MAAO,IAAA;AACPA,aAAA,aAAc,IAAA;AAJHA,WAAAA;AAAAA,EAAA,GAAA,WAAA,CAAA,CAAA;AAUA,MAAA,yBAAAC,UAAL;AACNA,UAAA,GAAI,IAAA;AACJA,UAAA,GAAI,IAAA;AACJA,UAAA,IAAK,IAAA;AAHMA,WAAAA;AAAAA,EAAA,GAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;ACrDZ,YAAM,UAAUC,IAAAA,SAAS,MAAM,MAAM,OAAO,MAAM,QAAQ;AAE1D,YAAM,OAAOA,IAAAA,SAAS,MAAM,MAAM,WAAW,WAAW,MAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, useCssModule, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
1
+ import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
2
2
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
3
3
  var COLOR = /* @__PURE__ */ ((COLOR2) => {
4
4
  COLOR2["Theme"] = "theme";
@@ -40,30 +40,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
40
  },
41
41
  setup(__props) {
42
42
  const props = __props;
43
- const style = useCssModule();
44
43
  const tagName = computed(() => props.href ? "a" : "button");
45
44
  const type = computed(() => props.isSubmit ? "submit" : void 0);
46
- const classes = computed(() => {
47
- return {
48
- ["g"]: true,
49
- ["g-active"]: props.isActive,
50
- ["g-disabled"]: props.disabled,
51
- [style["top-button"]]: true,
52
- [style["top-button-progress"]]: props.isProgress,
53
- [style[`g-size_${props.size}`]]: !!props.size,
54
- [style[`g-color_${props.color}`]]: true,
55
- [style[`g-style_${props.styling}`]]: !!props.styling
56
- };
57
- });
58
45
  return (_ctx, _cache) => {
59
46
  return openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
60
- class: normalizeClass(classes.value),
47
+ class: normalizeClass({
48
+ ["top-active"]: props.isActive,
49
+ ["top-disabled"]: props.disabled,
50
+ [_ctx.$style["top-button"]]: true,
51
+ [_ctx.$style["top-button-progress"]]: props.isProgress,
52
+ [_ctx.$style[`top-size_${props.size}`]]: !!props.size,
53
+ [_ctx.$style[`top-color_${props.color}`]]: true,
54
+ [_ctx.$style[`top-style_${props.styling}`]]: !!props.styling
55
+ }),
61
56
  name: _ctx.name,
62
57
  title: _ctx.title,
63
58
  href: _ctx.href,
64
59
  type: type.value,
65
- "data-g-icon": _ctx.icon || void 0,
66
- "data-g-icon2": _ctx.icon2 || void 0,
60
+ "data-top-icon": _ctx.icon || void 0,
61
+ "data-top-icon2": _ctx.icon2 || void 0,
67
62
  disabled: _ctx.disabled || void 0,
68
63
  inProgress: _ctx.isProgress
69
64
  }, {
@@ -73,33 +68,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
73
68
  ])
74
69
  ]),
75
70
  _: 3
76
- }, 8, ["class", "name", "title", "href", "type", "data-g-icon", "data-g-icon2", "disabled", "inProgress"]);
71
+ }, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]);
77
72
  };
78
73
  }
79
74
  });
80
- const progress = "_progress_1k69v_1";
75
+ const progress = "_progress_fevtt_1";
81
76
  const style0 = {
82
77
  "top-button": "top-button",
83
- "g-active": "g-active",
78
+ "top-active": "top-active",
84
79
  "top-button-progress": "top-button-progress",
85
80
  progress,
86
- "g-color_blue": "g-color_blue",
87
- "g-color_green": "g-color_green",
88
- "g-color_orange": "g-color_orange",
89
- "g-color_red": "g-color_red",
90
- "g-color_pink": "g-color_pink",
91
- "g-color_theme": "g-color_theme",
92
- "g-style_outline": "g-style_outline",
93
- "g-style_soft": "g-style_soft",
94
- "g-style_transparent": "g-style_transparent",
95
- "g-size_l": "g-size_l",
96
- "g-size_xl": "g-size_xl"
81
+ "top-color_blue": "top-color_blue",
82
+ "top-color_green": "top-color_green",
83
+ "top-color_orange": "top-color_orange",
84
+ "top-color_red": "top-color_red",
85
+ "top-color_pink": "top-color_pink",
86
+ "top-color_theme": "top-color_theme",
87
+ "top-style_outline": "top-style_outline",
88
+ "top-style_soft": "top-style_soft",
89
+ "top-style_transparent": "top-style_transparent",
90
+ "top-size_l": "top-size_l",
91
+ "top-size_xl": "top-size_xl"
97
92
  };
98
93
  const cssModules = {
99
94
  "$style": style0
100
95
  };
101
- const Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
96
+ const button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
102
97
  export {
103
- Button as default
98
+ button as default
104
99
  };
105
100
  //# sourceMappingURL=button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sources":["../../../src/components/forms/button/button.ts","../../../src/components/forms/button/button.vue"],"sourcesContent":["import type { VNode } from 'vue';\n\n/**\n * Определение параметров\n */\nexport interface Props {\n\tcolor?: COLOR\n\tstyling?: STYLING // bug: name = style init with object type\n\tsize?: SIZE\n\n\tname?: string\n\ttitle?: string\n\ticon?: string\n\ticon2?: string\n\n\thref?: string // если установлена ссылка, isSubmit не может быть true\n\t// value?: string\n\n\tdisabled?: boolean\n\tisSubmit?: boolean\n\tisActive?: boolean\n\tisProgress?: boolean\n}\n\n/**\n * Определение слотов\n */\nexport interface Slots {\n\t/**\n\t * Cлот с проивзольным содержимым\n\t */\n\tdefault(): VNode[];\n}\n\n/**\n * Определение событий\n */\nexport interface Emits { }\n\n/**\n * Цвета\n */\nexport enum COLOR {\n\tTheme = 'theme',\n\tBlue = 'blue',\n\tGreen = 'green',\n\tOrange = 'orange',\n\tRed = 'red',\n\tPink = 'pink',\n}\n\n/**\n * Стили\n */\nexport enum STYLING {\n\tRegular = '',\n\tOutline = 'outline',\n\tSoft = 'soft',\n\tTransparent = 'transparent',\n}\n\n/**\n * Размеры\n */\nexport enum SIZE {\n\tS = '',\n\tL = 'l',\n\tXL = 'xl',\n}","<script setup lang=\"ts\">\nimport { computed, useCssModule } from 'vue';\nimport type { Props } from './button';\nimport { COLOR, STYLING, SIZE } from './button';\n\nconst props = withDefaults(defineProps<Props>(), {\n\tcolor: COLOR.Blue,\n\tstyling: STYLING.Regular,\n\tsize: SIZE.S,\n});\n\nconst style = useCssModule();\n\nconst tagName = computed(() => props.href ? 'a' : 'button');\n\nconst type = computed(() => props.isSubmit ? 'submit' : undefined);\n\nconst classes = computed(() => {\n\treturn {\n\t\t['g']: true,\n\t\t['g-active']: props.isActive,\n\t\t['g-disabled']: props.disabled,\n\t\t[style['top-button']]: true,\n\t\t[style['top-button-progress']]: props.isProgress,\n\t\t[style[`g-size_${props.size}`]]: !!props.size,\n\t\t[style[`g-color_${props.color}`]]: true,\n\t\t[style[`g-style_${props.styling}`]]: !!props.styling,\n\t};\n});\n</script>\n\n<template>\n\t<component\n\t\t:is=\"tagName\"\n\t\t:class=\"classes\"\n\t\t:name=\"name\"\n\t\t:title=\"title\"\n\t\t:href=\"href\"\n\t\t:type=\"type\"\n\t\t:data-g-icon=\"icon || undefined\"\n\t\t:data-g-icon2=\"icon2 || undefined\"\n\t\t:disabled=\"disabled || undefined\"\n\t\t:inProgress=\"isProgress\"\n\t>\n\t\t<slot>{{ !icon ? \"Button\" : \"\" }}</slot>\n\t</component>\n</template>\n\n<style module>\n@import \"./style/button.css\";\n@import \"./style/style-outline.css\";\n@import \"./style/style-soft.css\";\n@import \"./style/style-transparent.css\";\n\n.top-button {\n\t--top-button-color: var(--color-white);\n\t--top-button-background-color: transparent;\n\t--top-button-background-color-hover: var(--top-button-background-color);\n\t--top-button-background-color-active: var(--top-button-background-color-hover);\n\t--top-button-background-color-selected: var(--top-button-background-color-hover);\n\t--top-button-box-shadow: none;\n\t--top-button-box-shadow-hover: var(--g-shadow-darken-2);\n\t--top-button-box-shadow-active: var(--g-shadow-darken-3);\n\t--top-button-box-shadow-selected: var(--g-shadow-darken-3);\n\t--g-forms-border-width: 0px;\n\t--g-icon-width: calc(var(--g-icon-size) + var(--g-forms-padding));\n\t--g-icon2-width: calc(var(--g-icon2-size) + var(--g-forms-padding));\n}\n\n.top-button.g-size_l {\n\t--g-forms-padding: var(--g-forms-padding_l);\n\t--g-forms-base-height: var(--g-forms-base-height_l);\n}\n\n.top-button.g-size_xl {\n\t--g-forms-padding: var(--g-forms-padding_xl);\n\t--g-forms-base-height: var(--g-forms-base-height_xl);\n}\n\n.top-button-progress {}\n</style>"],"names":["COLOR","STYLING","SIZE"],"mappings":";;AA0CY,IAAA,0BAAAA,WAAL;AACNA,SAAA,OAAQ,IAAA;AACRA,SAAA,MAAO,IAAA;AACPA,SAAA,OAAQ,IAAA;AACRA,SAAA,QAAS,IAAA;AACTA,SAAA,KAAM,IAAA;AACNA,SAAA,MAAO,IAAA;AANIA,SAAAA;AAAA,GAAA,SAAA,CAAA,CAAA;AAYA,IAAA,4BAAAC,aAAL;AACNA,WAAA,SAAU,IAAA;AACVA,WAAA,SAAU,IAAA;AACVA,WAAA,MAAO,IAAA;AACPA,WAAA,aAAc,IAAA;AAJHA,SAAAA;AAAA,GAAA,WAAA,CAAA,CAAA;AAUA,IAAA,yBAAAC,UAAL;AACNA,QAAA,GAAI,IAAA;AACJA,QAAA,GAAI,IAAA;AACJA,QAAA,IAAK,IAAA;AAHMA,SAAAA;AAAA,GAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;ACrDZ,UAAM,QAAQ;AAEd,UAAM,UAAU,SAAS,MAAM,MAAM,OAAO,MAAM,QAAQ;AAE1D,UAAM,OAAO,SAAS,MAAM,MAAM,WAAW,WAAW,MAAS;AAE3D,UAAA,UAAU,SAAS,MAAM;AACvB,aAAA;AAAA,QACN,CAAC,GAAG,GAAG;AAAA,QACP,CAAC,UAAU,GAAG,MAAM;AAAA,QACpB,CAAC,YAAY,GAAG,MAAM;AAAA,QACtB,CAAC,MAAM,YAAY,CAAC,GAAG;AAAA,QACvB,CAAC,MAAM,qBAAqB,CAAC,GAAG,MAAM;AAAA,QACtC,CAAC,MAAM,UAAU,MAAM,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM;AAAA,QACzC,CAAC,MAAM,WAAW,MAAM,KAAK,EAAE,CAAC,GAAG;AAAA,QACnC,CAAC,MAAM,WAAW,MAAM,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM;AAAA,MAAA;AAAA,IAC9C,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"button.js","sources":["../../../src/components/forms/button/button.ts","../../../src/components/forms/button/button.vue"],"sourcesContent":["import type { VNode } from 'vue';\n\n/**\n * Определение параметров\n */\nexport interface Props {\n\tcolor?: COLOR\n\tstyling?: STYLING // bug: name = style init with object type\n\tsize?: SIZE\n\n\tname?: string\n\ttitle?: string\n\ticon?: string\n\ticon2?: string\n\n\thref?: string // если установлена ссылка, isSubmit не может быть true\n\t// value?: string\n\n\tdisabled?: boolean\n\tisSubmit?: boolean\n\tisActive?: boolean\n\tisProgress?: boolean\n}\n\n/**\n * Определение слотов\n */\nexport interface Slots {\n\t/**\n\t * Cлот с проивзольным содержимым\n\t */\n\tdefault(): VNode[];\n}\n\n/**\n * Определение событий\n */\nexport interface Emits { }\n\n/**\n * Цвета\n */\nexport enum COLOR {\n\tTheme = 'theme',\n\tBlue = 'blue',\n\tGreen = 'green',\n\tOrange = 'orange',\n\tRed = 'red',\n\tPink = 'pink',\n}\n\n/**\n * Стили\n */\nexport enum STYLING {\n\tRegular = '',\n\tOutline = 'outline',\n\tSoft = 'soft',\n\tTransparent = 'transparent',\n}\n\n/**\n * Размеры\n */\nexport enum SIZE {\n\tS = '',\n\tL = 'l',\n\tXL = 'xl',\n}","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { Props } from './button';\nimport { COLOR, STYLING, SIZE } from './button';\n\nconst props = withDefaults(defineProps<Props>(), {\n\tcolor: COLOR.Blue,\n\tstyling: STYLING.Regular,\n\tsize: SIZE.S,\n});\n\nconst tagName = computed(() => props.href ? 'a' : 'button');\n\nconst type = computed(() => props.isSubmit ? 'submit' : undefined);\n</script>\n\n<template>\n\t<component\n\t\t:is=\"tagName\"\n\t\t:class=\"{\n\t\t\t['top-active']: props.isActive,\n\t\t\t['top-disabled']: props.disabled,\n\t\t\t[$style['top-button']]: true,\n\t\t\t[$style['top-button-progress']]: props.isProgress,\n\t\t\t[$style[`top-size_${props.size}`]]: !!props.size,\n\t\t\t[$style[`top-color_${props.color}`]]: true,\n\t\t\t[$style[`top-style_${props.styling}`]]: !!props.styling,\n\t\t}\"\n\t\t:name=\"name\"\n\t\t:title=\"title\"\n\t\t:href=\"href\"\n\t\t:type=\"type\"\n\t\t:data-top-icon=\"icon || undefined\"\n\t\t:data-top-icon2=\"icon2 || undefined\"\n\t\t:disabled=\"disabled || undefined\"\n\t\t:inProgress=\"isProgress\"\n\t>\n\t\t<slot>{{ !icon ? \"Button\" : \"\" }}</slot>\n\t</component>\n</template>\n\n<style module>\n@import \"./style/button.css\";\n@import \"./style/style-outline.css\";\n@import \"./style/style-soft.css\";\n@import \"./style/style-transparent.css\";\n\n.top-button {\n\t--top-button-color: var(--color-white);\n\t--top-button-background-color: transparent;\n\t--top-button-background-color-hover: var(--top-button-background-color);\n\t--top-button-background-color-active: var(--top-button-background-color-hover);\n\t--top-button-background-color-selected: var(--top-button-background-color-hover);\n\t--top-button-box-shadow: none;\n\t--top-button-box-shadow-hover: var(--top-shadow-darken-2);\n\t--top-button-box-shadow-active: var(--top-shadow-darken-3);\n\t--top-button-box-shadow-selected: var(--top-shadow-darken-3);\n\t--top-forms-border-width: 0px;\n\t--top-icon-width: calc(var(--top-icon-size) + var(--top-forms-padding));\n\t--top-icon2-width: calc(var(--top-icon2-size) + var(--top-forms-padding));\n}\n\n.top-button.top-size_l {\n\t--top-forms-padding: var(--top-forms-padding_l);\n\t--top-forms-base-height: var(--top-forms-base-height_l);\n}\n\n.top-button.top-size_xl {\n\t--top-forms-padding: var(--top-forms-padding_xl);\n\t--top-forms-base-height: var(--top-forms-base-height_xl);\n}\n\n.top-button-progress {}\n</style>"],"names":["COLOR","STYLING","SIZE"],"mappings":";;AA0CY,IAAA,0BAAAA,WAAL;AACNA,SAAA,OAAQ,IAAA;AACRA,SAAA,MAAO,IAAA;AACPA,SAAA,OAAQ,IAAA;AACRA,SAAA,QAAS,IAAA;AACTA,SAAA,KAAM,IAAA;AACNA,SAAA,MAAO,IAAA;AANIA,SAAAA;AAAA,GAAA,SAAA,CAAA,CAAA;AAYA,IAAA,4BAAAC,aAAL;AACNA,WAAA,SAAU,IAAA;AACVA,WAAA,SAAU,IAAA;AACVA,WAAA,MAAO,IAAA;AACPA,WAAA,aAAc,IAAA;AAJHA,SAAAA;AAAA,GAAA,WAAA,CAAA,CAAA;AAUA,IAAA,yBAAAC,UAAL;AACNA,QAAA,GAAI,IAAA;AACJA,QAAA,GAAI,IAAA;AACJA,QAAA,IAAK,IAAA;AAHMA,SAAAA;AAAA,GAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;ACrDZ,UAAM,UAAU,SAAS,MAAM,MAAM,OAAO,MAAM,QAAQ;AAE1D,UAAM,OAAO,SAAS,MAAM,MAAM,WAAW,WAAW,MAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,58 @@
1
+ define(["vue", "../_plugin-vue_export-helper-cb5c78ba"], function(vue, _pluginVue_exportHelper) {
2
+ "use strict"; vue = vue ?? Vue;
3
+ const _hoisted_1 = ["name", "value", "checked", "indeterminate", "disabled"];
4
+ const _hoisted_2 = {
5
+ key: 0,
6
+ class: "top-checkbox_caption"
7
+ };
8
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
9
+ __name: "checkbox",
10
+ props: {
11
+ name: {},
12
+ value: {},
13
+ title: {},
14
+ checked: { type: Boolean },
15
+ disabled: { type: Boolean },
16
+ indeterminate: { type: Boolean },
17
+ isSwitcher: { type: Boolean }
18
+ },
19
+ setup(__props) {
20
+ const props = __props;
21
+ return (_ctx, _cache) => {
22
+ return vue.openBlock(), vue.createElementBlock("label", {
23
+ class: vue.normalizeClass({
24
+ ["top-el"]: true,
25
+ ["top-checkbox"]: true,
26
+ ["top-checkbox_" + props.name]: props.name !== "",
27
+ ["top-active"]: props.checked,
28
+ ["top-disabled"]: props.disabled
29
+ })
30
+ }, [
31
+ vue.createElementVNode("input", {
32
+ type: "checkbox",
33
+ class: vue.normalizeClass(["top-el", {
34
+ ["top-checkbox_input"]: true,
35
+ ["top-checkbox_input-switcher"]: _ctx.isSwitcher
36
+ }]),
37
+ name: _ctx.name,
38
+ value: _ctx.value,
39
+ checked: _ctx.checked,
40
+ indeterminate: _ctx.indeterminate,
41
+ disabled: _ctx.disabled
42
+ }, null, 10, _hoisted_1),
43
+ _ctx.title ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true)
44
+ ], 2);
45
+ };
46
+ }
47
+ });
48
+ const style0 = {
49
+ "top-el": "top-el",
50
+ "top-checkbox_input-switcher": "top-checkbox_input-switcher"
51
+ };
52
+ const cssModules = {
53
+ "$style": style0
54
+ };
55
+ const checkbox = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__cssModules", cssModules]]);
56
+ return checkbox;
57
+ });
58
+ //# sourceMappingURL=checkbox.amd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.amd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,59 @@
1
+ import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode } from "vue";
2
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
3
+ const _hoisted_1 = ["name", "value", "checked", "indeterminate", "disabled"];
4
+ const _hoisted_2 = {
5
+ key: 0,
6
+ class: "top-checkbox_caption"
7
+ };
8
+ const _sfc_main = /* @__PURE__ */ defineComponent({
9
+ __name: "checkbox",
10
+ props: {
11
+ name: {},
12
+ value: {},
13
+ title: {},
14
+ checked: { type: Boolean },
15
+ disabled: { type: Boolean },
16
+ indeterminate: { type: Boolean },
17
+ isSwitcher: { type: Boolean }
18
+ },
19
+ setup(__props) {
20
+ const props = __props;
21
+ return (_ctx, _cache) => {
22
+ return openBlock(), createElementBlock("label", {
23
+ class: normalizeClass({
24
+ ["top-el"]: true,
25
+ ["top-checkbox"]: true,
26
+ ["top-checkbox_" + props.name]: props.name !== "",
27
+ ["top-active"]: props.checked,
28
+ ["top-disabled"]: props.disabled
29
+ })
30
+ }, [
31
+ createElementVNode("input", {
32
+ type: "checkbox",
33
+ class: normalizeClass(["top-el", {
34
+ ["top-checkbox_input"]: true,
35
+ ["top-checkbox_input-switcher"]: _ctx.isSwitcher
36
+ }]),
37
+ name: _ctx.name,
38
+ value: _ctx.value,
39
+ checked: _ctx.checked,
40
+ indeterminate: _ctx.indeterminate,
41
+ disabled: _ctx.disabled
42
+ }, null, 10, _hoisted_1),
43
+ _ctx.title ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)
44
+ ], 2);
45
+ };
46
+ }
47
+ });
48
+ const style0 = {
49
+ "top-el": "top-el",
50
+ "top-checkbox_input-switcher": "top-checkbox_input-switcher"
51
+ };
52
+ const cssModules = {
53
+ "$style": style0
54
+ };
55
+ const checkbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
56
+ export {
57
+ checkbox as default
58
+ };
59
+ //# sourceMappingURL=checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -9,27 +9,27 @@ define(["vue", "../_plugin-vue_export-helper-cb5c78ba"], function(vue, _pluginVu
9
9
  },
10
10
  setup(__props) {
11
11
  vue.useCssVars((_ctx) => ({
12
- "811e7836": _ctx.color
12
+ "6eb2e862": _ctx.color
13
13
  }));
14
14
  return (_ctx, _cache) => {
15
15
  return vue.openBlock(), vue.createElementBlock("div", {
16
16
  class: vue.normalizeClass({
17
17
  [_ctx.$style.example]: true,
18
- [_ctx.$style["g-active"]]: _ctx.isActive
18
+ [_ctx.$style["top-active"]]: _ctx.isActive
19
19
  })
20
20
  }, vue.toDisplayString(_ctx.text), 3);
21
21
  };
22
22
  }
23
23
  });
24
- const example = "_example_18dgo_2";
24
+ const example$1 = "_example_1exbj_2";
25
25
  const style0 = {
26
- example,
27
- "g-active": "g-active"
26
+ example: example$1,
27
+ "top-active": "top-active"
28
28
  };
29
29
  const cssModules = {
30
30
  "$style": style0
31
31
  };
32
- const Example = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__cssModules", cssModules]]);
33
- return Example;
32
+ const example = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__cssModules", cssModules]]);
33
+ return example;
34
34
  });
35
35
  //# sourceMappingURL=example.amd.js.map
@@ -9,28 +9,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  },
10
10
  setup(__props) {
11
11
  useCssVars((_ctx) => ({
12
- "811e7836": _ctx.color
12
+ "6eb2e862": _ctx.color
13
13
  }));
14
14
  return (_ctx, _cache) => {
15
15
  return openBlock(), createElementBlock("div", {
16
16
  class: normalizeClass({
17
17
  [_ctx.$style.example]: true,
18
- [_ctx.$style["g-active"]]: _ctx.isActive
18
+ [_ctx.$style["top-active"]]: _ctx.isActive
19
19
  })
20
20
  }, toDisplayString(_ctx.text), 3);
21
21
  };
22
22
  }
23
23
  });
24
- const example = "_example_18dgo_2";
24
+ const example$1 = "_example_1exbj_2";
25
25
  const style0 = {
26
- example,
27
- "g-active": "g-active"
26
+ example: example$1,
27
+ "top-active": "top-active"
28
28
  };
29
29
  const cssModules = {
30
30
  "$style": style0
31
31
  };
32
- const Example = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
32
+ const example = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
33
33
  export {
34
- Example as default
34
+ example as default
35
35
  };
36
36
  //# sourceMappingURL=example.js.map
@@ -1,6 +1,6 @@
1
1
  define(["vue"], function(vue) {
2
2
  "use strict"; vue = vue ?? Vue;
3
- const _hoisted_1 = ["data-g-icon", "data-g-icon2"];
3
+ const _hoisted_1 = ["data-top-icon", "data-top-icon2"];
4
4
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5
5
  __name: "icon",
6
6
  props: {
@@ -10,8 +10,8 @@ define(["vue"], function(vue) {
10
10
  setup(__props) {
11
11
  return (_ctx, _cache) => {
12
12
  return vue.openBlock(), vue.createElementBlock("div", {
13
- "data-g-icon": _ctx.icon,
14
- "data-g-icon2": _ctx.icon2
13
+ "data-top-icon": _ctx.icon,
14
+ "data-top-icon2": _ctx.icon2
15
15
  }, null, 8, _hoisted_1);
16
16
  };
17
17
  }
@@ -19,4 +19,4 @@ define(["vue"], function(vue) {
19
19
  const icon_vue_vue_type_style_index_0_lang = "";
20
20
  return _sfc_main;
21
21
  });
22
- //# sourceMappingURL=Icon.amd.js.map
22
+ //# sourceMappingURL=icon.amd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.amd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}