@santi020k/lumen-astro 1.7.0 → 1.8.0
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/components/Input.astro +2 -4
- package/components/NativeSelect.astro +2 -4
- package/index.ts +0 -4
- package/package.json +3 -3
- package/components/Sonner.astro +0 -40
package/components/Input.astro
CHANGED
|
@@ -19,9 +19,7 @@ const {
|
|
|
19
19
|
...rest
|
|
20
20
|
} = Astro.props
|
|
21
21
|
|
|
22
|
-
const
|
|
23
|
-
const resolvedVisualSize = visualSize ?? legacyVisualSize ?? 'default'
|
|
24
|
-
const nativeSize = legacyVisualSize ? undefined : size
|
|
22
|
+
const resolvedVisualSize = visualSize ?? 'default'
|
|
25
23
|
|
|
26
24
|
const { classList, passthrough } = resolveLumenAstroProps(rest, [
|
|
27
25
|
'ui-input',
|
|
@@ -32,7 +30,7 @@ const { classList, passthrough } = resolveLumenAstroProps(rest, [
|
|
|
32
30
|
|
|
33
31
|
<input
|
|
34
32
|
class:list={classList}
|
|
35
|
-
size={
|
|
33
|
+
size={size}
|
|
36
34
|
type={type}
|
|
37
35
|
{...passthrough}
|
|
38
36
|
/>
|
|
@@ -32,15 +32,13 @@ const {
|
|
|
32
32
|
|
|
33
33
|
const hasValue = Object.hasOwn(rest, 'value')
|
|
34
34
|
const normalizedOptions = options.map(option => typeof option === 'string' ? { label: option, value: option } : option)
|
|
35
|
-
const
|
|
36
|
-
const resolvedVisualSize = visualSize ?? legacyVisualSize ?? 'default'
|
|
37
|
-
const nativeSize = legacyVisualSize ? undefined : size
|
|
35
|
+
const resolvedVisualSize = visualSize ?? 'default'
|
|
38
36
|
|
|
39
37
|
const { classList, passthrough } = resolveLumenAstroProps(rest, ['ui-select', resolvedVisualSize === 'sm' && 'ui-select--sm', resolvedVisualSize === 'lg' && 'ui-select--lg'
|
|
40
38
|
], classProp, className)
|
|
41
39
|
---
|
|
42
40
|
|
|
43
|
-
<select class:list={classList} size={
|
|
41
|
+
<select class:list={classList} size={size} {...passthrough}>
|
|
44
42
|
{placeholder && <option disabled selected={!hasValue} value="">{placeholder}</option>}
|
|
45
43
|
<slot />
|
|
46
44
|
{normalizedOptions.map(option => (
|
package/index.ts
CHANGED
|
@@ -155,8 +155,6 @@ export { default as TimeField } from './components/TimeField.astro'
|
|
|
155
155
|
export { default as Timeline } from './components/Timeline.astro'
|
|
156
156
|
export { default as TimelineItem } from './components/TimelineItem.astro'
|
|
157
157
|
export { default as Toast } from './components/Toast.astro'
|
|
158
|
-
/** @deprecated Import ToastViewport instead. */
|
|
159
|
-
export { default as Sonner } from './components/Sonner.astro'
|
|
160
158
|
export { default as ToastViewport } from './components/ToastViewport.astro'
|
|
161
159
|
export { default as Toggle } from './components/Toggle.astro'
|
|
162
160
|
export { default as ToggleGroup } from './components/ToggleGroup.astro'
|
|
@@ -177,8 +175,6 @@ export {
|
|
|
177
175
|
type LumenControlIdMap,
|
|
178
176
|
normalizeAstroActionErrors
|
|
179
177
|
} from './forms.ts'
|
|
180
|
-
/** @deprecated Import the default export from @santi020k/lumen-astro/runtime instead. */
|
|
181
|
-
export { default as UIPrimitives } from './runtime/UIPrimitives.astro'
|
|
182
178
|
export type {
|
|
183
179
|
LumenTabsChangeDetail,
|
|
184
180
|
LumenTabsChangeEvent
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@santi020k/lumen-astro",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"uqr": "^0.1.3",
|
|
46
|
-
"@santi020k/lumen": "^1.
|
|
47
|
-
"@santi020k/lumen-core": "^1.
|
|
46
|
+
"@santi020k/lumen": "^1.8.0",
|
|
47
|
+
"@santi020k/lumen-core": "^1.8.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@astrojs/ts-plugin": "^1.10.11",
|
package/components/Sonner.astro
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
-
|
|
4
|
-
import { resolveLumenAstroProps } from '@santi020k/lumen-core'
|
|
5
|
-
|
|
6
|
-
interface Props extends HTMLAttributes<'div'> {
|
|
7
|
-
class?: string | null
|
|
8
|
-
className?: string
|
|
9
|
-
maxCount?: number
|
|
10
|
-
placement?: 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | 'top-left' | 'top-right'
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const {
|
|
14
|
-
'aria-atomic': ariaAtomic = 'false',
|
|
15
|
-
'aria-live': ariaLive = 'polite',
|
|
16
|
-
class: classProp = '',
|
|
17
|
-
className = '',
|
|
18
|
-
maxCount,
|
|
19
|
-
placement = 'bottom-right',
|
|
20
|
-
...rest
|
|
21
|
-
} = Astro.props
|
|
22
|
-
|
|
23
|
-
const { classList, passthrough } = resolveLumenAstroProps(rest, [
|
|
24
|
-
'ui-sonner',
|
|
25
|
-
'ui-tvp'
|
|
26
|
-
], classProp, className)
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
<div
|
|
30
|
-
aria-atomic={ariaAtomic}
|
|
31
|
-
aria-live={ariaLive}
|
|
32
|
-
data-ui-sonner
|
|
33
|
-
data-ui-toast-viewport
|
|
34
|
-
data-ui-toast-max={maxCount}
|
|
35
|
-
data-placement={placement}
|
|
36
|
-
class:list={classList}
|
|
37
|
-
{...passthrough}
|
|
38
|
-
>
|
|
39
|
-
<slot />
|
|
40
|
-
</div>
|