hamzus-ui 0.0.28 → 0.0.31

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
@@ -20,7 +20,7 @@ export { default as Input } from "./src/components/hamzus-ui/Input/Input.svelte"
20
20
  export { default as DatePicker } from "./src/components/hamzus-ui/DatePicker/DatePicker.svelte"
21
21
  export { default as TextArea } from "./src/components/hamzus-ui/TextArea/TextArea.svelte"
22
22
  export { default as Checkbox } from "./src/components/hamzus-ui/Checkboxes/Checkbox/Checkbox.svelte"
23
- export { default as Switch } from "./src/components/hamzus-ui/Swicth/Swicth.svelte"
23
+ export { default as Switch } from "./src/components/hamzus-ui/Switch/Switch.svelte"
24
24
 
25
25
  // data
26
26
  export * as Table from "./src/components/hamzus-ui/Table"
package/index.js CHANGED
@@ -16,7 +16,7 @@ export { default as Input } from "./src/components/hamzus-ui/Input/Input.svelte"
16
16
  export { default as DatePicker } from "./src/components/hamzus-ui/DatePicker/DatePicker.svelte"
17
17
  export { default as TextArea } from "./src/components/hamzus-ui/TextArea/TextArea.svelte"
18
18
  export { default as Checkbox } from "./src/components/hamzus-ui/Checkboxes/Checkbox/Checkbox.svelte"
19
- export { default as Switch } from "./src/components/hamzus-ui/Swicth/Swicth.svelte"
19
+ export { default as Switch } from "./src/components/hamzus-ui/Switch/Switch.svelte"
20
20
  // data
21
21
  export * as Table from "./src/components/hamzus-ui/Table"
22
22
  export { default as ProgressCircle } from "./src/components/hamzus-ui/ProgressCircle/ProgressCircle.svelte"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hamzus-ui",
3
- "version": "0.0.28",
3
+ "version": "0.0.31",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -25,7 +25,7 @@
25
25
  : ''}"
26
26
  >
27
27
  <!-- il se peut que ce soit un composant -->
28
- {#if typeof row[cellKey] === 'object'}
28
+ {#if typeof row[cellKey] === 'object' && row[cellKey] !== null}
29
29
  <svelte:component this={row[cellKey].component} {...row[cellKey].props}></svelte:component>
30
30
  {:else}
31
31
  <h4>{row[cellKey]}</h4>
@@ -6,7 +6,7 @@
6
6
  import * as Popover from '../Popover';
7
7
  import Input from '../Input/Input.svelte';
8
8
  import RadioGroup from '../Radios/RadioGroup/RadioGroup.svelte';
9
- import Swicth from '../Swicth/Swicth.svelte';
9
+ import Switch from '../Switch/Switch.svelte';
10
10
  // props
11
11
  export let tableId = null;
12
12
  // local var
@@ -193,7 +193,7 @@
193
193
  style="display:flex;align-items:center;justify-content:space-between;width:100%;"
194
194
  >
195
195
  <h4>passer a la ligne</h4>
196
- <Swicth checked={column.skipLine} onChange={(newValue)=>{handleChangeSkipLine(column.name, newValue)}} size={16}></Swicth>
196
+ <Switch checked={column.skipLine} onChange={(newValue)=>{handleChangeSkipLine(column.name, newValue)}} size={16}></Switch>
197
197
  </label>
198
198
  </DropdownMenu.Button>
199
199
  {#if column.isSortable !== false}