flowbite-svelte 0.12.4 → 0.13.2

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 (68) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/accordions/AccordionItem.svelte +1 -7
  3. package/alerts/BorderAlert.svelte +11 -36
  4. package/avatar/Avatar.svelte +2 -20
  5. package/badges/BadgeLink.svelte +2 -2
  6. package/badges/BadgeLink.svelte.d.ts +1 -1
  7. package/buttons/Button.svelte +1 -2
  8. package/buttons/GradientOutlineButton.svelte +8 -16
  9. package/cards/Card.svelte +10 -29
  10. package/cards/EcommerceCard.svelte +24 -53
  11. package/cards/EcommerceCard.svelte.d.ts +2 -2
  12. package/cards/InteractiveCard.svelte +14 -51
  13. package/cards/InteractiveCard.svelte.d.ts +2 -2
  14. package/cards/ListCard.svelte +2 -8
  15. package/cards/SignInCard.svelte +18 -65
  16. package/cards/SignInCard.svelte.d.ts +2 -2
  17. package/darkmode/DarkMode.svelte +4 -28
  18. package/dropdowns/DropdownDefault.svelte +5 -24
  19. package/dropdowns/DropdownDefault.svelte.d.ts +2 -2
  20. package/footer/SitemapFooter.svelte +1 -3
  21. package/forms/Checkbox.svelte +2 -16
  22. package/forms/Checkbox.svelte.d.ts +2 -7
  23. package/forms/FloatingLabelInput.svelte +2 -1
  24. package/forms/FloatingLabelInput.svelte.d.ts +3 -2
  25. package/forms/Iconinput.svelte +3 -2
  26. package/forms/Iconinput.svelte.d.ts +3 -2
  27. package/forms/Input.svelte +4 -13
  28. package/forms/Input.svelte.d.ts +2 -1
  29. package/forms/Radio.svelte +2 -30
  30. package/forms/Radio.svelte.d.ts +2 -7
  31. package/forms/Select.svelte +4 -3
  32. package/forms/SingleCheckbox.svelte +4 -11
  33. package/forms/SingleCheckbox.svelte.d.ts +1 -1
  34. package/forms/Textarea.svelte +3 -2
  35. package/forms/Toggle.svelte +5 -4
  36. package/index.d.ts +2 -0
  37. package/index.js +4 -0
  38. package/list-group/List.svelte +1 -3
  39. package/modals/ExtraLargeModal.svelte +42 -99
  40. package/modals/LargeModal.svelte +42 -99
  41. package/modals/MediumModal.svelte +39 -93
  42. package/modals/ModalButton.svelte +10 -19
  43. package/modals/ModalButton.svelte.d.ts +1 -0
  44. package/modals/SignInModal.svelte +22 -94
  45. package/modals/SmallModal.svelte +42 -99
  46. package/navbar/DropdownNavbar.svelte +5 -43
  47. package/navbar/Navbar.svelte +4 -31
  48. package/package.json +4 -2
  49. package/paginations/Next.svelte +1 -11
  50. package/paginations/Pagination.svelte +2 -22
  51. package/paginations/Previous.svelte +1 -11
  52. package/progressbars/Progressbar.svelte +34 -31
  53. package/progressbars/Progressbar.svelte.d.ts +9 -19
  54. package/spinners/Spinner.svelte +4 -22
  55. package/tables/Table.svelte +21 -3
  56. package/tables/Table.svelte.d.ts +12 -16
  57. package/tables/TableDefaultRow.svelte +66 -0
  58. package/tables/TableDefaultRow.svelte.d.ts +18 -0
  59. package/tabs/IconTabs.svelte +2 -10
  60. package/tabs/InteractiveTabHead.svelte +2 -17
  61. package/tabs/InteractiveTabs.svelte +2 -15
  62. package/tabs/UnderlineTabs.svelte +1 -8
  63. package/toasts/Toast.svelte +9 -27
  64. package/toasts/Toast.svelte.d.ts +2 -2
  65. package/tooltips/Tooltip.svelte +1 -9
  66. package/types.d.ts +23 -0
  67. package/utils/generateId.d.ts +1 -0
  68. package/utils/generateId.js +5 -0
