luna-plus 0.0.40 → 0.0.43

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 (92) hide show
  1. package/dist/Affix/Affix.svelte +1 -1
  2. package/dist/Alert/Alert.svelte +6 -6
  3. package/dist/Autocomplete/Autocomplete.svelte +9 -9
  4. package/dist/Avatar/Avatar.svelte +5 -5
  5. package/dist/Backtop/Backtop.svelte +1 -1
  6. package/dist/Badge/Badge.svelte +4 -4
  7. package/dist/Breadcrumb/Breadcrumb.svelte +7 -7
  8. package/dist/Breadcrumb/BreadcrumbItem.svelte +6 -6
  9. package/dist/Button/Button.svelte +2 -2
  10. package/dist/Calendar/Calendar.svelte +16 -16
  11. package/dist/Card/Card.svelte +4 -4
  12. package/dist/Carousel/Carousel.svelte +6 -6
  13. package/dist/Carousel/CarouselItem.svelte +1 -1
  14. package/dist/Cascader/Cascader.svelte +12 -12
  15. package/dist/Checkbox/Checkbox.svelte +5 -5
  16. package/dist/Checkbox/CheckboxGroup.svelte +1 -1
  17. package/dist/Collapse/Collapse.svelte +1 -1
  18. package/dist/Collapse/CollapseItem.svelte +6 -6
  19. package/dist/ColorPicker/ColorPicker.svelte +13 -13
  20. package/dist/Container/Aside.svelte +1 -1
  21. package/dist/Container/Container.svelte +1 -1
  22. package/dist/Container/Footer.svelte +1 -1
  23. package/dist/Container/Header.svelte +1 -1
  24. package/dist/Container/Main.svelte +1 -1
  25. package/dist/DatePicker/DatePicker.svelte +20 -20
  26. package/dist/DateTimePicker/DateTimePicker.svelte +31 -31
  27. package/dist/Descriptions/Descriptions.svelte +6 -6
  28. package/dist/Descriptions/DescriptionsItem.svelte +6 -6
  29. package/dist/Dialog/Dialog.svelte +8 -8
  30. package/dist/Divider/Divider.svelte +6 -6
  31. package/dist/Drawer/Drawer.svelte +8 -8
  32. package/dist/Dropdown/Dropdown.svelte +42 -25
  33. package/dist/Dropdown/DropdownItem.svelte +2 -2
  34. package/dist/Dropdown/DropdownMenu.svelte +1 -1
  35. package/dist/Empty/Empty.svelte +4 -4
  36. package/dist/Form/Form.svelte +1 -1
  37. package/dist/Form/FormItem.svelte +4 -4
  38. package/dist/Icon/Icon.svelte +1 -1
  39. package/dist/Image/Image.svelte +13 -13
  40. package/dist/Input/Input.svelte +7 -7
  41. package/dist/InputNumber/InputNumber.svelte +7 -7
  42. package/dist/InputTag/InputTag.svelte +4 -4
  43. package/dist/Link/Link.svelte +1 -1
  44. package/dist/Loading/Loading.svelte +6 -6
  45. package/dist/Menu/Menu.svelte +10 -10
  46. package/dist/Message/Message.svelte +4 -4
  47. package/dist/Message/MessageQueue.svelte +4 -4
  48. package/dist/Message/message.js +1 -1
  49. package/dist/MessageBox/MessageBox.svelte +6 -6
  50. package/dist/MessageBox/messageBox.js +2 -2
  51. package/dist/Notification/Notification.svelte +8 -8
  52. package/dist/Pagination/Pagination.svelte +19 -19
  53. package/dist/PinInput/PinInput.svelte +2 -2
  54. package/dist/Popconfirm/Popconfirm.svelte +8 -8
  55. package/dist/Popover/Popover.svelte +5 -5
  56. package/dist/Progress/Progress.svelte +4 -4
  57. package/dist/Radio/Radio.svelte +5 -5
  58. package/dist/Radio/RadioGroup.svelte +1 -1
  59. package/dist/Rating/Rating.svelte +7 -7
  60. package/dist/Result/Result.svelte +6 -6
  61. package/dist/Segmented/Segmented.svelte +4 -4
  62. package/dist/Select/Option.svelte +1 -1
  63. package/dist/Select/OptionGroup.svelte +3 -3
  64. package/dist/Select/Select.svelte +13 -13
  65. package/dist/Skeleton/Skeleton.svelte +2 -2
  66. package/dist/Skeleton/SkeletonItem.svelte +1 -1
  67. package/dist/Slider/Slider.svelte +12 -12
  68. package/dist/Space/Space.svelte +5 -5
  69. package/dist/Statistic/Countdown.svelte +6 -6
  70. package/dist/Statistic/Statistic.svelte +6 -6
  71. package/dist/Steps/Step.svelte +8 -8
  72. package/dist/Steps/Steps.svelte +1 -1
  73. package/dist/Switch/Switch.svelte +7 -7
  74. package/dist/Table/Table.svelte +32 -32
  75. package/dist/Tabs/TabPane.svelte +1 -1
  76. package/dist/Tabs/Tabs.svelte +14 -14
  77. package/dist/Tabs/TabsContext.js +1 -1
  78. package/dist/Tag/Tag.svelte +2 -2
  79. package/dist/Textarea/Textarea.svelte +3 -3
  80. package/dist/TimePicker/TimePicker.svelte +19 -19
  81. package/dist/Timeline/Timeline.svelte +1 -1
  82. package/dist/Timeline/TimelineItem.svelte +7 -7
  83. package/dist/Tooltip/OverflowTooltip.svelte +5 -5
  84. package/dist/Tooltip/Tooltip.svelte +3 -3
  85. package/dist/Transfer/Transfer.svelte +28 -24
  86. package/dist/Tree/Tree.svelte +1 -1
  87. package/dist/Tree/TreeNode.svelte +6 -6
  88. package/dist/TreeSelect/TreeSelect.svelte +25 -25
  89. package/dist/Upload/Upload.svelte +32 -32
  90. package/dist/Watermark/Watermark.svelte +3 -3
  91. package/package.json +1 -1
  92. package/styles/index.css +1 -1
