@blockbite/ui 2.0.0 → 2.0.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.
@@ -1,4 +1,4 @@
1
- var r = {};
1
+ var e = { exports: {} };
2
2
  export {
3
- r as __exports
3
+ e as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var e = { exports: {} };
1
+ var r = {};
2
2
  export {
3
- e as __module
3
+ r as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- import { __exports as r } from "../../../../../../_virtual/react-is.development2.js";
1
+ import { __exports as r } from "../../../../../../_virtual/react-is.development.js";
2
2
  /**
3
3
  * @license React
4
4
  * react-is.development.js
@@ -1,4 +1,4 @@
1
- import { __exports as r } from "../../../../../../_virtual/react-is.production.min2.js";
1
+ import { __exports as r } from "../../../../../../_virtual/react-is.production.min.js";
2
2
  /**
3
3
  * @license React
4
4
  * react-is.production.min.js
@@ -1,4 +1,4 @@
1
- import { __module as r } from "../../../../../_virtual/index8.js";
1
+ import { __module as r } from "../../../../../_virtual/index4.js";
2
2
  import { __require as e } from "./cjs/react-is.production.min.js";
3
3
  import { __require as o } from "./cjs/react-is.development.js";
4
4
  process.env.NODE_ENV === "production" ? r.exports = e() : r.exports = o();
@@ -1,7 +1,7 @@
1
1
  import "../../../rungen/dist/index.js";
2
2
  import A from "../../../is-promise/index.js";
3
3
  import { isActionOfType as d, isAction as m } from "./is-action.js";
4
- import { __exports as g } from "../../../../_virtual/index4.js";
4
+ import { __exports as g } from "../../../../_virtual/index6.js";
5
5
  function P(u = {}, i) {
6
6
  const s = Object.entries(u).map(([t, r]) => (e, n, h, f, a) => {
7
7
  if (!d(e, t))
@@ -1,4 +1,4 @@
1
- import { __exports as r } from "../../../_virtual/react-is.development.js";
1
+ import { __exports as r } from "../../../_virtual/react-is.development2.js";
2
2
  /** @license React v16.13.1
3
3
  * react-is.development.js
4
4
  *
@@ -1,4 +1,4 @@
1
- import { __exports as r } from "../../../_virtual/react-is.production.min.js";
1
+ import { __exports as r } from "../../../_virtual/react-is.production.min2.js";
2
2
  /** @license React v16.13.1
3
3
  * react-is.production.min.js
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { commonjsGlobal as D } from "../../_virtual/_commonjsHelpers.js";
2
- import { __module as z } from "../../_virtual/index6.js";
2
+ import { __module as z } from "../../_virtual/index8.js";
3
3
  (function(p) {
4
4
  (function(f) {
5
5
  p.exports ? p.exports = f() : window.idleCallbackShim = f();
@@ -1,4 +1,4 @@
1
- import { __exports as c } from "../../../_virtual/index4.js";
1
+ import { __exports as c } from "../../../_virtual/index6.js";
2
2
  import "./utils/helpers.js";
3
3
  import "./create.js";
4
4
  import "./controls/async.js";
package/dist/ui.css ADDED
@@ -0,0 +1,66 @@
1
+ /*
2
+ only used to target children of the UI components
3
+ in favour of [&>.chidren] selector within components
4
+ */
5
+
6
+ /* TextControl.tsx */
7
+ .blockbite-ui__text-control-label {
8
+ input {
9
+ @apply mb-1 appearance-none rounded-none !border-0 border-b-2 border-l-2 border-wordpress bg-transparent p-1 text-[13px] font-bold focus:border-b-2;
10
+ }
11
+ }
12
+
13
+ /* DropdownPicker.tsx */
14
+ .blockbite-ui__dropdown-picker {
15
+ .components-button {
16
+ @apply !h-[32px];
17
+ }
18
+ }
19
+
20
+ /* Modal.tsx */
21
+ .blockbite-ui__modal .components-modal__content {
22
+ padding: 1rem;
23
+ padding-bottom: 4rem;
24
+ }
25
+
26
+ /* ButtonToggle.tsx */
27
+ .blockbite-ui__button-group--tabs {
28
+ .blockbite-ui__button--default {
29
+ @apply h-[40px] rounded-none !border-x-0 !border-t-0 border-b-2;
30
+ &.is-pressed {
31
+ @apply !border-x-0 !border-b-2;
32
+ }
33
+ }
34
+ }
35
+
36
+ /* Popover.tsx */
37
+ .blockbite-ui__popover {
38
+ .components-popover__content {
39
+ @apply w-full;
40
+ }
41
+ }
42
+
43
+ /* Button.tsx */
44
+ .blockbite-ui__button--default {
45
+ @apply !rounded-sm !border-[0.1px] border-solid !border-grey !p-2 !text-[12px] !font-light !text-black !shadow-none hover:bg-easy;
46
+ &.is-pressed {
47
+ @apply border !border-wordpress !bg-transparent !text-wordpress;
48
+ }
49
+ .blockbite--icon {
50
+ @apply scale-[1.2];
51
+ }
52
+ }
53
+ .blockbite-ui__button {
54
+ &.is-icon {
55
+ @apply h-[30px] w-[30px];
56
+ }
57
+ }
58
+ /* Large Round Button for nav landings */
59
+ .blockbite-ui__button--rounded {
60
+ @apply flex !h-14 !w-14 items-center justify-center !rounded-full border !border-black bg-easy !text-black hover:bg-slate-300;
61
+ }
62
+
63
+ /* Checkbox.tsx */
64
+ .blockbite-ui__checkbox span {
65
+ @apply !font-sans !text-[12px] !font-normal !text-black;
66
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockbite/ui",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Shared React UI components for Blockbite apps",
5
5
  "author": "Blockbite",
6
6
  "license": "MIT",
@@ -8,6 +8,7 @@
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.js",
10
10
  "types": "dist/index.d.ts",
11
+ "type": "module",
11
12
  "publishConfig": {
12
13
  "access": "public"
13
14
  },
@@ -57,5 +58,8 @@
57
58
  "blockbite",
58
59
  "vite",
59
60
  "typescript"
60
- ]
61
+ ],
62
+ "dependencies": {
63
+ "vite-plugin-static-copy": "^2.3.1"
64
+ }
61
65
  }