@usecapsule/core-components 3.12.0 → 3.14.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. package/dist/capsule/capsule.esm.js +1 -1
  2. package/dist/capsule/index.esm.js +1 -1
  3. package/dist/capsule/index.esm.js.map +1 -1
  4. package/dist/capsule/{p-41bc3c58.entry.js → p-0a4c8cdc.entry.js} +2 -2
  5. package/dist/capsule/p-0a4c8cdc.entry.js.map +1 -0
  6. package/dist/capsule/{p-52bb30d8.entry.js → p-438442c7.entry.js} +2 -2
  7. package/dist/capsule/p-438442c7.entry.js.map +1 -0
  8. package/dist/capsule/{p-286db996.js → p-497acb43.js} +2 -2
  9. package/dist/capsule/{p-286db996.js.map → p-497acb43.js.map} +1 -1
  10. package/dist/capsule/{p-07d8431a.entry.js → p-63e6f5d8.entry.js} +4 -4
  11. package/dist/capsule/p-63e6f5d8.entry.js.map +1 -0
  12. package/dist/capsule/{p-7dff759e.entry.js → p-d239d40d.entry.js} +2 -2
  13. package/dist/capsule/{p-7dff759e.entry.js.map → p-d239d40d.entry.js.map} +1 -1
  14. package/dist/capsule/p-f2393be6.js.map +1 -1
  15. package/dist/cjs/constants-9b1b01bb.js.map +1 -1
  16. package/dist/cjs/cpsl-alert_34.cjs.entry.js +18 -18
  17. package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -1
  18. package/dist/cjs/cpsl-col.cjs.entry.js +1 -1
  19. package/dist/cjs/cpsl-col.cjs.entry.js.map +1 -1
  20. package/dist/cjs/cpsl-hero.cjs.entry.js +2 -2
  21. package/dist/cjs/cpsl-hero.cjs.entry.js.map +1 -1
  22. package/dist/cjs/cpsl-identicon.cjs.entry.js +2 -2
  23. package/dist/cjs/cpsl-identicon.cjs.entry.js.map +1 -1
  24. package/dist/cjs/index.cjs.js +1 -1
  25. package/dist/cjs/index.cjs.js.map +1 -1
  26. package/dist/cjs/{prand-a35ea6b2.js → prand-76d9999c.js} +3 -4
  27. package/dist/cjs/prand-76d9999c.js.map +1 -0
  28. package/dist/collection/components/cpsl-alert/cpsl-alert.js +2 -2
  29. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
  30. package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.js +1 -1
  31. package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.js.map +1 -1
  32. package/dist/collection/components/cpsl-button/cpsl-button.stories.js.map +1 -1
  33. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +3 -3
  34. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
  35. package/dist/collection/components/cpsl-col/cpsl-col.js +2 -2
  36. package/dist/collection/components/cpsl-col/cpsl-col.js.map +1 -1
  37. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +3 -3
  38. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
  39. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +5 -5
  40. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
  41. package/dist/collection/components/cpsl-dropdown/dropdown-interface.js.map +1 -1
  42. package/dist/collection/components/cpsl-hero/cpsl-hero.js +3 -3
  43. package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
  44. package/dist/collection/components/cpsl-hero/cpsl-hero.stories.js.map +1 -1
  45. package/dist/collection/components/cpsl-icon/cpsl-icon.js +3 -3
  46. package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -1
  47. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js +3 -3
  48. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js.map +1 -1
  49. package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +3 -3
  50. package/dist/collection/components/cpsl-identicon/cpsl-identicon.js.map +1 -1
  51. package/dist/collection/components/cpsl-identicon/cpsl-identicon.stories.js.map +1 -1
  52. package/dist/collection/components/cpsl-input/cpsl-input.js +6 -6
  53. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  54. package/dist/collection/components/cpsl-popover/cpsl-popover.js +2 -2
  55. package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
  56. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js.map +1 -1
  57. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +3 -3
  58. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -1
  59. package/dist/collection/components/cpsl-select/cpsl-select.js +3 -3
  60. package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
  61. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  62. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -1
  63. package/dist/collection/components/cpsl-tab/cpsl-tab.js +3 -3
  64. package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -1
  65. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +3 -3
  66. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
  67. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  68. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js.map +1 -1
  69. package/dist/collection/constants.js.map +1 -1
  70. package/dist/collection/index.js +4 -3
  71. package/dist/collection/index.js.map +1 -1
  72. package/dist/collection/interface.js.map +1 -1
  73. package/dist/collection/utils/prand.js +1 -1
  74. package/dist/collection/utils/prand.js.map +1 -1
  75. package/dist/collection/utils/theme/generateBorderRadii.js +1 -1
  76. package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
  77. package/dist/collection/utils/theme/generateFont.js.map +1 -1
  78. package/dist/collection/utils/theme/generatePalette.js +2 -2
  79. package/dist/collection/utils/theme/generatePalette.js.map +1 -1
  80. package/dist/collection/utils/theme/generateTheme.js +4 -4
  81. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  82. package/dist/collection/utils/theme/utils.js.map +1 -1
  83. package/dist/esm/constants-fce138fa.js.map +1 -1
  84. package/dist/esm/cpsl-alert_34.entry.js +18 -18
  85. package/dist/esm/cpsl-alert_34.entry.js.map +1 -1
  86. package/dist/esm/cpsl-col.entry.js +1 -1
  87. package/dist/esm/cpsl-col.entry.js.map +1 -1
  88. package/dist/esm/cpsl-hero.entry.js +2 -2
  89. package/dist/esm/cpsl-hero.entry.js.map +1 -1
  90. package/dist/esm/cpsl-identicon.entry.js +2 -2
  91. package/dist/esm/cpsl-identicon.entry.js.map +1 -1
  92. package/dist/esm/index.js +1 -1
  93. package/dist/esm/index.js.map +1 -1
  94. package/dist/esm/{prand-c8323494.js → prand-4c0d6ea7.js} +3 -4
  95. package/dist/esm/prand-4c0d6ea7.js.map +1 -0
  96. package/dist/index.js +2 -1
  97. package/dist/scripts/appendLoaderExports.js +42 -0
  98. package/dist/scripts/appendLoaderExports.js.map +1 -0
  99. package/dist/types/Users/norwood/capsule-repos/web-sdk/packages/core-components/.stencil/scripts/appendLoaderExports.d.ts +0 -0
  100. package/dist/types/components/cpsl-alert/cpsl-alert.d.ts +1 -1
  101. package/dist/types/components/cpsl-button/cpsl-button.stories.d.ts +1 -1
  102. package/dist/types/components/cpsl-code-input/cpsl-code-input.d.ts +1 -1
  103. package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +1 -1
  104. package/dist/types/components/cpsl-dropdown/dropdown-interface.d.ts +1 -1
  105. package/dist/types/components/cpsl-hero/cpsl-hero.stories.d.ts +1 -1
  106. package/dist/types/components/cpsl-icon/cpsl-icon.d.ts +1 -1
  107. package/dist/types/components/cpsl-icon-group/cpsl-icon-group.d.ts +1 -1
  108. package/dist/types/components/cpsl-identicon/cpsl-identicon.stories.d.ts +1 -1
  109. package/dist/types/components/cpsl-input/cpsl-input.d.ts +2 -2
  110. package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +1 -1
  111. package/dist/types/components/cpsl-select/cpsl-select.d.ts +1 -1
  112. package/dist/types/components/cpsl-slide-button/cpsl-slide-button.d.ts +1 -1
  113. package/dist/types/components/cpsl-tab/cpsl-tab.d.ts +2 -2
  114. package/dist/types/components/cpsl-tabs/cpsl-tabs.d.ts +2 -2
  115. package/dist/types/components/cpsl-tile-button/cpsl-tile-button.d.ts +1 -1
  116. package/dist/types/components.d.ts +12 -12
  117. package/dist/types/constants.d.ts +1 -1
  118. package/dist/types/index.d.ts +6 -4
  119. package/dist/types/interface.d.ts +2 -2
  120. package/dist/types/utils/theme/generateBorderRadii.d.ts +1 -1
  121. package/dist/types/utils/theme/generateFont.d.ts +1 -1
  122. package/dist/types/utils/theme/generatePalette.d.ts +1 -1
  123. package/dist/types/utils/theme/generateTheme.d.ts +1 -1
  124. package/dist/types/utils/theme/utils.d.ts +1 -1
  125. package/package.json +13 -6
  126. package/dist/capsule/p-07d8431a.entry.js.map +0 -1
  127. package/dist/capsule/p-41bc3c58.entry.js.map +0 -1
  128. package/dist/capsule/p-52bb30d8.entry.js.map +0 -1
  129. package/dist/cjs/prand-a35ea6b2.js.map +0 -1
  130. package/dist/esm/prand-c8323494.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { Theme } from '../../interface';
