intelliwaketssveltekitv25 0.1.97 → 0.1.98

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/dist/Modal.svelte CHANGED
@@ -34,6 +34,7 @@
34
34
  marginForStickyHeader = false,
35
35
  okButtonWrap = false,
36
36
  class: clazz = '',
37
+ color,
37
38
  classHeader = '',
38
39
  classButton = '',
39
40
  borderFooter = true,
@@ -68,6 +69,7 @@
68
69
  marginForStickyHeader?: boolean
69
70
  okButtonWrap?: boolean
70
71
  class?: string
72
+ color?: string
71
73
  classHeader?: string
72
74
  classButton?: string
73
75
  borderFooter?: boolean
@@ -206,6 +208,7 @@
206
208
  onkeydown={keyDown}
207
209
  style:max-width={width}
208
210
  bind:this={dialogElement}
211
+ data-color={color}
209
212
  onclick={(e) => {
210
213
  if (!isDialogMouseDown) cancelAction(e)
211
214
  }}
@@ -220,7 +223,7 @@
220
223
  role="button"
221
224
  tabindex={-1}>
222
225
  <!-- svelte-ignore a11y_no_noninteractive_element_interactions -->
223
- <h4 class='bg-primary-main dark:bg-primary-face text-white py-2 px-4 select-none mb-0 {classHeader}'
226
+ <h4 class='dialogHeader bg-primary-main dark:bg-primary-face text-white py-2 px-4 select-none mb-0 {classHeader}'
224
227
  class:cursor-grab={isMouseDown}
225
228
  onmousedown={doMouseDown}>
226
229
  {#if header}
@@ -240,7 +243,7 @@
240
243
  </div>
241
244
  {/if}
242
245
  </h4>
243
- <fieldset class='px-4 pb-6'
246
+ <fieldset class='px-4 pb-6 dialogBody'
244
247
  disabled={disable}
245
248
  class:pt-3={!marginForStickyHeader}
246
249
  class:mt-3={marginForStickyHeader}
@@ -253,13 +256,13 @@
253
256
  </fieldset>
254
257
  {#if !!cancelButton || !!okButton}
255
258
  <fieldset
256
- class='grid grid-cols-[min-content_auto_auto_min-content] border-t-slate-200 dark:border-t-slate-700 px-4 py-2'
259
+ class='dialogButtons grid grid-cols-[min-content_auto_auto_min-content] border-t-slate-200 dark:border-t-slate-700 px-4 py-2'
257
260
  class:border-t={borderFooter}
258
261
  disabled={disable}>
259
262
  <div class='pr-2'>
260
263
  {#if !!cancelButton}
261
264
  <button type='button'
262
- class='btnClean bg-transparent hover:bg-transparent shadow-none text-slate-500 hover:text-slate-700 dark:text-slate-300 pl-0 pt-1'
265
+ class='dialogButtonCancel btnClean bg-transparent hover:bg-transparent shadow-none text-slate-500 hover:text-slate-700 dark:text-slate-300 pl-0 pt-1'
263
266
  class:whitespace-nowrap={!okButtonWrap}
264
267
  onclick={cancelAction}>
265
268
  {cancelButton}
@@ -275,7 +278,7 @@
275
278
  <div class='text-right pl-2'>
276
279
  {#if !!okButton}
277
280
  <button type={okType}
278
- class='shadow-none {classButton}'
281
+ class='dialogButtonOK shadow-none okButton {classButton}'
279
282
  class:whitespace-nowrap={!okButtonWrap}
280
283
  bind:this={okButtonElement}
281
284
  onclick={okAction}
@@ -23,6 +23,7 @@ type $$ComponentProps = {
23
23
  marginForStickyHeader?: boolean;
24
24
  okButtonWrap?: boolean;
25
25
  class?: string;
26
+ color?: string;
26
27
  classHeader?: string;
27
28
  classButton?: string;
28
29
  borderFooter?: boolean;
@@ -8,6 +8,7 @@
8
8
  <Modal bind:show={$ModalPrompt}
9
9
  {width}
10
10
  noShowValue={null}
11
+ color={$ModalPrompt?.color}
11
12
  okButton={$ModalPrompt?.okLabel}
12
13
  okFAProps={$ModalPrompt?.titleFAProps ?? $ModalPrompt?.faProps}
13
14
  okDisabled={$ModalPrompt?.okDisabled}
@@ -4,6 +4,7 @@ export type TModalPromptProps<T = unknown> = {
4
4
  title?: string;
5
5
  titleFAProps?: IFAProps;
6
6
  messageBody?: string;
7
+ color?: string;
7
8
  okLabel?: string;
8
9
  faProps?: IFAProps;
9
10
  okFAProps?: IFAProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "0.1.97",
3
+ "version": "0.1.98",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",