@brightspot/ui 6.1.0 → 6.1.1-rc.2

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.
@@ -1 +1 @@
1
- {"generatedAt":1787061637353,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"knownPackages":{"testPackages":{"@storybook/addon-vitest":"10.2.12","@vitest/browser-playwright":"4.0.18","playwright":"1.58.2","vitest":"4.0.18"},"stylingPackages":{"tailwindcss":"^3.4.13","autoprefixer":"10.4.21"}},"hasRouterPackage":false,"packageManager":{"type":"yarn","agent":"yarn","nodeLinker":"undefined"},"preview":{"usesGlobals":true},"framework":{"name":"@storybook/web-components-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/web-components","portableStoriesFileCount":0,"applicationFileCount":6,"storybookVersion":"10.2.12","storybookVersionSpecifier":"10.2.12","language":"typescript","storybookPackages":{"@storybook/addon-themes":{"version":"10.2.12"},"@storybook/web-components-vite":{"version":"10.2.12"},"@wc-toolkit/storybook-helpers":{"version":"10.0.0"},"eslint-plugin-storybook":{"version":"10.0.7"},"storybook":{}},"addons":{"@storybook/addon-docs":{"version":"10.2.12"},"@storybook/addon-vitest":{"version":"10.2.12"}},"packageJsonType":"module"}
1
+ {"generatedAt":1787590212209,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"knownPackages":{"testPackages":{"@storybook/addon-vitest":"10.2.12","@vitest/browser-playwright":"4.0.18","playwright":"1.58.2","vitest":"4.0.18"},"stylingPackages":{"tailwindcss":"^3.4.13","autoprefixer":"10.4.21"}},"hasRouterPackage":false,"packageManager":{"type":"yarn","agent":"yarn","nodeLinker":"undefined"},"preview":{"usesGlobals":true},"framework":{"name":"@storybook/web-components-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/web-components","portableStoriesFileCount":0,"applicationFileCount":6,"storybookVersion":"10.2.12","storybookVersionSpecifier":"10.2.12","language":"typescript","storybookPackages":{"@storybook/addon-themes":{"version":"10.2.12"},"@storybook/web-components-vite":{"version":"10.2.12"},"@wc-toolkit/storybook-helpers":{"version":"10.0.0"},"eslint-plugin-storybook":{"version":"10.0.7"},"storybook":{}},"addons":{"@storybook/addon-docs":{"version":"10.2.12"},"@storybook/addon-vitest":{"version":"10.2.12"}},"packageJsonType":"module"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspot/ui",
3
- "version": "6.1.0",
3
+ "version": "6.1.1-rc.2",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "description": "A UI library for building Brightspot CMS components.",
@@ -44,7 +44,7 @@
44
44
 
45
45
  /* These content selectors should just appear as normal ComboInputs */
46
46
  > form > .ContentSelector-select + .ComboInput {
47
- @apply rounded-lg pe-4;
47
+ @apply rounded-lg px-4;
48
48
 
49
49
  &:not([aria-expanded='true'], :focus-visible) {
50
50
  @apply border-gray-300;
@@ -135,10 +135,6 @@
135
135
  }
136
136
  }
137
137
 
138
- &:not(:first-child) {
139
- @apply mt-2;
140
- }
141
-
142
138
  a:hover {
143
139
  @apply text-gray-900;
144
140
  }
@@ -523,7 +523,7 @@
523
523
 
524
524
  /* remove button next to a widget url item */
525
525
  .widget-urlsItemRemove > input[type='checkbox'] {
526
- @apply btu-button btu-button-text-hidden btu-button-fill-none btu-button-gray btu-button-xs border-none after:btu-icon after:btu-icon-x;
526
+ @apply btu-button btu-button-text-hidden btu-button-fill-none btu-button-error btu-button-xs border-none after:btu-icon after:btu-icon-x;
527
527
  }
528
528
 
529
529
  /* url item components in removed state */
@@ -548,7 +548,7 @@
548
548
  }
549
549
 
550
550
  .widget-urlsItem.is-removing .widget-urlsItemRemove > input[type='checkbox'] {
551
- @apply after:btu-icon-undo after:text-inherit;
551
+ @apply btu-button-gray after:btu-icon-undo after:text-inherit;
552
552
  }
553
553
 
554
554
  /* Sites access widget */
@@ -684,10 +684,6 @@
684
684
  @apply !pointer-events-auto !opacity-100;
685
685
  }
686
686
 
687
- .CIG-row.is-unlabeled > .AIChatButton {
688
- @apply absolute right-0 top-[calc(-1_*_var(--button-size-md))] ms-0 ![display:initial];
689
- }
690
-
691
687
  /* Focus state for CIG-small in read-only rows */
692
688
  :is(.CIG-row.is-readOnly, .CIG.is-readOnly) .CIG-small:focus-within {
693
689
  @apply rounded-lg outline-dashed outline-[4px] outline-gray-300;
@@ -78,6 +78,10 @@ html::view-transition-new(dashboard-widget) {
78
78
  &:has(> a:focus-visible) {
79
79
  @apply ring-inset;
80
80
  }
81
+
82
+ &:not(:first-child) {
83
+ @apply mt-0;
84
+ }
81
85
  }
82
86
 
83
87
  > li > a {
@@ -27,6 +27,10 @@
27
27
  --link-h-min: calc(theme(lineHeight.4) + theme(spacing.2));
28
28
 
29
29
  @apply flex max-h-[--link-h-max] min-h-[--link-h-min] items-center rounded-lg;
30
+
31
+ &:not(:first-child) {
32
+ @apply mt-2;
33
+ }
30
34
  }
31
35
 
32
36
  > li.Message {
@@ -157,7 +157,7 @@
157
157
 
158
158
  .Page-title {
159
159
  --logo-size: 36px;
160
- @apply flex items-center text-sm font-semibold max-md:pe-4 md:grid md:max-w-60 md:shrink-0 [&_a]:font-semibold [&_a]:text-inherit [&_a]:no-underline [&_a]:hover:text-inherit [&_a]:focus:text-inherit;
160
+ @apply flex items-center text-sm font-semibold max-md:pe-4 md:grid md:max-w-xs md:shrink-0 [&_a]:font-semibold [&_a]:text-inherit [&_a]:no-underline [&_a]:hover:text-inherit [&_a]:focus:text-inherit;
161
161
 
162
162
  > a {
163
163
  @apply grid auto-cols-[0px] grid-flow-col grid-cols-[max-content] items-center justify-center rounded-lg text-[0] @[80px]:grid-cols-[max-content_minmax(0,1fr)_max-content] max-md:grow;
@@ -15,6 +15,15 @@ input:where(
15
15
  @apply TextInput;
16
16
  }
17
17
 
18
+ /* MapFormInput writes a bare `<textarea class="json">` with no `rows`, and
19
+ AutoExpand.js skips its JS shim wherever `field-sizing` is supported - the
20
+ CSS that stands in for the shim is scoped to `.AutoExpand`, a wrapper this
21
+ textarea never gets. Opt it in directly so it sizes to its content like
22
+ every other read-only textarea. */
23
+ textarea.json {
24
+ @apply [field-sizing:content];
25
+ }
26
+
18
27
  btu-input {
19
28
  @apply relative;
20
29
  }
@@ -15,7 +15,7 @@
15
15
  }
16
16
 
17
17
  .PreviewFrame-moreActions[aria-expanded] {
18
- @apply btu-button-pressed before:btu-icon-x;
18
+ @apply btu-button-pressed;
19
19
  }
20
20
 
21
21
  .PreviewFrame-typeActions {
@@ -448,6 +448,14 @@ btu-widget.SearchWidget-create {
448
448
  @apply bg-gray-50;
449
449
  }
450
450
 
451
+ .Widget[data-internal-name='com.psddev.cms.tool.content.ReferencesWidget'] {
452
+ > p {
453
+ > a.icon-action-search {
454
+ @apply my-4 w-full btu-button btu-button-outline btu-button-sm btu-button-gray btu-button-fill-none before:btu-icon before:btu-icon-search;
455
+ }
456
+ }
457
+ }
458
+
451
459
  /* Translations Widget */
452
460
  .Widget[data-internal-name='com.psddev.translation.page.TranslationTab'] > * {
453
461
  @apply col-span-full;