@opensite/ui 1.5.0 → 1.5.1

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.
@@ -2,7 +2,6 @@
2
2
  'use strict';
3
3
 
4
4
  var forms = require('@page-speed/forms');
5
- var inputs = require('@page-speed/forms/inputs');
6
5
  var clsx = require('clsx');
7
6
  var tailwindMerge = require('tailwind-merge');
8
7
  var img = require('@page-speed/img');
@@ -35,7 +34,6 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
35
34
  var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
36
35
 
37
36
  // components/blocks/footers/footer-split-image-accordion.tsx
38
- var TextInput = inputs.TextInput;
39
37
  function cn(...inputs) {
40
38
  return tailwindMerge.twMerge(clsx.clsx(inputs));
41
39
  }
@@ -1928,14 +1926,13 @@ function FooterSplitImageAccordion({
1928
1926
  method: formMethod,
1929
1927
  className: cn("flex items-stretch", newsletterFormClassName),
1930
1928
  children: [
1931
- /* @__PURE__ */ jsxRuntime.jsx(forms.Field, { name: "email", className: "flex-1", children: ({ field, meta }) => /* @__PURE__ */ jsxRuntime.jsx(
1932
- TextInput,
1929
+ /* @__PURE__ */ jsxRuntime.jsx(forms.Field, { name: "email", className: "flex-1", children: ({ field }) => /* @__PURE__ */ jsxRuntime.jsx(
1930
+ "input",
1933
1931
  {
1934
1932
  ...field,
1935
1933
  type: "email",
1936
1934
  placeholder: emailPlaceholder,
1937
- error: meta.touched && !!meta.error,
1938
- className: "flex h-10 w-full rounded-l-md rounded-r-none border border-r-0 border-input px-3 py-2 text-sm ring-offset-background placeholder:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
1935
+ className: "flex h-10 w-full rounded-l-md rounded-r-none border border-r-0 border-input px-3 py-2 text-sm ring-offset-background placeholder:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1939
1936
  "aria-label": emailPlaceholder
1940
1937
  }
1941
1938
  ) }),
@@ -1944,8 +1941,10 @@ function FooterSplitImageAccordion({
1944
1941
  {
1945
1942
  componentType: "button",
1946
1943
  type: "submit",
1947
- className: "inline-flex h-10 items-center justify-center rounded-l-none rounded-r-md bg-primary px-4 text-sm font-medium text-primary-foreground hover:bg-primary/90",
1948
- asButton: false,
1944
+ variant: "default",
1945
+ size: "icon",
1946
+ asButton: true,
1947
+ className: "rounded-l-none rounded-r-md shrink-0 h-10",
1949
1948
  disabled: form.isSubmitting,
1950
1949
  children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/arrow-right", size: 16 })
1951
1950
  }
@@ -2011,6 +2010,7 @@ function FooterSplitImageAccordion({
2011
2010
  ] }, section.id))
2012
2011
  }
2013
2012
  ),
2013
+ /* @__PURE__ */ jsxRuntime.jsx(Separator, {}),
2014
2014
  paymentPlatforms && paymentPlatforms.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
2015
2015
  "ul",
2016
2016
  {
@@ -2018,10 +2018,9 @@ function FooterSplitImageAccordion({
2018
2018
  "flex flex-wrap items-center gap-3",
2019
2019
  paymentMethodsClassName
2020
2020
  ),
2021
- children: paymentPlatforms.map((platform, idx) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(PaymentPlatformIcon, { platform, size: 24 }) }, idx))
2021
+ children: paymentPlatforms.map((platform, idx) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(PaymentPlatformIcon, { platform, size: 30 }) }, idx))
2022
2022
  }
2023
2023
  ),