1
+ import { Theme } from '../../interface.js';
2
2
  export type Palette = {
3
3
  foregroundColors: string[];
4
4
  backgroundColors: string[];
@@ -1,4 +1,4 @@
1
- import { Theme } from '../../interface';
1
+ import { Theme } from '../../interface.js';
2
2
  /**
3
3
  * Generates css theme variables.
4
4
  * @returns @boolean Whether background is dark or not.
@@ -1,4 +1,4 @@
1
- import { CustomBorderRadii, CustomPalette } from '../../interface';
1
+ import { CustomBorderRadii, CustomPalette } from '../../interface.js';
2
2
  export declare const isColor: (strColor: any) => boolean;
3
3
  export declare const getCssColors: (customPalette: CustomPalette) => {
4
4
  [k: string]: string;
package/package.json CHANGED
@@ -1,10 +1,17 @@
1
1
  {
2
2
  "name": "@usecapsule/core-components",
3
- "version": "3.12.0",
3
+ "version": "3.14.0-dev.0",
4
4
  "description": "Capsule Core Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/types/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.cjs.js",
12
+ "types": "./dist/types/index.d.ts"
13
+ }
14
+ },
8
15
  "sideEffects": [
9
16
  "*.css",
10
17
  "*.scss"
@@ -16,13 +23,14 @@
16
23
  "css/"
17
24
  ],
18
25
  "scripts": {
19
- "build": "yarn build:assets && yarn build:css && stencil build",
26
+ "build": "yarn build:assets && yarn build:css && stencil build && yarn appendLoaderExports",
20
27
  "start": "yarn build:assets && yarn build:css && stencil build --dev --watch --serve",
21
- "test": "stencil test --spec",
22
- "test.watch": "stencil test --spec --watchAll",
28
+ "test": "stencil test --spec --clearCache",
29
+ "test.watch": "stencil test --spec --watchAll --clearCache",
23
30
  "generate": "stencil generate",
24
31
  "build:css": "sass --embed-sources src/css:./css",
25
32
  "build:assets": "ts-node -T ./scripts/buildAssets.ts",
33
+ "appendLoaderExports": "ts-node -T ./scripts/appendLoaderExports.ts",
26
34
  "storybook": "storybook dev -p 6006",
27
35
  "build-storybook": "storybook build"
28
36
  },
@@ -59,6 +67,5 @@
59
67
  "storybook": "^8.1.11",
60
68
  "storybook-addon-stencil": "^0.2.1",
61
69
  "ts-node": "^10.9.2"
62
- },
63
- "gitHead": "c6be124097bf77890c58d872d9de1abe2f2ce22d"
70
+ }
64
71
  }