@box-kite/react 2.2.6 → 2.2.8
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/.claude/rules/box-kite-rules.md +2 -0
- package/.claude/skills/box-kite/SKILL.md +2 -0
- package/.claude/skills/box-kite/references/extending.md +10 -0
- package/.claude/skills/box-kite/references/styling.md +3 -2
- package/.cursor/rules/box-kite.mdc +2 -0
- package/AGENTS.md +2 -0
- package/BOX_AI_CONTEXT.md +128 -2
- package/BOX_KITE_AI_CONTEXT.md +128 -2
- package/analytics.cjs +1 -0
- package/analytics.d.ts +10 -0
- package/analytics.mjs +121 -0
- package/behavior.cjs +1 -1
- package/behavior.mjs +42 -38
- package/box.cjs +1 -1
- package/box.d.ts +14 -0
- package/box.mjs +17 -16
- package/catalog.cjs +1 -1
- package/catalog.mjs +8 -0
- package/client.cjs +1 -1
- package/client.mjs +144 -113
- package/components/accordion.cjs +1 -1
- package/components/accordion.mjs +19 -10
- package/components/agent.cjs +1 -1
- package/components/agent.mjs +21 -8
- package/components/calendar.cjs +1 -1
- package/components/calendar.d.ts +3 -1
- package/components/calendar.mjs +154 -142
- package/components/combobox.cjs +1 -1
- package/components/combobox.mjs +184 -174
- package/components/dashboard.cjs +1 -1
- package/components/dashboard.mjs +183 -170
- package/components/dataGrid/models/columnModel.d.ts +1 -0
- package/components/dataGrid/models/gridModel.d.ts +18 -0
- package/components/dataGrid/models/headerCellModel.d.ts +1 -0
- package/components/dataGrid/models/rangeModel.d.ts +3 -0
- package/components/dataGrid.cjs +3 -3
- package/components/dataGrid.mjs +1015 -923
- package/components/dateField.cjs +1 -1
- package/components/dateField.mjs +165 -159
- package/components/datePicker.cjs +1 -1
- package/components/datePicker.mjs +198 -183
- package/components/dialog.cjs +1 -1
- package/components/dialog.mjs +38 -33
- package/components/dropdown.cjs +1 -1
- package/components/dropdown.mjs +107 -93
- package/components/form.cjs +1 -1
- package/components/form.mjs +22 -18
- package/components/menu.cjs +1 -1
- package/components/menu.d.ts +2 -0
- package/components/menu.mjs +196 -175
- package/components/overlay.cjs +1 -1
- package/components/overlay.mjs +7 -7
- package/components/popover.cjs +1 -1
- package/components/popover.mjs +4 -0
- package/components/radioGroup.cjs +1 -1
- package/components/radioGroup.mjs +10 -5
- package/components/semantics.d.ts +29 -29
- package/components/slider.cjs +1 -1
- package/components/slider.mjs +84 -83
- package/components/sortableList.cjs +1 -1
- package/components/sortableList.mjs +158 -150
- package/components/swipeItem.cjs +1 -1
- package/components/swipeItem.mjs +92 -84
- package/components/tabs.cjs +1 -1
- package/components/tabs.mjs +10 -5
- package/components/timeZoneSelect.cjs +1 -1
- package/components/timeZoneSelect.mjs +40 -35
- package/components/toaster.cjs +1 -1
- package/components/toaster.mjs +151 -113
- package/create/src/index.d.ts +1 -0
- package/create/src/options.d.ts +27 -0
- package/create/src/options.test.d.ts +1 -0
- package/create/src/packageManager.d.ts +5 -0
- package/create/src/project.d.ts +25 -0
- package/create/src/project.test.d.ts +1 -0
- package/create/templates/ts/designs/azure.d.ts +5 -0
- package/create/templates/ts/designs/ember.d.ts +5 -0
- package/create/templates/ts/designs/mono.d.ts +5 -0
- package/create/templates/ts/src/App.d.ts +2 -0
- package/create/templates/ts/src/design.d.ts +5 -0
- package/create/templates/ts/src/main.d.ts +0 -0
- package/dataGridDateParts.cjs +1 -1
- package/dataGridDateParts.mjs +56 -55
- package/dataGridList.cjs +1 -1
- package/dataGridList.mjs +437 -436
- package/docs/props.md +19 -19
- package/effects.cjs +1 -1
- package/effects.mjs +1 -1
- package/interactionListening.cjs +1 -0
- package/interactionListening.mjs +117 -0
- package/interactions.cjs +1 -0
- package/interactions.mjs +25 -0
- package/layer.cjs +1 -1
- package/layer.mjs +68 -66
- package/package.json +139 -70
- package/placement.cjs +1 -1
- package/placement.mjs +10 -10
- package/platform.cjs +1 -1
- package/platform.mjs +44 -25
- package/react/interactions/interactions.d.ts +30 -0
- package/react/popover/usePopoverLayer.d.ts +3 -0
- package/react/theme/theme.d.ts +9 -0
- package/react/theme/themeContext.d.ts +2 -0
- package/react/useStyles.d.ts +8 -1
- package/react-shared.cjs +1 -1
- package/react-shared.mjs +49 -48
- package/reporting.cjs +1 -0
- package/reporting.mjs +51 -0
- package/rsc.cjs +1 -1
- package/rsc.d.ts +3 -0
- package/rsc.mjs +1 -1
- package/scrolling.cjs +1 -1
- package/scrolling.mjs +1 -1
- package/supabase/functions/collect/index.d.ts +30 -0
- package/supabase/functions/collect/index.test.d.ts +1 -0
- package/utils/analytics/analytics.d.ts +72 -0
- package/utils/analytics/analyticsIdentity.d.ts +13 -0
- package/utils/interactions/componentAttribute.d.ts +6 -0
- package/utils/interactions/interactionChannel.d.ts +35 -0
- package/utils/interactions/interactionJson.d.ts +6 -0
- package/utils/interactions/interactionListening.d.ts +6 -0
- package/utils/interactions/interactionTypes.d.ts +224 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../behavior.cjs"),t=require("../identity.cjs"),n=require("./flex.cjs"),
|
|
1
|
+
"use client";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../behavior.cjs"),t=require("../identity.cjs"),n=require("../reporting.cjs"),r=require("./flex.cjs"),i=require("./semantics.cjs"),a=require("./radioButton.cjs");let o=require("react"),s=require("react/jsx-runtime");var c=(0,o.createContext)(null);function l(e){return[...e?.querySelectorAll(`input[type="radio"]`)??[]].filter(e=>!e.disabled)}function u(e){return e===`ArrowDown`||e===`ArrowRight`?1:e===`ArrowUp`||e===`ArrowLeft`?-1:0}function d(a){let{label:d,name:f,value:p,defaultValue:m,onValueChange:h,onChange:g,orientation:_=`vertical`,children:v,props:y,...b}=a,x=t.t(`radiogroup`),S=(0,o.useRef)(null),C=(0,o.useRef)(`click`),w=e.a((e,t)=>{h?.(e,t),g?.(e,t)}),[T,E]=n.a({value:p,defaultValue:m,onChange:w,interaction:{component:`radioGroup`,type:`valueChange`}}),D=e.a(e=>{let t=u(e.key);if(t===0||e.defaultPrevented)return;let n=l(S.current),r=n.indexOf(document.activeElement);if(r===-1)return;e.preventDefault();let i=n[(r+t+n.length)%n.length];i!==n[r]&&(C.current=`keyboard`,i.focus(),i.click(),C.current=`click`)}),O=`${x}-label`,k=d!=null,A=(0,o.useMemo)(()=>({name:f??x,value:T,select:(e,t)=>E(e,{reason:C.current,event:t})}),[x,f,T,E]);return(0,s.jsx)(c.Provider,{value:A,children:(0,s.jsxs)(r.default,{ref:S,component:`radioGroup`,variant:{horizontal:_===`horizontal`},...b,props:{role:`radiogroup`,"aria-labelledby":k?O:void 0,...y,onKeyDown:D},children:[k&&(0,s.jsx)(i.Span,{component:`radioGroup.label`,id:O,children:d}),v]})})}function f(t){let n=(0,o.useContext)(c),{value:r,...i}=t,l=e.a(e=>n?.select(r,e));return n?(0,s.jsx)(a.default,{name:n.name,value:r,checked:n.value===r,onChange:l,...i}):(0,s.jsx)(a.default,{value:r,...i})}f.displayName=`RadioGroup.Item`;var p=d;p.Item=f,p.displayName=`RadioGroup`,exports.default=p;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as e
|
|
3
|
-
import { t
|
|
2
|
+
import { a as e } from "../behavior.mjs";
|
|
3
|
+
import { t } from "../identity.mjs";
|
|
4
|
+
import { a as n } from "../reporting.mjs";
|
|
4
5
|
import r from "./flex.mjs";
|
|
5
6
|
import { Span as i } from "./semantics.mjs";
|
|
6
7
|
import a from "./radioButton.mjs";
|
|
@@ -15,12 +16,16 @@ function m(e) {
|
|
|
15
16
|
return e === "ArrowDown" || e === "ArrowRight" ? 1 : e === "ArrowUp" || e === "ArrowLeft" ? -1 : 0;
|
|
16
17
|
}
|
|
17
18
|
function h(a) {
|
|
18
|
-
let { label: o, name: s, value: h, defaultValue: g, onValueChange: _, onChange: v, orientation: y = "vertical", children: b, props: x, ...S } = a, C =
|
|
19
|
+
let { label: o, name: s, value: h, defaultValue: g, onValueChange: _, onChange: v, orientation: y = "vertical", children: b, props: x, ...S } = a, C = t("radiogroup"), w = l(null), T = l("click"), E = e((e, t) => {
|
|
19
20
|
_?.(e, t), v?.(e, t);
|
|
20
|
-
}), [D, O] =
|
|
21
|
+
}), [D, O] = n({
|
|
21
22
|
value: h,
|
|
22
23
|
defaultValue: g,
|
|
23
|
-
onChange: E
|
|
24
|
+
onChange: E,
|
|
25
|
+
interaction: {
|
|
26
|
+
component: "radioGroup",
|
|
27
|
+
type: "valueChange"
|
|
28
|
+
}
|
|
24
29
|
}), k = e((e) => {
|
|
25
30
|
let t = m(e.key);
|
|
26
31
|
if (t === 0 || e.defaultPrevented) return;
|