@sprawlify/solid 0.0.15 → 0.0.16

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.
Files changed (105) hide show
  1. package/dist/{collapsible-Cg7zPadX.js → collapsible-CX2tnXKq.js} +8 -6
  2. package/dist/{collapsible-CjuC6xYl.jsx → collapsible-sG-Rzvf2.jsx} +8 -6
  3. package/dist/{collection-BlnS2UQy.jsx → collection-BRr4O2_i.jsx} +2 -1
  4. package/dist/{collection-BiyRTWsX.js → collection-zj3lxnwW.js} +2 -1
  5. package/dist/components/accordion/index.d.ts +11 -11
  6. package/dist/components/accordion/index.js +9 -7
  7. package/dist/components/accordion/index.jsx +9 -7
  8. package/dist/components/angle-slider/index.d.ts +13 -13
  9. package/dist/components/angle-slider/index.js +7 -5
  10. package/dist/components/angle-slider/index.jsx +7 -5
  11. package/dist/components/avatar/index.d.ts +8 -8
  12. package/dist/components/avatar/index.js +7 -5
  13. package/dist/components/avatar/index.jsx +7 -5
  14. package/dist/components/bottom-sheet/index.d.ts +13 -13
  15. package/dist/components/bottom-sheet/index.js +10 -8
  16. package/dist/components/bottom-sheet/index.jsx +10 -8
  17. package/dist/components/carousel/index.d.ts +17 -17
  18. package/dist/components/carousel/index.js +7 -5
  19. package/dist/components/carousel/index.jsx +7 -5
  20. package/dist/components/checkbox/index.d.ts +14 -14
  21. package/dist/components/checkbox/index.js +10 -8
  22. package/dist/components/checkbox/index.jsx +10 -8
  23. package/dist/components/clipboard/index.d.ts +11 -11
  24. package/dist/components/clipboard/index.js +7 -5
  25. package/dist/components/clipboard/index.jsx +7 -5
  26. package/dist/components/collapsible/index.d.ts +10 -10
  27. package/dist/components/collapsible/index.js +7 -6
  28. package/dist/components/collapsible/index.jsx +7 -6
  29. package/dist/components/collection/index.d.ts +2 -2
  30. package/dist/components/collection/index.js +2 -2
  31. package/dist/components/collection/index.jsx +2 -2
  32. package/dist/components/color-picker/index.d.ts +183 -0
  33. package/dist/components/color-picker/index.js +500 -0
  34. package/dist/components/color-picker/index.jsx +436 -0
  35. package/dist/components/combobox/index.d.ts +134 -0
  36. package/dist/components/combobox/index.js +357 -0
  37. package/dist/components/combobox/index.jsx +315 -0
  38. package/dist/components/date-picker/index.d.ts +165 -0
  39. package/dist/components/date-picker/index.js +476 -0
  40. package/dist/components/date-picker/index.jsx +415 -0
  41. package/dist/components/dialog/index.d.ts +80 -0
  42. package/dist/components/dialog/index.js +219 -0
  43. package/dist/components/dialog/index.jsx +173 -0
  44. package/dist/components/download-trigger/index.d.ts +25 -0
  45. package/dist/components/download-trigger/index.js +42 -0
  46. package/dist/components/download-trigger/index.jsx +38 -0
  47. package/dist/components/editable/index.d.ts +79 -0
  48. package/dist/components/editable/index.js +190 -0
  49. package/dist/components/editable/index.jsx +181 -0
  50. package/dist/components/field/index.d.ts +14 -14
  51. package/dist/components/field/index.js +8 -7
  52. package/dist/components/field/index.jsx +8 -7
  53. package/dist/components/fieldset/index.d.ts +12 -12
  54. package/dist/components/fieldset/index.js +7 -6
  55. package/dist/components/fieldset/index.jsx +7 -6
  56. package/dist/components/highlight/index.d.ts +15 -0
  57. package/dist/components/highlight/index.js +47 -0
  58. package/dist/components/highlight/index.jsx +31 -0
  59. package/dist/components/presence/index.d.ts +4 -4
  60. package/dist/components/presence/index.js +7 -6
  61. package/dist/components/presence/index.jsx +7 -6
  62. package/dist/components/select/index.d.ts +22 -22
  63. package/dist/components/select/index.js +13 -11
  64. package/dist/components/select/index.jsx +13 -11
  65. package/dist/{run-if-fn-eYlaegHy.js → core-DbInRfhI.jsx} +1 -6
  66. package/dist/{run-if-fn-DRWB51JE.jsx → core-oNB2jGcl.js} +1 -6
  67. package/dist/create-split-props-B8A7_AF7.jsx +7 -0
  68. package/dist/create-split-props-pQu7jijw.js +7 -0
  69. package/dist/{factory-B6RK6SH4.d.ts → factory-4A25bngy.d.ts} +1 -1
  70. package/dist/{create-split-props-CQVsvhvg.jsx → factory-Ch5jgk20.jsx} +2 -6
  71. package/dist/{factory-CEdj72aS.js → factory-PGDAvOKb.js} +2 -6
  72. package/dist/{field-CphvciGc.jsx → field-BRr9Zdes.jsx} +8 -7
  73. package/dist/{field-C_WuoXOj.js → field-CoYiA2ek.js} +8 -7
  74. package/dist/{fieldset-BG-0ZqWT.jsx → fieldset-B_LyllEa.jsx} +8 -6
  75. package/dist/{fieldset-D1BO0LmU.js → fieldset-BrJqMLEd.js} +8 -6
  76. package/dist/{index-DXheKbqg.d.ts → index-GEfvAmRc.d.ts} +1 -1
  77. package/dist/{index-NWiNyxpL.d.ts → index-j2avJy7D.d.ts} +8 -8
  78. package/dist/{index-vSwYtc2L.d.ts → index-oc8gLl07.d.ts} +4 -4
  79. package/dist/index.d.ts +5 -5
  80. package/dist/index.js +4 -4
  81. package/dist/index.jsx +4 -4
  82. package/dist/{presence-arWh1hVd.jsx → presence-Bmn43U_q.jsx} +7 -5
  83. package/dist/{presence-Bfjusgm3.js → presence-BpwBRlZW.js} +7 -5
  84. package/dist/{providers-CQkAUunr.js → providers-Bo0OFe08.js} +2 -2
  85. package/dist/{providers-CHqGPEsc.jsx → providers-DFaRRd80.jsx} +2 -2
  86. package/dist/{render-strategy-CZDG_yDi.jsx → render-strategy-CdJhRv3I.jsx} +2 -2
  87. package/dist/{render-strategy-COrlrUuR.js → render-strategy-DFlz7Uc4.js} +2 -2
  88. package/dist/run-if-fn-A3VwXy-o.jsx +6 -0
  89. package/dist/run-if-fn-D5794CxE.js +6 -0
  90. package/dist/utils/index.d.ts +1 -1
  91. package/dist/utils/index.js +2 -2
  92. package/dist/utils/index.jsx +2 -2
  93. package/package.json +42 -2
  94. /package/dist/{chunk-C4aQI7lE.jsx → chunk-B5so6B0y.jsx} +0 -0
  95. /package/dist/{chunk-CKcAJnC7.js → chunk-B93cd-Dz.js} +0 -0
  96. /package/dist/{compose-refs-CzyOb8yH.jsx → compose-refs-BVVIB7xn.js} +0 -0
  97. /package/dist/{compose-refs-vsrTrt13.js → compose-refs-icUeuyHm.jsx} +0 -0
  98. /package/dist/{create-context-PS2j4mEo.js → create-context-C3rvZvkc.jsx} +0 -0
  99. /package/dist/{create-context-h3cXiEld.jsx → create-context-GfQ_MylE.js} +0 -0
  100. /package/dist/{index-B0YoIRC4.d.ts → index-B6dBCfnB.d.ts} +0 -0
  101. /package/dist/{index-C3ATynHc.d.ts → index-C7N791Fc.d.ts} +0 -0
  102. /package/dist/{render-strategy-CtRkdWei.d.ts → render-strategy-BNECKEQk.d.ts} +0 -0
  103. /package/dist/{types-bQRbEioA.d.ts → types-Dbw4va3W.d.ts} +0 -0
  104. /package/dist/{utils-DYer-9SY.js → utils-DQi-Cen5.js} +0 -0
  105. /package/dist/{utils-DrvO4Hk3.jsx → utils-vSjszv0W.jsx} +0 -0
