@pathscale/ui 0.0.31 → 0.0.32

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 (2) hide show
  1. package/dist/index.js +53 -114
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5180,119 +5180,6 @@ const dropdown_Dropdown = Object.assign(Dropdown, {
5180
5180
  Item: dropdown_DropdownItem
5181
5181
  });
5182
5182
  const dropdown = dropdown_Dropdown;
5183
- const fieldWrapper = cva("flex flex-col space-y-1", {
5184
- variants: {
5185
- horizontal: {
5186
- true: "flex-row items-center space-x-2 space-y-0",
5187
- false: "flex-col"
5188
- },
5189
- size: {
5190
- sm: "text-sm",
5191
- md: "text-base",
5192
- lg: "text-lg"
5193
- },
5194
- type: {
5195
- default: "",
5196
- danger: "text-red-600"
5197
- },
5198
- grouped: {
5199
- true: "flex flex-wrap gap-2",
5200
- false: ""
5201
- },
5202
- groupMultiline: {
5203
- true: "flex-col",
5204
- false: "flex-row"
5205
- }
5206
- },
5207
- compoundVariants: [
5208
- {
5209
- horizontal: true,
5210
- grouped: true,
5211
- class: "items-start"
5212
- }
5213
- ],
5214
- defaultVariants: {
5215
- horizontal: false,
5216
- size: "md",
5217
- type: "default",
5218
- grouped: false,
5219
- groupMultiline: false
5220
- }
5221
- });
5222
- const labelStyles = cva("font-medium", {
5223
- variants: {
5224
- size: {
5225
- sm: "text-sm",
5226
- md: "text-base",
5227
- lg: "text-lg"
5228
- },
5229
- type: {
5230
- default: "text-gray-800",
5231
- danger: "text-red-600"
5232
- }
5233
- },
5234
- defaultVariants: {
5235
- size: "md",
5236
- type: "default"
5237
- }
5238
- });
5239
- const messageStyles = cva("mt-1 text-sm", {
5240
- variants: {
5241
- type: {
5242
- default: "text-gray-600",
5243
- danger: "text-red-600"
5244
- }
5245
- },
5246
- defaultVariants: {
5247
- type: "default"
5248
- }
5249
- });
5250
- var Field_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><div>"), Field_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<label>"), Field_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<span>");
5251
- const Field = (props)=>{
5252
- const [local, variantProps, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
5253
- "label",
5254
- "message",
5255
- "className",
5256
- "children"
5257
- ], [
5258
- "horizontal",
5259
- "size",
5260
- "type",
5261
- "grouped",
5262
- "groupMultiline"
5263
- ]);
5264
- return (()=>{
5265
- var _el$ = Field_tmpl$(), _el$2 = _el$.firstChild;
5266
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
5267
- get ["class"] () {
5268
- return classes_classes(fieldWrapper(variantProps), local.className);
5269
- }
5270
- }, rest), false, true);
5271
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
5272
- var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!local.label);
5273
- return ()=>_c$() && (()=>{
5274
- var _el$3 = Field_tmpl$2();
5275
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>local.label);
5276
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$3, labelStyles(variantProps)));
5277
- return _el$3;
5278
- })();
5279
- })(), _el$2);
5280
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>local.children);
5281
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
5282
- var _c$2 = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!local.message);
5283
- return ()=>_c$2() && (()=>{
5284
- var _el$4 = Field_tmpl$3();
5285
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>local.message);
5286
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$4, messageStyles(variantProps)));
5287
- return _el$4;
5288
- })();
5289
- })(), null);
5290
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$2, classes_classes(variantProps.horizontal ? "flex items-center gap-2" : "")));
5291
- return _el$;
5292
- })();
5293
- };
5294
- const field_Field = Field;
5295
- const field = field_Field;
5296
5183
  var FileInput_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<input>");
5297
5184
  const FileInput_FileInput = (props)=>{
5298
5185
  const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
@@ -5507,6 +5394,58 @@ const FooterNamespaces = Object.assign(Footer, {
5507
5394
  Title: FooterTitle
5508
5395
  });
5509
5396
  const footer_Footer = FooterNamespaces;
5397
+ var Label_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<label><span class="label-text cursor-pointer">');
5398
+ const Label = (props)=>{
5399
+ const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
5400
+ "children",
5401
+ "title",
5402
+ "dataTheme",
5403
+ "class",
5404
+ "className"
5405
+ ]);
5406
+ const classes = ()=>bundle_mjs_twMerge("label", local.class, local.className);
5407
+ return (()=>{
5408
+ var _el$ = Label_tmpl$(), _el$2 = _el$.firstChild;
5409
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
5410
+ get ["data-theme"] () {
5411
+ return local.dataTheme;
5412
+ },
5413
+ get ["class"] () {
5414
+ return classes();
5415
+ }
5416
+ }), false, true);
5417
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>local.title);
5418
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children, null);
5419
+ return _el$;
5420
+ })();
5421
+ };
5422
+ const form_Label = Label;
5423
+ var Form_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<form role=form>");
5424
+ const Form = (props)=>{
5425
+ const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
5426
+ "children",
5427
+ "dataTheme",
5428
+ "class",
5429
+ "className"
5430
+ ]);
5431
+ const classes = ()=>bundle_mjs_twMerge("form-control", local.class, local.className);
5432
+ return (()=>{
5433
+ var _el$ = Form_tmpl$();
5434
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
5435
+ get ["data-theme"] () {
5436
+ return local.dataTheme;
5437
+ },
5438
+ get ["class"] () {
5439
+ return classes();
5440
+ }
5441
+ }), false, true);
5442
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children);
5443
+ return _el$;
5444
+ })();
5445
+ };
5446
+ const form_Form = Object.assign(Form, {
5447
+ Label: form_Label
5448
+ });
5510
5449
  const colsMap = {
5511
5450
  1: "grid-cols-1",
5512
5451
  2: "grid-cols-2",
@@ -8403,4 +8342,4 @@ const Artboard = (props)=>{
8403
8342
  })();
8404
8343
  };
8405
8344
  const artboard_Artboard = Artboard;
8406
- export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, copy_button_CopyButton as CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, field as Field, FileInput, flex_Flex as Flex, footer_Footer as Footer, grid_Grid as Grid, hero_Hero as Hero, indicator_Indicator as Indicator, input_Input as Input, join_Join as Join, kbd_Kbd as Kbd, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal as Modal, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, Sidenav, skeleton_Skeleton as Skeleton, Stack, stats_Stats as Stats, status_Status as Status, steps as Steps, Summary, Swap, table as Table, tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup };
8345
+ export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, copy_button_CopyButton as CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, FileInput, flex_Flex as Flex, footer_Footer as Footer, form_Form as Form, grid_Grid as Grid, hero_Hero as Hero, indicator_Indicator as Indicator, input_Input as Input, join_Join as Join, kbd_Kbd as Kbd, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal as Modal, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, Sidenav, skeleton_Skeleton as Skeleton, Stack, stats_Stats as Stats, status_Status as Status, steps as Steps, Summary, Swap, table as Table, tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",