flowbite-svelte 0.21.6 → 0.21.7

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.21.7](https://github.com/themesberg/flowbite-svelte/compare/v0.21.6...v0.21.7) (2022-07-17)
6
+
7
+
8
+ ### Features
9
+
10
+ * add kbd component and page ([66c1f2e](https://github.com/themesberg/flowbite-svelte/commit/66c1f2ec9c516da147c7eca9e8cb11c3eea2e1e2))
11
+
5
12
  ### [0.21.6](https://github.com/themesberg/flowbite-svelte/compare/v0.21.5...v0.21.6) (2022-07-16)
6
13
 
7
14
 
package/index.d.ts CHANGED
@@ -44,6 +44,11 @@ export { default as VoiceSearch } from './forms/VoiceSearch.svelte';
44
44
  export { default as Select } from './forms/Select.svelte';
45
45
  export { default as Textarea } from './forms/Textarea.svelte';
46
46
  export { default as Toggle } from './forms/Toggle.svelte';
47
+ export { default as Kbd } from './kbd/Kbd.svelte';
48
+ export { default as ArrowKeyDown } from './kbd/ArrowKeyDown.svelte';
49
+ export { default as ArrowKeyLeft } from './kbd/ArrowKeyLeft.svelte';
50
+ export { default as ArrowKeyRight } from './kbd/ArrowKeyRight.svelte';
51
+ export { default as ArrowKeyUp } from './kbd/ArrowKeyUp.svelte';
47
52
  export { default as List } from './list-group/List.svelte';
48
53
  export { modalIdStore } from './modals/modalStores.js';
49
54
  export { default as ExtraLargeModal } from './modals/ExtraLargeModal.svelte';
package/index.js CHANGED
@@ -57,6 +57,12 @@ export { default as VoiceSearch } from './forms/VoiceSearch.svelte';
57
57
  export { default as Select } from './forms/Select.svelte';
58
58
  export { default as Textarea } from './forms/Textarea.svelte';
59
59
  export { default as Toggle } from './forms/Toggle.svelte';
60
+ // Kbd
61
+ export { default as Kbd } from './kbd/Kbd.svelte';
62
+ export { default as ArrowKeyDown } from './kbd/ArrowKeyDown.svelte';
63
+ export { default as ArrowKeyLeft } from './kbd/ArrowKeyLeft.svelte';
64
+ export { default as ArrowKeyRight } from './kbd/ArrowKeyRight.svelte';
65
+ export { default as ArrowKeyUp } from './kbd/ArrowKeyUp.svelte';
60
66
  // List
61
67
  export { default as List } from './list-group/List.svelte';
62
68
  // Modals
@@ -0,0 +1,15 @@
1
+ <script>import classNames from 'classnames';
2
+ export let svgClass = 'w-4 h-4';
3
+ </script>
4
+
5
+ <svg
6
+ {...$$restProps}
7
+ class={classNames(svgClass, $$props.class)}
8
+ aria-hidden="true"
9
+ fill="currentColor"
10
+ xmlns="http://www.w3.org/2000/svg"
11
+ viewBox="0 0 320 512"
12
+ ><path
13
+ d="M310.6 246.6l-127.1 128C176.4 380.9 168.2 384 160 384s-16.38-3.125-22.63-9.375l-127.1-128C.2244 237.5-2.516 223.7 2.438 211.8S19.07 192 32 192h255.1c12.94 0 24.62 7.781 29.58 19.75S319.8 237.5 310.6 246.6z"
14
+ /></svg
15
+ >
@@ -0,0 +1,17 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ [x: string]: any;
5
+ svgClass?: string;
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {};
11
+ };
12
+ export declare type ArrowKeyDownProps = typeof __propDef.props;
13
+ export declare type ArrowKeyDownEvents = typeof __propDef.events;
14
+ export declare type ArrowKeyDownSlots = typeof __propDef.slots;
15
+ export default class ArrowKeyDown extends SvelteComponentTyped<ArrowKeyDownProps, ArrowKeyDownEvents, ArrowKeyDownSlots> {
16
+ }
17
+ export {};
@@ -0,0 +1,15 @@
1
+ <script>import classNames from 'classnames';
2
+ export let svgClass = 'w-4 h-4';
3
+ </script>
4
+
5
+ <svg
6
+ {...$$restProps}
7
+ class={classNames(svgClass, $$props.class)}
8
+ aria-hidden="true"
9
+ fill="currentColor"
10
+ xmlns="http://www.w3.org/2000/svg"
11
+ viewBox="0 0 320 512"
12
+ ><path
13
+ d="M137.4 406.6l-128-127.1C3.125 272.4 0 264.2 0 255.1s3.125-16.38 9.375-22.63l128-127.1c9.156-9.156 22.91-11.9 34.88-6.943S192 115.1 192 128v255.1c0 12.94-7.781 24.62-19.75 29.58S146.5 415.8 137.4 406.6z"
14
+ /></svg
15
+ >
@@ -0,0 +1,17 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ [x: string]: any;
5
+ svgClass?: string;
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {};
11
+ };
12
+ export declare type ArrowKeyLeftProps = typeof __propDef.props;
13
+ export declare type ArrowKeyLeftEvents = typeof __propDef.events;
14
+ export declare type ArrowKeyLeftSlots = typeof __propDef.slots;
15
+ export default class ArrowKeyLeft extends SvelteComponentTyped<ArrowKeyLeftProps, ArrowKeyLeftEvents, ArrowKeyLeftSlots> {
16
+ }
17
+ export {};
@@ -0,0 +1,15 @@
1
+ <script>import classNames from 'classnames';
2
+ export let svgClass = 'w-4 h-4';
3
+ </script>
4
+
5
+ <svg
6
+ {...$$restProps}
7
+ class={classNames(svgClass, $$props.class)}
8
+ aria-hidden="true"
9
+ fill="currentColor"
10
+ xmlns="http://www.w3.org/2000/svg"
11
+ viewBox="0 0 320 512"
12
+ ><path
13
+ d="M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z"
14
+ /></svg
15
+ >
@@ -0,0 +1,17 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ [x: string]: any;
5
+ svgClass?: string;
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {};
11
+ };
12
+ export declare type ArrowKeyRightProps = typeof __propDef.props;
13
+ export declare type ArrowKeyRightEvents = typeof __propDef.events;
14
+ export declare type ArrowKeyRightSlots = typeof __propDef.slots;
15
+ export default class ArrowKeyRight extends SvelteComponentTyped<ArrowKeyRightProps, ArrowKeyRightEvents, ArrowKeyRightSlots> {
16
+ }
17
+ export {};
@@ -0,0 +1,15 @@
1
+ <script>import classNames from 'classnames';
2
+ export let svgClass = 'w-4 h-4';
3
+ </script>
4
+
5
+ <svg
6
+ {...$$restProps}
7
+ class={classNames(svgClass, $$props.class)}
8
+ aria-hidden="true"
9
+ fill="currentColor"
10
+ xmlns="http://www.w3.org/2000/svg"
11
+ viewBox="0 0 320 512"
12
+ ><path
13
+ d="M9.39 265.4l127.1-128C143.6 131.1 151.8 128 160 128s16.38 3.125 22.63 9.375l127.1 128c9.156 9.156 11.9 22.91 6.943 34.88S300.9 320 287.1 320H32.01c-12.94 0-24.62-7.781-29.58-19.75S.2333 274.5 9.39 265.4z"
14
+ /></svg
15
+ >
@@ -0,0 +1,17 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ [x: string]: any;
5
+ svgClass?: string;
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {};
11
+ };
12
+ export declare type ArrowKeyUpProps = typeof __propDef.props;
13
+ export declare type ArrowKeyUpEvents = typeof __propDef.events;
14
+ export declare type ArrowKeyUpSlots = typeof __propDef.slots;
15
+ export default class ArrowKeyUp extends SvelteComponentTyped<ArrowKeyUpProps, ArrowKeyUpEvents, ArrowKeyUpSlots> {
16
+ }
17
+ export {};
package/kbd/Kbd.svelte ADDED
@@ -0,0 +1,7 @@
1
+ <script>import classNames from 'classnames';
2
+ export let kbdClass = 'text-xs font-semibold text-gray-800 bg-gray-100 border border-gray-200 rounded-lg dark:bg-gray-600 dark:text-gray-100 dark:border-gray-500';
3
+ </script>
4
+
5
+ <kbd class={classNames(kbdClass, $$props.class)}>
6
+ <slot />
7
+ </kbd>
@@ -0,0 +1,19 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ [x: string]: any;
5
+ kbdClass?: string;
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {
11
+ default: {};
12
+ };
13
+ };
14
+ export declare type KbdProps = typeof __propDef.props;
15
+ export declare type KbdEvents = typeof __propDef.events;
16
+ export declare type KbdSlots = typeof __propDef.slots;
17
+ export default class Kbd extends SvelteComponentTyped<KbdProps, KbdEvents, KbdSlots> {
18
+ }
19
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.21.6",
3
+ "version": "0.21.7",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -151,6 +151,11 @@
151
151
  "./forms/Toggle.svelte": "./forms/Toggle.svelte",
152
152
  "./forms/VoiceSearch.svelte": "./forms/VoiceSearch.svelte",
153
153
  ".": "./index.js",
154
+ "./kbd/ArrowKeyDown.svelte": "./kbd/ArrowKeyDown.svelte",
155
+ "./kbd/ArrowKeyLeft.svelte": "./kbd/ArrowKeyLeft.svelte",
156
+ "./kbd/ArrowKeyRight.svelte": "./kbd/ArrowKeyRight.svelte",
157
+ "./kbd/ArrowKeyUp.svelte": "./kbd/ArrowKeyUp.svelte",
158
+ "./kbd/Kbd.svelte": "./kbd/Kbd.svelte",
154
159
  "./list-group/List.svelte": "./list-group/List.svelte",
155
160
  "./modals/ExtraLargeModal.svelte": "./modals/ExtraLargeModal.svelte",
156
161
  "./modals/LargeModal.svelte": "./modals/LargeModal.svelte",