@progress/kendo-themes-html 7.1.0-dev.3 → 7.1.0-dev.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.
- package/dist/cjs/index.js +1269 -1247
- package/dist/cjs/prompt/prompt-content.js +3 -4813
- package/dist/cjs/prompt/prompt-view.js +4862 -0
- package/dist/cjs/prompt/templates/prompt-more-actions.js +92 -72
- package/dist/cjs/prompt/templates/prompt-normal.js +89 -69
- package/dist/cjs/prompt/templates/prompt-output.js +120 -100
- package/dist/cjs/prompt/templates/prompt-popup.js +91 -71
- package/dist/cjs/prompt/templates/prompt-settings.js +86 -66
- package/dist/cjs/prompt/templates/prompt-suggestions.js +96 -76
- package/dist/cjs/prompt/tests/prompt-more-actions.js +98 -78
- package/dist/cjs/prompt/tests/prompt-normal.js +136 -116
- package/dist/cjs/prompt/tests/prompt-output.js +126 -106
- package/dist/cjs/timeline/horizontal-timeline-event.spec.js +1 -2
- package/dist/cjs/timeline/templates/timeline-horizontal.js +1 -2
- package/dist/cjs/timeline/templates/timeline-normal-alternating.js +1 -2
- package/dist/cjs/timeline/templates/timeline-normal-collapsible.js +1 -2
- package/dist/cjs/timeline/templates/timeline-normal.js +1 -2
- package/dist/cjs/timeline/tests/timeline-horizontal.js +1 -2
- package/dist/cjs/timeline/tests/timeline-vertical-alternating.js +1 -2
- package/dist/cjs/timeline/tests/timeline-vertical.js +1 -2
- package/dist/cjs/timeline/timeline-card-title.js +8 -165
- package/dist/cjs/timeline/timeline-card.spec.js +1 -2
- package/dist/cjs/timeline/timeline-track-wrap.spec.js +1 -2
- package/dist/cjs/timeline/vertical-timeline-event.spec.js +1 -2
- package/dist/esm/index.js +1095 -1073
- package/dist/esm/prompt/prompt-content.js +4 -4820
- package/dist/esm/prompt/prompt-view.js +4846 -0
- package/dist/esm/prompt/templates/prompt-more-actions.js +84 -64
- package/dist/esm/prompt/templates/prompt-normal.js +83 -63
- package/dist/esm/prompt/templates/prompt-output.js +108 -88
- package/dist/esm/prompt/templates/prompt-popup.js +86 -66
- package/dist/esm/prompt/templates/prompt-settings.js +77 -57
- package/dist/esm/prompt/templates/prompt-suggestions.js +90 -70
- package/dist/esm/prompt/tests/prompt-more-actions.js +89 -69
- package/dist/esm/prompt/tests/prompt-normal.js +123 -103
- package/dist/esm/prompt/tests/prompt-output.js +113 -93
- package/dist/esm/timeline/horizontal-timeline-event.spec.js +1 -2
- package/dist/esm/timeline/templates/timeline-horizontal.js +1 -2
- package/dist/esm/timeline/templates/timeline-normal-alternating.js +1 -2
- package/dist/esm/timeline/templates/timeline-normal-collapsible.js +1 -2
- package/dist/esm/timeline/templates/timeline-normal.js +1 -2
- package/dist/esm/timeline/tests/timeline-horizontal.js +1 -2
- package/dist/esm/timeline/tests/timeline-vertical-alternating.js +1 -2
- package/dist/esm/timeline/tests/timeline-vertical.js +1 -2
- package/dist/esm/timeline/timeline-card-title.js +8 -165
- package/dist/esm/timeline/timeline-card.spec.js +1 -2
- package/dist/esm/timeline/timeline-track-wrap.spec.js +1 -2
- package/dist/esm/timeline/vertical-timeline-event.spec.js +1 -2
- package/dist/types/prompt/index.d.ts +1 -0
- package/dist/types/prompt/prompt-content.d.ts +1 -7
- package/dist/types/prompt/prompt-view.d.ts +8 -0
- package/package.json +2 -2
- package/src/prompt/index.ts +1 -0
- package/src/prompt/prompt-content.tsx +1 -30
- package/src/prompt/prompt-view.tsx +51 -0
- package/src/prompt/templates/prompt-more-actions.tsx +11 -9
- package/src/prompt/templates/prompt-normal.tsx +4 -2
- package/src/prompt/templates/prompt-output.tsx +33 -31
- package/src/prompt/templates/prompt-popup.tsx +4 -2
- package/src/prompt/templates/prompt-settings.tsx +25 -23
- package/src/prompt/templates/prompt-suggestions.tsx +12 -10
- package/src/timeline/timeline-card-title.tsx +2 -2
|
@@ -7783,8 +7783,28 @@ var PromptHeader = (props) => {
|
|
|
7783
7783
|
);
|
|
7784
7784
|
};
|
|
7785
7785
|
|
|
7786
|
+
// src/prompt/prompt-content.tsx
|
|
7787
|
+
import { Fragment as Fragment37, jsx as jsx126 } from "react/jsx-runtime";
|
|
7788
|
+
var PROMPTCONTENT_CLASSNAME = `k-prompt-content`;
|
|
7789
|
+
var PromptContent = (props) => {
|
|
7790
|
+
const {
|
|
7791
|
+
...other
|
|
7792
|
+
} = props;
|
|
7793
|
+
return /* @__PURE__ */ jsx126(
|
|
7794
|
+
"div",
|
|
7795
|
+
{
|
|
7796
|
+
...other,
|
|
7797
|
+
className: classNames(
|
|
7798
|
+
props.className,
|
|
7799
|
+
PROMPTCONTENT_CLASSNAME
|
|
7800
|
+
),
|
|
7801
|
+
children: /* @__PURE__ */ jsx126(Fragment37, { children: props.children })
|
|
7802
|
+
}
|
|
7803
|
+
);
|
|
7804
|
+
};
|
|
7805
|
+
|
|
7786
7806
|
// src/textarea/textarea.spec.tsx
|
|
7787
|
-
import { jsx as
|
|
7807
|
+
import { jsx as jsx127 } from "react/jsx-runtime";
|
|
7788
7808
|
var TEXTAREA_CLASSNAME = `k-textarea`;
|
|
7789
7809
|
var states50 = [
|
|
7790
7810
|
States.hover,
|
|
@@ -7820,7 +7840,7 @@ var Textarea = (props) => {
|
|
|
7820
7840
|
disabled,
|
|
7821
7841
|
...other
|
|
7822
7842
|
} = props;
|
|
7823
|
-
return /* @__PURE__ */
|
|
7843
|
+
return /* @__PURE__ */ jsx127(
|
|
7824
7844
|
Input,
|
|
7825
7845
|
{
|
|
7826
7846
|
...other,
|
|
@@ -7834,7 +7854,7 @@ var Textarea = (props) => {
|
|
|
7834
7854
|
required,
|
|
7835
7855
|
disabled,
|
|
7836
7856
|
className: classNames(props.className, TEXTAREA_CLASSNAME),
|
|
7837
|
-
children: /* @__PURE__ */
|
|
7857
|
+
children: /* @__PURE__ */ jsx127(
|
|
7838
7858
|
InputInnerTextarea,
|
|
7839
7859
|
{
|
|
7840
7860
|
className: classNames(
|
|
@@ -7854,12 +7874,12 @@ Textarea.className = TEXTAREA_CLASSNAME;
|
|
|
7854
7874
|
Textarea.defaultProps = defaultProps45;
|
|
7855
7875
|
|
|
7856
7876
|
// src/textarea/templates/textarea-normal.tsx
|
|
7857
|
-
import { jsx as
|
|
7877
|
+
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
7858
7878
|
|
|
7859
|
-
// src/prompt/prompt-
|
|
7860
|
-
import { Fragment as
|
|
7861
|
-
var
|
|
7862
|
-
var
|
|
7879
|
+
// src/prompt/prompt-view.tsx
|
|
7880
|
+
import { Fragment as Fragment38, jsx as jsx129, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
7881
|
+
var PROMPTVIEW_CLASSNAME = `k-prompt-view`;
|
|
7882
|
+
var PromptView = (props) => {
|
|
7863
7883
|
const {
|
|
7864
7884
|
showSearch,
|
|
7865
7885
|
suggestions,
|
|
@@ -7872,32 +7892,32 @@ var PromptContent = (props) => {
|
|
|
7872
7892
|
...other,
|
|
7873
7893
|
className: classNames(
|
|
7874
7894
|
props.className,
|
|
7875
|
-
|
|
7895
|
+
PROMPTVIEW_CLASSNAME
|
|
7876
7896
|
),
|
|
7877
7897
|
children: [
|
|
7878
|
-
showSearch && /* @__PURE__ */
|
|
7898
|
+
showSearch && /* @__PURE__ */ jsx129(Textarea, { rows: 1, placeholder: "Ask or generate content with AI" }),
|
|
7879
7899
|
suggestions && /* @__PURE__ */ jsxs55("div", { className: "k-prompt-expander", children: [
|
|
7880
|
-
/* @__PURE__ */
|
|
7881
|
-
/* @__PURE__ */
|
|
7900
|
+
/* @__PURE__ */ jsx129(IconTextButton, { fillMode: "flat", icon: "chevron-down", children: "Prompt Suggestions" }),
|
|
7901
|
+
/* @__PURE__ */ jsx129("div", { className: "k-prompt-expander-content", children: /* @__PURE__ */ jsx129(Fragment38, { children: suggestions }) })
|
|
7882
7902
|
] }),
|
|
7883
7903
|
settings && /* @__PURE__ */ jsxs55("div", { className: "k-prompt-expander", children: [
|
|
7884
|
-
/* @__PURE__ */
|
|
7885
|
-
/* @__PURE__ */
|
|
7904
|
+
/* @__PURE__ */ jsx129(IconTextButton, { fillMode: "flat", icon: "chevron-down", children: "Settings" }),
|
|
7905
|
+
/* @__PURE__ */ jsx129("div", { className: "k-prompt-expander-content", children: settings })
|
|
7886
7906
|
] }),
|
|
7887
|
-
|
|
7907
|
+
props.children
|
|
7888
7908
|
]
|
|
7889
7909
|
}
|
|
7890
7910
|
);
|
|
7891
7911
|
};
|
|
7892
7912
|
|
|
7893
7913
|
// src/prompt/prompt-footer.tsx
|
|
7894
|
-
import { jsx as
|
|
7914
|
+
import { jsx as jsx130 } from "react/jsx-runtime";
|
|
7895
7915
|
var PROMPTFOOTER_CLASSNAME = `k-prompt-footer`;
|
|
7896
7916
|
var PromptFooter = (props) => {
|
|
7897
7917
|
const {
|
|
7898
7918
|
...other
|
|
7899
7919
|
} = props;
|
|
7900
|
-
return /* @__PURE__ */
|
|
7920
|
+
return /* @__PURE__ */ jsx130(
|
|
7901
7921
|
"div",
|
|
7902
7922
|
{
|
|
7903
7923
|
...other,
|
|
@@ -7911,22 +7931,22 @@ var PromptFooter = (props) => {
|
|
|
7911
7931
|
};
|
|
7912
7932
|
|
|
7913
7933
|
// src/prompt/prompt-suggestion.tsx
|
|
7914
|
-
import { jsx as
|
|
7934
|
+
import { jsx as jsx131 } from "react/jsx-runtime";
|
|
7915
7935
|
|
|
7916
7936
|
// src/prompt/prompt-setting.tsx
|
|
7917
|
-
import { jsx as
|
|
7937
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
|
7918
7938
|
|
|
7919
7939
|
// src/prompt/templates/prompt-normal.tsx
|
|
7920
|
-
import { jsx as
|
|
7940
|
+
import { jsx as jsx133, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
7921
7941
|
|
|
7922
7942
|
// src/prompt/templates/prompt-suggestions.tsx
|
|
7923
|
-
import { Fragment as
|
|
7943
|
+
import { Fragment as Fragment39, jsx as jsx134, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
7924
7944
|
|
|
7925
7945
|
// src/chip/chip-action.tsx
|
|
7926
|
-
import { jsx as
|
|
7946
|
+
import { jsx as jsx135 } from "react/jsx-runtime";
|
|
7927
7947
|
|
|
7928
7948
|
// src/avatar/avatar.spec.tsx
|
|
7929
|
-
import { jsx as
|
|
7949
|
+
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
7930
7950
|
var AVATAR_CLASSNAME = `k-avatar`;
|
|
7931
7951
|
var states51 = [
|
|
7932
7952
|
States.hover,
|
|
@@ -7971,7 +7991,7 @@ var Avatar = (props) => {
|
|
|
7971
7991
|
border = defaultProps46.border,
|
|
7972
7992
|
...other
|
|
7973
7993
|
} = props;
|
|
7974
|
-
return /* @__PURE__ */
|
|
7994
|
+
return /* @__PURE__ */ jsx136(
|
|
7975
7995
|
"div",
|
|
7976
7996
|
{
|
|
7977
7997
|
...other,
|
|
@@ -7988,7 +8008,7 @@ var Avatar = (props) => {
|
|
|
7988
8008
|
[`${AVATAR_CLASSNAME}-bordered`]: border
|
|
7989
8009
|
}
|
|
7990
8010
|
),
|
|
7991
|
-
children: /* @__PURE__ */
|
|
8011
|
+
children: /* @__PURE__ */ jsx136("span", { className: `${AVATAR_CLASSNAME}-${type}`, children: props.children })
|
|
7992
8012
|
}
|
|
7993
8013
|
);
|
|
7994
8014
|
};
|
|
@@ -7998,16 +8018,16 @@ Avatar.className = AVATAR_CLASSNAME;
|
|
|
7998
8018
|
Avatar.defaultProps = defaultProps46;
|
|
7999
8019
|
|
|
8000
8020
|
// src/avatar/templates/avatar-icon.tsx
|
|
8001
|
-
import { jsx as
|
|
8021
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
8002
8022
|
|
|
8003
8023
|
// src/avatar/templates/avatar-text.tsx
|
|
8004
|
-
import { jsx as
|
|
8024
|
+
import { jsx as jsx138 } from "react/jsx-runtime";
|
|
8005
8025
|
|
|
8006
8026
|
// src/avatar/templates/avatar-image.tsx
|
|
8007
|
-
import { jsx as
|
|
8027
|
+
import { jsx as jsx139 } from "react/jsx-runtime";
|
|
8008
8028
|
|
|
8009
8029
|
// src/chip/chip.spec.tsx
|
|
8010
|
-
import { jsx as
|
|
8030
|
+
import { jsx as jsx140, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
8011
8031
|
var CHIP_CLASSNAME = `k-chip`;
|
|
8012
8032
|
var states52 = [
|
|
8013
8033
|
States.hover,
|
|
@@ -8073,10 +8093,10 @@ var Chip = (props) => {
|
|
|
8073
8093
|
})
|
|
8074
8094
|
),
|
|
8075
8095
|
children: [
|
|
8076
|
-
icon && /* @__PURE__ */
|
|
8077
|
-
showAvatar && /* @__PURE__ */
|
|
8078
|
-
/* @__PURE__ */
|
|
8079
|
-
actions && /* @__PURE__ */
|
|
8096
|
+
icon && /* @__PURE__ */ jsx140(Icon, { className: "k-chip-icon", icon, size: "small" }),
|
|
8097
|
+
showAvatar && /* @__PURE__ */ jsx140(Avatar, { className: "k-chip-avatar", type: "image", children: /* @__PURE__ */ jsx140("img", { src: "/packages/html/assets/avatar.jpg" }) }),
|
|
8098
|
+
/* @__PURE__ */ jsx140("span", { className: "k-chip-content", children: props.children ? props.children : text && /* @__PURE__ */ jsx140("span", { className: "k-chip-label k-text-ellipsis", children: text }) }),
|
|
8099
|
+
actions && /* @__PURE__ */ jsx140("span", { className: "k-chip-actions", children: actions })
|
|
8080
8100
|
]
|
|
8081
8101
|
}
|
|
8082
8102
|
);
|
|
@@ -8087,7 +8107,7 @@ Chip.className = CHIP_CLASSNAME;
|
|
|
8087
8107
|
Chip.defaultProps = defaultProps47;
|
|
8088
8108
|
|
|
8089
8109
|
// src/chip/chip-list.spec.tsx
|
|
8090
|
-
import { jsx as
|
|
8110
|
+
import { jsx as jsx141 } from "react/jsx-runtime";
|
|
8091
8111
|
var CHIPLIST_CLASSNAME = `k-chip-list`;
|
|
8092
8112
|
var states53 = [];
|
|
8093
8113
|
var options51 = {
|
|
@@ -8101,7 +8121,7 @@ var ChipList = (props) => {
|
|
|
8101
8121
|
size = defaultProps48.size,
|
|
8102
8122
|
...other
|
|
8103
8123
|
} = props;
|
|
8104
|
-
return /* @__PURE__ */
|
|
8124
|
+
return /* @__PURE__ */ jsx141(
|
|
8105
8125
|
"div",
|
|
8106
8126
|
{
|
|
8107
8127
|
...other,
|
|
@@ -8122,29 +8142,29 @@ ChipList.className = CHIPLIST_CLASSNAME;
|
|
|
8122
8142
|
ChipList.defaultProps = defaultProps48;
|
|
8123
8143
|
|
|
8124
8144
|
// src/chip/templates/chip-avatar.tsx
|
|
8125
|
-
import { jsx as
|
|
8145
|
+
import { jsx as jsx142 } from "react/jsx-runtime";
|
|
8126
8146
|
|
|
8127
8147
|
// src/chip/templates/chip-icon.tsx
|
|
8128
|
-
import { jsx as
|
|
8148
|
+
import { jsx as jsx143 } from "react/jsx-runtime";
|
|
8129
8149
|
|
|
8130
8150
|
// src/chip/templates/chip-normal.tsx
|
|
8131
|
-
import { jsx as
|
|
8151
|
+
import { jsx as jsx144 } from "react/jsx-runtime";
|
|
8132
8152
|
|
|
8133
8153
|
// src/chip/templates/chip-removable.tsx
|
|
8134
|
-
import { jsx as
|
|
8154
|
+
import { jsx as jsx145 } from "react/jsx-runtime";
|
|
8135
8155
|
|
|
8136
8156
|
// src/prompt/templates/prompt-settings.tsx
|
|
8137
|
-
import { Fragment as
|
|
8157
|
+
import { Fragment as Fragment40, jsx as jsx146, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
8138
8158
|
|
|
8139
8159
|
// src/card/card-callout.tsx
|
|
8140
|
-
import { jsx as
|
|
8160
|
+
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
8141
8161
|
var CARDCALLOUT_CLASSNAME = `k-card-callout`;
|
|
8142
8162
|
var CardCallout = (props) => {
|
|
8143
8163
|
const {
|
|
8144
8164
|
callout,
|
|
8145
8165
|
...other
|
|
8146
8166
|
} = props;
|
|
8147
|
-
return /* @__PURE__ */
|
|
8167
|
+
return /* @__PURE__ */ jsx147(
|
|
8148
8168
|
"span",
|
|
8149
8169
|
{
|
|
8150
8170
|
...other,
|
|
@@ -8160,7 +8180,7 @@ var CardCallout = (props) => {
|
|
|
8160
8180
|
};
|
|
8161
8181
|
|
|
8162
8182
|
// src/card/card.spec.tsx
|
|
8163
|
-
import { Fragment as
|
|
8183
|
+
import { Fragment as Fragment41, jsx as jsx148, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
8164
8184
|
var CARD_CLASSNAME = `k-card`;
|
|
8165
8185
|
var states54 = [
|
|
8166
8186
|
States.hover,
|
|
@@ -8211,8 +8231,8 @@ var Card = (props) => {
|
|
|
8211
8231
|
}
|
|
8212
8232
|
),
|
|
8213
8233
|
children: [
|
|
8214
|
-
callout && callout !== "true" && /* @__PURE__ */
|
|
8215
|
-
/* @__PURE__ */
|
|
8234
|
+
callout && callout !== "true" && /* @__PURE__ */ jsx148(CardCallout, { callout }),
|
|
8235
|
+
/* @__PURE__ */ jsx148(Fragment41, { children: props.children })
|
|
8216
8236
|
]
|
|
8217
8237
|
}
|
|
8218
8238
|
);
|
|
@@ -8223,58 +8243,58 @@ Card.className = CARD_CLASSNAME;
|
|
|
8223
8243
|
Card.defaultProps = defaultProps49;
|
|
8224
8244
|
|
|
8225
8245
|
// src/card/card-title.tsx
|
|
8226
|
-
import { jsx as
|
|
8246
|
+
import { jsx as jsx149 } from "react/jsx-runtime";
|
|
8227
8247
|
var states55 = [
|
|
8228
8248
|
States.hover,
|
|
8229
8249
|
States.focus
|
|
8230
8250
|
];
|
|
8231
8251
|
|
|
8232
8252
|
// src/card/card-subtitle.tsx
|
|
8233
|
-
import { jsx as
|
|
8253
|
+
import { jsx as jsx150 } from "react/jsx-runtime";
|
|
8234
8254
|
|
|
8235
8255
|
// src/card/card-media.tsx
|
|
8236
|
-
import { Fragment as
|
|
8256
|
+
import { Fragment as Fragment42, jsx as jsx151 } from "react/jsx-runtime";
|
|
8237
8257
|
|
|
8238
8258
|
// src/card/card-header.tsx
|
|
8239
|
-
import { Fragment as
|
|
8259
|
+
import { Fragment as Fragment43, jsx as jsx152, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
8240
8260
|
|
|
8241
8261
|
// src/card/card-footer.tsx
|
|
8242
|
-
import { jsx as
|
|
8262
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
8243
8263
|
|
|
8244
8264
|
// src/card/card-body.tsx
|
|
8245
|
-
import { Fragment as
|
|
8265
|
+
import { Fragment as Fragment44, jsx as jsx154, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
8246
8266
|
|
|
8247
8267
|
// src/card/card-deck.tsx
|
|
8248
|
-
import { jsx as
|
|
8268
|
+
import { jsx as jsx155 } from "react/jsx-runtime";
|
|
8249
8269
|
|
|
8250
8270
|
// src/card/templates/card-normal.tsx
|
|
8251
|
-
import { Fragment as
|
|
8271
|
+
import { Fragment as Fragment45, jsx as jsx156, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
8252
8272
|
|
|
8253
8273
|
// src/card/templates/card-horizontal.tsx
|
|
8254
|
-
import { Fragment as
|
|
8274
|
+
import { Fragment as Fragment46, jsx as jsx157, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
8255
8275
|
|
|
8256
8276
|
// src/prompt/templates/prompt-output.tsx
|
|
8257
|
-
import { jsx as
|
|
8277
|
+
import { jsx as jsx158, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
8258
8278
|
|
|
8259
8279
|
// src/prompt/templates/prompt-more-actions.tsx
|
|
8260
|
-
import { jsx as
|
|
8280
|
+
import { jsx as jsx159, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
8261
8281
|
|
|
8262
8282
|
// src/prompt/templates/prompt-popup.tsx
|
|
8263
|
-
import { jsx as
|
|
8264
|
-
var PromptInPopup = (props) => /* @__PURE__ */
|
|
8283
|
+
import { jsx as jsx160, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
8284
|
+
var PromptInPopup = (props) => /* @__PURE__ */ jsx160(Popup, { className: "k-prompt-popup", children: /* @__PURE__ */ jsxs67(
|
|
8265
8285
|
Prompt,
|
|
8266
8286
|
{
|
|
8267
8287
|
...props,
|
|
8268
8288
|
children: [
|
|
8269
|
-
/* @__PURE__ */
|
|
8270
|
-
/* @__PURE__ */
|
|
8271
|
-
/* @__PURE__ */
|
|
8272
|
-
/* @__PURE__ */
|
|
8273
|
-
/* @__PURE__ */
|
|
8274
|
-
/* @__PURE__ */
|
|
8289
|
+
/* @__PURE__ */ jsx160(PromptHeader, { children: /* @__PURE__ */ jsxs67(Toolbar, { className: "k-toolbar-flat", children: [
|
|
8290
|
+
/* @__PURE__ */ jsx160(IconTextButton, { fillMode: "flat", themeColor: "primary", icon: "sparkles", rounded: "full", selected: true, children: "Ask AI" }),
|
|
8291
|
+
/* @__PURE__ */ jsx160(IconTextButton, { fillMode: "flat", themeColor: "primary", icon: "comment", rounded: "full", children: "Output" }),
|
|
8292
|
+
/* @__PURE__ */ jsx160(IconButton, { fillMode: "flat", themeColor: "primary", icon: "more-horizontal", rounded: "full" }),
|
|
8293
|
+
/* @__PURE__ */ jsx160("span", { className: "k-spacer" }),
|
|
8294
|
+
/* @__PURE__ */ jsx160(IconButton, { fillMode: "flat", themeColor: "base", icon: "x", rounded: "full" })
|
|
8275
8295
|
] }) }),
|
|
8276
|
-
/* @__PURE__ */
|
|
8277
|
-
/* @__PURE__ */
|
|
8296
|
+
/* @__PURE__ */ jsx160(PromptContent, { children: /* @__PURE__ */ jsx160(PromptView, { showSearch: true }) }),
|
|
8297
|
+
/* @__PURE__ */ jsx160(PromptFooter, { children: /* @__PURE__ */ jsx160(ActionButtons, { className: "k-prompt-actions", alignment: "start", children: /* @__PURE__ */ jsx160(IconTextButton, { icon: "sparkles", themeColor: "primary", rounded: "full", children: "Generate" }) }) })
|
|
8278
8298
|
]
|
|
8279
8299
|
}
|
|
8280
8300
|
) });
|
|
@@ -7994,8 +7994,28 @@ var PromptHeader = (props) => {
|
|
|
7994
7994
|
);
|
|
7995
7995
|
};
|
|
7996
7996
|
|
|
7997
|
+
// src/prompt/prompt-content.tsx
|
|
7998
|
+
import { Fragment as Fragment37, jsx as jsx137 } from "react/jsx-runtime";
|
|
7999
|
+
var PROMPTCONTENT_CLASSNAME = `k-prompt-content`;
|
|
8000
|
+
var PromptContent = (props) => {
|
|
8001
|
+
const {
|
|
8002
|
+
...other
|
|
8003
|
+
} = props;
|
|
8004
|
+
return /* @__PURE__ */ jsx137(
|
|
8005
|
+
"div",
|
|
8006
|
+
{
|
|
8007
|
+
...other,
|
|
8008
|
+
className: classNames(
|
|
8009
|
+
props.className,
|
|
8010
|
+
PROMPTCONTENT_CLASSNAME
|
|
8011
|
+
),
|
|
8012
|
+
children: /* @__PURE__ */ jsx137(Fragment37, { children: props.children })
|
|
8013
|
+
}
|
|
8014
|
+
);
|
|
8015
|
+
};
|
|
8016
|
+
|
|
7997
8017
|
// src/textarea/textarea.spec.tsx
|
|
7998
|
-
import { jsx as
|
|
8018
|
+
import { jsx as jsx138 } from "react/jsx-runtime";
|
|
7999
8019
|
var TEXTAREA_CLASSNAME = `k-textarea`;
|
|
8000
8020
|
var states53 = [
|
|
8001
8021
|
States.hover,
|
|
@@ -8031,7 +8051,7 @@ var Textarea = (props) => {
|
|
|
8031
8051
|
disabled,
|
|
8032
8052
|
...other
|
|
8033
8053
|
} = props;
|
|
8034
|
-
return /* @__PURE__ */
|
|
8054
|
+
return /* @__PURE__ */ jsx138(
|
|
8035
8055
|
Input,
|
|
8036
8056
|
{
|
|
8037
8057
|
...other,
|
|
@@ -8045,7 +8065,7 @@ var Textarea = (props) => {
|
|
|
8045
8065
|
required,
|
|
8046
8066
|
disabled,
|
|
8047
8067
|
className: classNames(props.className, TEXTAREA_CLASSNAME),
|
|
8048
|
-
children: /* @__PURE__ */
|
|
8068
|
+
children: /* @__PURE__ */ jsx138(
|
|
8049
8069
|
InputInnerTextarea,
|
|
8050
8070
|
{
|
|
8051
8071
|
className: classNames(
|
|
@@ -8065,12 +8085,12 @@ Textarea.className = TEXTAREA_CLASSNAME;
|
|
|
8065
8085
|
Textarea.defaultProps = defaultProps48;
|
|
8066
8086
|
|
|
8067
8087
|
// src/textarea/templates/textarea-normal.tsx
|
|
8068
|
-
import { jsx as
|
|
8088
|
+
import { jsx as jsx139 } from "react/jsx-runtime";
|
|
8069
8089
|
|
|
8070
|
-
// src/prompt/prompt-
|
|
8071
|
-
import { Fragment as
|
|
8072
|
-
var
|
|
8073
|
-
var
|
|
8090
|
+
// src/prompt/prompt-view.tsx
|
|
8091
|
+
import { Fragment as Fragment38, jsx as jsx140, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
8092
|
+
var PROMPTVIEW_CLASSNAME = `k-prompt-view`;
|
|
8093
|
+
var PromptView = (props) => {
|
|
8074
8094
|
const {
|
|
8075
8095
|
showSearch,
|
|
8076
8096
|
suggestions,
|
|
@@ -8083,32 +8103,32 @@ var PromptContent = (props) => {
|
|
|
8083
8103
|
...other,
|
|
8084
8104
|
className: classNames(
|
|
8085
8105
|
props.className,
|
|
8086
|
-
|
|
8106
|
+
PROMPTVIEW_CLASSNAME
|
|
8087
8107
|
),
|
|
8088
8108
|
children: [
|
|
8089
|
-
showSearch && /* @__PURE__ */
|
|
8109
|
+
showSearch && /* @__PURE__ */ jsx140(Textarea, { rows: 1, placeholder: "Ask or generate content with AI" }),
|
|
8090
8110
|
suggestions && /* @__PURE__ */ jsxs56("div", { className: "k-prompt-expander", children: [
|
|
8091
|
-
/* @__PURE__ */
|
|
8092
|
-
/* @__PURE__ */
|
|
8111
|
+
/* @__PURE__ */ jsx140(IconTextButton, { fillMode: "flat", icon: "chevron-down", children: "Prompt Suggestions" }),
|
|
8112
|
+
/* @__PURE__ */ jsx140("div", { className: "k-prompt-expander-content", children: /* @__PURE__ */ jsx140(Fragment38, { children: suggestions }) })
|
|
8093
8113
|
] }),
|
|
8094
8114
|
settings && /* @__PURE__ */ jsxs56("div", { className: "k-prompt-expander", children: [
|
|
8095
|
-
/* @__PURE__ */
|
|
8096
|
-
/* @__PURE__ */
|
|
8115
|
+
/* @__PURE__ */ jsx140(IconTextButton, { fillMode: "flat", icon: "chevron-down", children: "Settings" }),
|
|
8116
|
+
/* @__PURE__ */ jsx140("div", { className: "k-prompt-expander-content", children: settings })
|
|
8097
8117
|
] }),
|
|
8098
|
-
|
|
8118
|
+
props.children
|
|
8099
8119
|
]
|
|
8100
8120
|
}
|
|
8101
8121
|
);
|
|
8102
8122
|
};
|
|
8103
8123
|
|
|
8104
8124
|
// src/prompt/prompt-footer.tsx
|
|
8105
|
-
import { jsx as
|
|
8125
|
+
import { jsx as jsx141 } from "react/jsx-runtime";
|
|
8106
8126
|
var PROMPTFOOTER_CLASSNAME = `k-prompt-footer`;
|
|
8107
8127
|
var PromptFooter = (props) => {
|
|
8108
8128
|
const {
|
|
8109
8129
|
...other
|
|
8110
8130
|
} = props;
|
|
8111
|
-
return /* @__PURE__ */
|
|
8131
|
+
return /* @__PURE__ */ jsx141(
|
|
8112
8132
|
"div",
|
|
8113
8133
|
{
|
|
8114
8134
|
...other,
|
|
@@ -8122,16 +8142,16 @@ var PromptFooter = (props) => {
|
|
|
8122
8142
|
};
|
|
8123
8143
|
|
|
8124
8144
|
// src/prompt/prompt-suggestion.tsx
|
|
8125
|
-
import { jsx as
|
|
8145
|
+
import { jsx as jsx142 } from "react/jsx-runtime";
|
|
8126
8146
|
|
|
8127
8147
|
// src/prompt/prompt-setting.tsx
|
|
8128
|
-
import { jsx as
|
|
8148
|
+
import { jsx as jsx143 } from "react/jsx-runtime";
|
|
8129
8149
|
var PROMPTSETTING_CLASSNAME = `k-prompt-setting`;
|
|
8130
8150
|
var PromptSetting = (props) => {
|
|
8131
8151
|
const {
|
|
8132
8152
|
...other
|
|
8133
8153
|
} = props;
|
|
8134
|
-
return /* @__PURE__ */
|
|
8154
|
+
return /* @__PURE__ */ jsx143(
|
|
8135
8155
|
"div",
|
|
8136
8156
|
{
|
|
8137
8157
|
...other,
|
|
@@ -8145,20 +8165,20 @@ var PromptSetting = (props) => {
|
|
|
8145
8165
|
};
|
|
8146
8166
|
|
|
8147
8167
|
// src/prompt/templates/prompt-normal.tsx
|
|
8148
|
-
import { jsx as
|
|
8168
|
+
import { jsx as jsx144, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
8149
8169
|
|
|
8150
8170
|
// src/prompt/templates/prompt-suggestions.tsx
|
|
8151
|
-
import { Fragment as
|
|
8171
|
+
import { Fragment as Fragment39, jsx as jsx145, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
8152
8172
|
|
|
8153
8173
|
// src/card/card-callout.tsx
|
|
8154
|
-
import { jsx as
|
|
8174
|
+
import { jsx as jsx146 } from "react/jsx-runtime";
|
|
8155
8175
|
var CARDCALLOUT_CLASSNAME = `k-card-callout`;
|
|
8156
8176
|
var CardCallout = (props) => {
|
|
8157
8177
|
const {
|
|
8158
8178
|
callout,
|
|
8159
8179
|
...other
|
|
8160
8180
|
} = props;
|
|
8161
|
-
return /* @__PURE__ */
|
|
8181
|
+
return /* @__PURE__ */ jsx146(
|
|
8162
8182
|
"span",
|
|
8163
8183
|
{
|
|
8164
8184
|
...other,
|
|
@@ -8174,7 +8194,7 @@ var CardCallout = (props) => {
|
|
|
8174
8194
|
};
|
|
8175
8195
|
|
|
8176
8196
|
// src/card/card.spec.tsx
|
|
8177
|
-
import { Fragment as
|
|
8197
|
+
import { Fragment as Fragment40, jsx as jsx147, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
8178
8198
|
var CARD_CLASSNAME = `k-card`;
|
|
8179
8199
|
var states54 = [
|
|
8180
8200
|
States.hover,
|
|
@@ -8225,8 +8245,8 @@ var Card = (props) => {
|
|
|
8225
8245
|
}
|
|
8226
8246
|
),
|
|
8227
8247
|
children: [
|
|
8228
|
-
callout && callout !== "true" && /* @__PURE__ */
|
|
8229
|
-
/* @__PURE__ */
|
|
8248
|
+
callout && callout !== "true" && /* @__PURE__ */ jsx147(CardCallout, { callout }),
|
|
8249
|
+
/* @__PURE__ */ jsx147(Fragment40, { children: props.children })
|
|
8230
8250
|
]
|
|
8231
8251
|
}
|
|
8232
8252
|
);
|
|
@@ -8237,80 +8257,80 @@ Card.className = CARD_CLASSNAME;
|
|
|
8237
8257
|
Card.defaultProps = defaultProps49;
|
|
8238
8258
|
|
|
8239
8259
|
// src/card/card-title.tsx
|
|
8240
|
-
import { jsx as
|
|
8260
|
+
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
8241
8261
|
var states55 = [
|
|
8242
8262
|
States.hover,
|
|
8243
8263
|
States.focus
|
|
8244
8264
|
];
|
|
8245
8265
|
|
|
8246
8266
|
// src/card/card-subtitle.tsx
|
|
8247
|
-
import { jsx as
|
|
8267
|
+
import { jsx as jsx149 } from "react/jsx-runtime";
|
|
8248
8268
|
|
|
8249
8269
|
// src/card/card-media.tsx
|
|
8250
|
-
import { Fragment as
|
|
8270
|
+
import { Fragment as Fragment41, jsx as jsx150 } from "react/jsx-runtime";
|
|
8251
8271
|
|
|
8252
8272
|
// src/card/card-header.tsx
|
|
8253
|
-
import { Fragment as
|
|
8273
|
+
import { Fragment as Fragment42, jsx as jsx151, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
8254
8274
|
|
|
8255
8275
|
// src/card/card-footer.tsx
|
|
8256
|
-
import { jsx as
|
|
8276
|
+
import { jsx as jsx152 } from "react/jsx-runtime";
|
|
8257
8277
|
|
|
8258
8278
|
// src/card/card-body.tsx
|
|
8259
|
-
import { Fragment as
|
|
8279
|
+
import { Fragment as Fragment43, jsx as jsx153, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
8260
8280
|
|
|
8261
8281
|
// src/card/card-deck.tsx
|
|
8262
|
-
import { jsx as
|
|
8282
|
+
import { jsx as jsx154 } from "react/jsx-runtime";
|
|
8263
8283
|
|
|
8264
8284
|
// src/card/templates/card-normal.tsx
|
|
8265
|
-
import { Fragment as
|
|
8285
|
+
import { Fragment as Fragment44, jsx as jsx155, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
8266
8286
|
|
|
8267
8287
|
// src/card/templates/card-horizontal.tsx
|
|
8268
|
-
import { Fragment as
|
|
8288
|
+
import { Fragment as Fragment45, jsx as jsx156, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
8269
8289
|
|
|
8270
8290
|
// src/prompt/templates/prompt-output.tsx
|
|
8271
|
-
import { jsx as
|
|
8291
|
+
import { jsx as jsx157, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
8272
8292
|
|
|
8273
8293
|
// src/prompt/templates/prompt-more-actions.tsx
|
|
8274
|
-
import { jsx as
|
|
8294
|
+
import { jsx as jsx158, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
8275
8295
|
|
|
8276
8296
|
// src/prompt/templates/prompt-popup.tsx
|
|
8277
|
-
import { jsx as
|
|
8297
|
+
import { jsx as jsx159, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
8278
8298
|
|
|
8279
8299
|
// src/prompt/templates/prompt-settings.tsx
|
|
8280
|
-
import { Fragment as
|
|
8300
|
+
import { Fragment as Fragment46, jsx as jsx160, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
8281
8301
|
var PromptSettings = (props) => /* @__PURE__ */ jsxs67(Prompt, { ...props, children: [
|
|
8282
|
-
/* @__PURE__ */
|
|
8283
|
-
/* @__PURE__ */
|
|
8284
|
-
/* @__PURE__ */
|
|
8285
|
-
/* @__PURE__ */
|
|
8302
|
+
/* @__PURE__ */ jsx160(PromptHeader, { children: /* @__PURE__ */ jsxs67(Toolbar, { className: "k-toolbar-flat", children: [
|
|
8303
|
+
/* @__PURE__ */ jsx160(IconTextButton, { fillMode: "flat", themeColor: "primary", icon: "sparkles", rounded: "full", selected: true, children: "Ask AI" }),
|
|
8304
|
+
/* @__PURE__ */ jsx160(IconTextButton, { fillMode: "flat", themeColor: "primary", icon: "comment", rounded: "full", children: "Output" }),
|
|
8305
|
+
/* @__PURE__ */ jsx160(IconButton, { fillMode: "flat", themeColor: "primary", icon: "more-horizontal", rounded: "full" })
|
|
8286
8306
|
] }) }),
|
|
8287
|
-
/* @__PURE__ */
|
|
8288
|
-
|
|
8307
|
+
/* @__PURE__ */ jsx160(PromptContent, { children: /* @__PURE__ */ jsx160(
|
|
8308
|
+
PromptView,
|
|
8289
8309
|
{
|
|
8290
8310
|
showSearch: true,
|
|
8291
|
-
settings: /* @__PURE__ */ jsxs67(
|
|
8311
|
+
settings: /* @__PURE__ */ jsxs67(Fragment46, { children: [
|
|
8292
8312
|
/* @__PURE__ */ jsxs67(PromptSetting, { children: [
|
|
8293
8313
|
"Length:",
|
|
8294
8314
|
/* @__PURE__ */ jsxs67(ChipList, { children: [
|
|
8295
|
-
/* @__PURE__ */
|
|
8296
|
-
/* @__PURE__ */
|
|
8297
|
-
/* @__PURE__ */
|
|
8315
|
+
/* @__PURE__ */ jsx160(Chip, { text: "Small" }),
|
|
8316
|
+
/* @__PURE__ */ jsx160(Chip, { text: "Medium" }),
|
|
8317
|
+
/* @__PURE__ */ jsx160(Chip, { text: "Large" })
|
|
8298
8318
|
] })
|
|
8299
8319
|
] }),
|
|
8300
8320
|
/* @__PURE__ */ jsxs67(PromptSetting, { children: [
|
|
8301
8321
|
"Tone:",
|
|
8302
8322
|
/* @__PURE__ */ jsxs67(ChipList, { children: [
|
|
8303
|
-
/* @__PURE__ */
|
|
8304
|
-
/* @__PURE__ */
|
|
8305
|
-
/* @__PURE__ */
|
|
8306
|
-
/* @__PURE__ */
|
|
8307
|
-
/* @__PURE__ */
|
|
8323
|
+
/* @__PURE__ */ jsx160(Chip, { text: "Professional" }),
|
|
8324
|
+
/* @__PURE__ */ jsx160(Chip, { text: "Friendly" }),
|
|
8325
|
+
/* @__PURE__ */ jsx160(Chip, { text: "Casual" }),
|
|
8326
|
+
/* @__PURE__ */ jsx160(Chip, { text: "Straightforward" }),
|
|
8327
|
+
/* @__PURE__ */ jsx160(Chip, { text: "Confident" })
|
|
8308
8328
|
] })
|
|
8309
8329
|
] })
|
|
8310
8330
|
] })
|
|
8311
8331
|
}
|
|
8312
|
-
),
|
|
8313
|
-
/* @__PURE__ */
|
|
8332
|
+
) }),
|
|
8333
|
+
/* @__PURE__ */ jsx160(PromptFooter, { children: /* @__PURE__ */ jsx160(ActionButtons, { className: "k-prompt-actions", alignment: "start", children: /* @__PURE__ */ jsx160(IconTextButton, { icon: "sparkles", themeColor: "primary", rounded: "full", children: "Generate" }) }) })
|
|
8314
8334
|
] });
|
|
8315
8335
|
export {
|
|
8316
8336
|
PromptSettings
|