@plastic-js/tsumiki 0.1.29 → 0.1.30

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.
@@ -37,17 +37,21 @@ var sizeVars = {
37
37
  "--_tg-radius": "var(--tsu-radius-l1-xl)"
38
38
  }
39
39
  };
40
- var defaultStyle = { "--_tg-border": "var(--tsu-accent-9)" };
41
- var rootClass = css({ display: "inline-flex" });
40
+ var defaultStyle = {
41
+ "--_tg-border": "var(--tsu-accent-9)",
42
+ "--_fg-gap": "var(--tsu-spacing-sm)"
43
+ };
44
+ var rootClass = css({
45
+ display: "inline-flex",
46
+ gap: "var(--_fg-gap, var(--tsu-spacing-sm))"
47
+ });
42
48
  var allClass = css({
43
49
  display: "flex",
44
50
  alignItems: "center",
45
51
  justifyContent: "center",
46
52
  padding: "var(--_tg-padding-y, var(--tsu-comp-padding-y-md)) var(--_tg-padding-x, var(--tsu-comp-padding-x-md))",
47
53
  border: "1px solid var(--_tg-border)",
48
- borderRight: "none",
49
- borderTopLeftRadius: "var(--_tg-radius, var(--tsu-radius-l1-md))",
50
- borderBottomLeftRadius: "var(--_tg-radius, var(--tsu-radius-l1-md))",
54
+ borderRadius: "var(--tsu-radius-round)",
51
55
  background: "transparent",
52
56
  color: "var(--tsu-neutral-11)",
53
57
  fontSize: "var(--_tg-font-size, var(--tsu-comp-font-size-md))",
@@ -65,10 +69,16 @@ var allClass = css({
65
69
  cursor: "not-allowed"
66
70
  }
67
71
  });
68
- var tgStyle = {
69
- borderTopLeftRadius: "0",
70
- borderBottomLeftRadius: "0"
71
- };
72
+ var groupClass = css({
73
+ border: "none",
74
+ overflow: "visible",
75
+ gap: "var(--_fg-gap, var(--tsu-spacing-sm))"
76
+ });
77
+ var itemClass = css({
78
+ border: "1px solid var(--_tg-border)",
79
+ borderRadius: "var(--tsu-radius-round)",
80
+ "&:last-child": { border: "1px solid var(--_tg-border)" }
81
+ });
72
82
  var FilterGroup = (props = {}) => {
73
83
  const [local, rest] = splitProps(mergeProps$1({
74
84
  size: "md",
@@ -121,9 +131,8 @@ var FilterGroup = (props = {}) => {
121
131
  },
122
132
  onValueChange: handleChange,
123
133
  get className() {
124
- return local.groupClass;
134
+ return [groupClass, local.groupClass].filter(Boolean).join(" ");
125
135
  },
126
- style: tgStyle,
127
136
  children: () => local.items.map((item) => jsx(ToggleGroupItem, mergeProps({
128
137
  get key() {
129
138
  return item.value;
@@ -135,7 +144,7 @@ var FilterGroup = (props = {}) => {
135
144
  return item.disabled;
136
145
  },
137
146
  get className() {
138
- return local.buttonClass;
147
+ return [itemClass, local.buttonClass].filter(Boolean).join(" ");
139
148
  },
140
149
  children: () => item.label
141
150
  })))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plastic-js/tsumiki",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "A UI component library for Plastic JS.",
5
5
  "license": "MIT",
6
6
  "author": "tigre",