@nattstack/ui 0.0.105 → 0.0.107

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.
@@ -165,10 +165,10 @@ body > * {
165
165
  /*
166
166
  Debug helper for visualizing element bounds
167
167
  */
168
- .d {
168
+ @utility d {
169
169
  border: 1px dashed red;
170
- }
171
170
 
172
- .dark .d {
173
- border-color: yellow;
171
+ @variant dark {
172
+ border-color: yellow;
173
+ }
174
174
  }
@@ -118,51 +118,17 @@
118
118
  }
119
119
 
120
120
  .button-module_variant_primary_4nLWdW {
121
- background-color: var(--color-primary);
122
- box-shadow: inset 0 0 0 1px var(--color-primary),
123
- inset 0 1px 0 1px #ffffff40;
124
- color: #fff;
125
- isolation: isolate;
126
- }
127
-
128
- .button-module_variant_primary_4nLWdW:after {
129
- content: "";
130
- mix-blend-mode: overlay;
131
- pointer-events: none;
132
- transition-duration: inherit;
133
- background-image: radial-gradient(75% 100% at 50% -50%, #ffffff40, #0000);
134
- transition-property: opacity;
135
- position: absolute;
136
- inset: 0;
137
- }
138
-
139
- .button-module_variant_primary_4nLWdW:hover:not(:disabled):after {
140
- opacity: 0;
141
- }
142
-
143
- .dark .button-module_variant_primary_4nLWdW {
144
- box-shadow: inset 0 1px #ffffff40;
121
+ --color: #fff;
122
+ background-color: var(--color-gray-12);
123
+ color: var(--color);
145
124
  }
146
125
 
147
126
  .button-module_variant_primary_4nLWdW:hover:not(:disabled) {
148
- --color-mixed: #000;
149
- background-color: color-mix(in oklab, var(--color-primary) 100%, var(--color-mixed) 10%);
150
- box-shadow: none;
151
- }
152
-
153
- .dark .button-module_variant_primary_4nLWdW:hover:not(:disabled) {
154
- --color-mixed: #fff;
127
+ background-color: color-mix(in oklab, var(--color-gray-12) 100%, var(--color) 25%);
155
128
  }
156
129
 
157
- .button-module_variant_primary_4nLWdW > * {
158
- --opacity: .25;
159
- filter: drop-shadow(0 1px 1px hsla(0, 0%, 0%, var(--opacity)));
160
- transition-duration: inherit;
161
- transition-property: filter;
162
- }
163
-
164
- .button-module_variant_primary_4nLWdW:hover:not(:disabled) > * {
165
- --opacity: 0;
130
+ .dark .button-module_variant_primary_4nLWdW {
131
+ --color: #000;
166
132
  }
167
133
 
168
134
  .button-module_variant_secondary_4nLWdW {
@@ -4,18 +4,21 @@ import { createElement } from "react";
4
4
  //#region src/components/column/column.tsx
5
5
  function Column(props) {
6
6
  const { alignItems = void 0, as = "div", className: customClassName = "", flexWrap = void 0, gap = void 0, gapX = void 0, gapY = void 0, justifyContent = void 0, style: customStyle, ...rest } = props;
7
- return createElement(as, {
8
- className: columnVariants({ className: customClassName }),
7
+ const Component = as;
8
+ const combinedClassName = columnVariants({ className: customClassName });
9
+ const combinedStyle = {
10
+ ...customStyle,
11
+ ...gap === void 0 ? {} : { gap },
12
+ ...gapX === void 0 ? {} : { columnGap: gapX },
13
+ ...gapY === void 0 ? {} : { rowGap: gapY },
14
+ ...flexWrap === void 0 ? {} : { flexWrap },
15
+ ...alignItems === void 0 ? {} : { alignItems },
16
+ ...justifyContent === void 0 ? {} : { justifyContent }
17
+ };
18
+ return createElement(Component, {
19
+ className: combinedClassName,
9
20
  "data-slot": "column",
10
- style: {
11
- ...customStyle,
12
- ...gap === void 0 ? {} : { gap },
13
- ...gapX === void 0 ? {} : { columnGap: gapX },
14
- ...gapY === void 0 ? {} : { rowGap: gapY },
15
- ...flexWrap === void 0 ? {} : { flexWrap },
16
- ...alignItems === void 0 ? {} : { alignItems },
17
- ...justifyContent === void 0 ? {} : { justifyContent }
18
- },
21
+ style: combinedStyle,
19
22
  ...rest
20
23
  });
21
24
  }
@@ -5,8 +5,9 @@ import { Combobox } from "@base-ui/react";
5
5
  //#region src/components/combobox/combobox-search.tsx
6
6
  function ComboboxSearch(props) {
7
7
  const { className: customClassName = "", isDisabled = false, ...rest } = props;
8
+ const combinedClassName = comboboxSearchVariants({ className: customClassName });
8
9
  return /* @__PURE__ */ jsxs("div", {
9
- className: comboboxSearchVariants({ className: customClassName }),
10
+ className: combinedClassName,
10
11
  "data-slot": "combobox-search",
11
12
  children: [/* @__PURE__ */ jsx("span", {
12
13
  className: combobox_search_module_default.icon,
@@ -4,8 +4,9 @@ import { jsx } from "react/jsx-runtime";
4
4
  //#region src/components/dialog-responsive/dialog-responsive-bar.tsx
5
5
  function DialogResponsiveBar(props) {
6
6
  const { className: customClassName = "", ...rest } = props;
7
+ const combinedClassName = dialogResponsiveBarVariants({ className: customClassName });
7
8
  return /* @__PURE__ */ jsx("div", {
8
- className: dialogResponsiveBarVariants({ className: customClassName }),
9
+ className: combinedClassName,
9
10
  "data-slot": "dialog-responsive-bar",
10
11
  ...rest
11
12
  });
@@ -4,13 +4,14 @@ import { jsx } from "react/jsx-runtime";
4
4
  //#region src/components/input/input.tsx
5
5
  function Input(props) {
6
6
  const { className: customClassName = "", isActive = false, isAutoFocus = false, isDisabled = false, isInvalid = void 0, isReadOnly = false, isRequired = false, isRounded = false, isValid = void 0, size = 48, type = "text", ...rest } = props;
7
+ const combinedClassName = inputVariants({
8
+ className: customClassName,
9
+ isRounded,
10
+ size
11
+ });
7
12
  return /* @__PURE__ */ jsx("input", {
8
13
  autoFocus: isAutoFocus,
9
- className: inputVariants({
10
- className: customClassName,
11
- isRounded,
12
- size
13
- }),
14
+ className: combinedClassName,
14
15
  "data-is-active": isActive,
15
16
  "data-is-invalid": isInvalid,
16
17
  "data-is-valid": isValid,
@@ -4,8 +4,9 @@ import { jsx } from "react/jsx-runtime";
4
4
  //#region src/components/label/label.tsx
5
5
  function Label(props) {
6
6
  const { className: customClassName = "", htmlFor = void 0, children = void 0, ...rest } = props;
7
+ const combinedClassName = labelVariants({ className: customClassName });
7
8
  return /* @__PURE__ */ jsx("label", {
8
- className: labelVariants({ className: customClassName }),
9
+ className: combinedClassName,
9
10
  "data-slot": "label",
10
11
  htmlFor,
11
12
  ...rest,
@@ -4,18 +4,21 @@ import { createElement } from "react";
4
4
  //#region src/components/row/row.tsx
5
5
  function Row(props) {
6
6
  const { alignItems = void 0, as = "div", className: customClassName = "", flexWrap = void 0, gap = void 0, gapX = void 0, gapY = void 0, justifyContent = void 0, style: customStyle, ...rest } = props;
7
- return createElement(as, {
8
- className: rowVariants({ className: customClassName }),
7
+ const Component = as;
8
+ const combinedClassName = rowVariants({ className: customClassName });
9
+ const combinedStyle = {
10
+ ...customStyle,
11
+ ...gap === void 0 ? {} : { gap },
12
+ ...gapX === void 0 ? {} : { columnGap: gapX },
13
+ ...gapY === void 0 ? {} : { rowGap: gapY },
14
+ ...flexWrap === void 0 ? {} : { flexWrap },
15
+ ...alignItems === void 0 ? {} : { alignItems },
16
+ ...justifyContent === void 0 ? {} : { justifyContent }
17
+ };
18
+ return createElement(Component, {
19
+ className: combinedClassName,
9
20
  "data-slot": "row",
10
- style: {
11
- ...customStyle,
12
- ...gap === void 0 ? {} : { gap },
13
- ...gapX === void 0 ? {} : { columnGap: gapX },
14
- ...gapY === void 0 ? {} : { rowGap: gapY },
15
- ...flexWrap === void 0 ? {} : { flexWrap },
16
- ...alignItems === void 0 ? {} : { alignItems },
17
- ...justifyContent === void 0 ? {} : { justifyContent }
18
- },
21
+ style: combinedStyle,
19
22
  ...rest
20
23
  });
21
24
  }
@@ -4,14 +4,16 @@ import { jsx } from "react/jsx-runtime";
4
4
  //#region src/components/spacer/spacer.tsx
5
5
  function Spacer(props) {
6
6
  const { className: customClassName = "", height, style: customStyle, width, ...rest } = props;
7
+ const combinedClassName = spacerVariants({ className: customClassName });
8
+ const combinedStyle = {
9
+ ...customStyle,
10
+ ...width === void 0 ? {} : { width },
11
+ ...height === void 0 ? {} : { height }
12
+ };
7
13
  return /* @__PURE__ */ jsx("div", {
8
- className: spacerVariants({ className: customClassName }),
14
+ className: combinedClassName,
9
15
  "data-slot": "spacer",
10
- style: {
11
- ...customStyle,
12
- ...width === void 0 ? {} : { width },
13
- ...height === void 0 ? {} : { height }
14
- },
16
+ style: combinedStyle,
15
17
  ...rest
16
18
  });
17
19
  }
@@ -5,11 +5,12 @@ import { jsx } from "react/jsx-runtime";
5
5
  //#region src/components/textarea/textarea.tsx
6
6
  function Textarea(props) {
7
7
  const { className: customClassName = "", isActive = false, isDisabled = false, isInvalid = void 0, isReadOnly = false, isRequired = false, isRounded = false, isValid = void 0, rows = 2, ...rest } = props;
8
+ const combinedClassName = textareaVariants({
9
+ className: customClassName,
10
+ isRounded
11
+ });
8
12
  return /* @__PURE__ */ jsx("textarea", {
9
- className: textareaVariants({
10
- className: customClassName,
11
- isRounded
12
- }),
13
+ className: combinedClassName,
13
14
  "data-is-active": isActive,
14
15
  "data-is-invalid": isInvalid,
15
16
  "data-is-valid": isValid,
@@ -5,8 +5,9 @@ import { Toggle } from "@base-ui/react";
5
5
  //#region src/components/toggle-group/toggle-group-item.tsx
6
6
  function ToggleGroupItem(props) {
7
7
  const { className: customClassName = "", isDisabled = false, isNativeButton = true, ...rest } = props;
8
+ const combinedClassName = toggleGroupItemVariants({ className: customClassName });
8
9
  return /* @__PURE__ */ jsx(Toggle, {
9
- className: toggleGroupItemVariants({ className: customClassName }),
10
+ className: combinedClassName,
10
11
  "data-slot": "toggle-group-item",
11
12
  disabled: isDisabled,
12
13
  nativeButton: isNativeButton,
@@ -5,8 +5,9 @@ import { ToggleGroup } from "@base-ui/react";
5
5
  //#region src/components/toggle-group/toggle-group.tsx
6
6
  function ToggleGroup$1(props) {
7
7
  const { className: customClassName = "", isDisabled = false, isLoopFocus = true, isMultiple = false, ...rest } = props;
8
+ const combinedClassName = toggleGroupVariants({ className: customClassName });
8
9
  return /* @__PURE__ */ jsx(ToggleGroup, {
9
- className: toggleGroupVariants({ className: customClassName }),
10
+ className: combinedClassName,
10
11
  "data-slot": "toggle-group",
11
12
  disabled: isDisabled,
12
13
  loopFocus: isLoopFocus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nattstack/ui",
3
- "version": "0.0.105",
3
+ "version": "0.0.107",
4
4
  "description": "A collection of reusable React components built with Base UI, TypeScript, and CSS Modules",
5
5
  "keywords": [
6
6
  "base-ui",
@@ -48,7 +48,7 @@
48
48
  "release": "bun publish"
49
49
  },
50
50
  "dependencies": {
51
- "@base-ui/react": "1.6.0",
51
+ "@base-ui/react": "1.7.0",
52
52
  "class-variance-authority": "0.7.1"
53
53
  },
54
54
  "devDependencies": {