coveragebook_components 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/build/coco/app.css +1513 -1605
  3. data/app/assets/build/coco/app.js +35 -27
  4. data/app/assets/build/coco/book.css +1212 -1303
  5. data/app/assets/build/coco/book.js +10 -6
  6. data/app/assets/build/coco/coco.css +6908 -0
  7. data/app/assets/build/coco/coco.js +10 -6
  8. data/app/assets/build/coco/tailwind.preset.js +2759 -0
  9. data/app/assets/css/base/setup.css +0 -11
  10. data/app/assets/css/base/tippy.css +40 -43
  11. data/app/assets/css/base/utils/text.css +0 -210
  12. data/app/assets/css/coco.css +3 -0
  13. data/app/assets/css/plugins/aspect.js +27 -0
  14. data/app/assets/css/plugins/colors.js +30 -0
  15. data/app/assets/css/plugins/icons.js +17 -0
  16. data/app/assets/css/plugins/layout.js +15 -0
  17. data/app/assets/css/plugins/text.js +183 -0
  18. data/app/components/coco/app/nav_drawer/nav_drawer.css +2 -2
  19. data/app/components/coco/app/plan_card/plan_card.css +1 -1
  20. data/app/components/coco/buttons/button/button.css +5 -5
  21. data/app/components/coco/buttons/button_group/button_group.css +1 -1
  22. data/app/components/coco/buttons/color_picker_button/color_picker_button.css +1 -1
  23. data/app/components/coco/buttons/menu/menu.css +1 -1
  24. data/app/components/coco/buttons/menu_items/user_profile/user_profile.css +1 -1
  25. data/app/components/coco/indicators/badge/badge.css +1 -1
  26. data/app/components/coco/layout/panel/panel.css +1 -1
  27. data/app/components/coco/modals/modal/modal.css +1 -1
  28. data/app/components/coco/modals/modal_dialog/modal_dialog.css +1 -1
  29. data/app/components/coco/utilities/placeholder/placeholder.css +1 -1
  30. data/app/helpers/coco/integration_helper.rb +25 -3
  31. data/config/exports.js +0 -0
  32. data/config/tailwind.config.js +1 -83
  33. data/config/tailwind.preset.js +66 -0
  34. data/config/tokens.js +25 -21
  35. data/lib/coco.rb +1 -1
  36. metadata +12 -5
  37. data/app/assets/css/base/utils/colors.css +0 -30
  38. data/app/assets/css/base/utils/icons.css +0 -16
  39. data/app/assets/css/base/utils/layout.css +0 -13
@@ -12973,17 +12973,21 @@ var require_tokens = __commonJS({
12973
12973
  current: "currentColor",
12974
12974
  black: "#000000",
12975
12975
  white: "#FFFFFF",
12976
+ coco: {
12977
+ gray: {
12978
+ 50: "#F9FAFB",
12979
+ 100: "#F3F4F6",
12980
+ 200: "#E5E7EB",
12981
+ 300: "#D1D5DB",
12982
+ 400: "#9CA3AF",
12983
+ 500: "#6B7280",
12984
+ 600: "#4B5563",
12985
+ 700: "#374151",
12986
+ 800: "#1F2937",
12987
+ 900: "#111827"
12988
+ }
12989
+ },
12976
12990
  gray: {
12977
- 50: "#F9FAFB",
12978
- 100: "#F3F4F6",
12979
- 200: "#E5E7EB",
12980
- 300: "#D1D5DB",
12981
- 400: "#9CA3AF",
12982
- 500: "#6B7280",
12983
- 600: "#4B5563",
12984
- 700: "#374151",
12985
- 800: "#1F2937",
12986
- 900: "#111827",
12987
12991
  transparent: {
12988
12992
  50: "rgba(0, 12, 39, 0.06)",
12989
12993
  100: "rgba(0, 12, 39, 0.1)",
@@ -13073,13 +13077,13 @@ var require_tokens = __commonJS({
13073
13077
  },
13074
13078
  light: {
13075
13079
  1: colors.white,
13076
- 2: colors.gray[50],
13077
- 3: colors.gray[100]
13080
+ 2: colors.coco.gray[50],
13081
+ 3: colors.coco.gray[100]
13078
13082
  },
13079
13083
  dark: {
13080
- 1: colors.gray[900],
13081
- 2: colors.gray[800],
13082
- 3: colors.gray[700]
13084
+ 1: colors.coco.gray[900],
13085
+ 2: colors.coco.gray[800],
13086
+ 3: colors.coco.gray[700]
13083
13087
  },
13084
13088
  primary: {
13085
13089
  DEFAULT: colors.green[500],
@@ -13104,15 +13108,15 @@ var require_tokens = __commonJS({
13104
13108
  },
13105
13109
  content: {
13106
13110
  dark: {
13107
- 1: colors.gray[900],
13108
- 2: colors.gray[800],
13109
- 3: colors.gray[600],
13110
- muted: colors.gray[400]
13111
+ 1: colors.coco.gray[900],
13112
+ 2: colors.coco.gray[800],
13113
+ 3: colors.coco.gray[600],
13114
+ muted: colors.coco.gray[400]
13111
13115
  },
13112
13116
  light: {
13113
13117
  1: colors.white,
13114
- 2: colors.gray[200],
13115
- muted: colors.gray[400]
13118
+ 2: colors.coco.gray[200],
13119
+ muted: colors.coco.gray[400]
13116
13120
  },
13117
13121
  primary: {
13118
13122
  DEFAULT: colors.green[500],
@@ -23096,17 +23100,21 @@ var alpine_default = import_alpinejs.default;
23096
23100
  // ../../../package.json
23097
23101
  var package_default = {
23098
23102
  name: "coveragebook-components",
23099
- version: "0.15.0",
23103
+ version: "0.16.0",
23100
23104
  repository: "git@github.com:coveragebook/coco.git",
23101
23105
  license: "NO LICENSE",
23102
23106
  author: "Mark Perkins <mark@coveragebook.com>",
23103
- main: "app/assets/build/coco/core.js",
23107
+ main: "app/assets/build/coco/coc0.js",
23108
+ engines: {
23109
+ node: "20.x"
23110
+ },
23104
23111
  scripts: {
23105
- build: "npm run js:build && npm run css:build && npm run lookbook:build",
23112
+ build: "npm run js:build && npm run css:build npm run build:tailwind-preset && npm run lookbook:build",
23113
+ "build:tailwind-preset": "esbuild ./config/tailwind.preset.js --bundle --format=cjs --outdir=./app/assets/build/coco --log-level=error",
23106
23114
  "build:dev": "npm run js:dev && npm run css:dev",
23107
- "css:build": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco",
23108
- "css:dev": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco/dev",
23109
- "css:watch": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco/dev --watch",
23115
+ "css:build": "postcss ./app/assets/css/{app,book,coco}.css -d ./app/assets/build/coco",
23116
+ "css:dev": "postcss ./app/assets/css/{app,book,coco}.css -d ./app/assets/build/coco/dev",
23117
+ "css:watch": "postcss ./app/assets/css/{app,book,coco}.css -d ./app/assets/build/coco/dev --watch",
23110
23118
  "js:build": "node esbuild.config.mjs",
23111
23119
  "js:dev": "node esbuild.config.mjs --dev",
23112
23120
  "js:watch": "node esbuild.config.mjs --watch",