@okam/stack-ui 2.0.3 → 2.1.0
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.
- package/components/fields/SearchField/interface.d.ts +9 -2
- package/components/fields/TextArea/attributes.d.ts +1 -0
- package/components/fields/TextInputField/attributes.d.ts +1 -0
- package/index.d.ts +1 -0
- package/index119.js +1 -1
- package/index119.mjs +1 -1
- package/index122.js +1 -1
- package/index122.mjs +22 -22
- package/index131.js +1 -1
- package/index131.mjs +1 -1
- package/index133.js +1 -1
- package/index133.mjs +11 -14
- package/index134.js +1 -1
- package/index134.mjs +12 -7
- package/index135.js +1 -1
- package/index135.mjs +14 -7
- package/index136.js +1 -1
- package/index136.mjs +6 -15
- package/index137.js +1 -1
- package/index137.mjs +7 -31
- package/index138.js +1 -2
- package/index138.mjs +15 -8
- package/index139.js +1 -2
- package/index139.mjs +30 -9
- package/index140.js +2 -1
- package/index140.mjs +8 -23
- package/index141.js +1 -1
- package/index141.mjs +8 -45
- package/index142.js +1 -1
- package/index142.mjs +24 -52
- package/index143.js +2 -6
- package/index143.mjs +45 -92
- package/index144.js +1 -1
- package/index144.mjs +52 -70
- package/index145.js +6 -1
- package/index145.mjs +82 -29
- package/index146.js +1 -51
- package/index146.mjs +65 -86
- package/index147.js +1 -64
- package/index147.mjs +33 -220
- package/index148.js +51 -10
- package/index148.mjs +85 -65
- package/index149.js +64 -1
- package/index149.mjs +214 -31
- package/index150.js +10 -1
- package/index150.mjs +68 -10
- package/index151.js +1 -7
- package/index151.mjs +42 -47
- package/index152.js +1 -5
- package/index152.mjs +10 -85
- package/index153.js +7 -1
- package/index153.mjs +50 -6
- package/index154.js +4 -11
- package/index154.mjs +78 -30
- package/index155.js +1 -1
- package/index155.mjs +6 -96
- package/index156.js +12 -1
- package/index156.mjs +39 -12
- package/index157.js +1 -1
- package/index157.mjs +96 -8
- package/index158.js +1 -1
- package/index158.mjs +13 -29
- package/index159.js +1 -1
- package/index159.mjs +7 -12
- package/index160.js +1 -7
- package/index160.mjs +23 -13
- package/index161.js +1 -15
- package/index161.mjs +9 -67
- package/index162.js +7 -1
- package/index162.mjs +22 -6
- package/index163.js +15 -9
- package/index163.mjs +68 -12
- package/index164.js +1 -41
- package/index164.mjs +7 -106
- package/index165.js +9 -47
- package/index165.mjs +13 -100
- package/index166.js +40 -15
- package/index166.mjs +100 -19
- package/index167.js +45 -18
- package/index167.mjs +85 -59
- package/index168.js +16 -1
- package/index168.mjs +20 -37
- package/index169.js +20 -1
- package/index169.mjs +76 -12
- package/index170.js +1 -1
- package/index170.mjs +41 -10
- package/index171.js +1 -1
- package/index171.mjs +11 -6
- package/index172.js +1 -2
- package/index172.mjs +6 -47
- package/index173.js +2 -0
- package/index173.mjs +50 -0
- package/index174.js +1 -0
- package/index174.mjs +13 -0
- package/index2.js +1 -1
- package/index2.mjs +4 -4
- package/index38.js +1 -1
- package/index38.mjs +19 -19
- package/index39.js +1 -1
- package/index39.mjs +11 -11
- package/index43.js +1 -1
- package/index43.mjs +55 -52
- package/index46.js +1 -1
- package/index46.mjs +86 -87
- package/index47.js +1 -1
- package/index47.mjs +110 -111
- package/index48.js +1 -1
- package/index48.mjs +3 -3
- package/index52.js +1 -1
- package/index52.mjs +1 -1
- package/index53.js +1 -1
- package/index53.mjs +1 -1
- package/index54.js +1 -1
- package/index54.mjs +3 -3
- package/index66.js +1 -1
- package/index66.mjs +1 -1
- package/index68.js +1 -1
- package/index68.mjs +11 -11
- package/index72.js +1 -1
- package/index72.mjs +13 -13
- package/index76.js +1 -1
- package/index76.mjs +1 -1
- package/index8.js +1 -1
- package/index8.mjs +30 -30
- package/index91.js +1 -1
- package/index91.mjs +50 -49
- package/package.json +1 -1
- package/theme/Search/index.d.ts +2 -1
package/index8.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as O } from "react";
|
|
4
|
-
import { useLink as R, FocusRing as
|
|
5
|
-
import
|
|
6
|
-
function
|
|
4
|
+
import { useLink as R, FocusRing as k, useButton as L } from "react-aria";
|
|
5
|
+
import b from "./index88.mjs";
|
|
6
|
+
function x({ ref: e, ...n }) {
|
|
7
7
|
const {
|
|
8
8
|
as: t = "a",
|
|
9
9
|
handlePress: c,
|
|
10
10
|
children: u,
|
|
11
|
-
as:
|
|
12
|
-
customTheme:
|
|
11
|
+
as: a,
|
|
12
|
+
customTheme: i,
|
|
13
13
|
tokens: m,
|
|
14
14
|
themeName: h = "button",
|
|
15
|
-
nextLinkProps: { onClick: l, ...
|
|
15
|
+
nextLinkProps: { onClick: l, ...o } = {},
|
|
16
16
|
...r
|
|
17
|
-
} = n, { onPress: d, onFocusChange: C, excludeFromTabOrder:
|
|
17
|
+
} = n, { onPress: d, onFocusChange: C, excludeFromTabOrder: T, preventFocusOnPress: p, ...g } = r, f = e, { linkProps: F } = R(
|
|
18
18
|
{
|
|
19
19
|
...n,
|
|
20
|
-
...
|
|
20
|
+
...o,
|
|
21
21
|
onClick: ({ currentTarget: N, ...y }) => {
|
|
22
22
|
l?.({
|
|
23
23
|
...y,
|
|
@@ -25,44 +25,44 @@ function b({ ref: e, ...n }) {
|
|
|
25
25
|
currentTarget: N
|
|
26
26
|
});
|
|
27
27
|
},
|
|
28
|
-
href: n.href ??
|
|
29
|
-
elementType:
|
|
28
|
+
href: n.href ?? o?.href?.toString(),
|
|
29
|
+
elementType: a?.toString(),
|
|
30
30
|
onPress: c
|
|
31
31
|
},
|
|
32
32
|
e ?? f
|
|
33
|
-
),
|
|
34
|
-
return /* @__PURE__ */
|
|
33
|
+
), P = b(h, m, i);
|
|
34
|
+
return /* @__PURE__ */ s(k, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ s(t, { ref: f, ...F, ...o, ...g, className: P, children: u }) });
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function B({ ref: e, ...n }) {
|
|
37
37
|
const {
|
|
38
38
|
as: t = "button",
|
|
39
39
|
handlePress: c,
|
|
40
40
|
children: u,
|
|
41
|
-
as:
|
|
42
|
-
customTheme:
|
|
41
|
+
as: a,
|
|
42
|
+
customTheme: i,
|
|
43
43
|
tokens: m,
|
|
44
44
|
themeName: h = "button",
|
|
45
45
|
isDisabled: l = !1,
|
|
46
|
-
...
|
|
46
|
+
...o
|
|
47
47
|
} = n, r = e, { buttonProps: d } = L(
|
|
48
|
-
{ ...n, isDisabled: l, elementType:
|
|
48
|
+
{ ...n, isDisabled: l, elementType: a, onPress: c },
|
|
49
49
|
e ?? r
|
|
50
|
-
), C =
|
|
51
|
-
return /* @__PURE__ */
|
|
50
|
+
), C = b(h, m, i), { onPress: T, onPressStart: p, onFocusChange: g, excludeFromTabOrder: f, preventFocusOnPress: F, ...P } = o;
|
|
51
|
+
return /* @__PURE__ */ s(k, { within: !0, focusRingClass: "has-focus-ring", children: /* @__PURE__ */ s(t, { ref: r, ...d, ...P, className: C, children: u }) });
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function S({ ref: e, ...n }) {
|
|
54
54
|
const { as: t } = n;
|
|
55
|
-
return t === "a" ? /* @__PURE__ */
|
|
55
|
+
return t === "a" ? /* @__PURE__ */ s(x, { ref: e, ...n }) : /* @__PURE__ */ s(B, { ref: e, ...n });
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
function
|
|
57
|
+
S.displayName = "ButtonWithForwardRef";
|
|
58
|
+
function v(e) {
|
|
59
59
|
const { as: n } = e, t = O(null);
|
|
60
|
-
return n === "a" ? /* @__PURE__ */
|
|
60
|
+
return n === "a" ? /* @__PURE__ */ s(x, { ref: t, ...e }) : /* @__PURE__ */ s(B, { ref: t, ...e });
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
v.displayName = "Button";
|
|
63
63
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
x as Anchor,
|
|
65
|
+
v as Button,
|
|
66
|
+
v as ButtonComponent,
|
|
67
|
+
S as ButtonWithForwardRef
|
|
68
68
|
};
|
package/index91.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const d=require("react"),p=require("./index87.js"),h=require("./
|
|
2
|
+
"use strict";const d=require("react"),p=require("./index87.js"),h=require("./index145.js"),k=require("./index146.js"),t=require("./index147.js"),i=require("./index148.js"),m=require("./index149.js"),g=require("./index150.js"),o=require("./index151.js"),u=require("./index152.js"),q=require("./index153.js"),f=require("./index154.js"),$=require("./index155.js"),b=require("./index156.js"),w=require("./index157.js"),B=require("./index158.js"),l=require("./index159.js"),c=require("./index160.js"),x=require("./index161.js"),a=require("./index162.js"),n=require("./index163.js"),s=require("./index164.js"),I=require("./index165.js"),G=require("./index166.js"),M=require("./index167.js"),T=require("./index168.js"),y=require("./index169.js"),r=require("./index170.js"),L=require("./index118.js"),P=L.makeTheme({main:e=>t.main(e),gridItem:e=>t.gridItem(e),grid:e=>t.grid(e),container:e=>t.container(e),accordion:h.accordionTheme,carousel:g,calendar:m.calendarTheme,datePicker:f.datePickerTheme,popover:B,typography:e=>r(e),button:e=>i(e),link:i,sidePanel:{wrapper:e=>s.sidePanelWrapper(e),container:e=>s.sidePanelContainer(e),innerContainer:e=>s.sidePanelInnerContainer(e)},comboBox:q,lightBox:b,printButton:{icon:e=>l.printButtonIcon(e),button:e=>l.printButton(e)},shareButton:{icon:e=>n.shareButtonIcon(e),button:e=>n.shareButton(e),container:e=>n.shareButtonContainer(e),linksList:e=>n.shareButtonLinksList(e),link:e=>n.shareButtonLink(e),linkIcons:e=>n.shareButtonLinkIcons(e)},skipToMain:e=>I.skipToMain(e),checkbox:{container:e=>o.checkboxContainer(e),label:e=>o.checkboxLabel(e),checkBox:e=>o.checkBox(e),checkMark:e=>o.checkMark(e),checkMarkIcon:e=>o.checkMarkIcon(e),errorMessage:e=>r(e)},radio:{label:e=>c.radioLabel(e),radio:e=>c.radio(e),selectedMark:e=>c.selectedMark(e),errorMessage:e=>r(e)},radioGroup:{radioGroup:e=>x.radioGroup(e),radioGroupItemsGroup:e=>x.radioGroupItemsGroup(e),errorMessage:e=>r(e)},checkboxGroup:{checkboxGroup:e=>u.checkboxGroup(e),checkboxGroupItemsGroup:e=>u.checkboxGroupItemsGroup(e),errormessage:e=>r(e)},select:{button:e=>i(e),ul:e=>r({...e,className:"outline outline-2 outline-white outline-offset-2 p-2 my-4 rounded-md w-full flex flex-col gap-6"}),popover:e=>i({...e,className:"w-[var(--select-container-width)]"}),errorMessage:e=>r({...e,size:"footnotes",isError:!0}),wrapper:()=>"flex flex-col gap-4 relative",container:()=>"flex flex-col gap-4",list:()=>"flex flex-col gap-4",li:()=>"transition w-full hover:text-gray-300 focus-ring-white",headerText:()=>"text-gray-300",section:()=>"flex flex-col gap-4"},textarea:{wrapper:()=>"flex flex-col",container:()=>"flex items-center gap-4",label:()=>"text-gray-3 px-6",input:e=>T.textArea(e),errorMessage:e=>r({...e,size:"footnotes",isError:!0})},textInput:y,search:{wrapper:()=>"min-w-fit sm:w-80 flex flex-col gap-2",container:()=>"relative flex items-center outline outline-2 outline-gray-300 focus-within:outline focus-within:outline-black focus-within:outline-2",label:()=>"text-gray-3",input:e=>a.searchInput(e),icon:e=>a.searchIcon(e),button:e=>a.searchButton(e),errorMessage:e=>r({...e,size:"footnotes",isError:!0})},menu:{sidePanel:{wrapper:()=>"",container:()=>"",innerContainer:()=>""},wrapper:()=>""},menuItem:{wrapper:()=>"",container:()=>"",innerContent:()=>"",button:()=>"",anchor:()=>""},img:$.imgTheme,alerts:k,tagGroup:M,tabList:G,listBox:w}),v=d.memo(p.createThemeProvider(P));module.exports=v;
|
package/index91.mjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { memo as t } from "react";
|
|
3
3
|
import { createThemeProvider as i } from "./index87.mjs";
|
|
4
|
-
import { accordionTheme as n } from "./
|
|
5
|
-
import a from "./
|
|
6
|
-
import { container as m, grid as p, gridItem as c, main as s } from "./
|
|
7
|
-
import r from "./
|
|
8
|
-
import { calendarTheme as l } from "./
|
|
9
|
-
import u from "./
|
|
10
|
-
import { checkMarkIcon as f, checkMark as h, checkBox as x, checkboxLabel as d, checkboxContainer as k } from "./
|
|
11
|
-
import { checkboxGroupItemsGroup as g, checkboxGroup as b } from "./
|
|
12
|
-
import
|
|
13
|
-
import { datePickerTheme as
|
|
14
|
-
import { imgTheme as
|
|
15
|
-
import I from "./
|
|
16
|
-
import G from "./
|
|
17
|
-
import M from "./
|
|
18
|
-
import { printButton as y, printButtonIcon as L } from "./
|
|
19
|
-
import { selectedMark as v, radio as P, radioLabel as C } from "./
|
|
20
|
-
import { radioGroupItemsGroup as z, radioGroup as E } from "./
|
|
21
|
-
import {
|
|
22
|
-
import { shareButtonLinkIcons as
|
|
23
|
-
import { sidePanelInnerContainer as
|
|
24
|
-
import { skipToMain as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import { textArea as
|
|
28
|
-
import
|
|
29
|
-
import o from "./
|
|
30
|
-
import { makeTheme as
|
|
31
|
-
const
|
|
4
|
+
import { accordionTheme as n } from "./index145.mjs";
|
|
5
|
+
import a from "./index146.mjs";
|
|
6
|
+
import { container as m, grid as p, gridItem as c, main as s } from "./index147.mjs";
|
|
7
|
+
import r from "./index148.mjs";
|
|
8
|
+
import { calendarTheme as l } from "./index149.mjs";
|
|
9
|
+
import u from "./index150.mjs";
|
|
10
|
+
import { checkMarkIcon as f, checkMark as h, checkBox as x, checkboxLabel as d, checkboxContainer as k } from "./index151.mjs";
|
|
11
|
+
import { checkboxGroupItemsGroup as g, checkboxGroup as b } from "./index152.mjs";
|
|
12
|
+
import B from "./index153.mjs";
|
|
13
|
+
import { datePickerTheme as T } from "./index154.mjs";
|
|
14
|
+
import { imgTheme as w } from "./index155.mjs";
|
|
15
|
+
import I from "./index156.mjs";
|
|
16
|
+
import G from "./index157.mjs";
|
|
17
|
+
import M from "./index158.mjs";
|
|
18
|
+
import { printButton as y, printButtonIcon as L } from "./index159.mjs";
|
|
19
|
+
import { selectedMark as v, radio as P, radioLabel as C } from "./index160.mjs";
|
|
20
|
+
import { radioGroupItemsGroup as z, radioGroup as E } from "./index161.mjs";
|
|
21
|
+
import { searchButton as N, searchIcon as A, searchInput as W } from "./index162.mjs";
|
|
22
|
+
import { shareButtonLinkIcons as j, shareButtonLink as q, shareButtonLinksList as D, shareButtonContainer as F, shareButton as H, shareButtonIcon as J } from "./index163.mjs";
|
|
23
|
+
import { sidePanelInnerContainer as K, sidePanelContainer as O, sidePanelWrapper as Q } from "./index164.mjs";
|
|
24
|
+
import { skipToMain as R } from "./index165.mjs";
|
|
25
|
+
import S from "./index166.mjs";
|
|
26
|
+
import U from "./index167.mjs";
|
|
27
|
+
import { textArea as V } from "./index168.mjs";
|
|
28
|
+
import X from "./index169.mjs";
|
|
29
|
+
import o from "./index170.mjs";
|
|
30
|
+
import { makeTheme as Y } from "./index118.mjs";
|
|
31
|
+
const Z = Y({
|
|
32
32
|
main: (e) => s(e),
|
|
33
33
|
gridItem: (e) => c(e),
|
|
34
34
|
grid: (e) => p(e),
|
|
@@ -36,31 +36,31 @@ const Y = X({
|
|
|
36
36
|
accordion: n,
|
|
37
37
|
carousel: u,
|
|
38
38
|
calendar: l,
|
|
39
|
-
datePicker:
|
|
39
|
+
datePicker: T,
|
|
40
40
|
popover: M,
|
|
41
41
|
typography: (e) => o(e),
|
|
42
42
|
button: (e) => r(e),
|
|
43
43
|
link: r,
|
|
44
44
|
sidePanel: {
|
|
45
|
-
wrapper: (e) =>
|
|
46
|
-
container: (e) =>
|
|
47
|
-
innerContainer: (e) =>
|
|
45
|
+
wrapper: (e) => Q(e),
|
|
46
|
+
container: (e) => O(e),
|
|
47
|
+
innerContainer: (e) => K(e)
|
|
48
48
|
},
|
|
49
|
-
comboBox:
|
|
49
|
+
comboBox: B,
|
|
50
50
|
lightBox: I,
|
|
51
51
|
printButton: {
|
|
52
52
|
icon: (e) => L(e),
|
|
53
53
|
button: (e) => y(e)
|
|
54
54
|
},
|
|
55
55
|
shareButton: {
|
|
56
|
-
icon: (e) =>
|
|
57
|
-
button: (e) =>
|
|
58
|
-
container: (e) =>
|
|
59
|
-
linksList: (e) =>
|
|
60
|
-
link: (e) =>
|
|
61
|
-
linkIcons: (e) =>
|
|
56
|
+
icon: (e) => J(e),
|
|
57
|
+
button: (e) => H(e),
|
|
58
|
+
container: (e) => F(e),
|
|
59
|
+
linksList: (e) => D(e),
|
|
60
|
+
link: (e) => q(e),
|
|
61
|
+
linkIcons: (e) => j(e)
|
|
62
62
|
},
|
|
63
|
-
skipToMain: (e) =>
|
|
63
|
+
skipToMain: (e) => R(e),
|
|
64
64
|
checkbox: {
|
|
65
65
|
container: (e) => k(e),
|
|
66
66
|
label: (e) => d(e),
|
|
@@ -104,16 +104,17 @@ const Y = X({
|
|
|
104
104
|
wrapper: () => "flex flex-col",
|
|
105
105
|
container: () => "flex items-center gap-4",
|
|
106
106
|
label: () => "text-gray-3 px-6",
|
|
107
|
-
input: (e) =>
|
|
107
|
+
input: (e) => V(e),
|
|
108
108
|
errorMessage: (e) => o({ ...e, size: "footnotes", isError: !0 })
|
|
109
109
|
},
|
|
110
|
-
textInput:
|
|
110
|
+
textInput: X,
|
|
111
111
|
search: {
|
|
112
112
|
wrapper: () => "min-w-fit sm:w-80 flex flex-col gap-2",
|
|
113
113
|
container: () => "relative flex items-center outline outline-2 outline-gray-300 focus-within:outline focus-within:outline-black focus-within:outline-2",
|
|
114
114
|
label: () => "text-gray-3",
|
|
115
|
-
input: (e) =>
|
|
116
|
-
icon: (e) =>
|
|
115
|
+
input: (e) => W(e),
|
|
116
|
+
icon: (e) => A(e),
|
|
117
|
+
button: (e) => N(e),
|
|
117
118
|
errorMessage: (e) => o({ ...e, size: "footnotes", isError: !0 })
|
|
118
119
|
},
|
|
119
120
|
menu: {
|
|
@@ -131,12 +132,12 @@ const Y = X({
|
|
|
131
132
|
button: () => "",
|
|
132
133
|
anchor: () => ""
|
|
133
134
|
},
|
|
134
|
-
img:
|
|
135
|
+
img: w,
|
|
135
136
|
alerts: a,
|
|
136
|
-
tagGroup:
|
|
137
|
-
tabList:
|
|
137
|
+
tagGroup: U,
|
|
138
|
+
tabList: S,
|
|
138
139
|
listBox: G
|
|
139
|
-
}),
|
|
140
|
+
}), Le = t(i(Z));
|
|
140
141
|
export {
|
|
141
|
-
|
|
142
|
+
Le as default
|
|
142
143
|
};
|
package/package.json
CHANGED
package/theme/Search/index.d.ts
CHANGED
|
@@ -11,4 +11,5 @@ export declare const searchInput: import('tailwind-variants').TVReturnType<{
|
|
|
11
11
|
true: string;
|
|
12
12
|
};
|
|
13
13
|
}, undefined, "p-4 w-full outline-0 search-cancel:appearance-none", unknown, unknown, undefined>>;
|
|
14
|
-
export declare const searchIcon: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "\n box-border
|
|
14
|
+
export declare const searchIcon: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "\n box-border\n absolute\n right-4\n focus-ring-black\n outline-0\n ", {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "\n box-border\n absolute\n right-4\n focus-ring-black\n outline-0\n ", unknown, unknown, undefined>>;
|
|
15
|
+
export declare const searchButton: import('tailwind-variants').TVReturnType<{} | {} | {} | {}, undefined, "cursor-pointer", {} | {} | {}, undefined, import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "\n box-border\n absolute\n right-4\n focus-ring-black\n outline-0\n ", {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "\n box-border\n absolute\n right-4\n focus-ring-black\n outline-0\n ", unknown, unknown, undefined>>>;
|