@cloudparker/moldex.js 0.0.3 → 0.0.4

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,3 +1,4 @@
1
+ import '../tailwind.css';
1
2
  export type BadgeProsType = {
2
3
  containerClassName?: string;
3
4
  badgePositionClassName?: string;
@@ -1,3 +1,4 @@
1
+ import '../tailwind.css';
1
2
  export function badge(node, { containerClassName = '', badgePositionClassName = 'top-0 right-0', badgeContainerClassName = '', badgeClassName = '', badgeBackgroundClassName = '', badgeText = '', hasBadgeBackground = true } = {}) {
2
3
  let badgeBackElement = hasBadgeBackground ? `<span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-sky-400 opacity-75 ${badgeBackgroundClassName}"></span>` : '';
3
4
  const badge = document.createElement('span');
@@ -1,3 +1,4 @@
1
+ import '../tailwind.css';
1
2
  export type RipplePropsType = {
2
3
  /**
3
4
  * The color of the ripple effect, default is rgba(0, 0, 0, 0.12)
@@ -1,3 +1,4 @@
1
+ import '../tailwind.css';
1
2
  export const DARK_RIPPLE_COLOR = 'rgba(0, 0, 0, 0.12)';
2
3
  export const LIGHT_RIPPLE_COLOR = 'rgba(255, 255, 255, 0.12)';
3
4
  export function ripple(node, { color, light } = {}) {
@@ -1,4 +1,5 @@
1
- <script lang="ts">import { ripple } from "../../../actions/ripple.js";
1
+ <script lang="ts">import "../../../tailwind.css";
2
+ import { ripple } from "../../../actions/ripple.js";
2
3
  import Spinner from "../../../common/components/spinner/spinner.svelte";
3
4
  import Icon from "../../../icon/components/icon/icon.svelte";
4
5
  let {
@@ -1,3 +1,4 @@
1
+ import '../../../tailwind.css';
1
2
  import type { Snippet } from 'svelte';
2
3
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
4
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,6 +1,7 @@
1
1
  <script context="module" lang="ts"></script>
2
2
 
3
- <script lang="ts">import { ripple } from "../../../actions/ripple.js";
3
+ <script lang="ts">import "../../../tailwind.css";
4
+ import { ripple } from "../../../actions/ripple.js";
4
5
  import Icon from "../../../icon/components/icon/icon.svelte";
5
6
  import {
6
7
  mdiCheckCircle,
@@ -18,6 +18,7 @@ export type ListItemType = {
18
18
  arrowIconPath?: string;
19
19
  arrowClassName?: string;
20
20
  };
21
+ import '../../../tailwind.css';
21
22
  import type { Snippet } from 'svelte';
22
23
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
23
24
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,4 +1,5 @@
1
- <script lang="ts">import Icon from "../../../icon/components/icon/icon.svelte";
1
+ <script lang="ts">import "../../../tailwind.css";
2
+ import Icon from "../../../icon/components/icon/icon.svelte";
2
3
  import {
3
4
  mdiCheckCircle,
4
5
  mdiCheckCircleOutline,
@@ -1,3 +1,4 @@
1
+ import '../../../tailwind.css';
1
2
  import type { Snippet } from 'svelte';
2
3
  import type { ListItemType } from '../button-list-item/button-list-item.svelte';
3
4
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
@@ -1,4 +1,5 @@
1
- <script lang="ts">let {
1
+ <script lang="ts">import "../../../tailwind.css";
2
+ let {
2
3
  id = "",
3
4
  children,
4
5
  backdropClassName = "",
@@ -1,3 +1,4 @@
1
+ import '../../../tailwind.css';
1
2
  import type { Snippet } from 'svelte';
2
3
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
4
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,4 +1,5 @@
1
- <script lang="ts">import Button from "../../../button/components/button/button.svelte";
1
+ <script lang="ts">import "../../../tailwind.css";
2
+ import Button from "../../../button/components/button/button.svelte";
2
3
  import Icon from "../../../icon/components/icon/icon.svelte";
3
4
  import { mdiMenu } from "../../../icon/services/icon-path-service.js";
4
5
  let {
@@ -1,3 +1,4 @@
1
+ import '../../../tailwind.css';
1
2
  import type { Snippet } from 'svelte';
2
3
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
4
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,4 +1,5 @@
1
- <script lang="ts">let { className = "" } = $props();
1
+ <script lang="ts">import "../../../tailwind.css";
2
+ let { className = "" } = $props();
2
3
  </script>
3
4
 
4
5
  <svg
@@ -1,3 +1,4 @@
1
+ import '../../../tailwind.css';
1
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
4
  $$bindings?: Bindings;
@@ -1,4 +1,5 @@
1
- <script lang="ts">let { className = "" } = $props();
1
+ <script lang="ts">import "../../../tailwind.css";
2
+ let { className = "" } = $props();
2
3
  </script>
3
4
 
4
5
  <div class="h-6 lg:w-px lg:bg-gray-200 {className}" aria-hidden="true"></div>
@@ -1,3 +1,4 @@
1
+ import '../../../tailwind.css';
1
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
4
  $$bindings?: Bindings;
@@ -1,6 +1,7 @@
1
1
  <script lang="ts" context="module"></script>
2
2
 
3
- <script lang="ts">import Button from "../../../button/components/button/button.svelte";
3
+ <script lang="ts">import "../../../tailwind.css";
4
+ import Button from "../../../button/components/button/button.svelte";
4
5
  import { mdiArrowLeft, mdiClose } from "../../../icon/services/icon-path-service.js";
5
6
  let {
6
7
  id = "",
@@ -52,6 +52,7 @@ export type DialogExportsType = {
52
52
  setOkSpinner: (value: boolean) => void;
53
53
  setOkDisabled: (value: boolean) => void;
54
54
  };
55
+ import '../../../tailwind.css';
55
56
  import type { Snippet } from 'svelte';
56
57
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
57
58
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,4 +1,5 @@
1
- <script lang="ts">let {
1
+ <script lang="ts">import "../../../tailwind.css";
2
+ let {
2
3
  path,
3
4
  className = "",
4
5
  size = 24,
@@ -1,3 +1,4 @@
1
+ import '../../../tailwind.css';
1
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
4
  $$bindings?: Bindings;
@@ -0,0 +1,25 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+
6
+ @layer utilities {
7
+ @keyframes ripple-effect {
8
+ 0% {
9
+ transform: scale(0);
10
+ opacity: 1;
11
+ }
12
+ 100% {
13
+ transform: scale(4);
14
+ opacity: 0;
15
+ }
16
+ }
17
+
18
+ .ripple {
19
+ @apply absolute rounded-full bg-current;
20
+ transform: scale(0);
21
+ animation: ripple-effect 0.5s linear;
22
+ background-color: var(--ripple-color);
23
+ }
24
+ }
25
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudparker/moldex.js",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "author": "cloudparker.com",
5
5
  "license": "MIT",
6
6
  "keywords": [