@@ -1,4 +1,22 @@
1
- <script>
2
- export let header = ["Name", "Color", "Category", "Price", "Edit"];
3
- export let body = ["Apple MacBook Pro 17", "Silver", "Laptop", "$2222", "/"];
1
+ <script >export let header;
2
+ export let divClass = 'relative overflow-x-auto shadow-md sm:rounded-lg';
3
+ export let tableClass = 'w-full text-sm text-left text-gray-500 dark:text-gray-400';
4
+ export let theadClass = 'text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400';
4
5
  </script>
6
+
7
+ <div class={divClass}>
8
+ <table class={tableClass}>
9
+ <thead class={theadClass}>
10
+ <tr>
11
+ {#each header as column}
12
+ <th scope="col" class="px-6 py-3">
13
+ {column}
14
+ </th>
15
+ {/each}
16
+ </tr>
17
+ </thead>
18
+ <tbody>
19
+ <slot />
20
+ </tbody>
21
+ </table>
22
+ </div>
@@ -1,25 +1,21 @@
1
- /** @typedef {typeof __propDef.props} TableProps */
2
- /** @typedef {typeof __propDef.events} TableEvents */
3
- /** @typedef {typeof __propDef.slots} TableSlots */
4
- export default class Table extends SvelteComponentTyped<{
5
- header?: string[];
6
- body?: string[];
7
- }, {
8
- [evt: string]: CustomEvent<any>;
9
- }, {}> {
10
- }
11
- export type TableProps = typeof __propDef.props;
12
- export type TableEvents = typeof __propDef.events;
13
- export type TableSlots = typeof __propDef.slots;
14
1
  import { SvelteComponentTyped } from "svelte";
15
2
  declare const __propDef: {
16
3
  props: {
17
- header?: string[];
18
- body?: string[];
4
+ header: Array<string>;
5
+ divClass?: string;
6
+ tableClass?: string;
7
+ theadClass?: string;
19
8
  };
20
9
  events: {
21
10
  [evt: string]: CustomEvent<any>;
22
11
  };
23
- slots: {};
12
+ slots: {
13
+ default: {};
14
+ };
24
15
  };
16
+ export declare type TableProps = typeof __propDef.props;
17
+ export declare type TableEvents = typeof __propDef.events;
18
+ export declare type TableSlots = typeof __propDef.slots;
19
+ export default class Table extends SvelteComponentTyped<TableProps, TableEvents, TableSlots> {
20
+ }
25
21
  export {};
@@ -0,0 +1,66 @@
1
+ <script >export let items;
2
+ export let html = false;
3
+ export let rowState = undefined;
4
+ let trClass;
5
+ let trLastClass;
6
+ if (rowState === 'striped') {
7
+ trClass = 'border-b dark:bg-gray-800 dark:border-gray-700 odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700';
8
+ trLastClass = 'odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700';
9
+ }
10
+ else if (rowState === 'hover') {
11
+ trClass = 'bg-white border-b dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600';
12
+ trLastClass = 'bg-white dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-600';
13
+ }
14
+ else {
15
+ trClass = 'bg-white border-b dark:bg-gray-800 dark:border-gray-700';
16
+ trLastClass = 'bg-white dark:bg-gray-800';
17
+ }
18
+ </script>
19
+
20
+ {#each items as item, i}
21
+ {#if i === items.length - 1}
22
+ <tr class={trLastClass}>
23
+ {#each item as cell, j}
24
+ {#if j === 0}
25
+ <th scope="row" class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
26
+ {#if html}
27
+ {@html cell}
28
+ {:else}
29
+ {cell}
30
+ {/if}
31
+ </th>
32
+ {:else}
33
+ <td class="px-6 py-4">
34
+ {#if html}
35
+ {@html cell}
36
+ {:else}
37
+ {cell}
38
+ {/if}
39
+ </td>
40
+ {/if}
41
+ {/each}
42
+ </tr>
43
+ {:else}
44
+ <tr class={trClass}>
45
+ {#each item as cell, j}
46
+ {#if j === 0}
47
+ <th scope="row" class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
48
+ {#if html}
49
+ {@html cell}
50
+ {:else}
51
+ {cell}
52
+ {/if}
53
+ </th>
54
+ {:else}
55
+ <td class="px-6 py-4">
56
+ {#if html}
57
+ {@html cell}
58
+ {:else}
59
+ {cell}
60
+ {/if}
61
+ </td>
62
+ {/if}
63
+ {/each}
64
+ </tr>
65
+ {/if}
66
+ {/each}
@@ -0,0 +1,18 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ items: Array<Array<string>>;
5
+ html?: boolean;
6
+ rowState?: 'striped' | 'hover' | undefined;
7
+ };
8
+ events: {
9
+ [evt: string]: CustomEvent<any>;
10
+ };
11
+ slots: {};
12
+ };
13
+ export declare type TableDefaultRowProps = typeof __propDef.props;
14
+ export declare type TableDefaultRowEvents = typeof __propDef.events;
15
+ export declare type TableDefaultRowSlots = typeof __propDef.slots;
16
+ export default class TableDefaultRow extends SvelteComponentTyped<TableDefaultRowProps, TableDefaultRowEvents, TableDefaultRowSlots> {
17
+ }
18
+ export {};
@@ -3,18 +3,10 @@ export let iconClass = 'mr-2 w-5 h-5 text-gray-400 group-hover:text-gray-500 dar
3
3
  </script>
4
4
 
5
5
  <div class="border-b border-gray-200 dark:border-gray-700">
6
- <ul
7
- class="flex flex-wrap -mb-px text-sm font-medium text-center text-gray-500 dark:text-gray-400"
8
- >
6
+ <ul class="flex flex-wrap -mb-px text-sm font-medium text-center text-gray-500 dark:text-gray-400">
9
7
  {#each tabs as { name, active, href, rel, icon }}
10
8
  <li class="mr-2">
11
- <a
12
- {href}
13
- {rel}
14
- class={active
15
- ? 'inline-flex p-4 text-blue-600 rounded-t-lg border-b-2 border-blue-600 active dark:text-blue-500 dark:border-blue-500 group'
16
- : ' inline-flex p-4 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 group '}
17
- >
9
+ <a {href} {rel} class={active ? 'inline-flex p-4 text-blue-600 rounded-t-lg border-b-2 border-blue-600 active dark:text-blue-500 dark:border-blue-500 group' : ' inline-flex p-4 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 group '}>
18
10
  <svelte:component this={icon} className={iconClass} />
19
11
  {name}
20
12
  </a>
@@ -26,25 +26,10 @@ Header part of Interactive tab component. Use with TabContent.
26
26
  ```
27
27
  -->
28
28
  <div class="mb-4 border-b border-gray-200">
29
- <ul
30
- class="flex flex-wrap -mb-px text-sm font-medium text-center"
31
- id={tabId}
32
- data-tabs-toggle="#myTabContent"
33
- role="tablist"
34
- >
29
+ <ul class="flex flex-wrap -mb-px text-sm font-medium text-center" id={tabId} data-tabs-toggle="#myTabContent" role="tablist">
35
30
  {#each tabs as { name, id }}
36
31
  <li class="mr-2" role="presentation">
37
- <button
38
- on:click={handleClick(id)}
39
- class="inline-block py-4 px-4 text-sm font-medium text-center text-gray-500 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"
40
- id="{name}-tab"
41
- data-tabs-target="#{name}"
42
- type="button"
43
- role="tab"
44
- class:active={activeTabValue === id}
45
- aria-controls={name}
46
- aria-selected="false">{name}</button
47
- >
32
+ <button on:click={handleClick(id)} class="inline-block py-4 px-4 text-sm font-medium text-center text-gray-500 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300" id="{name}-tab" data-tabs-target="#{name}" type="button" role="tab" class:active={activeTabValue === id} aria-controls={name} aria-selected="false">{name}</button>
48
33
  </li>
49
34
  {/each}
50
35
  </ul>
@@ -8,15 +8,7 @@ export let tabs;
8
8
  <ul class="flex flex-wrap -mb-px" id={tabId} role="tablist">
9
9
  {#each tabs as { name, id }}
10
10
  <li class="mr-2" role="presentation">
11
- <button
12
- on:click={handleClick(id)}
13
- class="inline-block py-4 px-4 text-sm font-medium text-center text-gray-500 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"
14
- id="{name}-tab"
15
- type="button"
16
- role="tab"
17
- class:active={activeTabValue === id}
18
- aria-controls={name}>{name}</button
19
- >
11
+ <button on:click={handleClick(id)} class="inline-block py-4 px-4 text-sm font-medium text-center text-gray-500 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300" id="{name}-tab" type="button" role="tab" class:active={activeTabValue === id} aria-controls={name}>{name}</button>
20
12
  </li>
21
13
  {/each}
22
14
  </ul>
@@ -24,12 +16,7 @@ export let tabs;
24
16
  <div id="{tabId}Content">
25
17
  {#each tabs as { name, content, id }}
26
18
  {#if activeTabValue === id}
27
- <div
28
- class="p-4 bg-gray-50 rounded-lg dark:bg-gray-800"
29
- id={name}
30
- role="tabpanel"
31
- aria-labelledby="{name}-tab"
32
- >
19
+ <div class="p-4 bg-gray-50 rounded-lg dark:bg-gray-800" id={name} role="tabpanel" aria-labelledby="{name}-tab">
33
20
  {#if typeof content === 'string'}
34
21
  <p class="text-sm text-gray-500 dark:text-gray-400">
35
22
  {@html content}
@@ -6,14 +6,7 @@ export let tabs;
6
6
  <ul class="flex flex-wrap -mb-px">
7
7
  {#each tabs as { name, active, href, rel }}
8
8
  <li class="mr-2">
9
- <a
10
- {href}
11
- {rel}
12
- class={active
13
- ? 'inline-block p-4 text-blue-600 rounded-t-lg border-b-2 border-blue-600 active dark:text-blue-500 dark:border-blue-500'
14
- : ' inline-block p-4 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 '}
15
- >{name}</a
16
- >
9
+ <a {href} {rel} class={active ? 'inline-block p-4 text-blue-600 rounded-t-lg border-b-2 border-blue-600 active dark:text-blue-500 dark:border-blue-500' : ' inline-block p-4 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 '}>{name}</a>
17
10
  </li>
18
11
  {/each}
19
12
  </ul>
@@ -13,36 +13,28 @@ export let divClass = 'flex items-center w-full max-w-xs p-4 text-gray-500 bg-wh
13
13
  export let textClass = 'ml-3 text-sm font-normal';
14
14
  export let btnClass = 'ml-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700';
15
15
  if (iconColor === 'blue') {
16
- iconDivClass =
17
- 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200';
16
+ iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200';
18
17
  }
19
18
  else if (iconColor === 'green') {
20
- iconDivClass =
21
- 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200';
19
+ iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200';
22
20
  }
23
21
  else if (iconColor === 'red') {
24
- iconDivClass =
25
- 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200';
22
+ iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200';
26
23
  }
27
24
  else if (iconColor === 'gray') {
28
- iconDivClass =
29
- 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-gray-500 bg-gray-100 rounded-lg dark:bg-gray-800 dark:text-gray-200';
25
+ iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-gray-500 bg-gray-100 rounded-lg dark:bg-gray-800 dark:text-gray-200';
30
26
  }
31
27
  else if (iconColor === 'purple') {
32
- iconDivClass =
33
- 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-purple-500 bg-purple-100 rounded-lg dark:bg-purple-800 dark:text-purple-200';
28
+ iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-purple-500 bg-purple-100 rounded-lg dark:bg-purple-800 dark:text-purple-200';
34
29
  }
35
30
  else if (iconColor === 'indigo') {
36
- iconDivClass =
37
- 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-indigo-500 bg-indigo-100 rounded-lg dark:bg-indigo-800 dark:text-indigo-200';
31
+ iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-indigo-500 bg-indigo-100 rounded-lg dark:bg-indigo-800 dark:text-indigo-200';
38
32
  }
39
33
  else if (iconColor === 'yellow') {
40
- iconDivClass =
41
- 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-yellow-500 bg-yellow-100 rounded-lg dark:bg-yellow-800 dark:text-yellow-200';
34
+ iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-yellow-500 bg-yellow-100 rounded-lg dark:bg-yellow-800 dark:text-yellow-200';
42
35
  }
43
36
  else {
44
- iconDivClass =
45
- 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200';
37
+ iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200';
46
38
  }
47
39
  // have a custom transition function that returns the desired transition
48
40
  function multiple(node, params) {
@@ -67,17 +59,7 @@ function multiple(node, params) {
67
59
  <div class={textClass}><slot name="text" /></div>
68
60
  <button type="button" class={btnClass} on:click={handleHide} aria-label="Close">
69
61
  <span class="sr-only">Close</span>
70
- <svg
71
- class="w-5 h-5"
72
- fill="currentColor"
73
- viewBox="0 0 20 20"
74
- xmlns="http://www.w3.org/2000/svg"
75
- ><path
76
- fill-rule="evenodd"
77
- d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
78
- clip-rule="evenodd"
79
- /></svg
80
- >
62
+ <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>
81
63
  </button>
82
64
  </div>
83
65
  {/if}
@@ -1,10 +1,10 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { Colors, TransitionTypes } from '../types';
2
+ import type { Colors, TransitionTypes, TransitionParamTypes } from '../types';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  iconColor?: Colors;
6
6
  transitionType?: TransitionTypes;
7
- transitionParams?: {};
7
+ transitionParams?: TransitionParamTypes;
8
8
  divClass?: string;
9
9
  textClass?: string;
10
10
  btnClass?: string;
@@ -4,21 +4,13 @@ export let right = false;
4
4
  export let bottom = false;
5
5
  export let left = false;
6
6
  export let active = false;
7
- // export let bgColor = "";
8
7
  </script>
9
8
 
10
9
  <div class="tooltip-wrapper">
11
10
  <span class="tooltip-slot">
12
11
  <slot />
13
12
  </span>
14
- <div
15
- class="inline-block absolute invisible z-10 py-2 px-3 bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700"
16
- class:active
17
- class:left
18
- class:right
19
- class:bottom
20
- class:top
21
- >
13
+ <div class="inline-block absolute invisible z-10 py-2 px-3 bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700" class:active class:left class:right class:bottom class:top>
22
14
  {#if tip}
23
15
  <div class="text-sm font-medium text-white ">{tip}</div>
24
16
  {:else}
package/types.d.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  import type { SvelteComponent } from 'svelte';
2
2
  export declare type Colors = 'blue' | 'gray' | 'red' | 'yellow' | 'purple' | 'green' | 'indigo' | 'pink';
3
+ export declare type DropdownColorType = 'blue' | 'blue-outline' | 'dark' | 'dark-outline' | 'light' | 'green' | 'green-outline' | 'red' | 'red-outline' | 'yellow' | 'yellow-outline' | 'purple' | 'purple-outline';
3
4
  export declare type Buttontypes = 'blue' | 'blue-outline' | 'dark' | 'dark-outline' | 'light' | 'green' | 'green-outline' | 'red' | 'red-outline' | 'yellow' | 'yellow-outline' | 'purple' | 'purple-outline';
4
5
  export declare type Buttonshadows = 'blue' | 'green' | 'cyan' | 'teal' | 'lime' | 'red' | 'pink' | 'purple';
5
6
  export declare type Gradientduotones = 'purple2blue' | 'cyan2blue' | 'green2blue' | 'purple2pink' | 'pink2orange' | 'teal2lime' | 'red2yellow';
6
7
  export declare type Textsize = 'text-xs' | 'text-sm' | 'text-base' | 'text-lg' | 'text-xl' | 'text-2xl' | 'text-3xl' | 'text-4xl';
8
+ export declare type InputType = 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week';
7
9
  export interface ButtonGroupType {
8
10
  name: string;
9
11
  href?: string;
@@ -161,3 +163,24 @@ export interface PageType {
161
163
  pageNum: number;
162
164
  href: string;
163
165
  }
166
+ export interface TransitionParamTypes {
167
+ delay?: number;
168
+ duration?: number;
169
+ easing?: (t: number) => number;
170
+ css?: (t: number, u: number) => string;
171
+ tick?: (t: number, u: number) => void;
172
+ }
173
+ export interface CheckboxType {
174
+ id: string;
175
+ label: string;
176
+ checked?: boolean;
177
+ disabled?: boolean;
178
+ helper?: string;
179
+ }
180
+ export interface RadioType {
181
+ id: string;
182
+ label: string;
183
+ value: string;
184
+ checked?: boolean;
185
+ disabled?: boolean;
186
+ }
@@ -0,0 +1 @@
1
+ export default function _default(): string;
@@ -0,0 +1,5 @@
1
+ let n = Date.now();
2
+
3
+ export default function() {
4
+ return (++n).toString(36);
5
+ }