@@ -27,7 +27,7 @@
27
27
  let searchQuery = $state("");
28
28
  let rootEl: HTMLDivElement | null = $state(null);
29
29
  let inputEl: HTMLInputElement | null = $state(null);
30
- const dropdownId = `lm-select-dropdown-${Math.random().toString(36).slice(2, 9)}`;
30
+ const dropdownId = `ln-select-dropdown-${Math.random().toString(36).slice(2, 9)}`;
31
31
 
32
32
  const selectedValues = $derived.by((): (string | number)[] => {
33
33
  if (multiple) return Array.isArray(modelValue) ? modelValue : [];
@@ -150,13 +150,13 @@
150
150
  });
151
151
 
152
152
  const classes = $derived(
153
- `lm-select lm-select--${size}${visible ? " is-focus" : ""}${disabled ? " is-disabled" : ""}${cls ? ` ${cls}` : ""}`,
153
+ `ln-select ln-select--${size}${visible ? " is-focus" : ""}${disabled ? " is-disabled" : ""}${cls ? ` ${cls}` : ""}`,
154
154
  );
155
155
  </script>
156
156
 
157
157
  <div class={classes} bind:this={rootEl} {...attrs}>
158
158
  <div
159
- class="lm-select__trigger"
159
+ class="ln-select__trigger"
160
160
  role="combobox"
161
161
  tabindex={disabled ? -1 : 0}
162
162
  aria-controls={dropdownId}
