@mobileaction/action-kit 0.0.12 → 0.0.14

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.
@@ -0,0 +1,21 @@
1
+ import { openBlock as c, createElementBlock as a, createElementVNode as e } from "vue";
2
+ const t = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
5
+ class: "p-f",
6
+ viewBox: "0 0 14 16"
7
+ }, o = /* @__PURE__ */ e("path", {
8
+ fill: "#292D32",
9
+ d: "M1.22 5.183a.955.955 0 0 0-.701.288.944.944 0 0 0-.289.692v4.135c0 .276.097.51.289.702a.955.955 0 0 0 .702.288.94.94 0 0 0 .697-.288.964.964 0 0 0 .284-.702V6.163c0-.269-.096-.5-.289-.692a.944.944 0 0 0-.692-.288ZM9.183 1.471l.683-1.26C9.91.129 9.895.065 9.818.02 9.735-.019 9.67 0 9.626.077l-.693 1.27A4.727 4.727 0 0 0 7.001.941c-.68 0-1.324.135-1.933.404L4.376.076C4.33 0 4.266-.018 4.183.02c-.077.046-.093.11-.048.193l.683 1.259a4.216 4.216 0 0 0-1.654 1.476A3.728 3.728 0 0 0 2.55 5.02h8.894c0-.75-.205-1.44-.616-2.072a4.234 4.234 0 0 0-1.644-1.476ZM5.236 3.303a.36.36 0 0 1-.264.11.344.344 0 0 1-.26-.11.369.369 0 0 1-.106-.264.37.37 0 0 1 .106-.265.345.345 0 0 1 .26-.11c.102 0 .19.037.264.11.074.074.11.162.11.265 0 .102-.036.19-.11.264Zm4.053 0a.345.345 0 0 1-.26.11.36.36 0 0 1-.264-.11.36.36 0 0 1-.11-.264.36.36 0 0 1 .11-.265.361.361 0 0 1 .264-.11.37.37 0 0 1 .365.375c0 .102-.035.19-.105.264ZM2.586 11.77c0 .294.102.544.307.75.206.204.456.307.75.307h.712l.01 2.183c0 .275.096.51.288.702a.944.944 0 0 0 .692.288c.276 0 .51-.096.702-.288a.955.955 0 0 0 .289-.702v-2.183h1.327v2.183c0 .275.096.51.288.702a.955.955 0 0 0 .702.288c.275 0 .51-.096.702-.288a.955.955 0 0 0 .288-.702v-2.183h.721c.289 0 .535-.103.74-.308a1.02 1.02 0 0 0 .308-.75V5.365H2.586v6.404ZM12.778 5.183c-.27 0-.5.094-.693.283a.94.94 0 0 0-.288.697v4.135c0 .276.096.51.288.702a.944.944 0 0 0 .693.288c.275 0 .51-.096.701-.288a.955.955 0 0 0 .289-.702V6.163a.94.94 0 0 0-.289-.697.964.964 0 0 0-.701-.283Z"
10
+ }, null, -1), l = [
11
+ o
12
+ ];
13
+ function n(r, s) {
14
+ return c(), a("svg", t, l);
15
+ }
16
+ const h = { render: n };
17
+ export {
18
+ h as default,
19
+ n as render
20
+ };
21
+ //# sourceMappingURL=android-e7185e66.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"android-e7185e66.mjs","sources":["../src/components/icon/icons/android.svg"],"sourcesContent":["import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"none\",\n class: \"p-f\",\n viewBox: \"0 0 14 16\"\n}\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"path\", {\n fill: \"#292D32\",\n d: \"M1.22 5.183a.955.955 0 0 0-.701.288.944.944 0 0 0-.289.692v4.135c0 .276.097.51.289.702a.955.955 0 0 0 .702.288.94.94 0 0 0 .697-.288.964.964 0 0 0 .284-.702V6.163c0-.269-.096-.5-.289-.692a.944.944 0 0 0-.692-.288ZM9.183 1.471l.683-1.26C9.91.129 9.895.065 9.818.02 9.735-.019 9.67 0 9.626.077l-.693 1.27A4.727 4.727 0 0 0 7.001.941c-.68 0-1.324.135-1.933.404L4.376.076C4.33 0 4.266-.018 4.183.02c-.077.046-.093.11-.048.193l.683 1.259a4.216 4.216 0 0 0-1.654 1.476A3.728 3.728 0 0 0 2.55 5.02h8.894c0-.75-.205-1.44-.616-2.072a4.234 4.234 0 0 0-1.644-1.476ZM5.236 3.303a.36.36 0 0 1-.264.11.344.344 0 0 1-.26-.11.369.369 0 0 1-.106-.264.37.37 0 0 1 .106-.265.345.345 0 0 1 .26-.11c.102 0 .19.037.264.11.074.074.11.162.11.265 0 .102-.036.19-.11.264Zm4.053 0a.345.345 0 0 1-.26.11.36.36 0 0 1-.264-.11.36.36 0 0 1-.11-.264.36.36 0 0 1 .11-.265.361.361 0 0 1 .264-.11.37.37 0 0 1 .365.375c0 .102-.035.19-.105.264ZM2.586 11.77c0 .294.102.544.307.75.206.204.456.307.75.307h.712l.01 2.183c0 .275.096.51.288.702a.944.944 0 0 0 .692.288c.276 0 .51-.096.702-.288a.955.955 0 0 0 .289-.702v-2.183h1.327v2.183c0 .275.096.51.288.702a.955.955 0 0 0 .702.288c.275 0 .51-.096.702-.288a.955.955 0 0 0 .288-.702v-2.183h.721c.289 0 .535-.103.74-.308a1.02 1.02 0 0 0 .308-.75V5.365H2.586v6.404ZM12.778 5.183c-.27 0-.5.094-.693.283a.94.94 0 0 0-.288.697v4.135c0 .276.096.51.288.702a.944.944 0 0 0 .693.288c.275 0 .51-.096.701-.288a.955.955 0 0 0 .289-.702V6.163a.94.94 0 0 0-.289-.697.964.964 0 0 0-.701-.283Z\"\n}, null, -1)\nconst _hoisted_3 = [\n _hoisted_2\n]\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, _hoisted_3))\n}\nexport default { render: render }"],"names":["_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","render","_ctx","_cache","_openBlock","_createElementBlock","android"],"mappings":";AAEA,MAAMA,IAAa;AAAA,EACjB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AACX,GACMC,IAA0BC,gBAAAA,EAAoB,QAAQ;AAAA,EAC1D,MAAM;AAAA,EACN,GAAG;AACL,GAAG,MAAM,EAAE,GACLC,IAAa;AAAA,EACjBF;AACF;AAEO,SAASG,EAAOC,GAAMC,GAAQ;AACnC,SAAQC,EAAY,GAAEC,EAAoB,OAAOR,GAAYG,CAAU;AACzE;AACA,MAAeM,IAAA,EAAE,QAAQL,EAAM;"}
@@ -1,21 +1,21 @@
1
- import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
- const c = {
1
+ import { openBlock as e, createElementBlock as t, createElementVNode as c } from "vue";
2
+ const o = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "none",
5
- class: "no-color",
5
+ class: "p-f",
6
6
  viewBox: "0 0 24 24"
7
- }, n = /* @__PURE__ */ t("path", {
7
+ }, n = /* @__PURE__ */ c("path", {
8
8
  fill: "#000",
9
9
  d: "M20.843 17.145a11.957 11.957 0 0 1-1.183 2.127c-.622.886-1.131 1.5-1.524 1.841-.608.56-1.26.846-1.958.862-.501 0-1.106-.142-1.809-.432-.706-.287-1.354-.43-1.947-.43-.622 0-1.29.143-2.003.43-.714.29-1.29.44-1.73.455-.67.029-1.337-.266-2.003-.885-.425-.37-.956-1.006-1.593-1.907-.683-.961-1.245-2.076-1.685-3.347-.472-1.373-.708-2.703-.708-3.99 0-1.474.319-2.746.957-3.811A5.612 5.612 0 0 1 5.66 6.03a5.39 5.39 0 0 1 2.71-.764c.53 0 1.228.164 2.095.487.863.325 1.418.489 1.661.489.182 0 .799-.192 1.843-.576.988-.355 1.822-.502 2.505-.444 1.85.149 3.241.879 4.166 2.193-1.655 1.003-2.474 2.408-2.458 4.21.015 1.404.524 2.572 1.525 3.5.454.43.96.763 1.524 1-.122.354-.251.693-.388 1.019ZM16.598.44c0 1.1-.402 2.128-1.204 3.079-.966 1.13-2.136 1.783-3.404 1.68a3.417 3.417 0 0 1-.026-.417c0-1.056.46-2.186 1.277-3.11A4.914 4.914 0 0 1 14.796.504C15.423.198 16.015.03 16.573 0c.017.147.023.294.023.44Z"
10
10
  }, null, -1), l = [
11
11
  n
12
12
  ];
13
- function r(s, a) {
14
- return e(), o("svg", c, l);
13
+ function s(r, a) {
14
+ return e(), t("svg", o, l);
15
15
  }
16
- const i = { render: r };
16
+ const i = { render: s };
17
17
  export {
18
18
  i as default,
19
- r as render
19
+ s as render
20
20
  };
21
- //# sourceMappingURL=apple-affc68f6.mjs.map
21
+ //# sourceMappingURL=apple-a0f4b202.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple-a0f4b202.mjs","sources":["../src/components/icon/icons/apple.svg"],"sourcesContent":["import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"none\",\n class: \"p-f\",\n viewBox: \"0 0 24 24\"\n}\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"path\", {\n fill: \"#000\",\n d: \"M20.843 17.145a11.957 11.957 0 0 1-1.183 2.127c-.622.886-1.131 1.5-1.524 1.841-.608.56-1.26.846-1.958.862-.501 0-1.106-.142-1.809-.432-.706-.287-1.354-.43-1.947-.43-.622 0-1.29.143-2.003.43-.714.29-1.29.44-1.73.455-.67.029-1.337-.266-2.003-.885-.425-.37-.956-1.006-1.593-1.907-.683-.961-1.245-2.076-1.685-3.347-.472-1.373-.708-2.703-.708-3.99 0-1.474.319-2.746.957-3.811A5.612 5.612 0 0 1 5.66 6.03a5.39 5.39 0 0 1 2.71-.764c.53 0 1.228.164 2.095.487.863.325 1.418.489 1.661.489.182 0 .799-.192 1.843-.576.988-.355 1.822-.502 2.505-.444 1.85.149 3.241.879 4.166 2.193-1.655 1.003-2.474 2.408-2.458 4.21.015 1.404.524 2.572 1.525 3.5.454.43.96.763 1.524 1-.122.354-.251.693-.388 1.019ZM16.598.44c0 1.1-.402 2.128-1.204 3.079-.966 1.13-2.136 1.783-3.404 1.68a3.417 3.417 0 0 1-.026-.417c0-1.056.46-2.186 1.277-3.11A4.914 4.914 0 0 1 14.796.504C15.423.198 16.015.03 16.573 0c.017.147.023.294.023.44Z\"\n}, null, -1)\nconst _hoisted_3 = [\n _hoisted_2\n]\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, _hoisted_3))\n}\nexport default { render: render }"],"names":["_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","render","_ctx","_cache","_openBlock","_createElementBlock","apple"],"mappings":";AAEA,MAAMA,IAAa;AAAA,EACjB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AACX,GACMC,IAA0BC,gBAAAA,EAAoB,QAAQ;AAAA,EAC1D,MAAM;AAAA,EACN,GAAG;AACL,GAAG,MAAM,EAAE,GACLC,IAAa;AAAA,EACjBF;AACF;AAEO,SAASG,EAAOC,GAAMC,GAAQ;AACnC,SAAQC,EAAY,GAAEC,EAAoB,OAAOR,GAAYG,CAAU;AACzE;AACA,MAAeM,IAAA,EAAE,QAAQL,EAAM;"}
@@ -0,0 +1,35 @@
1
+ import { SwitchType } from "./types";
2
+ export interface MaSwitchProps {
3
+ active: string;
4
+ leftIcon: string;
5
+ rightIcon: string;
6
+ leftValue: string;
7
+ rightValue: string;
8
+ disabled?: boolean;
9
+ type?: SwitchType;
10
+ }
11
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaSwitchProps>, {
12
+ type: string;
13
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change")[], "click" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaSwitchProps>, {
14
+ type: string;
15
+ }>>> & {
16
+ onChange?: ((...args: any[]) => any) | undefined;
17
+ onClick?: ((...args: any[]) => any) | undefined;
18
+ }, {
19
+ type: string;
20
+ }>;
21
+ export default _default;
22
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: import('vue').PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
31
+ declare type __VLS_WithDefaults<P, D> = {
32
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
33
+ default: D[K];
34
+ } : P[K];
35
+ };
@@ -0,0 +1,4 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaSwitch from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaSwitch>;
4
+ export declare const Template: StoryFn;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import MaSwitch from '../index.vue';
3
+ declare const meta: Meta<typeof MaSwitch>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaSwitch>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
@@ -0,0 +1,2 @@
1
+ export declare const SwitchTypes: string[];
2
+ export declare type SwitchType = (typeof SwitchTypes)[number];
@@ -0,0 +1,36 @@
1
+ import { ToggleSize } from "./types";
2
+ export interface MaSwitchProps {
3
+ size?: ToggleSize;
4
+ disabled?: boolean;
5
+ loading?: boolean;
6
+ checked?: boolean;
7
+ checkedChildren?: string;
8
+ unCheckedChildren?: string;
9
+ title?: string;
10
+ subTitle?: string;
11
+ }
12
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaSwitchProps>, {
13
+ size: string;
14
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change")[], "click" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaSwitchProps>, {
15
+ size: string;
16
+ }>>> & {
17
+ onChange?: ((...args: any[]) => any) | undefined;
18
+ onClick?: ((...args: any[]) => any) | undefined;
19
+ }, {
20
+ size: string;
21
+ }>;
22
+ export default _default;
23
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
25
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
26
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
+ } : {
28
+ type: import('vue').PropType<T[K]>;
29
+ required: true;
30
+ };
31
+ };
32
+ declare type __VLS_WithDefaults<P, D> = {
33
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
34
+ default: D[K];
35
+ } : P[K];
36
+ };
@@ -0,0 +1,4 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaToggle from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaToggle>;
4
+ export declare const Template: StoryFn;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import MaToggleButton from '../index.vue';
3
+ declare const meta: Meta<typeof MaToggleButton>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaToggleButton>;
6
+ export declare const Default: Story;
7
+ export declare const WithText: Story;
8
+ export declare const WithTitle: Story;
@@ -0,0 +1,2 @@
1
+ export declare const ToggleSizes: string[];
2
+ export declare type ToggleSize = (typeof ToggleSizes)[number];
@@ -0,0 +1,23 @@
1
+ import { openBlock as e, createElementBlock as c, createElementVNode as o } from "vue";
2
+ const t = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
5
+ class: "p-s",
6
+ viewBox: "0 0 16 16"
7
+ }, n = /* @__PURE__ */ o("path", {
8
+ stroke: "#292D32",
9
+ "stroke-linecap": "round",
10
+ "stroke-linejoin": "round",
11
+ d: "M14.667 5.68V2.653c0-.94-.427-1.32-1.487-1.32h-2.693c-1.06 0-1.487.38-1.487 1.32v3.02c0 .947.427 1.32 1.487 1.32h2.693c1.06.007 1.487-.373 1.487-1.313ZM14.667 13.18v-2.693C14.667 9.427 14.24 9 13.18 9h-2.693C9.427 9 9 9.427 9 10.487v2.693c0 1.06.427 1.487 1.487 1.487h2.693c1.06 0 1.487-.427 1.487-1.487ZM7 5.68V2.653c0-.94-.426-1.32-1.486-1.32H2.821c-1.06 0-1.487.38-1.487 1.32v3.02c0 .947.427 1.32 1.487 1.32h2.693C6.574 7 7.001 6.62 7.001 5.68ZM7 13.18v-2.693C7 9.427 6.575 9 5.515 9H2.821c-1.06 0-1.487.427-1.487 1.487v2.693c0 1.06.427 1.487 1.487 1.487h2.693c1.06 0 1.487-.427 1.487-1.487Z"
12
+ }, null, -1), r = [
13
+ n
14
+ ];
15
+ function s(l, h) {
16
+ return e(), c("svg", t, r);
17
+ }
18
+ const i = { render: s };
19
+ export {
20
+ i as default,
21
+ s as render
22
+ };
23
+ //# sourceMappingURL=grid-ed70f316.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-ed70f316.mjs","sources":["../src/components/icon/icons/grid.svg"],"sourcesContent":["import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"none\",\n class: \"p-s\",\n viewBox: \"0 0 16 16\"\n}\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"path\", {\n stroke: \"#292D32\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n d: \"M14.667 5.68V2.653c0-.94-.427-1.32-1.487-1.32h-2.693c-1.06 0-1.487.38-1.487 1.32v3.02c0 .947.427 1.32 1.487 1.32h2.693c1.06.007 1.487-.373 1.487-1.313ZM14.667 13.18v-2.693C14.667 9.427 14.24 9 13.18 9h-2.693C9.427 9 9 9.427 9 10.487v2.693c0 1.06.427 1.487 1.487 1.487h2.693c1.06 0 1.487-.427 1.487-1.487ZM7 5.68V2.653c0-.94-.426-1.32-1.486-1.32H2.821c-1.06 0-1.487.38-1.487 1.32v3.02c0 .947.427 1.32 1.487 1.32h2.693C6.574 7 7.001 6.62 7.001 5.68ZM7 13.18v-2.693C7 9.427 6.575 9 5.515 9H2.821c-1.06 0-1.487.427-1.487 1.487v2.693c0 1.06.427 1.487 1.487 1.487h2.693c1.06 0 1.487-.427 1.487-1.487Z\"\n}, null, -1)\nconst _hoisted_3 = [\n _hoisted_2\n]\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, _hoisted_3))\n}\nexport default { render: render }"],"names":["_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","render","_ctx","_cache","_openBlock","_createElementBlock","grid"],"mappings":";AAEA,MAAMA,IAAa;AAAA,EACjB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AACX,GACMC,IAA0BC,gBAAAA,EAAoB,QAAQ;AAAA,EAC1D,QAAQ;AAAA,EACR,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,GAAG;AACL,GAAG,MAAM,EAAE,GACLC,IAAa;AAAA,EACjBF;AACF;AAEO,SAASG,EAAOC,GAAMC,GAAQ;AACnC,SAAQC,EAAY,GAAEC,EAAoB,OAAOR,GAAYG,CAAU;AACzE;AACA,MAAeM,IAAA,EAAE,QAAQL,EAAM;"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import 'tailwindcss/tailwind.css';
2
2
  export { default as MaButton } from './components/button/index.vue';
3
3
  export { default as MaTrackButton } from './components/track-button/index.vue';
4
+ export { default as MaToggle } from './components/toggle/index.vue';
5
+ export { default as MaSwitch } from './components/switch/index.vue';
4
6
  export { default as MaIcon } from './components/icon/index.vue';