@frollo/frollo-web-ui 0.1.2 → 0.2.0

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/index.d.ts CHANGED
@@ -2,10 +2,7 @@ import * as vue from 'vue';
2
2
  import { PropType, Plugin } from 'vue';
3
3
  export { Form as FwForm } from 'vee-validate';
4
4
 
5
- declare enum FwInputType {
6
- text = "text",
7
- password = "password"
8
- }
5
+ declare type FwInputType = 'text' | 'password';
9
6
  declare interface FwInputProps {
10
7
  value: string;
11
8
  name: string;
@@ -256,15 +253,7 @@ declare const _default$5: vue.DefineComponent<{
256
253
  href: StringConstructor;
257
254
  }>>, {}>;
258
255
 
259
- declare enum ButtonVariantName {
260
- primary = "primary",
261
- secondary = "secondary",
262
- tertiary = "tertiary",
263
- error = "error",
264
- success = "success",
265
- text = "text",
266
- link = "link"
267
- }
256
+ declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'link' | 'text';
268
257
  declare interface ButtonDefinition {
269
258
  text: string;
270
259
  background: string;
@@ -408,7 +397,6 @@ declare const _default$3: vue.DefineComponent<{
408
397
  isMobileMenuOpen: vue.Ref<boolean>;
409
398
  toggleMobileMenu: () => boolean;
410
399
  actionClicked: () => void;
411
- ButtonVariantName: typeof ButtonVariantName;
412
400
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "action"[], "action", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
413
401
  /**
414
402
  * An array of menu items
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -1,12 +1,4 @@
1
- export declare enum ButtonVariantName {
2
- primary = "primary",
3
- secondary = "secondary",
4
- tertiary = "tertiary",
5
- error = "error",
6
- success = "success",
7
- text = "text",
8
- link = "link"
9
- }
1
+ export declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'link' | 'text';
10
2
  export declare interface ButtonDefinition {
11
3
  text: string;
12
4
  background: string;
@@ -1,7 +1,4 @@
1
- export declare enum FwInputType {
2
- text = "text",
3
- password = "password"
4
- }
1
+ export declare type FwInputType = 'text' | 'password';
5
2
  export declare interface FwInputProps {
6
3
  value: string;
7
4
  name: string;
@@ -1,6 +1,5 @@
1
1
  import { PropType } from 'vue';
2
2
  import { NavMenuItem } from './index.types';
3
- import { ButtonVariantName } from '../fw-button/index.types';
4
3
  declare const _default: import("vue").DefineComponent<{
5
4
  /**
6
5
  * An array of menu items
@@ -21,7 +20,6 @@ declare const _default: import("vue").DefineComponent<{
21
20
  isMobileMenuOpen: import("vue").Ref<boolean>;
22
21
  toggleMobileMenu: () => boolean;
23
22
  actionClicked: () => void;
24
- ButtonVariantName: typeof ButtonVariantName;
25
23
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "action"[], "action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
24
  /**
27
25
  * An array of menu items
@@ -1,52 +0,0 @@
1
- import { w as wellKnownSymbol$2, i as isCallable$1 } from './function-name-f0c1223e.js';
2
- import { b as classofRaw$1 } from './add-to-unscopables-81c17489.js';
3
-
4
- var wellKnownSymbol$1 = wellKnownSymbol$2;
5
-
6
- var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
7
- var test = {};
8
-
9
- test[TO_STRING_TAG$1] = 'z';
10
-
11
- var toStringTagSupport = String(test) === '[object z]';
12
-
13
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
14
- var isCallable = isCallable$1;
15
- var classofRaw = classofRaw$1;
16
- var wellKnownSymbol = wellKnownSymbol$2;
17
-
18
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
19
- var $Object = Object;
20
-
21
- // ES3 wrong here
22
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
23
-
24
- // fallback for IE11 Script Access Denied error
25
- var tryGet = function (it, key) {
26
- try {
27
- return it[key];
28
- } catch (error) { /* empty */ }
29
- };
30
-
31
- // getting tag from ES6+ `Object.prototype.toString`
32
- var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
33
- var O, tag, result;
34
- return it === undefined ? 'Undefined' : it === null ? 'Null'
35
- // @@toStringTag case
36
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
37
- // builtinTag case
38
- : CORRECT_ARGUMENTS ? classofRaw(O)
39
- // ES3 arguments fallback
40
- : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
41
- };
42
-
43
- var classof = classof$1;
44
-
45
- var $String = String;
46
-
47
- var toString = function (argument) {
48
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
49
- return $String(argument);
50
- };
51
-
52
- export { toString as a, classof$1 as c, toStringTagSupport as t };