@@ -1,8 +1,10 @@
1
- import { a as useMachine, i as mergeProps$1, r as normalizeProps, t as runIfFn } from "./run-if-fn-DRWB51JE.jsx";
2
- import { t as createContext$1 } from "./create-context-h3cXiEld.jsx";
3
- import { n as sprawlify, t as createSplitProps } from "./create-split-props-CQVsvhvg.jsx";
4
- import { n as splitRenderStrategyProps } from "./render-strategy-CZDG_yDi.jsx";
5
- import { t as composeRefs } from "./compose-refs-CzyOb8yH.jsx";
1
+ import { i as useMachine, n as normalizeProps, r as mergeProps$1 } from "./core-DbInRfhI.jsx";
2
+ import { t as runIfFn } from "./run-if-fn-A3VwXy-o.jsx";
3
+ import { t as createContext$1 } from "./create-context-C3rvZvkc.jsx";
4
+ import { t as createSplitProps } from "./create-split-props-B8A7_AF7.jsx";
5
+ import { n as splitRenderStrategyProps } from "./render-strategy-CdJhRv3I.jsx";
6
+ import { t as sprawlify } from "./factory-Ch5jgk20.jsx";
7
+ import { t as composeRefs } from "./compose-refs-icUeuyHm.jsx";
6
8
  import { Show, createEffect, createMemo, createSignal } from "solid-js";