@@ -169,7 +169,7 @@
169
169
  {#if filterable && visible}
170
170
  <input
171
171
  bind:this={inputEl}
172
- class="lm-select__input"
172
+ class="ln-select__input"
173
173
  type="text"
174
174
  bind:value={searchQuery}
175
175
  {placeholder}
@@ -177,16 +177,16 @@
177
177
  onkeydown={(e: KeyboardEvent) => e.key === "Escape" && close()}
178
178
  />
179
179
  {:else}
180
- <span class="lm-select__value" class:is-placeholder={!hasValue}>
180
+ <span class="ln-select__value" class:is-placeholder={!hasValue}>
181
181
  {hasValue ? displayLabel : placeholder}
182
182
  </span>
183
183
  {/if}
184
184
 
185
- <span class="lm-select__suffix">
185
+ <span class="ln-select__suffix">
186
186
  {#if clearable && hasValue && !disabled}
187
187
  <button
188
188
  type="button"
189
- class="lm-select__clear"
189
+ class="ln-select__clear"
190
190
  onclick={handleClear}
191
191
  aria-label="清空"
192
192
  >
@@ -196,7 +196,7 @@
196
196
  <Icon
197
197
  icon={ChevronDown}
198
198
  size={14}
199
- class="lm-select__arrow{visible ? ' is-reverse' : ''}"
199
+ class="ln-select__arrow{visible ? ' is-reverse' : ''}"
200
200
  />
201
201
  {/if}
202
202
  </span>
@@ -205,21 +205,21 @@
205
205
  {#if visible}
206
206
  <div
207
207
  id={dropdownId}
208
- class="lm-select__dropdown"
208
+ class="ln-select__dropdown"
209
209
  role="listbox"
210
210
  transition:dropdownTransition
211
211
  >
212
212
  {#if showMenuArrow}
213
- <div class="lm-select__menu-arrow" aria-hidden="true"></div>
213
+ <div class="ln-select__menu-arrow" aria-hidden="true"></div>
214
214
  {/if}
215
- <div class="lm-select__menu-content">
215
+ <div class="ln-select__menu-content">
216
216
  {#if children}
217
217
  {@render children()}
218
218
  {:else if filteredOptions.length > 0}
219
219
  {#each filteredOptions as option (option.value)}
220
220
  <button
221
221
  type="button"
222
- class="lm-select__option{isSelected(option.value)
222
+ class="ln-select__option{isSelected(option.value)
223
223
  ? ' is-selected'
224
224
  : ''}"
225
225
  role="option"
@@ -237,7 +237,7 @@
237
237
  </button>
238
238
  {/each}
239
239
  {:else}
240
- <div class="lm-select__empty">无匹配数据</div>
240
+ <div class="ln-select__empty">无匹配数据</div>
241
241
  {/if}
242
242
  </div>
243
243
  </div>
@@ -25,7 +25,7 @@
25
25
  shouldShow = loading
26
26
  })
27
27
 
28
- const classes = $derived(`lm-skeleton${animated ? ' is-animated' : ''}${cls ? ` ${cls}` : ''}`)
28
+ const classes = $derived(`ln-skeleton${animated ? ' is-animated' : ''}${cls ? ` ${cls}` : ''}`)
29
29
  const rowIndices = $derived(Array.from({ length: rows }, (_, i) => i))
30
30
  </script>
31
31
 
@@ -35,7 +35,7 @@
35
35
  {@render template()}
36
36
  {:else}
37
37
  {#each rowIndices as i (i)}
38
- <div class="lm-skeleton__item lm-skeleton__p" class:is-first={i === 0} class:is-last={i === rows - 1}></div>
38
+ <div class="ln-skeleton__item ln-skeleton__p" class:is-first={i === 0} class:is-last={i === rows - 1}></div>
39
39
  {/each}
40
40
  {/if}
41
41
  </div>
@@ -8,7 +8,7 @@
8
8
 
9
9
  let { variant = 'text', class: cls = '', ...attrs }: SkeletonItemProps = $props()
10
10
 
11
- const classes = $derived(`lm-skeleton__item lm-skeleton__${variant}${cls ? ` ${cls}` : ''}`)
11
+ const classes = $derived(`ln-skeleton__item ln-skeleton__${variant}${cls ? ` ${cls}` : ''}`)
12
12
  </script>
13
13
 
14
14
  <div class={classes} {...attrs}></div>
@@ -65,7 +65,7 @@
65
65
  });
66
66
 
67
67
  const classes = $derived(
68
- `lm-slider${vertical ? " is-vertical" : ""}${disabled ? " is-disabled" : ""}${isDragging ? " is-dragging" : ""}${cls ? ` ${cls}` : ""}`,
68
+ `ln-slider${vertical ? " is-vertical" : ""}${disabled ? " is-disabled" : ""}${isDragging ? " is-dragging" : ""}${cls ? ` ${cls}` : ""}`,
69
69
  );
70
70
 
71
71
  /** 计算百分比 */
@@ -235,7 +235,7 @@
235
235
  <div {...attrs} class={classes}>
236
236
  <div
237
237
  bind:this={trackRef}
238
- class="lm-slider__track"
238
+ class="ln-slider__track"
239
239
  role="presentation"
240
240
  onclick={handleTrackClick}
241
241
  >
@@ -243,7 +243,7 @@
243
243
  {@const percentages = percentage as [number, number]}
244
244
  {@const [startPercent, endPercent] = percentages}
245
245
  <div
246
- class="lm-slider__fill"
246
+ class="ln-slider__fill"
247
247
  style={vertical
248
248
  ? `bottom: ${startPercent}%; height: ${endPercent - startPercent}%`
249
249
  : `left: ${startPercent}%; width: ${endPercent - startPercent}%`}
@@ -253,7 +253,7 @@
253
253
  {@const thumbPercent = percentages[thumbIndex]}
254
254
  {@const thumbValue = (currentValue as [number, number])[thumbIndex]}
255
255
  <div
256
- class="lm-slider__thumb"
256
+ class="ln-slider__thumb"
257
257
  class:is-active={activeThumb === thumbIndex}
258
258
  style={vertical
259
259
  ? `bottom: ${thumbPercent}%`
@@ -279,7 +279,7 @@
279
279
  disabled={!showTooltip}
280
280
  style="width: 100%; height: 100%; display: block;"
281
281
  >
282
- <div class="lm-slider__thumb-inner"></div>
282
+ <div class="ln-slider__thumb-inner"></div>
283
283
  </Tooltip>
284
284
  </div>
285
285
  {/each}
@@ -287,12 +287,12 @@
287
287
  {@const fillPercent = percentage as number}
288
288
  {@const currentVal = currentValue as number}
289
289
  <div
290
- class="lm-slider__fill"
290
+ class="ln-slider__fill"
291
291
  style={vertical ? `height: ${fillPercent}%` : `width: ${fillPercent}%`}
292
292
  ></div>
293
293
 
294
294
  <div
295
- class="lm-slider__thumb"
295
+ class="ln-slider__thumb"
296
296
  class:is-active={isDragging}
297
297
  style={vertical ? `bottom: ${fillPercent}%` : `left: ${fillPercent}%`}
298
298
  role="slider"
@@ -312,23 +312,23 @@
312
312
  disabled={!showTooltip}
313
313
  style="width: 100%; height: 100%; display: block;"
314
314
  >
315
- <div class="lm-slider__thumb-inner"></div>
315
+ <div class="ln-slider__thumb-inner"></div>
316
316
  </Tooltip>
317
317
  </div>
318
318
  {/if}
319
319
  </div>
320
320
 
321
321
  {#if markPositions.length > 0}
322
- <div class="lm-slider__marks">
322
+ <div class="ln-slider__marks">
323
323
  {#each markPositions as mark (mark.value)}
324
324
  <div
325
- class="lm-slider__mark"
325
+ class="ln-slider__mark"
326
326
  style={vertical
327
327
  ? `bottom: ${mark.position}%`
328
328
  : `left: ${mark.position}%`}
329
329
  >
330
- <div class="lm-slider__mark-point"></div>
331
- <div class="lm-slider__mark-label">
330
+ <div class="ln-slider__mark-point"></div>
331
+ <div class="ln-slider__mark-label">
332
332
  {#if typeof mark.label === "string"}
333
333
  {mark.label}
334
334
  {:else}
@@ -71,16 +71,16 @@
71
71
  );
72
72
 
73
73
  const classes = $derived(
74
- `lm-space lm-space--${direction}${wrap ? " is-wrap" : ""}${fill ? " is-fill" : ""}${cls ? ` ${cls}` : ""}`,
74
+ `ln-space ln-space--${direction}${wrap ? " is-wrap" : ""}${fill ? " is-fill" : ""}${cls ? ` ${cls}` : ""}`,
75
75
  );
76
76
  </script>
77
77
 
78
78
  <div
79
79
  class={classes}
80
- style:--lm-space-gap={gapValue}
81
- style:--lm-space-align={alignValue}
82
- style:--lm-space-justify={justifyValue}
83
- style:--lm-space-fill-ratio={fillRatio}
80
+ style:--ln-space-gap={gapValue}
81
+ style:--ln-space-align={alignValue}
82
+ style:--ln-space-justify={justifyValue}
83
+ style:--ln-space-fill-ratio={fillRatio}
84
84
  {...attrs}
85
85
  >
86
86
  {#if children}
@@ -68,12 +68,12 @@
68
68
  stopTimer()
69
69
  })
70
70
 
71
- const classes = $derived(`lm-statistic lm-countdown${cls ? ` ${cls}` : ''}`)
71
+ const classes = $derived(`ln-statistic ln-countdown${cls ? ` ${cls}` : ''}`)
72
72
  </script>
73
73
 
74
74
  <div class={classes} {...attrs}>
75
75
  {#if title}
76
- <div class="lm-statistic__title">
76
+ <div class="ln-statistic__title">
77
77
  {#if typeof title === 'string'}
78
78
  {title}
79
79
  {:else}
@@ -82,9 +82,9 @@
82
82
  </div>
83
83
  {/if}
84
84
 
85
- <div class="lm-statistic__content" style={valueStyle}>
85
+ <div class="ln-statistic__content" style={valueStyle}>
86
86
  {#if prefix}
87
- <span class="lm-statistic__prefix">
87
+ <span class="ln-statistic__prefix">
88
88
  {#if typeof prefix === 'string'}
89
89
  {prefix}
90
90
  {:else}
@@ -93,10 +93,10 @@
93
93
  </span>
94
94
  {/if}
95
95
 
96
- <span class="lm-statistic__value">{formatTime}</span>
96
+ <span class="ln-statistic__value">{formatTime}</span>
97
97
 
98
98
  {#if suffix}
99
- <span class="lm-statistic__suffix">
99
+ <span class="ln-statistic__suffix">
100
100
  {#if typeof suffix === 'string'}
101
101
  {suffix}
102
102
  {:else}
@@ -23,12 +23,12 @@
23
23
  return parts.join(decimalSeparator)
24
24
  })
25
25
 
26
- const classes = $derived(`lm-statistic${cls ? ` ${cls}` : ''}`)
26
+ const classes = $derived(`ln-statistic${cls ? ` ${cls}` : ''}`)
27
27
  </script>
28
28
 
29
29
  <div class={classes} {...attrs}>
30
30
  {#if title}
31
- <div class="lm-statistic__title">
31
+ <div class="ln-statistic__title">
32
32
  {#if typeof title === 'string'}
33
33
  {title}
34
34
  {:else}
@@ -37,9 +37,9 @@
37
37
  </div>
38
38
  {/if}
39
39
 
40
- <div class="lm-statistic__content" style={valueStyle}>
40
+ <div class="ln-statistic__content" style={valueStyle}>
41
41
  {#if prefix}
42
- <span class="lm-statistic__prefix">
42
+ <span class="ln-statistic__prefix">
43
43
  {#if typeof prefix === 'string'}
44
44
  {prefix}
45
45
  {:else}
@@ -48,10 +48,10 @@
48
48
  </span>
49
49
  {/if}
50
50
 
51
- <span class="lm-statistic__value">{formatValue}</span>
51
+ <span class="ln-statistic__value">{formatValue}</span>
52
52
 
53
53
  {#if suffix}
54
- <span class="lm-statistic__suffix">
54
+ <span class="ln-statistic__suffix">
55
55
  {#if typeof suffix === 'string'}
56
56
  {suffix}
57
57
  {:else}
@@ -25,12 +25,12 @@
25
25
  const isFinish = $derived(currentStatus === 'finish' || currentStatus === 'success')
26
26
  const isError = $derived(currentStatus === 'error')
27
27
 
28
- const classes = $derived(`lm-step is-${currentStatus}${cls ? ` ${cls}` : ''}`)
28
+ const classes = $derived(`ln-step is-${currentStatus}${cls ? ` ${cls}` : ''}`)
29
29
  </script>
30
30
 
31
31
  <div class={classes} {...attrs}>
32
- <div class="lm-step__head">
33
- <div class="lm-step__icon">
32
+ <div class="ln-step__head">
33
+ <div class="ln-step__icon">
34
34
  {#if icon}
35
35
  {@render icon()}
36
36
  {:else if isFinish}
@@ -38,18 +38,18 @@
38
38
  {:else if isError}
39
39
  <Icon icon={X} size={14} />
40
40
  {:else}
41
- <span class="lm-step__icon-inner">{index + 1}</span>
41
+ <span class="ln-step__icon-inner">{index + 1}</span>
42
42
  {/if}
43
43
  </div>
44
- <div class="lm-step__line"></div>
44
+ <div class="ln-step__line"></div>
45
45
  </div>
46
46
 
47
- <div class="lm-step__main">
47
+ <div class="ln-step__main">
48
48
  {#if title}
49
- <div class="lm-step__title">{title}</div>
49
+ <div class="ln-step__title">{title}</div>
50
50
  {/if}
51
51
  {#if description && !isSimple}
52
- <div class="lm-step__description">{description}</div>
52
+ <div class="ln-step__description">{description}</div>
53
53
  {/if}
54
54
  {#if children}
55
55
  {@render children()}
@@ -50,7 +50,7 @@
50
50
 
51
51
  setContext(STEPS_CONTEXT_KEY, context)
52
52
 
53
- const classes = $derived(`lm-steps lm-steps--${direction}${simple ? ' lm-steps--simple' : ''}${alignCenter ? ' is-center' : ''}${cls ? ` ${cls}` : ''}`)
53
+ const classes = $derived(`ln-steps ln-steps--${direction}${simple ? ' ln-steps--simple' : ''}${alignCenter ? ' is-center' : ''}${cls ? ` ${cls}` : ''}`)
54
54
  </script>
55
55
 
56
56
  <div class={classes} {...attrs}>
@@ -42,7 +42,7 @@
42
42
  }: SwitchProps = $props()
43
43
 
44
44
  const classes = $derived(
45
- `lm-switch lm-switch--${size}` +
45
+ `ln-switch ln-switch--${size}` +
46
46
  `${modelValue ? ' is-active' : ''}` +
47
47
  `${disabled ? ' is-disabled' : ''}` +
48
48
  `${loading ? ' is-loading' : ''}` +
@@ -90,28 +90,28 @@
90
90
  onkeydown={handleKeydown}
91
91
  {...attrs}
92
92
  >
93
- <span class="lm-switch__track" aria-hidden="true">
93
+ <span class="ln-switch__track" aria-hidden="true">
94
94
  {#if iconLeft}
95
- <span class="lm-switch__icon lm-switch__icon--left" aria-hidden="true">
95
+ <span class="ln-switch__icon ln-switch__icon--left" aria-hidden="true">
96
96
  <Icon icon={iconLeft} size="100%" />
97
97
  </span>
98
98
  {/if}
99
99
 
100
- <span class="lm-switch__thumb" aria-hidden="true">
100
+ <span class="ln-switch__thumb" aria-hidden="true">
101
101
  {#if loading}
102
- <Icon icon={Loader} class="lm-switch__loading" size={14} />
102
+ <Icon icon={Loader} class="ln-switch__loading" size={14} />
103
103
  {/if}
104
104
  </span>
105
105
 
106
106
  {#if iconRight}
107
- <span class="lm-switch__icon lm-switch__icon--right" aria-hidden="true">
107
+ <span class="ln-switch__icon ln-switch__icon--right" aria-hidden="true">
108
108
  <Icon icon={iconRight} size="100%" />
109
109
  </span>
110
110
  {/if}
111
111
  </span>
112
112
 
113
113
  {#if labelText}
114
- <span class="lm-switch__label" class:is-loading={loading} aria-live={loading ? 'polite' : undefined}>
114
+ <span class="ln-switch__label" class:is-loading={loading} aria-live={loading ? 'polite' : undefined}>
115
115
  {labelText}
116
116
  </span>
117
117
  {/if}
@@ -391,9 +391,9 @@
391
391
 
392
392
  // Get row class
393
393
  const getRowClass = (row: any, index: number): string => {
394
- const classes: string[] = ["lm-table__row"];
394
+ const classes: string[] = ["ln-table__row"];
395
395
  if (stripe && index % 2 === 1) {
396
- classes.push("lm-table__row--striped");
396
+ classes.push("ln-table__row--striped");
397
397
  }
398
398
  if (highlightCurrentRow && currentRowKeyState === getRowKey(row, index)) {
399
399
  classes.push("is-current");
@@ -430,7 +430,7 @@
430
430
  rowIndex: number,
431
431
  colIndex: number,
432
432
  ): string => {
433
- const classes: string[] = ["lm-table__cell"];
433
+ const classes: string[] = ["ln-table__cell"];
434
434
  if (column.type === "selection") {
435
435
  classes.push("is-center");
436
436
  }
@@ -451,7 +451,7 @@
451
451
 
452
452
  // Get header cell class
453
453
  const getHeaderCellClass = (column: TableColumn, index: number): string => {
454
- const classes: string[] = ["lm-table__cell", "lm-table__header-cell"];
454
+ const classes: string[] = ["ln-table__cell", "ln-table__header-cell"];
455
455
  if (column.type === "selection") {
456
456
  classes.push("is-center");
457
457
  }
@@ -529,7 +529,7 @@
529
529
 
530
530
  if (!shouldShowOverflowTooltip(column)) return;
531
531
  const cellContent = target.querySelector(
532
- ".lm-table__cell-text",
532
+ ".ln-table__cell-text",
533
533
  ) as HTMLElement;
534
534
 
535
535
  if (!cellContent || !checkOverflow(cellContent)) return;
@@ -662,7 +662,7 @@
662
662
 
663
663
  // Table classes
664
664
  const tableClasses = $derived(
665
- `lm-table${border ? " lm-table--border" : ""}${stripe ? " lm-table--striped" : ""}${size !== "default" ? ` lm-table--${size}` : ""}${fit ? " lm-table--fit" : ""}${highlightCurrentRow ? " lm-table--highlight-current-row" : ""}${loading ? " is-loading" : ""}${flexible ? " lm-table--flexible" : ""}${scrollbarAlwaysOn ? " lm-table--scrollbar-always-on" : ""}`,
665
+ `ln-table${border ? " ln-table--border" : ""}${stripe ? " ln-table--striped" : ""}${size !== "default" ? ` ln-table--${size}` : ""}${fit ? " ln-table--fit" : ""}${highlightCurrentRow ? " ln-table--highlight-current-row" : ""}${loading ? " is-loading" : ""}${flexible ? " ln-table--flexible" : ""}${scrollbarAlwaysOn ? " ln-table--scrollbar-always-on" : ""}`,
666
666
  );
667
667
 
668
668
  const innerWrapperStyle = $derived.by(() => {
@@ -679,7 +679,7 @@
679
679
  });
680
680
 
681
681
  const tableElementClasses = $derived(
682
- `lm-table__table${cls ? ` ${cls}` : ""}`,
682
+ `ln-table__table${cls ? ` ${cls}` : ""}`,
683
683
  );
684
684
 
685
685
  const effectiveTableLayout = $derived(
@@ -698,7 +698,7 @@
698
698
 
699
699
  <div bind:this={tableRef} class={tableClasses}>
700
700
  <Loading visible={loading} lock={false}>
701
- <div class="lm-table__inner-wrapper" style={innerWrapperStyle} onscroll={handleScroll}>
701
+ <div class="ln-table__inner-wrapper" style={innerWrapperStyle} onscroll={handleScroll}>
702
702
  <table
703
703
  {...attrs}
704
704
  class={tableElementClasses}
@@ -713,8 +713,8 @@
713
713
  {/each}
714
714
  </colgroup>
715
715
  {#if showHeader}
716
- <thead class="lm-table__header">
717
- <tr class="lm-table__row">
716
+ <thead class="ln-table__header">
717
+ <tr class="ln-table__row">
718
718
  {#each columns as column, colIndex}
719
719
  <th
720
720
  class={getHeaderCellClass(column, colIndex)}
@@ -724,7 +724,7 @@
724
724
  }}
725
725
  oncontextmenu={(e) => handleHeaderContextmenu(column, e)}
726
726
  >
727
- <div class="lm-table__cell-wrapper">
727
+ <div class="ln-table__cell-wrapper">
728
728
  {#if column.type === "selection"}
729
729
  <Checkbox
730
730
  checked={isAllSelected}
@@ -738,21 +738,21 @@
738
738
  $index: colIndex,
739
739
  })}
740
740
  {:else}
741
- <span class="lm-table__header-text"
741
+ <span class="ln-table__header-text"
742
742
  >{column.label || ""}</span
743
743
  >
744
744
  {/if}
745
745
  {#if column.sortable}
746
- <span class="lm-table__sort-caret">
746
+ <span class="ln-table__sort-caret">
747
747
  <Icon
748
748
  icon={ChevronUp}
749
749
  size={12}
750
- class={`lm-table__sort-icon lm-table__sort-icon--asc${sortState.prop === column.prop && sortState.order === "ascending" ? " is-active" : ""}`}
750
+ class={`ln-table__sort-icon ln-table__sort-icon--asc${sortState.prop === column.prop && sortState.order === "ascending" ? " is-active" : ""}`}
751
751
  />
752
752
  <Icon
753
753
  icon={ChevronDown}
754
754
  size={12}
755
- class={`lm-table__sort-icon lm-table__sort-icon--desc${sortState.prop === column.prop && sortState.order === "descending" ? " is-active" : ""}`}
755
+ class={`ln-table__sort-icon ln-table__sort-icon--desc${sortState.prop === column.prop && sortState.order === "descending" ? " is-active" : ""}`}
756
756
  />
757
757
  </span>
758
758
  {/if}
@@ -762,18 +762,18 @@
762
762
  </tr>
763
763
  </thead>
764
764
  {/if}
765
- <tbody class="lm-table__body">
765
+ <tbody class="ln-table__body">
766
766
  {#if sortedData.length === 0}
767
- <tr class="lm-table__row lm-table__empty-row">
767
+ <tr class="ln-table__row ln-table__empty-row">
768
768
  <td
769
- class="lm-table__cell lm-table__empty-cell"
769
+ class="ln-table__cell ln-table__empty-cell"
770
770
  colspan={columns.length}
771
771
  >
772
- <div class="lm-table__empty">
772
+ <div class="ln-table__empty">
773
773
  {#if empty}
774
774
  {@render empty()}
775
775
  {:else}
776
- <span class="lm-table__empty-text">{emptyText}</span>
776
+ <span class="ln-table__empty-text">{emptyText}</span>
777
777
  {/if}
778
778
  </div>
779
779
  </td>
@@ -808,7 +808,7 @@
808
808
  handleCellMouseLeaveInternal(e, row, column)}
809
809
  >
810
810
  <div
811
- class="lm-table__cell-wrapper"
811
+ class="ln-table__cell-wrapper"
812
812
  class:has-overflow-tooltip={shouldShowOverflowTooltip(column)}
813
813
  >
814
814
  {#if column.type === "selection"}
@@ -822,7 +822,7 @@
822
822
  size="small"
823
823
  />
824
824
  {:else if column.type === "index"}
825
- <span class="lm-table__cell-text"
825
+ <span class="ln-table__cell-text"
826
826
  >{getIndexValue(column, rowIndex)}</span
827
827
  >
828
828
  {:else if column.type === "actions"}
@@ -857,7 +857,7 @@
857
857
  {:else if column.cellComponent}
858
858
  {@const CellComp = column.cellComponent}
859
859
  <span
860
- class="lm-table__cell-text"
860
+ class="ln-table__cell-text"
861
861
  class:is-ellipsis={shouldShowOverflowTooltip(column)}
862
862
  >
863
863
  <CellComp
@@ -868,7 +868,7 @@
868
868
  </span>
869
869
  {:else}
870
870
  <span
871
- class="lm-table__cell-text"
871
+ class="ln-table__cell-text"
872
872
  class:is-ellipsis={shouldShowOverflowTooltip(column)}
873
873
  >
874
874
  {formatCellValue(row, column, rowIndex)}
@@ -883,12 +883,12 @@
883
883
  {/if}
884
884
  </tbody>
885
885
  {#if showSummary && sortedData.length > 0}
886
- <tfoot class="lm-table__footer">
887
- <tr class="lm-table__row">
886
+ <tfoot class="ln-table__footer">
887
+ <tr class="ln-table__row">
888
888
  {#each columns as column, colIndex}
889
- <td class="lm-table__cell lm-table__summary-cell">
890
- <div class="lm-table__cell-wrapper">
891
- <span class="lm-table__cell-text">
889
+ <td class="ln-table__cell ln-table__summary-cell">
890
+ <div class="ln-table__cell-wrapper">
891
+ <span class="ln-table__cell-text">
892
892
  {summaryData[colIndex] ?? ""}
893
893
  </span>
894
894
  </div>
@@ -899,7 +899,7 @@
899
899
  {/if}
900
900
  </table>
901
901
  {#if append}
902
- <div class="lm-table__append-wrapper">
902
+ <div class="ln-table__append-wrapper">
903
903
  {@render append()}
904
904
  </div>
905
905
  {/if}
@@ -909,13 +909,13 @@
909
909
  <!-- Tooltip -->
910
910
  {#if tooltipVisible && hoveredTooltipCell}
911
911
  <div
912
- class="lm-table__tooltip is-{tooltipOptions?.placement || 'top'} {tooltipEffect === 'light' ? 'is-light' : ''}"
912
+ class="ln-table__tooltip is-{tooltipOptions?.placement || 'top'} {tooltipEffect === 'light' ? 'is-light' : ''}"
913
913
  style="top: {tooltipPosition.top}px; left: {tooltipPosition.left}px; transform: {tooltipPosition.transform};"
914
914
  role="tooltip"
915
915
  >
916
916
  {hoveredTooltipCell.content}
917
917
  {#if tooltipOptions?.showArrow !== false}
918
- <div class="lm-tooltip__arrow"></div>
918
+ <div class="ln-tooltip__arrow"></div>
919
919
  {/if}
920
920
  </div>
921
921
  {/if}
@@ -27,7 +27,7 @@
27
27
 
28
28
  const isActive = $derived(tabs?.active === name)
29
29
 
30
- const classes = $derived(`lm-tab-pane${isActive ? ' is-active' : ''}${cls ? ` ${cls}` : ''}`)
30
+ const classes = $derived(`ln-tab-pane${isActive ? ' is-active' : ''}${cls ? ` ${cls}` : ''}`)
31
31
  </script>
32
32
 
33
33
  <div class={classes} role="tabpanel" aria-hidden={!isActive || undefined} {...attrs}>