2024
- /* @__PURE__ */ jsxRuntime.jsx(Separator, {}),
2025
2024
  /* @__PURE__ */ jsxRuntime.jsxs(
2026
2025
  "div",
2027
2026
  {
@@ -1,6 +1,5 @@
1
1
  "use client";
2
2
  import { useForm, Form, Field } from '@page-speed/forms';
3
- import { TextInput as TextInput$1 } from '@page-speed/forms/inputs';
4
3
  import { clsx } from 'clsx';
5
4
  import { twMerge } from 'tailwind-merge';
6
5
  import { Img } from '@page-speed/img';
@@ -13,7 +12,6 @@ import { serializeForRails, deserializeErrors } from '@page-speed/forms/integrat
13
12
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
14
13
 
15
14
  // components/blocks/footers/footer-split-image-accordion.tsx
16
- var TextInput = TextInput$1;
17
15
  function cn(...inputs) {
18
16
  return twMerge(clsx(inputs));
19
17
  }
@@ -1906,14 +1904,13 @@ function FooterSplitImageAccordion({
1906
1904
  method: formMethod,
1907
1905
  className: cn("flex items-stretch", newsletterFormClassName),
1908
1906
  children: [
1909
- /* @__PURE__ */ jsx(Field, { name: "email", className: "flex-1", children: ({ field, meta }) => /* @__PURE__ */ jsx(
1910
- TextInput,
1907
+ /* @__PURE__ */ jsx(Field, { name: "email", className: "flex-1", children: ({ field }) => /* @__PURE__ */ jsx(
1908
+ "input",
1911
1909
  {
1912
1910
  ...field,
1913
1911
  type: "email",
1914
1912
  placeholder: emailPlaceholder,
1915
- error: meta.touched && !!meta.error,
1916
- className: "flex h-10 w-full rounded-l-md rounded-r-none border border-r-0 border-input px-3 py-2 text-sm ring-offset-background placeholder:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
1913
+ className: "flex h-10 w-full rounded-l-md rounded-r-none border border-r-0 border-input px-3 py-2 text-sm ring-offset-background placeholder:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1917
1914
  "aria-label": emailPlaceholder
1918
1915
  }
1919
1916
  ) }),
@@ -1922,8 +1919,10 @@ function FooterSplitImageAccordion({
1922
1919
  {
1923
1920
  componentType: "button",
1924
1921
  type: "submit",
1925
- className: "inline-flex h-10 items-center justify-center rounded-l-none rounded-r-md bg-primary px-4 text-sm font-medium text-primary-foreground hover:bg-primary/90",
1926
- asButton: false,
1922
+ variant: "default",
1923
+ size: "icon",
1924
+ asButton: true,
1925
+ className: "rounded-l-none rounded-r-md shrink-0 h-10",
1927
1926
  disabled: form.isSubmitting,
1928
1927
  children: /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/arrow-right", size: 16 })
1929
1928
  }
@@ -1989,6 +1988,7 @@ function FooterSplitImageAccordion({
1989
1988
  ] }, section.id))
1990
1989
  }
1991
1990
  ),
1991
+ /* @__PURE__ */ jsx(Separator, {}),
1992
1992
  paymentPlatforms && paymentPlatforms.length > 0 && /* @__PURE__ */ jsx(
1993
1993
  "ul",
1994
1994
  {
@@ -1996,10 +1996,9 @@ function FooterSplitImageAccordion({
1996
1996
  "flex flex-wrap items-center gap-3",
1997
1997
  paymentMethodsClassName
1998
1998
  ),
1999
- children: paymentPlatforms.map((platform, idx) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(PaymentPlatformIcon, { platform, size: 24 }) }, idx))
1999
+ children: paymentPlatforms.map((platform, idx) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(PaymentPlatformIcon, { platform, size: 30 }) }, idx))
2000
2000
  }
2001
2001
  ),
2002
- /* @__PURE__ */ jsx(Separator, {}),
2003
2002
  /* @__PURE__ */ jsxs(
2004
2003
  "div",
2005
2004
  {
package/dist/registry.cjs CHANGED
@@ -44055,14 +44055,13 @@ function FooterSplitImageAccordion({
44055
44055
  method: formMethod,
44056
44056
  className: cn("flex items-stretch", newsletterFormClassName),
44057
44057
  children: [
44058
- /* @__PURE__ */ jsxRuntime.jsx(forms.Field, { name: "email", className: "flex-1", children: ({ field, meta }) => /* @__PURE__ */ jsxRuntime.jsx(
44059
- TextInput,
44058
+ /* @__PURE__ */ jsxRuntime.jsx(forms.Field, { name: "email", className: "flex-1", children: ({ field }) => /* @__PURE__ */ jsxRuntime.jsx(
44059
+ "input",
44060
44060
  {
44061
44061
  ...field,
44062
44062
  type: "email",
44063
44063
  placeholder: emailPlaceholder,
44064
- error: meta.touched && !!meta.error,
44065
- className: "flex h-10 w-full rounded-l-md rounded-r-none border border-r-0 border-input px-3 py-2 text-sm ring-offset-background placeholder:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
44064
+ className: "flex h-10 w-full rounded-l-md rounded-r-none border border-r-0 border-input px-3 py-2 text-sm ring-offset-background placeholder:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
44066
44065
  "aria-label": emailPlaceholder
44067
44066
  }
44068
44067
  ) }),
@@ -44071,8 +44070,10 @@ function FooterSplitImageAccordion({
44071
44070
  {
44072
44071
  componentType: "button",
44073
44072
  type: "submit",
44074
- className: "inline-flex h-10 items-center justify-center rounded-l-none rounded-r-md bg-primary px-4 text-sm font-medium text-primary-foreground hover:bg-primary/90",
44075
- asButton: false,
44073
+ variant: "default",
44074
+ size: "icon",
44075
+ asButton: true,
44076
+ className: "rounded-l-none rounded-r-md shrink-0 h-10",
44076
44077
  disabled: form.isSubmitting,
44077
44078
  children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/arrow-right", size: 16 })
44078
44079
  }
@@ -44138,6 +44139,7 @@ function FooterSplitImageAccordion({
44138
44139
  ] }, section.id))
44139
44140
  }
44140
44141
  ),
44142
+ /* @__PURE__ */ jsxRuntime.jsx(Separator, {}),
44141
44143
  paymentPlatforms && paymentPlatforms.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
44142
44144
  "ul",
44143
44145
  {
@@ -44145,10 +44147,9 @@ function FooterSplitImageAccordion({
44145
44147
  "flex flex-wrap items-center gap-3",
44146
44148
  paymentMethodsClassName
44147
44149
  ),
44148
- children: paymentPlatforms.map((platform, idx) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(PaymentPlatformIcon, { platform, size: 24 }) }, idx))
44150
+ children: paymentPlatforms.map((platform, idx) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(PaymentPlatformIcon, { platform, size: 30 }) }, idx))
44149
44151
  }
44150
44152
  ),
44151
- /* @__PURE__ */ jsxRuntime.jsx(Separator, {}),
44152
44153
  /* @__PURE__ */ jsxRuntime.jsxs(
44153
44154
  "div",
44154
44155
  {
package/dist/registry.js CHANGED
@@ -44015,14 +44015,13 @@ function FooterSplitImageAccordion({
44015
44015
  method: formMethod,
44016
44016
  className: cn("flex items-stretch", newsletterFormClassName),
44017
44017
  children: [
44018
- /* @__PURE__ */ jsx(Field, { name: "email", className: "flex-1", children: ({ field, meta }) => /* @__PURE__ */ jsx(
44019
- TextInput,
44018
+ /* @__PURE__ */ jsx(Field, { name: "email", className: "flex-1", children: ({ field }) => /* @__PURE__ */ jsx(
44019
+ "input",
44020
44020
  {
44021
44021
  ...field,
44022
44022
  type: "email",
44023
44023
  placeholder: emailPlaceholder,
44024
- error: meta.touched && !!meta.error,
44025
- className: "flex h-10 w-full rounded-l-md rounded-r-none border border-r-0 border-input px-3 py-2 text-sm ring-offset-background placeholder:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
44024
+ className: "flex h-10 w-full rounded-l-md rounded-r-none border border-r-0 border-input px-3 py-2 text-sm ring-offset-background placeholder:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
44026
44025
  "aria-label": emailPlaceholder
44027
44026
  }
44028
44027
  ) }),
@@ -44031,8 +44030,10 @@ function FooterSplitImageAccordion({
44031
44030
  {
44032
44031
  componentType: "button",
44033
44032
  type: "submit",
44034
- className: "inline-flex h-10 items-center justify-center rounded-l-none rounded-r-md bg-primary px-4 text-sm font-medium text-primary-foreground hover:bg-primary/90",
44035
- asButton: false,
44033
+ variant: "default",
44034
+ size: "icon",
44035
+ asButton: true,
44036
+ className: "rounded-l-none rounded-r-md shrink-0 h-10",
44036
44037
  disabled: form.isSubmitting,
44037
44038
  children: /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/arrow-right", size: 16 })
44038
44039
  }
@@ -44098,6 +44099,7 @@ function FooterSplitImageAccordion({
44098
44099
  ] }, section.id))
44099
44100
  }
44100
44101
  ),
44102
+ /* @__PURE__ */ jsx(Separator, {}),
44101
44103
  paymentPlatforms && paymentPlatforms.length > 0 && /* @__PURE__ */ jsx(
44102
44104
  "ul",
44103
44105
  {
@@ -44105,10 +44107,9 @@ function FooterSplitImageAccordion({
44105
44107
  "flex flex-wrap items-center gap-3",
44106
44108
  paymentMethodsClassName
44107
44109
  ),
44108
- children: paymentPlatforms.map((platform, idx) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(PaymentPlatformIcon, { platform, size: 24 }) }, idx))
44110
+ children: paymentPlatforms.map((platform, idx) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(PaymentPlatformIcon, { platform, size: 30 }) }, idx))
44109
44111
  }
44110
44112
  ),
44111
- /* @__PURE__ */ jsx(Separator, {}),
44112
44113
  /* @__PURE__ */ jsxs(
44113
44114
  "div",
44114
44115
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensite/ui",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Foundational UI component library for OpenSite Semantic Site Builder with tree-shakable exports and abstract styling",
5
5
  "keywords": [
6
6
  "react",