7
9
  import * as presence from "@sprawlify/primitives/machines/presence";
8
10
 
@@ -1,8 +1,10 @@
1
- import { a as useMachine, i as mergeProps$2, r as normalizeProps, t as runIfFn } from "./run-if-fn-eYlaegHy.js";
2
- import { t as createContext$1 } from "./create-context-PS2j4mEo.js";
3
- import { n as createSplitProps, t as sprawlify } from "./factory-CEdj72aS.js";
4
- import { n as splitRenderStrategyProps } from "./render-strategy-COrlrUuR.js";
5
- import { t as composeRefs } from "./compose-refs-vsrTrt13.js";
1
+ import { i as useMachine, n as normalizeProps, r as mergeProps$2 } from "./core-oNB2jGcl.js";
2
+ import { t as runIfFn } from "./run-if-fn-D5794CxE.js";
3
+ import { t as createContext$1 } from "./create-context-GfQ_MylE.js";
4
+ import { t as createSplitProps } from "./create-split-props-pQu7jijw.js";
5
+ import { n as splitRenderStrategyProps } from "./render-strategy-DFlz7Uc4.js";
6
+ import { t as sprawlify } from "./factory-PGDAvOKb.js";
7
+ import { t as composeRefs } from "./compose-refs-BVVIB7xn.js";
6
8
  import { Show, createEffect, createMemo, createSignal } from "solid-js";
7
9
  import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
8
10
  import * as presence from "@sprawlify/primitives/machines/presence";
@@ -1,5 +1,5 @@
1
- import { t as runIfFn } from "./run-if-fn-eYlaegHy.js";
2
- import { t as createContext$1 } from "./create-context-PS2j4mEo.js";
1
+ import { t as runIfFn } from "./run-if-fn-D5794CxE.js";
2
+ import { t as createContext$1 } from "./create-context-GfQ_MylE.js";
3
3
  import { Show, createMemo, createSignal } from "solid-js";
4
4
  import { createComponent, memo, template, use } from "solid-js/web";
5
5
  import { getDocument, getWindow } from "@sprawlify/primitives/dom-query";
@@ -1,5 +1,5 @@
1
- import { t as runIfFn } from "./run-if-fn-DRWB51JE.jsx";
2
- import { t as createContext$1 } from "./create-context-h3cXiEld.jsx";
1
+ import { t as runIfFn } from "./run-if-fn-A3VwXy-o.jsx";
2
+ import { t as createContext$1 } from "./create-context-C3rvZvkc.jsx";
3
3
  import { Show, createMemo, createSignal } from "solid-js";
4
4
  import { getDocument, getWindow } from "@sprawlify/primitives/dom-query";
5
5
  import { createCollator, createFilter, isRTL } from "@sprawlify/primitives/i18n-utils";
@@ -1,5 +1,5 @@
1
- import { t as createContext } from "./create-context-h3cXiEld.jsx";
2
- import { t as createSplitProps } from "./create-split-props-CQVsvhvg.jsx";
1
+ import { t as createContext } from "./create-context-C3rvZvkc.jsx";
2
+ import { t as createSplitProps } from "./create-split-props-B8A7_AF7.jsx";
3
3
 
4
4
  //#region src/utils/render-strategy.ts
