Skip to content

Commit 8d0eee5

Browse files
authored
Merge branch 'main' into feat/toast
2 parents 0729902 + 3776570 commit 8d0eee5

File tree

72 files changed

+1301
-483
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+1301
-483
lines changed

.changeset/hot-beers-think.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@skeletonlabs/skeleton-common": minor
3+
"@skeletonlabs/skeleton-svelte": minor
4+
"@skeletonlabs/skeleton-react": minor
5+
---
6+
7+
feat: switch
8+

.changeset/orange-towns-teach.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@skeletonlabs/skeleton": minor
3+
---
4+
5+
feat: merge optional `preset` styles into core
6+

.changeset/pre.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
},
1818
"changesets": [
1919
"dry-coats-return",
20+
"evil-hands-obey",
2021
"forty-badgers-clap",
2122
"kind-feet-serve",
2223
"legal-suits-write",
2324
"little-files-notice",
25+
"orange-towns-teach",
2426
"small-words-drum"
2527
]
2628
}

packages/skeleton-common/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @skeletonlabs/skeleton-common
22

3+
## 1.0.0-next.3
4+
### Minor Changes
5+
6+
7+
- feat: progress-linear ([#3694](https://github.com/skeletonlabs/skeleton/pull/3694))
8+
39
## 1.0.0-next.2
410
### Minor Changes
511

packages/skeleton-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@skeletonlabs/skeleton-common",
3-
"version": "1.0.0-next.2",
3+
"version": "1.0.0-next.3",
44
"type": "module",
55
"scripts": {
66
"build": "tsdown",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { defineSkeletonClasses } from '../internal/define-skeleton-classes.js' with { type: 'macro' };
2+
3+
export const classesSwitch = defineSkeletonClasses({
4+
root: 'cursor-pointer data-disabled:cursor-not-allowed data-disabled:opacity-50 flex gap-2',
5+
control: [
6+
'block preset-filled-surface-200-800 h-6 w-10 p-0.5 rounded-full flex justify-start',
7+
'data-[state=checked]:preset-filled-primary-500',
8+
'data-focus:ring-2 data-focus:ring-surface-950-50'
9+
],
10+
thumb: [
11+
'rounded-full block preset-filled-surface-50-950 h-full aspect-square transition-transform grid place-items-center',
12+
'data-[state=checked]:bg-surface-950-50 data-[state=checked]:translate-x-4 rtl:data-[state=checked]:-translate-x-4'
13+
],
14+
label: '',
15+
hiddenInput: ''
16+
});

packages/skeleton-common/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ export * from './classes/accordion';
33
export * from './classes/avatar';
44
export * from './classes/progress-linear';
55
export * from './classes/rating-group';
6+
export * from './classes/switch';
67
export * from './classes/tabs';
78
export * from './classes/toast';

packages/skeleton-react/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @skeletonlabs/skeleton-react
22

3+
## 2.0.0-next.3
4+
### Minor Changes
5+
6+
7+
- feat: progress-linear ([#3694](https://github.com/skeletonlabs/skeleton/pull/3694))
8+
9+
10+
### Patch Changes
11+
12+
- Updated dependencies [[`a9c651a`](https://github.com/skeletonlabs/skeleton/commit/a9c651adac035dc4613f0118bca05f0cfb0b22b5)]:
13+
- @skeletonlabs/skeleton-common@1.0.0-next.3
14+
315
## 2.0.0-next.2
416
### Minor Changes
517

packages/skeleton-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@skeletonlabs/skeleton-react",
3-
"version": "2.0.0-next.2",
3+
"version": "2.0.0-next.3",
44
"type": "module",
55
"scripts": {
66
"build": "tsdown",

packages/skeleton-react/src/components/rating-group/anatomy/root.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ export interface RatingGroupRootProps
1111
Omit<ComponentProps<'div'>, 'id' | 'defaultValue' | 'dir'> {}
1212

1313
export default function (props: RatingGroupRootProps) {
14-
// @ts-expect-error - https://github.com/chakra-ui/zag/issues/2672
1514
const [machineProps, componentProps] = splitProps(props);
16-
// @ts-expect-error - https://github.com/chakra-ui/zag/issues/2672
1715
const { element, children, ...restAttributes } = componentProps;
1816

1917
const service = useMachine(machine, {
20-
// @ts-expect-error - https://github.com/chakra-ui/zag/issues/2672
2118
id: useId(),
2219
...machineProps
2320
});

0 commit comments

Comments
 (0)