5
5
  const [RenderStrategyProvider, useRenderStrategyContext] = createContext({
@@ -1,5 +1,5 @@
1
- import { t as createContext } from "./create-context-PS2j4mEo.js";
2
- import { n as createSplitProps } from "./factory-CEdj72aS.js";
1
+ import { t as createContext } from "./create-context-GfQ_MylE.js";
2
+ import { t as createSplitProps } from "./create-split-props-pQu7jijw.js";
3
3
 
4
4
  //#region src/utils/render-strategy.ts
5
5
  const [RenderStrategyProvider, useRenderStrategyContext] = createContext({
@@ -0,0 +1,6 @@
1
+ //#region src/utils/run-if-fn.ts
2
+ const isFunction = (value) => typeof value === "function";
3
+ const runIfFn = (valueOrFn, ...args) => isFunction(valueOrFn) ? valueOrFn(...args) : valueOrFn;
4
+
5
+ //#endregion
6
+ export { runIfFn as t };
@@ -0,0 +1,6 @@
1
+ //#region src/utils/run-if-fn.ts
2
+ const isFunction = (value) => typeof value === "function";
3
+ const runIfFn = (valueOrFn, ...args) => isFunction(valueOrFn) ? valueOrFn(...args) : valueOrFn;
4
+
5
+ //#endregion
6
+ export { runIfFn as t };
@@ -1,2 +1,2 @@
1
- import { t as createContext } from "../index-B0YoIRC4.js";
1
+ import { t as createContext } from "../index-B6dBCfnB.js";
2
2
  export { createContext };
@@ -1,4 +1,4 @@
1
- import { t as createContext } from "../create-context-PS2j4mEo.js";
2
- import "../utils-DYer-9SY.js";
1
+ import { t as createContext } from "../create-context-GfQ_MylE.js";
2
+ import "../utils-DQi-Cen5.js";
3
3
 
4
4
  export { createContext };
@@ -1,4 +1,4 @@
1
- import { t as createContext } from "../create-context-h3cXiEld.jsx";
2
- import "../utils-DrvO4Hk3.jsx";
1
+ import { t as createContext } from "../create-context-C3rvZvkc.jsx";
2
+ import "../utils-vSjszv0W.jsx";
3
3
 
4
4
  export { createContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprawlify/solid",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "type": "module",
5
5
  "description": "Solid wrapper for primitives.",
6
6
  "author": "sprawlify <npm@sprawlify.com>",
@@ -58,6 +58,41 @@
58
58
  "solid": "./dist/components/collapsible/index.jsx",
59
59
  "default": "./dist/components/collapsible/index.js"
60
60
  },
61
+ "./collection": {
62
+ "types": "./dist/components/collection/index.d.ts",
63
+ "solid": "./dist/components/collection/index.jsx",
64
+ "default": "./dist/components/collection/index.js"
65
+ },
66
+ "./color-picker": {
67
+ "types": "./dist/components/color-picker/index.d.ts",
68
+ "solid": "./dist/components/color-picker/index.jsx",
69
+ "default": "./dist/components/color-picker/index.js"
70
+ },
71
+ "./combobox": {
72
+ "types": "./dist/components/combobox/index.d.ts",
73
+ "solid": "./dist/components/combobox/index.jsx",
74
+ "default": "./dist/components/combobox/index.js"
75
+ },
76
+ "./date-picker": {
77
+ "types": "./dist/components/date-picker/index.d.ts",
78
+ "solid": "./dist/components/date-picker/index.jsx",
79
+ "default": "./dist/components/date-picker/index.js"
80
+ },
81
+ "./dialog": {
82
+ "types": "./dist/components/dialog/index.d.ts",
83
+ "solid": "./dist/components/dialog/index.jsx",
84
+ "default": "./dist/components/dialog/index.js"
85
+ },
86
+ "./download-trigger": {
87
+ "types": "./dist/components/download-trigger/index.d.ts",
88
+ "solid": "./dist/components/download-trigger/index.jsx",
89
+ "default": "./dist/components/download-trigger/index.js"
90
+ },
91
+ "./editable": {
92
+ "types": "./dist/components/editable/index.d.ts",
93
+ "solid": "./dist/components/editable/index.jsx",
94
+ "default": "./dist/components/editable/index.js"
95
+ },
61
96
  "./field": {
62
97
  "types": "./dist/components/field/index.d.ts",
63
98
  "solid": "./dist/components/field/index.jsx",
@@ -68,6 +103,11 @@
68
103
  "solid": "./dist/components/fieldset/index.jsx",
69
104
  "default": "./dist/components/fieldset/index.js"
70
105
  },
106
+ "./highlight": {
107
+ "types": "./dist/components/highlight/index.d.ts",
108
+ "solid": "./dist/components/highlight/index.jsx",
109
+ "default": "./dist/components/highlight/index.js"
110
+ },
71
111
  "./presence": {
72
112
  "types": "./dist/components/presence/index.d.ts",
73
113
  "solid": "./dist/components/presence/index.jsx",
@@ -82,7 +122,7 @@
82
122
  },
83
123
  "dependencies": {
84
124
  "@solid-primitives/keyed": "^1.5.2",
85
- "@sprawlify/primitives": "0.0.15"
125
+ "@sprawlify/primitives": "0.0.16"
86
126
  },
87
127
  "peerDependencies": {
88
128
  "solid-js": ">=1.1.3"
File without changes
File without changes
File without changes
File without changes